Heterogeneous AI Serving: Migrating CUDA/vLLM to Ascend MindIE & Domestic NPUs
First-principles guide to migrating LLM inference from CUDA/vLLM to Huawei Ascend (DaVinci Cube/Vector, MindIE, vllm-ascend, msModelSlim W8A8, HCCL) and Alibaba T-Head Zhenwu PPU 810E.
First-principles mastery of full-stack LLM inference: GPU driver stacks, Roofline bounds, PagedAttention, continuous batching, CUDA/Triton fused kernels, FlashAttention/FlashInfer, MLA & KDA/CSA caches, FP8/INT4 quantization, EAGLE-3 speculative decoding, MoE EP, P/D disaggregation, and multi-node production serving.
Browse all 21 chapters in this series ▾
- 01 NVIDIA GPU Driver Stack: Kernel Modules to Containers
- 02 Roofline Model: Why Prefill and Decode Differ
- 03 PagedAttention: Paged KV Cache without Fragmentation
- 04 Continuous Batching and Chunked Prefill
- 05 Prefix Caching: Hash Blocks and RadixAttention
- 06 LLM GPU Kernel Engineering: CUDA Warp Primitives to Triton Fused Kernels
- 07 Attention Kernels: FlashAttention and FlashInfer
- 08 MHA, GQA, and MLA: Attention and KV Memory
- 09 Kimi KDA, DeepSeek MLA and V4 CSA/HCA: Long-Context Cache Math and GPU Memory
- 10 LLM Quantization: FP32 to FP8, INT4, and NF4
- 11 LLM Quantization Hands-On Guide: Four Routes from Zero to Production
- 12 Speculative Decoding from Draft Models to EAGLE-3
- 13 MoE Inference Internals: Expert Parallelism (EP), Dynamic Routing Gating, and All-to-All Overlapping
- 14 Prefill-Decode Split and Distributed KV Transfer
- 15 Inference Engines: vLLM, SGLang, TRT-LLM, llama.cpp
- 16 SGLang vs vLLM: Prefix Caching, Structured Outputs, and Reproducible Evaluation
- 17 vLLM Online Inference: Architecture, Tuning, and Billing
- 18 DeepSeek-V4 and Kimi K3: 32-GPU Topology and Debugging
- 19 DeepSeek Inference Stack: DeepInfer and deepseek-recipe
- 20 Heterogeneous AI Serving: Migrating CUDA/vLLM to Ascend MindIE & Domestic NPUs Reading
- 21 Reasoning Inference: Test-Time Compute and KV Scheduling
NOTE
Executive Summary (TL;DR)
- Microarchitectural Paradigm Shift: Migrating from NVIDIA GPUs (SIMT warps + unified L1/Shared cache) to Huawei Ascend (DaVinci AI Cores with decoupled Cube, Vector, and Scalar engines) or Alibaba T-Head's Zhenwu PPU 810E (
96 GB HBM2e,700 GB/sinter-chip fabric) hinges on eliminating Cube-to-Vector HBM round-trips, suppressing dynamic-shape JIT recompilation storms, and capturing staticACLGraphexecution schedules. - FP8-to-W8A8 Quantization & Scientific Parity Gates: Because Ascend 910B delivers
~640 TOPSon native INT8 Cube engines (2× its~310–320 TFLOPSBF16/FP16 rate) without native Hopper FP8 instructions, production workflows dequantize FP8 checkpoints and applymsModelSlim(AntiOutlierchannel smoothing + dynamic per-tokenW8A8), validating parity via teacher-forced Top-1 logit cosine similarity () and KL divergence () rather than brittle greedy string matching. - HCCL Collectives & Multi-Silicon MaaS Routing: Tuning
HCCL_OP_EXPANSION_MODE="AIV", sizingHCCL_BUFFSIZE, verifying per-NPU onboard RoCE links viahccn_tool, and orchestrating NVIDIA, Ascend, and Zhenwu PPU pools behind Kubernetes + GPUStack turns heterogeneous hardware diversity into an SLO-aligned cost advantage.
Introduction: Why Copy-Pasting CUDA Intuition Fails on Heterogeneous NPUs
In enterprise private deployments and large-scale MaaS platforms, homogeneous single-vendor GPU clusters are increasingly rare. Production infrastructure teams routinely operate multi-silicon heterogeneous clusters spanning NVIDIA (A800 / H800 / H20), Huawei Ascend (Ascend 910B / 910C / 310P), Alibaba T-Head (Zhenwu PPU 810E), and CUDA-compatible domestic GPUs.
Yet teams migrating a 72B dense model or a 671B MoE service from H800 + vLLM onto non-CUDA accelerators frequently hit three immediate walls in week one:
- "Why is per-token latency (TPOT) 3× slower despite comparable peak TFLOPS?" — Assuming eager-mode PyTorch elementwise ops will be absorbed by a forgiving unified cache hierarchy, whereas decoupled Cube/Vector on-chip buffers stall severely without whole-block graph fusion (
ATB/ACLGraph); - "Why won't native FP8 checkpoints load directly—or why did accuracy collapse under naive INT8?" — Conflating Hopper/Blackwell hardware
FP8 E4M3Tensor Cores with Ascend 910B's nativeINT8 W8A8Cube pipeline; - "Why do 8-card tensor-parallel jobs hang on collective initialization?" — Debugging host Ethernet (
eth0) with Linuxethtoolinstead of inspecting Ascend's dedicated intra-node HCCS mesh and per-NPU onboard 100G/200G RoCE NICs (hccn_tool).
This chapter dissects the hardware microarchitecture, dual-engine deployment stacks (vllm-ascend vs. native MindIE), msModelSlim W8A8 precision alignment, HCCL collective tuning, and Kubernetes + GPUStack multi-silicon routing from first principles.
1. Silicon Microarchitecture from First Principles: Two Domestic Ecosystem Tracks
Before modifying serving configs, architects must classify accelerators along hardware execution model and software-stack compatibility:
| Architectural Axis | NVIDIA Hopper/Ampere Baseline (H800 / H20 / A800) | Track A1: Huawei Ascend DaVinci (Ascend 910B / 910C) | Track A2: Alibaba T-Head PPU (Zhenwu PPU 810E) | Track B: CUDA-Compatible SIMT GPUs (Hygon DCU / MetaX MACA / Iluvatar) |
|---|---|---|---|---|
| Core Compute Model | 32-thread SIMT Warps + Tensor Cores (MMA/WGMMA) | DaVinci AI Core: Decoupled Cube (Matrix) + Vector (SIMD) + Scalar engines | Proprietary Parallel Processing Unit (PPU) tailored for LLM matrix & memory flows | 32/64-lane SIMT Wavefronts + Matrix Tensor Units |
| HBM Capacity & Throughput | A800/H800: 80 GBH20: 96 GB HBM3 | 910B: 64 GB HBM2e (~310–320 TFLOPS BF16, ~640 TOPS INT8)910C: Dual-die 128 GB HBM2e (~800 TFLOPS FP16, ~3.2 TB/s) | 96 GB HBM2e (matches H20 capacity; +20% headroom over 80GB cards) | Typically 64 GB – 128 GB HBM2e/HBM3 |
| Scale-Up Interconnect | NVLink (400 – 900 GB/s) | HCCS coherent intra-node fabric + onboard RoCE NICs (scales to CloudMatrix 384 optical UB) | Proprietary Inter-Chip Network (ICN) delivering up to 700 GB/s (PCIe 5.0 x16) | Proprietary XLink interconnects or PCIe Gen5 + RoCEv2 |
| Low-Level Software Stack | CUDA Driver + cuBLAS / CUTLASS / Triton | Sovereign Non-CUDA Stack: CANN 8.0 + Ascend C + ATB + HCCL | Sovereign Non-CUDA Stack co-designed with Alibaba Cloud & Qwen | Source/binary translation stacks (ROCm/DTK, MACA) mirroring cuBLAS/NCCL |
| Primary Serving Engines | vLLM / SGLang / TensorRT-LLM | MindIE (native C++ graph stack) or vllm-ascend (PluggableDevice) | Vendor-optimized vLLM / proprietary serving runtime leveraging 96GB pools | Vendor-adapted vLLM / SGLang builds |
Inside the DaVinci AI Core: Why Fusion & Memory Alignment Matter Even More Than on GPUs
As we analyzed in LLM GPU Kernel Engineering, an NVIDIA SM shares a unified register file and configurable L1 / Shared Memory across warps—allowing Tensor Core GEMM outputs to undergo epilogue scaling or residual addition directly in registers.
Inside Huawei's DaVinci AI Core, compute units and scratchpad memories form an explicit multi-stage DMA pipeline orchestrated by Memory Transfer Engines (MTE1 / MTE2 / MTE3):
flowchart LR
HBM["Off-Chip HBM2e\n(Global Memory)"] -->|"MTE2 Async DMA"| L1["L1 Buffer\n(On-Chip Staging)"]
L1 -->|"MTE1 Tile Load"| L0AB["L0A / L0B Buffers\n(Fractal Z / NZ Layout)"]
L0AB --> Cube["Cube Matrix Engine\n(16x16x16 FP16 / 16x32x16 INT8)"]
Cube --> L0C["L0C Accumulator\n(FP32 / INT32 Partial Sums)"]
L0C -->|"FixPipe / MTE Transfer"| UB["Unified Buffer (UB)\n(Dedicated Vector Scratchpad)"]
HBM <-->|"MTE2 / MTE3"| UB
UB <--> Vec["Vector SIMD Engine\n(RMSNorm / RoPE / SwiGLU / Softmax)"]
Scalar["Scalar Control Unit\n(Addressing + SetFlag/WaitFlag Sync)"] -.->|"Schedule & Sync"| Cube
Scalar -.->|"Schedule & Sync"| Vec
Three critical production consequences follow directly from this silicon layout:
- Fractal Tensor Layouts (
NZ/FRACTAL_Z) & 32-Byte Alignment: The Cube engine consumes fixed (FP16/BF16) or (INT8) tiles, whileUBDMA transfers require strict 32-byte alignment. Misaligned hidden dimensions or KV block strides inject hiddenTransData/ padding kernels that silently burn 15%–30% of step latency. - Cube-Vector Hardware Pipelining: High-throughput kernels like
FlashAttentionScore(PromptFlashAttention/IncreFlashAttention) andMLArely onAscend CorATB (Ascend Transformer Boost)to overlap tile 's Cube GEMM () with tile 's Vector online Softmax via hardwareSetFlag / WaitFlagbarriers—keeping intermediates strictly on-chip. - VRAM Topology Recalculation (
64 GBvs.80 GBvs.96 GB): BecauseAscend 910Bprovides64 GBHBM2e (~`60 GBusable after OS and CANN driver reservations) whereas Alibaba T-Head's **ZhenwuPPU 810E** provides **96 GB` HBM2e**:- A 72B BF16 checkpoint (~`145 GB
weights) fits comfortably at **TP=2** on two96 GBPPU 810Ecards (192 GBaggregate, leaving ~40 GBfor KV Cache), whereasTP=2on64 GB910B(128 GBaggregate) cannot even hold static weights—requiring **TP=4(256 GB) in BF16 orW8A8quantization (~73 GB`)**!
- A 72B BF16 checkpoint (~`145 GB
2. Dual-Track Serving Architecture: `vllm-ascend` vs. Native `MindIE`
Ascend production deployments standardize on two mature serving stacks depending on ecosystem coupling vs. bare-metal specialization:
2.1 Track 1: `vllm-ascend` (Zero-Friction Migration via PyTorch `PluggableDevice`)
When workloads depend on vLLM V1's OpenAI API semantics, structured output backends, and rapid day-0 model coverage, vllm-project/vllm-ascend provides a clean hardware-decoupled plugin:
- Execution Architecture: Registers
torch_npu(torch.device("npu")) via PyTorch'sPrivateUse1(PluggableDevice) interface, preserving upstream vLLM's Paged KV scheduler and Chunked Prefill logic while dispatching linear/MoE/attention layers to CANN kernels and capturing decode steps intoACLGraph(Ascend's counterpart to CUDA Graphs). - Production Launch Baseline:BASH
# 1. Inspect NPU health, AICore utilization, HBM usage, and firmware versions npu-smi info # 2. Source CANN 8.0 environment and set NPU allocator + HCCL parameters source /usr/local/Ascend/ascend-toolkit/set_env.sh export ASCEND_RT_VISIBLE_DEVICES=0,1,2,3 export PYTORCH_NPU_ALLOC_CONF="expandable_segments:True" # Mitigates variable-length HBM fragmentation OOMs export HCCL_BUFFSIZE=256 # Expand TP collective buffer to 256 MB export HCCL_OP_EXPANSION_MODE="AIV" # Offload collective reductions onto AI Vector cores # 3. Launch vllm-ascend with W8A8 weights and automatic ACLGraph capture vllm serve /models/Qwen2.5-72B-Instruct-W8A8 \ --served-model-name Qwen2.5-72B-Instruct \ --tensor-parallel-size 4 \ --quantization ascend \ --max-model-len 32768 \ --max-num-batched-tokens 8192 \ --gpu-memory-utilization 0.90 \ --trust-remote-code \ --port 8000
2.2 Track 2: Native `MindIE` (`MindIE Service` + `MindIE LLM` + `MindIE Motor`)
For maximum hardware utilization on flagship deployments (such as multi-node DeepSeek-V3/V4 Wide-EP serving and disaggregated Prefill/Decode pools), Huawei's C++ stack MindIE eliminates Python runtime overhead via whole-layer ATB C++ GraphOperation fusion and MindIE Motor P/D orchestration (mirroring the disaggregation principles in Prefill-Decode Split & Distributed KV Transfer).
When sizing MindIE Service's conf/config.json, explicit multi-instance KV pool allocation (npuMemSize, in GB) follows:
On 4× Ascend 910B (64 GB) serving Qwen2.5-72B-W8A8 (, , workspace reserve, ), safe KV capacity is per NPU (or set npuMemSize: -1 when dedicating full cards to a single instance):
{
"Version": "1.0.0",
"ServerConfig": {
"ipAddress": "0.0.0.0",
"port": 1025,
"httpsEnabled": false,
"inferMode": "standard",
"openAiSupport": "vllm"
},
"BackendConfig": {
"backendName": "mindieservice_llm_engine",
"modelInstanceNumber": 1,
"npuDeviceIds": [[0, 1, 2, 3]],
"tokenizerProcessNumber": 8,
"multiNodesInferEnabled": false,
"ModelDeployConfig": {
"maxSeqLen": 32768,
"maxInputTokenLen": 28672,
"truncation": false,
"ModelConfig": [
{
"modelInstanceType": "Standard",
"modelName": "Qwen2.5-72B-Instruct",
"modelWeightPath": "/models/Qwen2.5-72B-Instruct-W8A8",
"worldSize": 4,
"cpuMemSize": 5,
"npuMemSize": -1,
"backendType": "atb",
"trustRemoteCode": false
}
]
},
"ScheduleConfig": {
"templateType": "Standard",
"maxBatchSize": 128,
"maxPrefillBatchSize": 16,
"maxPrefillTokens": 8192,
"supportSelectBatch": true,
"enablePrefixCache": true
}
}
} WARNING
Mandatory MindIE File-Permission Gate: MindIE Service enforces strict security checks on configuration and weight file permissions at startup! If conf/config.json has permissions looser than 640 (such as 644 or 777), startup immediately aborts—always enforce chmod 640 conf/config.json in container entrypoints.
3. Precision Migration (`FP8` → `W8A8`) & Scientific Numerical Parity Verification
3.1 Why Native Hopper `FP8` Checkpoints Must Convert to `W8A8` on Ascend 910B
On NVIDIA Hopper/Blackwell GPUs, FP8 (E4M3) uses a 4-bit exponent (range ) that naturally absorbs activation spikes (see Quantization Precision Guide). By contrast, Ascend 910B achieves its ~640 TOPS peak on native INT8 Cube integer arithmetic.
Because INT8 provides a uniform linear [-128, 127] grid with zero exponent bits, naive static tensor-level clamping gets crushed by Transformer activation channel outliers.
3.2 Production `W8A8` Conversion with `msModelSlim` (`AntiOutlier` + Dynamic Per-Token Calibration)
When migrating native blockwise FP8 models (e.g., DeepSeek-V3/V4), first dequantize 128×128 FP8 blocks cleanly to BF16, then run Huawei's official msModelSlim pipeline combining SmoothQuant-style channel migration (AntiOutlier) with Per-Token dynamic activation quantization (act_method=3) and automatic sensitive-layer fallback:
import torch
import torch_npu
from transformers import AutoModelForCausalLM, AutoTokenizer
from msmodelslim.pytorch.llm_ptq.anti_outlier import AntiOutlier, AntiOutlierConfig
from msmodelslim.pytorch.llm_ptq.llm_ptq_tools import Calibrator, QuantConfig
# Disable online JIT compilation during offline PTQ calibration on NPU
torch.npu.set_compile_mode(jit_compile=False)
MODEL_SRC = "/models/Qwen2.5-72B-Instruct-BF16"
SAVE_DIR = "/models/Qwen2.5-72B-Instruct-W8A8"
tokenizer = AutoTokenizer.from_pretrained(MODEL_SRC, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
MODEL_SRC,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
).eval()
# 1. Curate 64–128 representative domain prompts (code, math, long tables, bilingual prose)
raw_prompts = [
"Explain the difference between RoCEv2 PFC deadlock and InfiniBand credit-based flow control.",
"Derive why mixed-precision AdamW requires 16Ψ bytes of static training memory.",
]
calib_dataset = [
[tokenizer(p, return_tensors="pt", truncation=True, max_length=2048).input_ids.to("npu:0")]
for p in raw_prompts
]
# 2. Stage 1: Outlier Suppression (migrate activation channel spikes into weights)
anti_cfg = AntiOutlierConfig(
anti_method="m4", # Smooth/rotation strategy tuned for modern GQA + SwiGLU blocks
dev_type="npu",
dev_id=0,
)
anti_outlier = AntiOutlier(model, calib_data=calib_dataset, cfg=anti_cfg)
anti_outlier.process()
# 3. Stage 2: W8A8 Calibration (Per-Channel static weights + Per-Token dynamic activations)
quant_cfg = QuantConfig(
w_bit=8,
a_bit=8,
act_method=3, # Per-token dynamic activation scaling — critical for reasoning & code!
w_sym=True,
dev_type="npu",
dev_id=0,
mm_tensor=False, # Enforce per-channel weight scales rather than coarse per-tensor scales
)
# disable_level="L1" automatically keeps the most sensitive down_proj layers in BF16
calibrator = Calibrator(model, quant_cfg, calib_data=calib_dataset, disable_level="L1")
calibrator.run()
calibrator.save(SAVE_DIR, save_type=["safe_tensor"])
print(f"W8A8 checkpoint exported cleanly to {SAVE_DIR}") 3.3 Three-Tier Numerical Parity Verification (Why Greedy String Equality Is Wrong)
Comparing 1,000-token temperature=0 greedy outputs character-by-character between an H800 and an Ascend 910B or Zhenwu PPU is a classic anti-pattern: because IEEE-754 floating-point addition is non-associative, Cube tile accumulation naturally differs from NVIDIA WGMMA by . Whenever top-2 token probabilities sit within , a single tie-break flips token and diverges the entire downstream autoregressive suffix!
Enforce a deterministic three-tier acceptance protocol instead:
- Tier 1 — Single-Pass Teacher-Forced Logit Alignment: Feed identical
4,096-tokeninput_idsinto both GPU and NPU/PPU in a single forward pass and compare output logits across all positions:- Mean Cosine Similarity: ( for BF16-vs-BF16; for W8A8-vs-BF16);
- Mean Token-Level KL Divergence: ;
- Tier 2 — Task-Level Evaluation Parity: Verify end-to-end pass rates on a 200–500 item golden benchmark (math, unit-tested code, structured extraction; see LLM Evaluation Guide) stay within ;
- Tier 3 — Long-Context RoPE & RMSNorm Accumulator Audit: Stress-test
32K–128Kprompts specifically checking that RoPEcos/sintables and RMSNorm variance reductions execute inFP32rather thanFP16(downcasting RoPE frequencies to FP16 corrupts positional phases past 16K tokens!).
4. HCCS / HCCL Collective Tuning & Dual-Plane Network Debugging
Unlike PCIe/NVLink GPU servers where host NICs handle all inter-node traffic through standard Linux interfaces, each Ascend 910B module integrates a dedicated onboard 100G/200G RoCE NIC managed via hccn_tool.
Four Mandatory Pre-Flight Inspection & Tuning Commands
# 1. Inspect intra-node 8-NPU HCCS topology (distinguish full-mesh vs. dual-4-card islands!)
npu-smi info -t topo
# 2. Verify physical link state, IP assignment, and lossless PFC counters across all 8 onboard RoCE ports
for i in {0..7}; do
echo "=== NPU $i Onboard RoCE Link & PFC ==="
hccn_tool -i $i -link -g
hccn_tool -i $i -ip -g
hccn_tool -i $i -pfc -g
done
# 3. Production HCCL collective tuning flags
export HCCL_OP_EXPANSION_MODE="AIV" # Offload collective reductions from slow AI CPU onto AI Vector cores
export HCCL_BUFFSIZE=512 # Size to 512 MB for Wide-EP All-to-All or long-context TP
export HCCL_RDMA_TC=104 # Match ToR switch lossless RoCEv2 DSCP traffic class
export HCCL_RDMA_SL=4 # Match lossless PFC priority queue Service Level
export HCCL_CONNECT_TIMEOUT=1200 # Prevent premature rank timeouts during multi-hundred-GB weight load TIP
Intra-Node TP=4 Island Affinity: On 8-NPU chassis wired as two 4-NPU HCCS islands ([0,1,2,3] and [4,5,6,7]), always pin TP=4 instances strictly within [0,1,2,3] or [4,5,6,7]—never split an instance across [0,1,4,5]! Always verify with npu-smi info -t topo first.
5. Reference Architecture: Unified Multi-Silicon MaaS on Kubernetes + GPUStack
Rather than operating siloed per-vendor clusters, production platforms unify NVIDIA GPUs, Huawei Ascend NPUs, and Alibaba T-Head Zhenwu PPU 810E behind a single Kubernetes control plane (building directly on Kubernetes AI Serving: LeaderWorkerSet & KV-Aware Gateways):
flowchart TD
Client["Enterprise Apps / Coding Agents / Batch Pipelines\n(Unified OpenAI v1 API)"] --> GW["Unified Heterogeneous AI Gateway\n(GPUStack / Envoy Inference Gateway: SLO Tiering + Prefix Affinity)"]
GW -->|"1. Ultra-Low TTFT / Native FP8 Flagships\n(Interactive Coding & Speculative EAGLE-3)"| PoolNV["NVIDIA H800 / H20 Pool\nEngine: vLLM V1 / SGLang (FP8 Tensor Core)"]
GW -->|"2. High-Throughput Mainstream & Sovereign Workloads\n(Cost-Optimal W8A8 Serving)"| PoolAscend["Huawei Ascend 910B / 910C Pool\nEngine: MindIE / vllm-ascend (W8A8 + ACLGraph + HCCL)"]
GW -->|"3. 64K-128K Long-Document & High-VRAM Sessions\n(96GB HBM2e Headroom per Card)"| PoolPPU["Alibaba T-Head Zhenwu PPU 810E Pool\nEngine: Optimized Serving Runtime (96GB HBM2e + 700GB/s ICN)"]
subgraph ControlPlane["Unified Artifact & Telemetry Governance"]
Reg["Multi-Variant Model Registry\nMaps logical model -> FP8 / msModelSlim-W8A8 / BF16 by node label"]
Mon["Normalized Prometheus Telemetry\nDCGM + npu-exporter + PPU metrics (TTFT / TPOT / KV Saturation)"]
end
Reg -.->|"Auto-mount architecture-matched weights"| PoolNV
Reg -.->|"Auto-mount architecture-matched weights"| PoolAscend
Reg -.->|"Auto-mount architecture-matched weights"| PoolPPU
PoolNV -.-> Mon
PoolAscend -.-> Mon
PoolPPU -.-> Mon
Three Golden Rules for Multi-Silicon Production Routing
- Multi-Variant Artifact Mapping Behind One Logical Model ID: Expose a single logical
modelname to applications while mounting hardware-matched checkpoints (FP8for H800/H20,msModelSlim W8A8for Ascend 910B,BF16 / W8A16for96 GBPPU 810E) via KubernetesnodeSelectorlabels. - Silicon-Strength Workload Placement:
- Route 64K–128K long-context document extraction and dense 72B workloads to Zhenwu
PPU 810Enodes (96 GB HBM2e+700 GB/sICN gives 50% more HBM per card than 64GB NPUs, doubling concurrent long-context KV slots); - Route high-volume conversational, RAG, and sovereign enterprise traffic to Ascend
910B / 910C(W8A8INT8 Cube throughput; for SuperPoD scale-up fabrics see Rack-Scale SuperPoD & Optical UnifiedBus Collectives); - Reserve NVIDIA
H800 / H20for bleeding-edge custom Triton/CUDA kernels and ultra-low-ITL EAGLE-3 speculative decoding.
- Route 64K–128K long-context document extraction and dense 72B workloads to Zhenwu
- Pool-Scoped Prefix Affinity with Overflow Spillover: Keep multi-turn session prefix hashing sticky within the same silicon pool until pool KV saturation exceeds
90%, preventing cross-pool ping-pong that invalidates warm KV caches on both sides.
Frequently Asked Questions (FAQ)
Q1: When should we choose `MindIE` vs. `vllm-ascend` on Huawei Ascend clusters?
Choose vllm-ascend when operational uniformity with NVIDIA vLLM fleets, day-0 HuggingFace model onboarding, and upstream Guided Decoding / OpenAI tool-calling parity are top priorities. Choose MindIE (MindIE LLM + MindIE Motor) when squeezing maximum C++ whole-graph (ATB) throughput and multi-node P/D disaggregation out of flagship models (like full-scale DeepSeek-V3/V4 or Qwen) on large Ascend clusters.
Q2: Why do the first few requests after container startup take 10–20 seconds on NPUs before latency drops to normal?
Aside from lazy weight page-ins, initial spikes almost always stem from dynamic-shape JIT operator compilation or first-time ACLGraph bucket capture. Disable unintended runtime JIT compilation where appropriate, enable static bucket warm-up at boot, and gate Kubernetes traffic behind a real inference startupProbe / readinessProbe so requests only arrive after ACLGraph capture completes.
Q3: Can we directly cast open-source `FP8` weights (e.g., DeepSeek-V3/V4) into `INT8` for accelerators without native FP8?
Never cast FP8 directly into uniform INT8 without recalibration! FP8 (E4M3) relies on non-linear floating-point exponents, whereas INT8 is a uniform linear grid. Always dequantize blockwise FP8 cleanly back to BF16 first, then run msModelSlim with AntiOutlier smoothing and act_method=3 dynamic per-token W8A8 calibration while preserving BF16 fallbacks on sensitive MLA / shared-expert projections.
Q4: What is the fastest way to debug `HCCL_E_PARA` or `HCCL connect timeout` on multi-node Ascend jobs?
Run a three-step check: first, execute hccn_tool -i $i -link -g across all 8 NPUs to verify every onboard RoCE optical transceiver is UP (host eth0 connectivity does NOT test NPU RoCE ports!); second, verify HCCL_IF_IP / ranktable bindings did not accidentally bind to the host management NIC; third, confirm HCCL_RDMA_TC and HCCL_RDMA_SL match the lossless PFC queues on your ToR switches (see Lossless RoCEv2 & PFC Debugging).