Skip to content
←Back to Blog
CUDA's Moat Is Eroding: Benchmarking Agentic Infra Optimization on NPU vs. GPU
Ascend 910CNPUCUDA

CUDA's Moat Is Eroding: Benchmarking Agentic Infra Optimization on NPU vs. GPU

On Ascend 910C, coding agents fix silent AiCPU fallbacks and hand-write Ascend C kernels: 2.18x-203.5x speedups, and 92.6% of the empirical roofline on NanoChat vs H200's 93.7%.

Xu HuangNovember 29, 202621 min read23 views
ZH

This article is a full reproduction of the original ResearchBoost post (Nov 29, 2026). “We” below refers to the original authors, Xu Huang and the ResearchBoost / DAGroup-PKU team.

GPU dominance has long rested on two pillars: silicon performance and the CUDA ecosystem. As coding agents get stronger at systems and kernel optimization, the CUDA ecosystem barrier is rapidly shrinking. Following the frozen-judge, long-horizon iteration setup of RSI-Infra Bench, we equip models with Ascend 910C toolchains and the progressive ascend-opt skill. Our strongest agent (Gemini 4 Neon) already handles migration, silent-fallback bug fixes, and custom Ascend C kernel authoring end to end under a strict BF16/FP32 floor (zero quantization downgrade):

  • Multimodal & pretraining: LLaVA-1.5-7B 6.46× (MFU 56.52%, ~91% of the empirical ceiling; GLM-5.4 on the same task 5.99× / 51.90%; 300-step mix665k 4.20×); NanoChat D24 2.18× (10 hand-written Ascend C kernels, reaching 92.6% of the empirical physical ceiling, closely matching H200's 93.7%).
  • Non-standard & custom kernels: full-scale 30K-iteration 3DGS 203.5× (4.18M Gaussians, PSNR 27.51 dB); Flash-QSA 64K sparse attention and Qwen3.8-Flash-Next 176.7B serving (bs=8 decode 3.41×, 4K prefill 52.3×).
  • Multi-node RL: 64-NPU full-256K agentic RL 2.82× end to end (3.59× rollout, bitwise-exact across 7.80M tokens).
  • Cross-hardware analysis & open release: we compare H200 vs. 910C on the same tasks via MFU, STREAM MBU, and empirical ceilings, analyze trace-level gaps, and open-source all code and 13 traces in ResearchBoost-Agent (ascend branch). ResearchBoost-Agent also ships the ascend-opt skill so NPU users can optimize their own models directly.

Two entry points carry the whole release: code, kernels and 13 full traces, and the Ascend 910C optimization skill (PR #17).

End-to-end speedups on Ascend 910C and same-task MFU / STREAM MBU / SOL% comparison against H200
Figure 1. Left: end-to-end speedups across 6 tasks on Ascend 910C-64G (CANN 8.5.1, log scale). Right: same-task MFU, STREAM MBU, and empirical physical ceiling utilization (SOL%) on H200 vs. 910C. Hollow markers are the frozen reference, solid markers the verified final state. All numbers pass frozen-judge and real-weight/dataset verification.

Note on the Qwen3.8-Flash-Next gap. The MBU / MFU gap between 910C and H200 on Qwen3.8-Flash-Next (176.7B, 360 GB weights) stems primarily from the 64 GB per-card HBM memory wall forcing TP=8, EP=8 on 910C (vs. TP=4, EP=4 on 141 GB H200), adding 96 sequential 8-card HCCL all-reduces, doubled replicated weights, and finer sharding overhead (see §2.3, Gap 3).

1. Optimization Results on Ascend 910C

On CUDA, mainstream training and inference frameworks already start from years of hand-tuned fast paths. On Ascend 910C-64G (Ascend910_9382, 376 TFLOPS/die BF16 Cube, 48 AIV cores, 192 KB UB/core, 1,600 GB/s HBM, CANN 8.5.1), an agent has to execute two distinct steps: first locate and fix silent fallbacks and framework semantic bugs, then apply framework tuning and hand-written Ascend C kernels.

1.1 Bug Fixes First, Then End-to-End Speedups

Many 10×–1000× slowdowns during NPU migration come from silent fallbacks and subtle semantic differences that raise no errors. These regressions silently route ops to AiCPU or unfused math paths. Using torch_npu.profiler, frozen reference outputs, and isolated A/B tests, the agent diagnosed and fixed these issues across all 6 tracks before delivering 2.18× to 203.5× end-to-end speedups.

TaskWorkload & hardwareKey migration bugs / fallbacks fixedSpeedupReal-weight / dataset verification
LLaVA-1.5-7B Multimodal Stage-2 SFT, 8×910C · strict BF16 HF 4D mask silently disabled NPU FA (25× slower); missing FSDP micro-batch no_sync 6.46× (Neon)
5.99× (GLM-5.4)
10h head-to-head (18,769.6 ms ref): Neon 2,906.7 ms (56.52% MFU, R5) vs. GLM-5.4 3,132.6 ms (51.90% MFU, R7), both N1 PASS; mix665k 300-step 4.20× (Val PPL 2.3017 vs 2.3017)
NanoChat D24 1.384B (729.8M matmul), 8×910C · strict BF16 _foreach_copy_ skips _version bump; bf16 Pow 4× slower; torchair backward mismatch 2.18× (Neon)
1.76× (GLM-5.4)
10 double-buffered Ascend C kernels; ClimbMix-400B 200-step paired 2.17×, N1 PASS
Faster-3DGS Mip-NeRF 360 garden, 1×910C · strict FP32 Sort32 int32/64 AiCPU fallback (139×); cumsum AiCPU fallback (185×) 203.5×
400² 97.2×
30,000 iterations (138.8K → 4.18M Gaussians) in 1h 43m, PSNR 27.512 dB (vs. paper 27.41 dB)
Flash-QSA & Qwen3.8-Flash-Next 176.7B MoE+GDN+QSA (360 GB), 8×910C TP=8, EP=8 bool.scatter_ AiCPU fallback (1,933×); 64K dense mask timeout; CANN sparse ops unsupported for the QSA shape 3.41× (bs=8)
52.3× (4K prefill)
11 custom Ascend C kernels; B=1 8K 96.4 tok/s / 64K 94.4 tok/s; bs=8 decode 56.34 → 16.54 ms (483.8 tok/s), 136/136 exact greedy + 64K Needle
256K Agentic RL Qwen3.8-27B TIS+GRPO, 64×910C · Docker sandbox Colocated NPUGraph offload leak (+18.7 GiB/cycle); GDN 8×8 nilpotent cancellation; fla 48.1% backward recompute 2.82× (256K)
Rollout 3.59×
64-NPU 7.80M-token live 256K RL: 0 MB HBM drift, actor_train_vs_infer = 0.0 bitwise exact

Representative bugs and fallbacks diagnosed on 910C (CANN 8.5.1)

  • Silent AiCPU fallbacks: bool.scatter_ in the QSA indexer took 2,513.7 ms/layer on AiCPU (fixed via float32.scatter_ → 1.30 ms, 1,933×); torch.sort(int32/int64) in 3DGS took 172–196 ms (FP32 hardware Sort32 → 1.24 ms, 139×); at::cumsum(int32) took 9.25 ms (48-core Ascend C prefix sum → 0.05 ms, 185×).
  • Framework semantic bugs: torch._foreach_copy_ on NPU does not increment Tensor._version, causing stale bf16 weight caches to diverge at step 4; full-graph torchair produces RoPE backward errors (maxdiff = 416); colocated RL NPUGraph offload leaked 18.7 GiB/cycle (eliminated to 0 MB drift via untyped_storage().resize_(0)).
  • CANN 8.5.1 verification: validated in user space without upgrading the host driver (25.2.t5), confirmed zero fallback via /proc/self/maps. Empirical BF16 4096³ Cube GEMM hits 319.2 TF/s (84.9% of spec), 256K GDN 3.88× (N0 exact 0.0), 3DGS 1K wall 32.45 s, Qwen3.8-Flash-Next 4K prefill 6,151 tok/s, Flash-QSA 64K prefill 9.69 s (B=1 decode 94.37 tok/s).

1.2 3DGS on 910C: Testing Non-Standard Custom Kernel Authoring

3DGS contains almost no standard GEMMs; its core consists of non-standard graphics operators (differentiable tile rasterization, prefix-sum binning, spherical harmonics, fused SSIM) with no built-in CANN implementation, directly testing an agent's ability to author custom Ascend C kernels.

On Mip-NeRF 360 garden (1297×840, 4,346 16×16 tiles, 138,766 initial Gaussians, strict FP32), the pure PyTorch NPU baseline took 5,716.15 ms/iter (17.67 GB HBM). Across 24 rounds (R1–R24b), Neon wrote the full Ascend C++ pipeline from scratch and brought iteration latency down to 28.10 ms (203.46×):

  • Vectorized SoA SIMD preprocess (R20a/b): hardware Gather for AoS→SoA plus 64-wide FP32 SIMD for projection, covariance, and degree 0–3 spherical harmonics (2.95 → 0.68 ms forward, 5.44 → 2.70 ms backward).
  • Zero-scatter contiguous binning (R21b): replaced ~10.5 ms of 64B random MTE3 scatters with a 48-core two-pass Ascend C prefix sum (0.05 ms vs. 9.25 ms AiCPU cumsum), hardware FP32 Sort32, and a contiguous index_select gather (0.40 ms, 150+ GB/s), cutting binning from 11.03 → 4.76 ms.
  • Tight-conic AABB pruning & 192 KB UB rasterization (R16–R24b): kept 16×16 tiles resident in UB, pruned 27.0% (iter 0) to 45%–60% (mid/late training) of dead tile-Gaussian pairs with exact FP32 parity, fused STRIP_W=384 zero-PIPE_ALL SSIM, and fused 6-tensor adam_step6 (2,576 GB/s L2-resident).

Full 30,000-iteration training on 1×910C (growing to 4,178,450 Gaussians) finished in 1h 43m with held-out Test PSNR 27.512 dB / SSIM 0.8685 (SIGGRAPH'23 paper: 27.41 dB / 0.868), rendering 4.18M Gaussians at 11.92 FPS.

1.3 Case Study & Tutorial: Building Flash-QSA-Ascend (64K Sparse Attention)

When all built-in CANN sparse attention ops failed on QSA's head/block configuration, the agent authored 1,021 lines of pure Ascend C++ offline, hitting cos_sim = 1.000000 — with both the custom indexer (1,347.1 GB/s, 106% of empirical STREAM) and 64K decode bs=8 (FlashQSA-Cube ~0.07 ms/layer; pure-AIV kernel 0.076 ms, bounded by launch and serial reduction floors) operating near Ascend 910C hardware limits.

Problem: Qwen3.8-Flash-Next's 12 Query-Sparse Attention (QSA) layers compress 64K KV history into 16,384 4-token blocks and select Top-512 blocks (≤ 2,048 tokens, 3.1% of 64K) with TP=8 shape Hq=3, Hkv=1, D=256, block_size=4, topk=512. On H200, upstream sglang assembles this via a short Triton gather plus FA3 varlen. On 910C, all 4 native CANN sparse ops (npu_nsa_select_attention_infer, mlp_sparse_flash_attention, etc.) error out on this shape and block_size=4, while a dense [B, 1, 64K, 64K] boolean mask takes 4.0 GB/call and triggers AICORE_TIMEOUT (507014, >40 GiB).

Flash-QSA on Ascend 910C microarchitecture: UB arena, sparse gather, pipeline sync, Split-K FlashDecoding
Figure 2 · Flash-QSA-Ascend microarchitecture (from the ascend branch, docs/en/flashqsa_arch_en.svg): (A) 32B-aligned static 192 KB UB arena (~125 KB used, 3-head KV reuse); (B) 64K sparse gather skipping 96.9% of HBM; (C) v1 PIPE_ALL stalls vs. v3 single batched HardEvent::V_S; (D) 48-core Split-K FlashDecoding plus 3-core log-sum-exp reduce.
Flash-QSA benchmark (Ascend 910C, BF16)R4 dense FIA baseFlash-QSA-AscendGain
Single-layer 64K full prefill (L=65,536)TIMEOUT (>40 GiB)212.7 ms (1.52 GiB)Unblocked · >26× HBM↓
Single-layer 64K decode B=1 / 8 / 16 / 321.79 / — / 6.41 / 12.52 ms0.0394 / 0.076 (kernel) / 1.27 / 2.33 ms5.05× – 5.36× · B=8 near hardware limit
Custom indexer_relu_sum_mask bandwidthPyTorch eager (1.07 GB buffer)1,347.1 GB/s7.5×–9.2× · 84.2% of spec / 106% of STREAM (at limit)
8-NPU 48-layer 360 GB real-weight 64K (L=65,536, B=1)Pre 15.72 s / Dec 131.5 msPre 9.69 s / Dec 10.60 ms (94.37 tok/s)Pre +1.62× / Dec 12.41×

Tutorial: writing and registering a custom torch_npu Ascend C op on 910C

The main hurdles for custom 910C operators are build-chain setup and 192 KB UB synchronization. Distilled from Flash-QSA's 3 source files (1,021 LOC):

  1. Step 1 · Build with ascendc_library() on CANN 8.5: include ascendc.cmake, compile __aicore__ kernels with ascendc_library(... STATIC), and link into a SHARED library (pass -DCMAKE_BUILD_TYPE=Release on CANN 8.5.1 and strip stray stdout lines from torch.utils.cmake_prefix_path).
  2. Step 2 · Static 32B-aligned UB arena (≤ 160 KB of 192 KB): slice a single TBuf<VECCALC> via UbAlloc. Flash-QSA packs Q/O FP32 (12 KB) + K/V BF16 (32 KB, 32 tokens) + K/V FP32 (64 KB) + online softmax (17 KB) into ~125 KB with zero HBM spill and 3× GQA KV reuse.
  3. Step 3 · Eliminate PIPE_ALL and route AIV vs. Cube: interleave 3-head Mul/Axpy, issue one batched HardEvent::V_S per 32-token tile before scalar reads, use 48-core Split-K for B*S < 24, and dispatch large-S prefill or compacted gather (FlashQSA-Cube) to the 376-TFLOPS Cube FIA.
  4. Step 4 · Register on PrivateUse1 with stream(true): call c10_npu::getCurrentNPUStream().stream(true) to flush torch_npu's async queue, allocate outputs via at::empty, register with TORCH_LIBRARY(..., PrivateUse1), verify against FP32 golden references (cos_sim = 1.000000), then validate 64K Needle recall (NEBULA7941).

1 · ascendc_ext/flash_qsa/CMakeLists.txt (CANN 8.5.1)

set(SOC_VERSION "Ascend910_9382" CACHE STRING "")
set(RUN_MODE "npu" CACHE STRING "")
include(${ASCEND_CANN_PACKAGE_PATH}/tools/tikcpp/ascendc_kernel_cmake/ascendc.cmake)

# Compiles __global__ __aicore__ kernels and auto-generates host launch stubs
ascendc_library(flashqsa_kernels STATIC flash_qsa_kernel.cpp)

add_library(flashqsa_cann SHARED torch_bridge.cpp)
target_link_libraries(flashqsa_cann PRIVATE flashqsa_kernels ${TORCH_LIBRARIES} torch_npu ascendcl)

2 · flash_qsa_kernel.cpp (32B-aligned UB arena + batched HardEvent::V_S)

template <typename T>
__aicore__ inline AscendC::LocalTensor<T> UbAlloc(
    AscendC::TBuf<AscendC::TPosition::VECCALC>& buf, uint32_t n, uint32_t& off) {
    auto t = buf.GetWithOffset<T>(n, off);
    off += ((n * static_cast<uint32_t>(sizeof(T)) + 31u) / 32u) * 32u;
    return t;
}

// Single V_S sync after Mul + WholeReduceSum across all Hq=3 heads and 32 tokens
AscendC::SetFlag<AscendC::HardEvent::V_S>(EVENT_ID0);
AscendC::WaitFlag<AscendC::HardEvent::V_S>(EVENT_ID0);

3 · Build and Python invocation (PrivateUse1)

source /usr/local/Ascend/ascend-toolkit/set_env.sh
cd ascendc_ext/flash_qsa && cmake -B build -S . -DCMAKE_BUILD_TYPE=Release && cmake --build build -j16

import torch, torch_npu
torch.ops.load_library("ascendc_ext/flash_qsa/build/libflashqsa_cann.so")
out = torch.ops.flashqsa_cann.sparse_attn_fwd(q, k, v, top_blocks, q_pos, 4, scale)

2. H200 vs. 910C: MFU, MBU & Empirical Peak Comparison

Raw speedup mixes fixing NPU baseline fallbacks with approaching hardware ceilings. To measure agent optimization capability cleanly across platforms, we normalize by MFU (compute-bound), MBU (memory-bound), and % of empirical single-chip ceiling (SOL%).

2.1 Empirical Single-Chip Ceilings

We measured single-chip compute and memory ceilings on 1×H200 (143 GB, 700 W TDP, Torch 2.9.1 + CUDA 12.8) and 1×Ascend 910C (64 GB die, Ascend910_9382, CANN 8.5.1):

MicrobenchmarkH200 measured (% of spec)910C die measured (% of spec)Ratio
BF16 dense GEMM (4096³ / 8192³)730.6 / 680.3 TF/s (73.8% / 68.8% of 989.5)319.2 / 294.8 TF/s (84.9% / 78.4% of 376)2.3×
BF16 GEMM (real LLM/VLM shapes)615.1 – 677.4 TF/s (62.2%–68.5%)~283 TF/s avg (321 TF/s forward peak)~2.3×
HBM STREAM Copy / Triad4,292 / 4,371 GB/s (89.4% / 91.1% of 4,800)1,269.5 / 1,194.1 GB/s (79.3% / 74.6% of 1,600)3.4×–3.7×
BF16 ridge point206 spec · ~158 empirical FLOP/B235 spec · 242–252 empirical FLOP/B910C more bandwidth-sensitive
FP32 non-TC vector peak51.1 TF/s GEMM / 45.2 FMA (of 67.0)11.06 TF/s (48 AIV cores, ridge 8.71)6.06× (spec)

2.2 Same-Task MFU, MBU & 3DGS Peak Comparison (Gemini 4 Neon, 10h)

Normalized to each chip's empirical roofline, Neon on 910C reaches 92.6% on strict-BF16 NanoChat — nearly matching H200's 93.7%. On ultra-sparse multi-card serving and FP32 3DGS, gaps remain, driven primarily by the 64 GB memory wall (TP=8, EP=8) and silicon specs.

To eliminate discrepancies in nanochat's built-in estimate_flops(), we report both Strict Matmul MFU (6·N_matmul only) and Unified MFU (adding exact causal sliding-window attention, w=512). For Qwen3.8-Flash-Next decode, we report both datasheet MBU and empirical STREAM MBU.

TaskMetricH200 (GPU · Neon 10h)Ascend 910C (NPU · Neon 10h)Empirical ceiling takeaway
NanoChat D24 strict BF16 pretraining MFU 2×H200 · 1.172× (1.2248→1.0448 s)
Strict: 47.36% → 55.52%
Unified: 50.19% → 58.84%
8×910C · 2.176× (7,448→3,422 ms)
Strict: 20.49% → 44.60%
Unified: 21.72% → 47.27%
GPU 93.7% vs. NPU 92.6% SOL% — virtually tied; the 11 pp raw MFU gap reflects 910C's higher ridge point and closed Cube/FA floors
LLaVA-1.5-7B multimodal BF16 SFT MFU 2×H200 · 3.12×
20.2% → 63.0%
8×910C 10h: Neon 8.7% → 56.52% (6.46×)
GLM-5.4 8.7% → 51.90% (5.99×)
GPU ~95% vs. NPU ~91% SOL% — under 8-card ZeRO-2 / FSDP communication, Neon closely approaches H200 saturation (GLM-5.4 reaches ~84%, and 59.25% with full skills)
Qwen3.8-Flash-Next bs=8, 8K/1024 Decode MBU
Prefill MFU
4×H200 TP=4, EP=4 (sglang):
MBU 23.4% → 41.9% (R28 50.1%)
STREAM 46.0% (R28 55.0%) · Pre 12.5%
8×910C TP=8, EP=8 (11 Ascend C):
MBU 6.62% → 22.25% (3.41×)
STREAM 28.1% · Pre 4.40%
1.6–1.9× STREAM MBU gap, driven primarily by the 64 GB memory wall forcing TP=8, EP=8: MoE ops hit 79% of STREAM, while 96× HCCL plus launch bubbles take 37%
3DGS (FP32) full-scale 30K iterations FP32 & bandwidth peak 1×H200 truck (2.03M G, 979×546):
307.5 → 72.7 s (4.23×)
FP32 16.4% · BW ~39%
1×910C garden (4.18M G, 1297×840):
28.10 ms/iter (203.5×), 30K in 1h 43m
FP32 3.88% (raster 5.3%–6.5%)
910C rasterization has AI 40–60 FLOP/B (Vector-Pipe compute-bound); the silicon FP32 peak itself differs by 6.06×
NanoChat strict BF16 SOL% on H200 vs 910C and Qwen3.8-Flash-Next 8x910C decode step breakdown
Figure 3. Left: 10h NanoChat BF16 comparison — 910C Neon reaches 92.6% of the physical roofline (matching H200's 93.7%), while hand-written Ascend C adds +8.52 pp Strict MFU over pure-PyTorch GLM-5.4. Right: Qwen3.8-Flash-Next 176.7B decode on 8×910C (TP=8, EP=8 forced by 64 GB HBM) — the pure HBM floor is 4.64 ms, while 96× HCCL plus ~1,200 dispatch bubbles consume 37% of the 16.54 ms step.

2.3 Trace Analysis: Behavioral Differences & Remaining Gaps

Comparing round-by-round traces on H200 (25 rounds NanoChat, 28 rounds Qwen3.8-Flash-Next, 3DGS) and 910C (13 traces) attributes the remaining gaps to four concrete system and hardware factors.

Gap 1 · Mid-level DSL maturity and model priors

Mid-level DSL tooling and model priors still lag CUDA/Triton; breaking the framework ceiling often requires Ascend C++. In the 10h NanoChat run, pure-PyTorch GLM-5.4 plateaus at 36.08%, while Neon's 10 Ascend C kernels reach 44.60% (+8.52 pp).

On H200, PyTorch → torch.compile → Triton → CUTLASS/CUDA is mature and heavily represented in model pretraining data, letting even mid-tier models capture most fusion gains with short Triton kernels.

On 910C, while community DSLs such as TileLang-Ascend and Triton-Ascend exist, two gaps remain today: (1) they are often absent from default cluster images, with narrower coverage on complex backward graphs and irregular memory access (while torchair hits RoPE backward errors and 0.62–1.27 TB/s compiled bandwidth); (2) frontier LLMs have far fewer pretraining priors on TileLang-Ascend / Triton-Ascend. Breaking the framework ceiling therefore required hand-written Ascend C++, widening the gap between Neon (+8.52 pp MFU on NanoChat) and GLM-5.4. As TileLang-Ascend matures and gains dedicated skills, this gap should narrow further.

Gap 2 · Library openness

Closed-source GEMM boundaries: H200 allows SM90 CUTLASS EVT epilogues; 910C fuses outside the Cube. In NanoChat R25 on H200, CUTLASS EVT eliminates the intermediate tensor y2, saving 19.3 GB/step of HBM3e traffic.

In H200 NanoChat BF16 Round 25, Neon wrote an SM90 CUTLASS EVT epilogue fusing o_proj + residual + rstd and c_fc + relu² scale-folding directly into the GEMM, eliminating intermediate activation y2 and reaching 58.84% MFU (93.7% SOL%).

On 910C, Cube MatMulV2 and FIA are closed-source without custom epilogue hooks, and fused-comm MC2 is unsupported on this stack (EZ1001). Even with 10 AIV kernels running at 80%–90% of STREAM bandwidth, ~638 GB/step of unavoidable HBM traffic (~473 ms floor) remains outside the Cube.

Gap 3 · Multi-card physical hardware limits

Five physical hardware causes sit behind Qwen3.8-Flash-Next's MBU (28% vs. 46%) and prefill MFU (4.4% vs. 12.5%) gap. 910C MoE GEMMs already reach 79% of STREAM; the gap is driven by the 64 GB memory wall forcing TP=8, EP=8, HCCS latency, the ridge point, and the Cube/Vector split.

Breaking down Qwen3.8-Flash-Next 176.7B across 8×910C vs. 4×H200 shows five physical hardware constraints dominate the remaining gap:

  1. 64 GB memory wall forcing TP=8, EP=8 (vs. H200 TP=4, EP=4): 360 GB of weights fit on 4×H200 (141 GB each) but require 8×910C (64 GB each). Doubling the card count doubles the aggregate bandwidth denominator and replicated weight traffic (96 Hyper-Connections, QSA KV heads) without halving fixed sync/launch latencies.
  2. Interconnect latency (HCCS vs. NVLink 4.0): 8×910C executes 96 sequential 8-card HCCL all_reduce calls per token, taking 3.2–3.5 ms (~35 µs each), whereas 4×H200 has half the ranks on full-mesh 900 GB/s NVLink with NVLS hardware multicast.
  3. High ridge point (242–252 FLOP/B) × fine-grained MoE sharding: 512 experts (moe_intermediate_size=640) sharded across 8 cards leave shared_expert dim 80 and 2 GDN K-heads per card, increasing small-GEMM tiling waste on 910C Cube cores.
  4. Physical Cube/Vector separation: unlike H200 SMs sharing registers/SMEM between Tensor and CUDA cores, 910C's 24 AIC and 48 AIV cores route intermediates through L2/HBM and the 192 KB UB, penalizing interleaved GDN+HC+QSA layers.
  5. Memory headroom caps the prefill chunk (2048 vs. H200 8192): with ~14.5 GiB of free HBM on 8×910C, prefill is capped at chunk=2048, reducing grouped-GEMM batch size by 4×.

Gap 4 · Triage overhead and FP32 spec

Silent-fallback triage overhead and the 6.06× silicon FP32 vector peak gap. Early NPU rounds spend more time diagnosing silent fallbacks; 3DGS FP32 vector peak is 11.06 TF/s on 910C vs. 67 TF/s on H200.

Triage overhead: GPU nsys/ncu pinpoints warp stalls and bank conflicts directly; on NPU, silent fallbacks (bool.scatter_, int32 sort/cumsum, 4D masks) and coarse AICORE_TIMEOUT errors consume extra early rounds.

FP32 silicon positioning: Round 22 confirmed 3DGS rasterization on 910C is Vector-Pipe FP32 compute-bound (AI 40–60 FLOP/B vs. the 8.71 ridge point). The 6.06× FP32 peak difference (11.06 vs. 67.0 TF/s) sets the absolute wall-clock gap.

3. Ascend 910C Skills in ResearchBoost-Agent

Distilling hardware-verified build chains, UB synchronization rules, and fallback workarounds into on-demand reference cards lets different coding models compile custom Ascend C kernels and run deep NPU optimizations without trial-and-error from scratch.

We integrated the progressive-disclosure skills/ascend-opt/ package into ResearchBoost-Agent (PR #17). Its primary entry point, ascend-910c-playbook, pairs a 34-line router (SKILL.md) with 6 focused cards loaded strictly on demand after profiling — keeping startup context to a single metadata line (~560 tokens across all 14 Ascend skills combined):

Reference cardRead whenHardware-verified content
01-ascendc-build-and-bridgeWriting custom Ascend CCANN 8.5 ascendc_library() minimal CMake, TORCH_LIBRARY(PrivateUse1), stream(true) queue flush
02-ub-tiling-and-syncUB tiling & Split-K192 KB UB 32B UbAlloc, zero-PIPE_ALL batched HardEvent::V_S, 48-core Split-K, AIV vs. Cube routing
03-aicpu-fallbacks-and-cann-pitfalls10×–1000× slowdown / mismatchAiCPU fallback table (bool.scatter_, int32 sort, cumsum), _foreach_copy_ _version, torchair backward fixes
04-npugraph-and-commDecode launch / comm overhead48-layer NPUGraph/ACLGraph with HCCL inside, resize_(0) offload leak fix, HCCL_OP_EXPANSION_MODE=AIV
05-training-fsdp-and-varlen-faMulti-card VLM/LLM trainingBypassing HF 4D masks via TND varlen FA, FSDP no_sync and token load balancing
06-verification-and-mfuHonest MFU/MBU and parityLookup-excluded MFU, STREAM MBU, golden FP32 parity, RL Token-Forcing and 64K Needle checks

3.1 Example Across Models: GLM-5.4 Silicon-Verified on All 4 Tracks (10h Each)

Taking GLM-5.4 as a concrete example: without skills, it abandoned custom Ascend C in NanoChat Round 5 when legacy build configs failed. Once equipped with ascend-opt, GLM-5.4 compiled its first custom Ascend C .so in 20 minutes and completed silicon-verified 10-hour /goal campaigns across all 4 isolated tracks (reaching 5.99× / 51.90% MFU on the LLaVA head-to-head and 6.84× / 59.25% MFU with full skill guidance):

Track (10h isolated)GLM-5.4 silicon-verified resultSpeedupUtilization & parity
LLaVA-1.5-7B 8×910C · strict BF16 18,770 → 3,132.6 ms (judge 3,145.2 ms, 43.82 GiB); with full skill: 2,744.1 ms (zero recompute, 54.89 GiB) 5.99×
6.84× (+skill)
51.90% MFU (vs. Neon 6.46× / 56.52%); +skill hits 59.25% MFU (99.4% device busy), both N1 PASS
NanoChat D24 8×910C · strict BF16 7,448 → 4,230.4 ms (247.9K tok/s, 38.15 GB, 0.03 ms repeatability) 1.76× 36.08% Strict MFU (38.24% Unified, pure PyTorch/torchair, N1 PASS)
Faster-3DGS 1×910C · FP32 Ascend C 13 custom Ascend C kernels (6 binning + forward/backward raster + fused Adam); 400×400 429.9 → 15.43 ms, 1297×840 116.3 ms 27.8× 9/9 checks PASS (FP32 cos=1.000000, radii_diff=0), 3.5K PSNR 30.45 dB
Flash-QSA 64K 1–8×910C · pure-AIV Ascend C Custom "mode 21" pipeline: 64K attention 716.0 → 324.4 ms; 64K decode kernel B=8/16/32 at 0.076 / 0.103 / 0.190 ms 2.20× 427.2 GB/s (33.5% of STREAM) pure-AIV attention, 72/72 PASS (min cos=0.999991), 64K Needle recalled

Note: on LLaVA-1.5-7B, 20 rounds of optimization by GLM-5.4 (LPT balancing, removing activation checkpointing, _NpuLinear eliminating 180 MB of weight copies, _FlatViews eliminating 405 MB of gradient concatenation, side-stream communication and async H2D) drove 8×910C device utilization to 99.4% and 59.25% honest BF16 MFU — approaching 2×H200's 63.0% MFU. On 3DGS and Flash-QSA, GLM-5.4 also authored and verified complete custom Ascend C libraries on silicon.

3.2 Quick Start for NPU Users

Pull skills/ascend-opt/ from the ascend branch of ResearchBoost-Agent into your coding agent workspace and pair it with a frozen judge:

# 1. Clone code, custom Ascend C kernels, progressive skills, and all 13 traces
git clone --branch ascend --single-branch \
  https://github.com/DAGroup-PKU/ResearchBoost-Agent.git RBA-Ascend

# 2. Install the progressive skill into your agent workspace
cp -r RBA-Ascend/skills/ascend-opt /path/to/your-project/.claude/skills/

# 3. Freeze reference/ and bench/, then run the RBA loop (profile → edit → verify)

The repository carries the LLaVA / NanoChat / 3DGS / Flash-QSA / Qwen3.8-Flash-Next / 64-NPU 256K RL patches, failed attempts, and verification scripts alongside the hand-written Ascend C kernels and all 13 traces.

The Author's Summary on X

NVIDIA's success is inseparable from the CUDA ecosystem. Yet we systematically compared how AI agents (Neon and GLM-5.4) optimize on GPU and NPU, and found that this moat is eroding:

  1. Agents can already migrate code to NPU quickly, fix bugs, and get a baseline running.
  2. On top of that, agents can repeatedly iterate on scheduling and CANN operator implementations on NPU, reaching speedups of several times to several tens of times (partly because the NPU baseline is weak). Once hardware differences are excluded, the fraction of the physical ceiling they reach is already close to the GPU result.
  3. The strongest open models (such as GLM-5.4), with a suitable compilation toolchain and optimization skills, can also achieve quite good results.

— Xu Huang (@XuHuang1031, Nov 30, 2026; translated from the original Chinese post)

Source: Xu Huang / ResearchBoost (DAGroup-PKU), “CUDA's Moat Is Eroding: Benchmarking Agentic Infra Optimization on NPU vs. GPU”, Nov 29, 2026. Figures 1 and 3 are reproduced from the original post's charts; Figure 2 is the authors' flashqsa_arch_en.svg from the ascend branch. All benchmark numbers, hardware specs, and verification claims are the original authors'.

As an Amazon Associate, we earn from qualifying purchases.