跳到正文

正在自动登录…

← 返回项目列表

deepseek-ai/DeepInfer

模型本地部署

DeepInfer 是 DeepSeek 官方开源的高性能大规模推理框架,用于在 NVIDIA 或华为昇腾硬件上离线部署和运行 DeepSeek-V4.1-Flash 模型,提供优化的内核、并行策略和结构化输出等核心服务能力。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/20 17:26:46 · 查看原文

值得看Python应用与服务
累计 Stars
19,161
当前热度
1~7 天 · 爆款
仓库创建时间
打开 GitHub ↗

选用指南

AI 根据 README 整理 · 2026/10/20 17:26:46

使用方式

通过命令行构建和运行,使用 Python 脚本进行离线推理,支持通过环境变量配置模型路径和各项功能。

查看 README 依据
- Linux - GCC >= 13.0 - Python 3.12 - CUDA 13 (NVIDIA only) - CANN 9.2 (Ascend only) ### Build from source Before building DeepInfer, please create and activate an empty Python 3.12 environment. ``` bash # Use `ascend` instead for the Ascend platform # Keep it exported in the environment where you run DeepInfer export DEEPINFER_ACCELERATOR=nvidia ./build.sh ``` ### Offline inference The default checkpoint, [`deepseek-ai/DeepSeek-V4.1-Flash-1017`](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017), is
downloaded into the Hugging Face cache on the first run; set `DEEPINFER_HF_MODEL_DIR=/path/to/DeepSeek-V4.1-Flash-1017` to run from a local copy instead. ``` bash python examples/offline_inference.py ``` See [examples](examples/README.md) for details. ## Performance benchmarks | Prefill | Decode | | :---: | :---: | | [![Prefill: non-cached input throughput vs. latency](doc/images/prefill_pareto.png)](doc/images/prefill_pareto.png) | [![Decode: output throughput vs. per-user speed](doc/images/decode_pareto.png)](doc/images/decode_pareto.png) |
部署要求

需要 Linux 系统、GCC 13.0 或更高版本、Python 3.12,NVIDIA 平台需 CUDA 13,Ascend 平台需 CANN 9.2。

查看 README 依据
- Linux - GCC >= 13.0 - Python 3.12 - CUDA 13 (NVIDIA only) - CANN 9.2 (Ascend only) ### Build from source Before building DeepInfer, please create and activate an empty Python 3.12 environment. ``` bash # Use `ascend` instead for the Ascend platform # Keep it exported in the environment where you run DeepInfer export DEEPINFER_ACCELERATOR=nvidia ./build.sh ``` ### Offline inference The default checkpoint, [`deepseek-ai/DeepSeek-V4.1-Flash-1017`](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017), is
已知限制

本发布版不包含完整的推理服务所需组件,如 KV cache 系统、VE/Prefill/Decode 分离和跨数据并行副本的负载均衡。

查看 README 依据
- **Structured outputs:** constrain generation to a regex, JSON schema, or EBNF grammar. Pass `so_args={"schema_type": ..., "schema": ...}` to `SamplingParams`; see [examples](examples/_structured_output.py). </details> Supported hardware: - NVIDIA SM100 GPUs - Huawei Ascend 950 NPUs Required for a complete inference service (not included in this release): - A KV cache system - VE/Prefill/Decode disaggregation (most required engine functionality is already implemented) - Load balancing across data-parallel replicas for both prefill and decode ## Getting started ### Prerequisites

README

正在加载 README…

收录信息

仓库创建时间
2026/10/16 15:47:23
首次达标收录
2026/10/20 17:21:36
统计更新时间
2026/10/22 19:20:31

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

值得看加权总分 3.9 / 5

新颖度
3.8
实用价值
4.2
成熟度
4.1
实质含量
3.7

由 Jev 模型根据仓库描述与 README 评估,2026/10/20 17:21:36 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/21 12:55:44
许可证标识
Apache-2.0
Fork 数
2,012
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:热门
首次发现项目