Skip to content

[NPU] benchmark: Add V4.1 Prefill reproduction tools for CANN 9.3 - #43

Draft
AkiYangDev wants to merge 2 commits into
randgun:dsv41-perf-1202from
AkiYangDev:draft/randgun-dsv41-prefill-benchmark
Draft

AkiYangDev wants to merge 2 commits into
randgun:dsv41-perf-1202from
AkiYangDev:draft/randgun-dsv41-prefill-benchmark

Conversation

@AkiYangDev

@AkiYangDev AkiYangDev commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Move the V4.1 Prefill benchmark and CANN 9.3 reproduction kit out of #41. The offline runner measures the five per-rank token budgets through the SGLang Scheduler. The HTTP runner compares AllGather with the fixed-worker DeepGEMM provider from #41.

The kit includes the CANN 9.3.0 release fixes for host JIT and the SYRK API, the pinned vendor precision patch, and the launch and input checks. The benchmark files come from e730067. The README shows how to run the native sweep on this branch and how to include #41 for the DeepGEMM comparison.

Benchmark scope

  • Eight Ascend 950DT cards, attention DP8 and EP8.
  • 131,072 input tokens per request, with 126,976 cached and 4,096 newly computed.
  • Actual model routing with 384 routed experts and 32 static replicas.
  • Optional profiling runs after the timed offline window. HTTP burst timing is reported separately.

Validation

The recorded CANN 9.3.0 release run of the native 4K preset completed 80 requests and measured 327,680 new tokens over 10 steps. The fixed-seed cross-provider HTTP comparison is a separate validation. See the run commands.

Move the offline sweep, fixed Prefill HTTP comparison and CANN 9.3 release fixes from randgun#41 at 0cc97f8.
AkiYangDev added a commit to AkiYangDev/sglang that referenced this pull request Dec 3, 2026
AkiYangDev added a commit that referenced this pull request Dec 3, 2026
Add the opt-in DeepGEMM-Ascend routed-expert Prefill provider for dedicated Ascend 950 workers. Reuse the ordered TP communicator and the symmetric workspace, and pack the routed MXFP4 weights and E8M0 scales at load time.

Add startup validation, server argument documentation, and provider and dispatcher tests. The Prefill benchmark and CANN 9.3 reproduction tools are in #43.
ClownBin pushed a commit that referenced this pull request Dec 3, 2026
* Add the DeepGEMM-Ascend MegaMoE Prefill provider

* docs: specify the static expert layout for the MegaMoE prefill benchmark

* Add reproducible Ascend 950 Prefill benchmarks

* Simplify the Prefill benchmark launcher

* Keep only active Prefill preset settings

* Adapt the CANN 9.3.0 kit to the real eight-card run

- aclnnGemmSyrkGetWorkspaceSize grew an int8_t cubeMathType argument
  between 9.3.0-beta.1 and the 9.3.0 release; apply the call-site
  adaptation to the DeepGEMM worktree as cann93-release-syrk.patch.
- Record the patched-file digests in their Linux line-ending view and
  cover csrc/apis/aclnn.hpp as well; the previous digests were taken
  from a CRLF checkout and never matched a Linux prepare.
- Prebuild the cann_ops_transformer ops and the triton Ascend
  npu_utils host extension during prepare with the default toolchain
  headers: their g++-13 -std=c++20 builds fail at runtime against the
  GCC 11 include path kept for the device JIT.

* Make the eight-card release run pass end to end

Validated on 141.61.45.121, CANN 9.3.0 release, 8 x Ascend950DT:
offline 4096 finished=80, new_tokens=327680, measured_steps=10.

- Drop CPLUS_INCLUDE_PATH from the run-time vendor environment: the
  device JIT has not needed the GCC 11 headers on the 9.3.0 release,
  while they break the cann_ops_transformer ops and the triton Ascend
  npu_utils host builds (g++-13 -std=c++20). Opt back in with
  DEVICE_JIT_GCC11=1.
- Prepend the pip site-packages in vendor_env so the pinned pip
  cannbot-dsl 0.8.0 (tensor.reinterpret) shadows the cannbotdsl bundled
  with the host CANN release.
- Extend the adapter's mHC runtime gate to the 9.3.0 release after
  extraction; the beta.1 pilot kernel runs on it.
- Add run_all.sh: one-click offline tiers and the native vs DeepGEMM
  serve comparison with readiness polling and short smoke mode.

* Invoke check_idle.py through python3 in run_all.sh

* Fix clean CANN 9.3 release preparation and default benchmark launch

* Fix the serve arm on the 9.3.0 release host

- runtime_libraries preloads the system libstdc++: the hcc toolchain
  dir first in LD_LIBRARY_PATH shadows it with a build missing the
  GLIBCXX_3.4.29 futex symbols, and mooncake (the default PD transfer
  backend) fails to import in the serve arm.
- run_all.sh wait_ready exits as soon as the server process dies
  instead of polling for the full 40 minutes.

* Simplify run_all.sh

Drop the defensive layers: model-path candidate scanning, precondition
re-checks, and duplicate idle checking (repro.sh already fails loudly on
all of those). Keep the one-line defaults, the readiness poll that dies
with the server, the SHORT smoke flag, and the per-tier summary print.

* Move V4.1 Prefill benchmarks to #43

* [Bench] Add offline steady-state decode benchmark for DeepSeek V4.1

* Enable target DeepGEMM MegaMoE decode for Ascend DP8 and DP32

---------

Co-authored-by: Aki Yang <[email protected]>
Co-authored-by: AkiYangDev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant