hn.today

DeepSeek just open-sourced its inference engine

github.com965 points333 comments
Screenshot of DeepSeek just open-sourced its inference engine

DeepInfer is an open-source, high-performance inference engine released by DeepSeek for serving large-scale DeepSeek models, with immediate support for DeepSeek-V4.1-Flash. It bundles optimized kernels (FlashMLA, DeepGEMM, DeepEP, TileKernels, DeepSelect, custom TileLang), parallelism modes (attention/data/mixture-of-experts variants), and runtime features such as DSpark with confidence-scheduled verification, SWA bounded replay to reduce prefill work, an asynchronous zero-overhead batch scheduler, batch-invariant inference, deterministic sampling, and structured-output constraints (regex/JSON/EBNF). The release targets NVIDIA SM100 and Huawei Ascend 950 hardware, includes performance-focused configuration knobs (e.g., DEEPINFER_ENABLE_MTP_VARLEN, DEEPINFER_USE_NEXTN_DECODE, DEEPINFER_YOCO_PREFILL_* and DEEPINFER_BATCH_INVARIANT) and documents required but excluded components for a full service (KV cache, VE/Prefill/Decode disaggregation, and cross-replica load balancing). It is licensed under Apache-2.0.

Build and run instructions require Linux, GCC ≥13, Python 3.12 and CUDA 13 or CANN 9.2; a simple build.sh drives compilation after setting DEEPINFER_ACCELERATOR and optional DEEPINFER_HF_MODEL_DIR for local model checkpoints (default downloads deepseek-ai/DeepSeek-V4.1-Flash-1017). Examples include offline_inference.py and benchmark scripts for prefill/decode (measured on SM100 clusters with reproducer run_sweep.sh). The codebase credits vLLM, SGLang and TensorRT-LLM for influence, and the repo shows community traction (≈3.1k stars, ~220 forks).

Read on github.com333 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.