Official2026-12-01Updated 2026-12-01

DeepSeek open-sources Ascend inference code: DeepSeek V4.1 Flash at 277 ms and 138 tokens/s on Huawei 950DT

TL;DRDeepSeek open-sourced production-grade DeepInfer inference code for Huawei Ascend. On the 950DT-PC16 UBL128, DeepSeek V4.1 Flash reaches a 277 ms P50 time-to-first-token and 138 tokens/s, at 118 yuan per card hour off-peak. The full source is on GitHub.

By DeepSeek

On this page
  1. What did DeepSeek open-source today?
  2. What is inside the DeepInfer Ascend release?
  3. What do the benchmark numbers actually mean?
  4. Why does this matter for domestic compute?
  5. How is DeepSeek V4.1 Flash running in production?
  6. How do you get and run the code?
  7. What can your team build with this?
  8. Frequently asked questions

What did DeepSeek open-source today?

DeepSeek published a release that is short on hype and long on specifics. The company open-sourced the inference code it actually runs in production on Huawei Ascend hardware. Below is the announcement in full, translated sentence by sentence, followed by a breakdown of what the release contains and what the numbers mean for teams running large models on domestic accelerators.

Today, we are officially open-sourcing DeepInfer's production-grade inference code for the Huawei Ascend platform. This open-source release systematically optimizes core operators, communication and memory management, the inference pipeline, and task scheduling, among other areas.

Building on the optimizations completed in this release, DeepInfer achieves world-first-tier low latency and cost-efficiency on the Huawei Ascend platform, and in production it has carried the large-scale user traffic of DeepSeek V4.1 Flash. Below are the actual online runtime figures for this model on the Huawei Ascend 950DT-PC16 UBL128 hardware configuration:

At an average input length of 98K tokens, the model's P50 time-to-first-token is 277 ms, single-stream output speed reaches 138 tokens/s, which works out to 118 yuan of revenue per card per hour (at off-peak pricing), balancing service quality with commercial return. Represented by Ascend, the ability of the new generation of domestic compute to deliver AI inference services to the highest standard has now been validated in our real business.

Open-source repository: github.com/deepseek-ai/DeepInfer

We hope that by open-sourcing the complete source code, we can help more teams accelerate their deployment and optimization on domestic compute, and in turn accelerate the push toward making the technology broadly accessible. We look forward to a not-too-distant future where more powerful intelligence crosses the compute threshold and reaches more organizations and individuals.

What is inside the DeepInfer Ascend release?

The release targets one problem: making a frontier model serve real user traffic on Huawei Ascend silicon, at latency and cost that hold up in production. Four areas got systematic work.

Core operators

The math kernels that do the actual tensor compute were reworked. On Ascend, operator efficiency decides both throughput and power draw, so this is where most of the latency budget lives. A faster kernel is a faster token, and it is also a cheaper token.

Communication and memory management

Inference across multiple cards needs the accelerators to move activations and weights without stalling. The release tightens how memory is laid out and how cards talk to each other, which matters most when a single request spans several devices.

The inference pipeline

This is the path a request takes from arrival to first token to full generation. Smoothing it cuts tail latency and keeps a steady token rate under load, so the experience does not collapse when traffic spikes.

Task scheduling

When many requests arrive at once, the scheduler decides what runs where. Better scheduling means higher utilization, which is what turns idle hardware into revenue per card hour.

What do the benchmark numbers actually mean?

DeepSeek published live numbers from the Ascend 950DT-PC16 UBL128, measured while the model carried production traffic. Here they are, and what each one tells you.

DeepSeek V4.1 Flash production benchmark

  • 950DT-PC16 UBL128
  • Unnamed competitor
Time to first token (TTFT)

P50

950DT-PC16 UBL128 277 ms
Unnamed competitor 205 ms

P90

950DT-PC16 UBL128 459 ms
Unnamed competitor 380 ms
Single-stream output speed
950DT-PC16 UBL128 137.9 tokens/s
Unnamed competitor 238.9 tokens/s

Scroll horizontally to see all columns.

StageMetric950DT-PC16 UBL128Unnamed competitor
PrefillThroughput per card at full load, excluding cache hits26,030 tokens/s77,740 tokens/s
PrefillThroughput per card at full load, including cache hits929,600 tokens/s2,776,000 tokens/s
PrefillAverage input cache hit rate97.20%
PrefillTime to first token (TTFT) P50277 ms205 ms
PrefillTime to first token (TTFT) P90459 ms380 ms
PrefillAverage input length98,440 tokens
DecodeThroughput per card7,409 tokens/s17,840 tokens/s
DecodeSingle-stream output speed137.9 tokens/s238.9 tokens/s
KV cacheRetention after inactivity> 72 hours
RevenueOff-peak revenue per card per hourCalculated at 80% prefill loadUSD 17.6CNY 117.9USD 47.5CNY 318.1
  • DeepSeek measured production traffic on December 1, 2026, from 16:00 to 18:00 Beijing time (UTC+8).
  • The prefill-to-decode card ratio (P:D) was 1.24:1 for the 950DT-PC16 UBL128 and 1:1 for the competitor.
  • Off-peak rates per million tokens were CNY 0.02 for cache hits, CNY 1 for cache misses and CNY 4 for output. Exchange rate: USD 1 = CNY 6.7.
  • DeepSeek’s source graphic shows one value across both columns for input cache hit rate, input length and KV cache retention.

At an average input length of 98K tokens, the model's P50 time-to-first-token is 277 ms. Single-stream output reaches 138 tokens per second. At off-peak pricing, that works out to 118 yuan of revenue per card per hour, balancing service quality with commercial return.

A 98K-token average input is not a toy workload. Long context is where memory and communication pressure show up, and it is exactly where many deployments fall apart. Holding 277 ms to first token at that length means the prefill stage is keeping up.

P50 time-to-first-token at 277 ms is the median user-perceived delay before the model starts answering. It is the number that decides whether a chat session feels responsive. 138 tokens per second per stream is the generation speed once it gets going, fast enough for fluent reading.

The 118 yuan per card hour figure is the bridge between engineering and business. It says the same hardware that serves users also earns its keep when priced at off-peak rates. For anyone running inference as a service, that ratio is the whole game.

Why does this matter for domestic compute?

Represented by Ascend, the ability of the new generation of domestic compute to deliver AI inference to the highest standard has now been validated in real business. That line from the announcement is the strategic core of the release.

For years, the open question around domestic accelerators was whether they could match the throughput and latency of the established vendors at scale. DeepSeek's answer is a production system, not a benchmark stunt. The traffic it carried is DeepSeek V4.1 Flash, a frontier-class model, served to real users on Ascend hardware.

What makes this credible is that it is not a lab result. The numbers come from the same fleet that serves users, which means the optimizations survive contact with messy real-world request patterns.

How is DeepSeek V4.1 Flash running in production?

The announcement states plainly that DeepInfer, after these optimizations, carries the large-scale user traffic of DeepSeek V4.1 Flash on Ascend. That is the proof point. A model this size serving production load on non-reference hardware is the kind of deployment that usually stays internal.

It also tells you something about DeepSeek's own infrastructure strategy. Rather than depend on a single accelerator vendor, the company has built a path that runs on domestic silicon. The open-source release lets others walk that path too.

How do you get and run the code?

The complete source is published on GitHub at github.com/deepseek-ai/DeepInfer. "Complete source" matters here: it is not a trimmed demo. It is the code that runs the production fleet, which means the operators, the memory layout, the pipeline, and the scheduler are all there to read and adapt.

For teams already on Ascend, the practical move is to start from the released configuration and tune it to your own traffic shape. The 950DT-PC16 UBL128 numbers are a floor to beat, not a ceiling.

What can your team build with this?

Three groups stand to benefit most. Teams deploying DeepSeek or compatible models on Ascend get a reference implementation that actually works in production. Teams building their own inference stacks get a window into how a frontier lab schedules and communicates at scale. And teams evaluating domestic accelerators get evidence, not marketing, that the hardware can serve frontier models.

The broader hope, in DeepSeek's words, is that open-sourcing the full source helps more teams accelerate deployment and optimization on domestic compute, and in turn accelerates making the technology broadly accessible. The closing line of the announcement looks further out: a future where more powerful intelligence crosses the compute threshold and reaches more organizations and individuals.

Frequently asked questions

Is the DeepInfer Ascend code the same code DeepSeek runs in production?

Yes. The release is described as production-grade inference code, and the published benchmarks come from the live fleet serving DeepSeek V4.1 Flash. It is not a separate demo build.

What hardware do the published numbers run on?

The figures are from the Huawei Ascend 950DT-PC16 UBL128 configuration, at an average 98K-token input length.

Where is the source code?

On GitHub at github.com/deepseek-ai/DeepInfer.

What model do these benchmarks reflect?

DeepSeek V4.1 Flash, served under real production traffic on Ascend.

Do I need Ascend hardware to use this?

The release targets Huawei Ascend. If you want DeepSeek models without provisioning hardware, the DeepSeek subscription at /pricing provides direct access.