<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>github.com/deepseek-ai</title>
  <subtitle>Browse aymeric&#39;s, an independent, searchable archive of readable snapshots from followed feeds, preserved in Git with aggr.</subtitle>
  <id>https://aggr.aymericbeaumet.com/sources/github.com/deepseek-ai/</id>
  <link rel="alternate" type="text/html" href="https://aggr.aymericbeaumet.com/sources/github.com/deepseek-ai/"/>
  <link rel="self" type="application/atom+xml" href="https://aggr.aymericbeaumet.com/sources/github.com/deepseek-ai/atom.xml"/>
  <updated>2026-10-20T09:08:54+00:00</updated>
  <author>
    <name>aymeric&#39;s</name>
  </author>
  <generator version="2.0.0" uri="https://github.com/aymericbeaumet/aggr">aggr</generator>
  <entry>
    <id>urn:aggr:item:dfdf82203fa140acdefbe4452bc42c191a1168fc</id>
    <title type="text">DeepSeek just open-sourced its inference engine</title>
    <link rel="alternate" type="text/html" href="https://aggr.aymericbeaumet.com/items/hnrss-org/2026-10-20-deepseek-just-open-sourced-its-inference-engine/"/>
    <link rel="via" type="text/html" href="https://github.com/deepseek-ai/DeepInfer"/>
    <published>2026-10-20T09:08:54+00:00</published>
    <updated>2026-10-20T09:08:54+00:00</updated>
    <author>
      <name>ggcr</name>
    </author>
    <category term="news"/>
    <source>
      <title>Hacker News: Front Page</title>
    </source>
    <summary type="text">DeepInfer is the high-performance inference framework that powers DeepSeek&#39;s large-scale production services. This open-source release provides offline inference with the core features needed for serving at scale. Supported models:…</summary>
    <content type="html">&lt;p&gt;DeepInfer is the high-performance inference framework that powers DeepSeek&#39;s large-scale production services. This open-source release provides offline inference with the core features needed for serving at scale.&lt;/p&gt;
&lt;p&gt;Supported models:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;DeepSeek-V4.1-Flash&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Supported features:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Optimized kernels, model and sampler runtime&lt;/li&gt;
&lt;li&gt;Parallelism: Attention DP / balanced CP, MoE EP + EPLB&lt;/li&gt;
&lt;li&gt;DSpark and confidence-scheduled verification&lt;/li&gt;
&lt;li&gt;SWA bounded replay&lt;/li&gt;
&lt;li&gt;Asynchronous scheduling (zero-overhead batch scheduler)&lt;/li&gt;
&lt;li&gt;Batch-invariant inference&lt;/li&gt;
&lt;li&gt;Deterministic sampling&lt;/li&gt;
&lt;li&gt;Structured outputs&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Feature details and configuration&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Optimized kernels:&lt;/strong&gt; &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/FlashMLA&quot;&gt;FlashMLA&lt;/a&gt;, &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepGEMM&quot;&gt;DeepGEMM&lt;/a&gt;, &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepEP&quot;&gt;DeepEP&lt;/a&gt;, &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/TileKernels&quot;&gt;TileKernels&lt;/a&gt;, &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepSelect&quot;&gt;DeepSelect&lt;/a&gt;, and custom &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepInfer/blob/main/deepinfer/model_executor/layers/tilelang_ops&quot;&gt;TileLang kernels&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DSpark and confidence-scheduled verification:&lt;/strong&gt; accelerate decoding with draft tokens and use confidence estimates to schedule verification. Set &lt;code&gt;DEEPINFER_ENABLE_MTP_VARLEN=1&lt;/code&gt;; &lt;code&gt;DEEPINFER_USE_NEXTN_DECODE&lt;/code&gt; controls the maximum draft length (default: 5).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Decoder SWA bounded replay:&lt;/strong&gt; reduce decoder prefill work by replaying only a bounded suffix. Set &lt;code&gt;DEEPINFER_YOCO_PREFILL_TRUNCATION_MODE=compact&lt;/code&gt; and &lt;code&gt;DEEPINFER_YOCO_PREFILL_KEEP_TOKENS=140&lt;/code&gt; for the default V4.1 settings; the retained suffix must cover the SWA window plus the maximum backtracking length.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Asynchronous scheduling:&lt;/strong&gt; overlap CPU batch scheduling with device execution. Enabled by default.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Batch-invariant inference:&lt;/strong&gt; keep model results identical across different batch compositions. Enable with &lt;code&gt;DEEPINFER_BATCH_INVARIANT=1&lt;/code&gt; (NVIDIA only).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deterministic sampling:&lt;/strong&gt; produce identical outputs for identical input tokens and sampling parameters. Set &lt;code&gt;DEEPINFER_BATCH_INVARIANT=1 DEEPINFER_ENABLE_MTP_VARLEN=0&lt;/code&gt; and pass a fixed &lt;code&gt;seq_seed&lt;/code&gt; to &lt;code&gt;SamplingParams&lt;/code&gt; (NVIDIA only).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Structured outputs:&lt;/strong&gt; constrain generation to a regex, JSON schema, or EBNF grammar. Pass &lt;code&gt;so_args={&amp;quot;schema_type&amp;quot;: ..., &amp;quot;schema&amp;quot;: ...}&lt;/code&gt; to &lt;code&gt;SamplingParams&lt;/code&gt;; see &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepInfer/blob/main/examples/_structured_output.py&quot;&gt;examples&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Supported hardware:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NVIDIA SM100 GPUs&lt;/li&gt;
&lt;li&gt;Huawei Ascend 950 NPUs&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Required for a complete inference service (not included in this release):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A KV cache system&lt;/li&gt;
&lt;li&gt;VE/Prefill/Decode disaggregation (most required engine functionality is already implemented)&lt;/li&gt;
&lt;li&gt;Load balancing across data-parallel replicas for both prefill and decode&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Getting started&lt;/h2&gt;
&lt;h3&gt;Prerequisites&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Linux&lt;/li&gt;
&lt;li&gt;GCC &amp;gt;= 13.0&lt;/li&gt;
&lt;li&gt;Python 3.12&lt;/li&gt;
&lt;li&gt;CUDA 13 (NVIDIA only)&lt;/li&gt;
&lt;li&gt;CANN 9.2 (Ascend only)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Build from source&lt;/h3&gt;
&lt;p&gt;Before building DeepInfer, please create and activate an empty Python 3.12 environment.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;code-snippet&quot; data-language=&quot;Shell&quot;&gt;&lt;span class=&quot;syntax-source syntax-shell syntax-bash&quot;&gt;&lt;span class=&quot;syntax-comment syntax-line syntax-number-sign syntax-shell&quot;&gt;&lt;span class=&quot;syntax-punctuation syntax-definition syntax-comment syntax-begin syntax-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;syntax-comment syntax-line syntax-number-sign syntax-shell&quot;&gt; Use `ascend` instead for the Ascend platform&lt;/span&gt;&lt;span class=&quot;syntax-comment syntax-line syntax-number-sign syntax-shell&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;syntax-comment syntax-line syntax-number-sign syntax-shell&quot;&gt;&lt;span class=&quot;syntax-punctuation syntax-definition syntax-comment syntax-begin syntax-shell&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;syntax-comment syntax-line syntax-number-sign syntax-shell&quot;&gt; Keep it exported in the environment where you run DeepInfer&lt;/span&gt;&lt;span class=&quot;syntax-comment syntax-line syntax-number-sign syntax-shell&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;syntax-meta syntax-function-call syntax-shell&quot;&gt;&lt;span class=&quot;syntax-storage syntax-modifier syntax-shell&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;syntax-variable syntax-other syntax-readwrite syntax-assignment syntax-shell&quot;&gt;DEEPINFER_ACCELERATOR&lt;/span&gt;&lt;span class=&quot;syntax-keyword syntax-operator syntax-assignment syntax-shell&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;syntax-string syntax-unquoted syntax-shell&quot;&gt;nvidia&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;syntax-meta syntax-function-call syntax-shell&quot;&gt;&lt;span class=&quot;syntax-variable syntax-function syntax-shell&quot;&gt;./build.sh&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Offline inference&lt;/h3&gt;
&lt;p&gt;The default checkpoint, &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017&quot;&gt;&lt;code&gt;deepseek-ai/DeepSeek-V4.1-Flash-1017&lt;/code&gt;&lt;/a&gt;, is downloaded into the Hugging Face cache on the first run; set &lt;code&gt;DEEPINFER_HF_MODEL_DIR=/path/to/DeepSeek-V4.1-Flash-1017&lt;/code&gt; to run from a local copy instead.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;&lt;span class=&quot;code-snippet&quot; data-language=&quot;Shell&quot;&gt;&lt;span class=&quot;syntax-source syntax-shell syntax-bash&quot;&gt;&lt;span class=&quot;syntax-meta syntax-function-call syntax-shell&quot;&gt;&lt;span class=&quot;syntax-variable syntax-function syntax-shell&quot;&gt;python&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;syntax-meta syntax-function-call syntax-arguments syntax-shell&quot;&gt; examples/offline_inference.py&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepInfer/blob/main/examples/README.md&quot;&gt;examples&lt;/a&gt; for details.&lt;/p&gt;
&lt;h2&gt;Performance benchmarks&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Prefill&lt;/th&gt;
&lt;th&gt;Decode&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepInfer/blob/main/doc/images/prefill_pareto.png&quot;&gt;&lt;picture class=&quot;article-picture article-picture-fallback&quot; style=&quot;--image-ratio:16 / 9&quot;&gt;&lt;img src=&quot;https://github.com/deepseek-ai/DeepInfer/raw/main/doc/images/prefill_pareto.png&quot; alt=&quot;Prefill: non-cached input throughput vs. latency&quot; loading=&quot;eager&quot; decoding=&quot;async&quot; fetchpriority=&quot;high&quot; referrerpolicy=&quot;no-referrer&quot; class=&quot;progressive-image&quot;&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepInfer/blob/main/doc/images/decode_pareto.png&quot;&gt;&lt;picture class=&quot;article-picture article-picture-fallback&quot; style=&quot;--image-ratio:16 / 9&quot;&gt;&lt;img src=&quot;https://github.com/deepseek-ai/DeepInfer/raw/main/doc/images/decode_pareto.png&quot; alt=&quot;Decode: output throughput vs. per-user speed&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; fetchpriority=&quot;low&quot; referrerpolicy=&quot;no-referrer&quot; class=&quot;progressive-image&quot;&gt;&lt;/picture&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Measured on 4 SM100 GPUs for prefill and 64 for decode — each within one scale-up domain. To reproduce the benchmarks, see &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepInfer/blob/main/examples/sweep/run_sweep.sh&quot;&gt;run_sweep.sh&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Evaluation benchmarks&lt;/h2&gt;
&lt;p&gt;See &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepInfer/blob/main/eval/README.md&quot;&gt;eval/README.md&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;License&lt;/h2&gt;
&lt;p&gt;DeepInfer is released under the Apache License 2.0. See &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/deepseek-ai/DeepInfer/blob/main/LICENSE&quot;&gt;LICENSE&lt;/a&gt; for details.&lt;/p&gt;
&lt;h2&gt;Acknowledgments&lt;/h2&gt;
&lt;p&gt;DeepInfer was originally built primarily on &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/vllm-project/vllm&quot;&gt;vLLM&lt;/a&gt;, with additional inspiration from &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/sgl-project/sglang&quot;&gt;SGLang&lt;/a&gt; and &lt;a target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://github.com/NVIDIA/TensorRT-LLM&quot;&gt;TensorRT-LLM&lt;/a&gt;. We thank their developers.&lt;/p&gt;
&lt;h2&gt;Citation&lt;/h2&gt;
&lt;pre&gt;&lt;code class=&quot;language-text-bibtex&quot;&gt;&lt;span class=&quot;code-snippet&quot; data-language=&quot;Text-bibtex&quot;&gt;@misc{deepinfer2026,
  title = {DeepInfer: High-performance, large-scale inference framework for DeepSeek models},
  author = {DeepSeek-AI},
  year = {2026},
  publisher = {GitHub},
  howpublished = {\url{https://github.com/deepseek-ai/DeepInfer}},
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</content>
  </entry>
</feed>
