DeepInfer

DeepSeek's open-source inference framework powering high-throughput, low-latency V4.1 Flash serving

What it is

DeepInfer is the open-sourced version of DeepSeek’s internal inference framework, already powering high-throughput, low-latency serving for DeepSeek V4.1 Flash. It supports distributed inference, speculative decoding, SWA Bounded Replay and structured output, running on both NVIDIA GPUs and Huawei Ascend hardware. The companion deepseek-recipe repo ships token encoding and decoding components fully aligned with the official API, with inference code for new models updated there.

Highlights

  • Official DeepSeek release of a production-grade framework
  • Runs on both NVIDIA GPUs and Huawei Ascend hardware
  • Speculative decoding and SWA Bounded Replay match leading inference engines
  • 17,000+ stars shortly after the open-source launch

How to use

Clone the repo and follow the README to deploy an inference service. Existing DeepSeek API users can cross-check request handling against deepseek-recipe, or fork it into a private gateway for self-hosted deployment.

License

Released under Apache-2.0. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.