Skip to content
Back to Blog

DeepSeek's Ascend Kernels: Portability Has a Workload Shape

Published Editorial policy & corrections

Editorial note: AI-assisted primary-source research and original engineering analysis. Sources checked November 26, 2026. No Ascend device, kernel compilation, numerical comparison, model run, or performance benchmark was used. Proposed experiments and speedup arithmetic are unrun.

Share:XBSMRedditHNEmail

A serving team can preserve a Python function name while changing the accelerator, compiler, memory layout, and numerical implementation underneath it. The application may still import successfully. Its latency distribution and output behavior need fresh evidence.

DeepSeek’s November 26, 2026 DeepGEMM-Ascend update and DeepSelect v1.1.0 make that migration more interesting. They expand the available building blocks for Ascend inference, including fused paths and sampling-related selection. My assessment is that their value will depend heavily on the shapes and routing patterns of the actual service. A high utilization number for a large matrix cannot price a queue of small agent requests.

Our previous DeepSeek assessment examined managed application APIs. This article concerns published infrastructure code. It establishes no new DeepSeek model checkpoint or hosted API performance improvement.

What changed in the November release

The merged DeepGEMM-Ascend release PR #35 adds optional fused FP32 RMSNorm after MegaMoE combine, masked routes, a low-latency mode, and buffer reuse. It also adds a fused Shifted mHC inference kernel with graph replay, a BF16 Mega Gate with batch-invariant deterministic mode, FP8 stochastic rounding, and experimental fused decode kernels without stability guarantees. The PR specifies a CANN 9.3.0 minimum and describes decode optimizations for large expert parallelism and skewed routing.

Fusion can remove intermediate transfers and launches between operations. It can also change the places where precision is rounded or partial results are combined. These are reasons to measure the fused path as a unit. Treat every optional feature as a separate intervention during the pilot so a regression can be traced to the change that introduced it.

The DeepGEMM-Ascend README describes a DeepGEMM-compatible API for Ascend, validated on the 950 series, with BF16, FP8, FP4, MQA logits, and MegaMoE support. Its abstraction handles hardware layout and alignment details. The same page dates the initial port to September 30. November’s news is an extension of an existing port.

Read the benchmark environment before the percentage

The README reports dense BF16 throughput of 431 TFLOPS against a 432 TFLOPS hardware limit for an M=4096, N=7168, K=16384 case. It describes measurements on Ascend 950DT, cold L2, using bench_msprof. Its benchmark metadata says CANN 9.20, while current requirements and the release PR specify 9.3.0. That version difference remains unresolved here. Preserve it in any reproduction request. Benchmark setup and tables

An operator needs a workload histogram before making a hardware decision. Collect matrix dimensions, precision, expert-token distribution, context lengths, and concurrency from permitted traces. Weight the measurements by time spent on the production critical path. A case with excellent arithmetic utilization can contribute little to a decode-heavy service whose requests are stalled elsewhere.

For a hypothetical service where an improved operation accounts for 20% of elapsed time, doubling that operation’s speed yields an overall speedup of about 1.11× if everything else stays constant: 1 / (0.8 + 0.2 / 2). This illustrates the performance ceiling created by the untouched work. Queueing, communication, and batching changes can move that ceiling, which is why the final experiment must include the service.

The same reasoning applies to fused expert work. Compare representative balanced and naturally skewed routing traces at equal accepted throughput. A single average token count per expert can hide the slowest rank that determines completion time. Report per-request tails and the distribution across ranks alongside aggregate device utilization.

TopK has its own compatibility surface

DeepSelect’s November 26 release note adds float32 TopK on Ascend. The repository focuses on specific selection workloads and caps topk at 4096. Its sampler case uses float32 inputs around a 128K vocabulary. On Ascend, BF16 inputs support int32 indices without value sorting, while float32 additionally supports int64 indices and sorted=True. Inputs and outputs have alignment requirements. Its broad 2–20× speed claim compares supported kernel cases with torch.topk, using effective memory bandwidth.

Selection is part of the model’s behavior as well as its runtime. A caller can care about the chosen set, returned values, ordering, or index type. Write down which of these its next operation actually requires. Disabling an unnecessary ordering step may be useful, provided the consumer truly accepts the resulting contract.

Construct numerical fixtures with close scores, repeated values, and the real range of magnitudes. Where ties permit multiple valid answers, define an admissible set before comparing implementations. Bitwise equality and semantic correctness answer different questions. Any deployment that requires repeatable results needs a stated tolerance and reproducibility requirement for the entire path, including its precision and reduction choices.

A proposed migration experiment

I would begin with a small, version-pinned reproduction on the intended hardware. Record the source commit, toolkit, driver, compiler, package build, precision, and device configuration. Resolve the documented toolkit discrepancy before using a published table as the baseline. Keep the experimental decode paths in a separately reported treatment.

StageComparisonEvidence required
Numerical qualificationExisting path versus new kernelError distribution, allowed tie behavior, invalid inputs rejected
Shape coverageCommon shapes and operational tailsUnsupported cases, padding overhead, cold compilation cost
FusionUnfused versus each fused optionEnd-to-end elapsed time, intermediate memory, numerical drift
ServingMatched traffic and acceptance rubricTime to first token, completion tails, goodput, retries

For model-level validation, use harmless held-out tasks with fixed grading and a recorded serving configuration. Preserve unsuccessful attempts. A kernel can pass local arithmetic checks while a changed integration drops an unsupported case or silently chooses a different path. Track fallback frequency explicitly and include its time in the result.

Estimate cost per completed, accepted request with the full capacity budget: accelerators, host memory, network, idle headroom, compilation, monitoring, and engineering effort. Match the target latency and acceptance rate across deployments. A cheaper device-hour becomes useful when the service can convert it into reliable useful work at the required load.

These updates justify a focused Ascend evaluation for teams already operating the necessary hardware and software stack. The first deliverable should be a reproducible workload report with numerical limits and a measured service outcome. That report makes a subsequent migration decision reviewable.

Found this useful? Share it.

Share:XBSMRedditHNEmail

Continue through the same topic without returning to the index.

View the series