AdvancedAI
DeepSeek Drives Ascend 950 Kernels to 98.5% of Hardware Peak
- Ascend
- Huawei
- deepseek
- inference
- kernels
DeepSeek’s FlashMLA attention kernels now reach 425 TFlops on Huawei’s Ascend 950 NPU during prefill — 98.5% of the chip’s theoretical peak — and 372 TFlops during decoding, or 86.1% of peak, according to a November 26 update to the repository. The company followed it on December 1 with a DeepInfer runtime update that adds Ascend 950DT optimisations and, for the first time, throughput charts for Huawei hardware.

What DeepSeek Shipped
The November 26 FlashMLA commit is the substantive one. It lands three things: a fused kernel that combines Q-norm, Q-RoPE, attention, the conjugate O-RoPE and the cast to FP8 for the Ascend 950; support for 128 query heads; and a second pass of optimisation over the sparse prefill and decoding kernels released on September 30. Those numbers moved from 410 TFlops (95% of peak) and 360 TFlops (83%) to the 425 and 372 figures above.
The December 1 DeepInfer commit is the other half. The framework — Apache 2.0, and still supporting exactly one model, DeepSeek-V4.1-Flash — now lists Ascend 950DT work that goes well beyond porting: fused attention, “Mega Gate” and “Mega-MHC” operators, FP8 einsum output, a native DeepSelect, batch-invariant inference and deterministic sampling. That last pair matters because the October release offered them on NVIDIA hardware only. The same update optimises expert shuffling with UDMA and KV cache allocation with hugepages, and requires CANN 9.3 rather than the 9.2 the first release specified.
What the repository still does not contain is unchanged from October: no KV cache system, no prefill/decode disaggregation, and no load balancing across data-parallel replicas. DeepInfer remains a very fast offline engine rather than something to put in front of users.
Two Platforms, One Kernel
The kernels support NVIDIA GPUs (sm100 and sm103) and Huawei’s Ascend NPUs from the same source tree, and the README reports what each achieves. It does not rank the platforms against one another, and the figures below carry no ratio. The Ascend percentages are internally consistent: 425 over 98.5% and 372 over 86.1% both imply a theoretical peak of about 432 TFlops.
| Kernel | NVIDIA B200 | Huawei Ascend 950 / 950DT |
|---|---|---|
| Fused norm+RoPE+attention+RoPE+cast, prefill | 1,460 TFlops | 406 TFlops (950DT) |
| Fused norm+RoPE+attention+RoPE+cast, decode | 950 TFlops | 350 TFlops (950DT) |
| Sparse attention prefill | 1,350 TFlops | 425 TFlops (98.5% of peak) |
| Sparse attention decode | 1,024 TFlops | 372 TFlops (86.1% of peak) |
Figures as published in the FlashMLA README. B200 results use CUDA 13.3; Ascend results use CANN. Higher is better. DeepSeek does not present these as a cross-vendor comparison.
The more informative figure is the percentage. Reaching 98.5% of theoretical peak on a sparse, token-gathering attention kernel is a software result, and it is the kind of number that usually appears in a vendor’s own library rather than a model lab’s. On the NVIDIA side DeepSeek quotes no percentage, so the Ascend figures are the ones that say something definite: on that hardware the kernel has almost nothing left to gain.
What the Ascend Charts Show
The DeepInfer update also adds the end-to-end pictures, and they line up with the kernel ratios. Prefill runs on 8 Ascend NPUs with 384 routed plus 32 shared experts, a 131,072-token context and the 140-token bounded replay DeepInfer uses for V4.1. Throughput rises from about 25,700 non-cached input tokens per second per NPU at a 2,048-token batch to a plateau near 31,900 at 32,768 tokens, where a prefill step takes about a second.

Decoding is the more demanding measurement: 64 NPUs, 384 routed plus 64 shared experts, the same context length, three fixed draft tokens and a measured acceptance rate of 75%, for 3.25 accepted tokens per verification round. Aggregate throughput peaks at roughly 9,900 output tokens per second per NPU at 256 requests per rank, where each user sees about 38 tokens per second; dropping to 8 requests per rank gives a user roughly 333 tokens per second but only about 2,550 tokens per second per NPU.

DeepSeek publishes the equivalent chart for SM100 GPUs with the same decode configuration — expert parallelism across 64 ranks, 384 routed plus 64 shared experts, a 131,072-token context, three fixed draft tokens and 75% acceptance — and the December update raised those figures too. This post stays with the Ascend results; the repository does not set the two against each other.
Why This Kernel Is Hard on an NPU
The September deep-dive explains where the difficulty sits, and it is a useful counterweight to the percentage. Each Ascend 950 AI core pairs one CUBE unit with two VECTOR units, and each NPU has 32 of them; the CUBE unit runs at 4,096 FMA per cycle and the L2 fabric supplies 5 TB/s across the whole chip. DeepSeek’s arithmetic showed the kernel is compute-bound only at 64 query heads or more per AI core, and that 128 heads would fill the 256 KB L0C accumulator outright with a 128×512 float32 output, pushing the accumulator onto the VECTOR units and forcing a pipelined copy-accumulate that is far harder to write. Sixty-four heads it is.
Several other choices are forced by hardware limits rather than taste. One VECTOR unit per CUBE unit would not work: a VECTOR unit can have at most 16 MTE2 copy requests in flight, dequantising FP8 or FP4 to bfloat16 could not keep the CUBE unit fed, and the FixPipe moves data out at 128 bytes per cycle, which sets a minimum tile size of 96 to 128 tokens along the KV dimension. The kernel therefore runs 1C2V, with the second VECTOR unit absorbing copy issue, dequantisation, softmax and transfer overhead.
Two tricks are worth naming. Because the BIU coalesces memory accesses only when both source and destination are contiguous, and sparse KV is gathered a token at a time, on-the-fly layout conversion is impossible; DeepSeek copies KV into UB, converts ND to NZ with a SIMD vector instruction, and only then moves it to L1. And because a “skip-scale” decision can avoid rescaling the output accumulator when the running max is close enough to the true max, but the signal is produced on the VECTOR unit and consumed on both, the two are synchronised through an SS buffer and cross-core flags. The instruction caches — 32 KB on the CUBE unit, 16 KB on the VECTOR unit, 8 KB on the SIMD unit — are small enough that DeepSeek switched from loop unrolling to the hardware loop instruction to avoid thrashing.
What This Means
The headline claim — 98.5% of peak — is real but narrow. It says DeepSeek’s kernel team has extracted what the Ascend 950 can give on this particular attention pattern, at the cost of months of work tightly bound to one chip’s memory hierarchy, queue depths and instruction-cache sizes. A percentage measured against a chip’s own theoretical limit is a statement about headroom, not a ranking, and DeepSeek does not make that claim.
What has genuinely changed since September is the completeness of the path rather than any single number. A model lab publishing kernels, a communication library, a matmul library, a token-selection operator and now a production inference runtime for a second vendor’s accelerators is a different kind of commitment from a one-off port. The addition of batch-invariant inference and deterministic sampling on Ascend is the clearest signal: those are properties production teams ask for, and they were previously available only on NVIDIA.
For anyone actually running DeepSeek-V4.1-Flash on Huawei hardware, the practical read is that the throughput now published is per-NPU and end-to-end, with the expert counts, context length, draft-token settings and acceptance rate all stated — enough to reproduce, if you have 64 of the chips. It is also still an offline inference engine: without the KV cache system and disaggregation that the repository lists as missing, the numbers describe a batch pipeline, not a served endpoint.
This post was drafted with AI assistance and reviewed by RITS staff.
Sources
- GitHub — deepseek-ai/FlashMLA (release notes, 2026.11.26 Ascend update)
- FlashMLA — A Deep Dive Into the Ascend Sparse Attention Forward Kernel
- GitHub — deepseek-ai/DeepInfer (news log and Ascend 950DT benchmarks)
- DeepInfer — Ascend 950 prefill throughput chart
- DeepInfer — Ascend 950 decode throughput chart
- GitHub — deepseek-ai/DeepEP-Ascend
- Pandaily — DeepSeek updates open-source Ascend 950 operators (November 2026)




