Deploying Trillion-Parameter MoE Models on Ascend NPUs: A Two-Node Practical Guide
This article walks through a reproducible two-node deployment of a trillion-parameter Mixture-of-Experts (MoE) model on Ascend NPUs. It covers capacity and communication constraints, hardware and software stack planning, a four-step deployment workflow, a three-tier load testing design, and common troubleshooting and tuning practices for stable long-context inference.
1. Why Trillion-Parameter MoE Is Hard to Deploy
Over the past year, trillion-parameter Mixture-of-Experts (MoE) models have become a primary choice for general-purpose inference and AI agent workloads. The model discussed here has roughly 2.8T total parameters, about 104B activated parameters per token, native multimodality, and a context length of up to 1M tokens. The engineering challenge is not simply whether it runs, but three conditions that must hold at the same time: memory capacity, communication efficiency, and long-context stability.
Start with capacity. Under a low-bit quantization scheme such as W4A8, the weights can be compressed to about 1.47 TB. That number makes a single node impossible; the model must be sharded across nodes. Next, activation sparsity: 104B activated parameters keep the compute demand per request manageable, but the All-to-All communication introduced by expert routing becomes the main bottleneck. Finally, long context: agent workloads at 80K or even 200K tokens make the KV Cache and request scheduling the deciding factors for throughput.
In practice, deploying on domestic accelerators is a combined problem of resource topology, parallelism strategy, and benchmarking methodology.
2. Hardware and Software Stack Planning
A reproducible two-node setup starts with a clear statement of resources:
- Nodes: 2 domestic accelerator servers, each with 16 dies at 64 GiB per die, for 32 dies and roughly 2 TiB of total memory.
- Interconnect: intra-node die-to-die high-speed interconnect; inter-node compute communication carried by a high-speed cache-coherent interconnect, with the parameter plane separated from the business plane.
- Parallelism: 16-way tensor parallelism within a node, 2-stage pipeline parallelism across nodes, world size 32.
- Weights: the community-published W4A8 quantized version, about 346 shard files totaling 1,466,844,769,783 bytes, pinned to a fixed revision for reproducibility.
- Runtime: the official inference image released with the model, with the image digest pinned at the orchestration layer to avoid “same name, different version.”
The most important point here is version pinning. Most reproducibility problems in LLM inference come from drift in the weight revision and the image digest. Fixing both at once is the prerequisite for any performance data that follows to be meaningful.
3. Deployment Workflow: Four Steps
Step 1: Onboard the Nodes
In the console, go to “Compute Nodes → Add Node” to generate an installation command, then run it on the target machine. The platform automatically detects 16 dies per node and reports accelerator, NIC, and storage information. The control plane and data plane reuse the same outbound tunnel initiated by the node, so no inbound ports need to be opened specifically for domestic cards. This is especially convenient in isolated networks and private network environments.
Step 2: Configure the Parameter Network
Multi-node inference requires an explicitly declared parameter-plane network. After adding the die-to-die interconnects of both nodes to the same parameter network, the platform first runs an inter-card connectivity check, then selects nodes according to that network at deployment time. The typical result of skipping this step: the scheduler places the instance on a node combination with a mismatched topology, and performance is cut in half.
Step 3: Distribute and Verify the Weights
The recommended path is “download once over the public network + one direct node-to-node transfer.” In measured terms, public network pulls run at about 50–57 MB/s, while direct node-to-node transfer reaches about 490 MB/s, nearly a tenfold difference. For 1.47 TB of weights, the two approaches differ by tens of minutes. Verifying the digest of each file after download is key to avoiding a load failure halfway through.
# Example: distribution and verification flow1) Node A: pull weights by the fixed revision2) Verify: compare digests shard by shard; count files and total bytes3) Node B: receive via direct transfer from Node A, reusing the same directory layout4) Deploy: declare the parameter network + parallel sharding + image digest
Step 4: Launch the Instance
Choose an inference template and click deploy; the platform brings up a 32-die instance with TP16 × PP2. The parallelism tradeoff is worth expanding on: tensor parallelism inside a node takes advantage of the high bandwidth of the die-to-die interconnect, while pipeline parallelism across nodes reduces cross-node communication to a small amount of activation passing at layer-segment boundaries. Reversing this, with tensor parallelism across nodes, would let All-Reduce be dragged down directly by inter-node bandwidth.
4. Load Testing Design: Three Workload Tiers for Real Scenarios
Measuring only average latency is not meaningful. A three-tier design is recommended: short-request throughput, long-context agent, and ultra-long context.
| Tier | Input/Output | Requests | Focus |
|---|---|---|---|
| Random | 2048 / 512 | Hundreds | Baseline throughput, time to first token |
| Agent | ~80K | Hundreds | KV Cache growth, scheduling policy |
| Ultra-long | ~200K | Hundreds | Memory watermark, long-sequence stability |
All 836 requests across the three tiers succeeded, covering three response forms: conversation, chain-of-thought reasoning traces, and tool calls. The load generator sits on the service side and forwards requests to the instance through the platform gateway, matching the real business path and avoiding the trap where “beautiful numbers from directly hitting the instance collapse on launch.”
Three criteria are worth using: whether the success rate is 100%; whether the long-context tier leaves a safe memory margin; and whether tool calls and structured output remain stably parseable.
5. Common Issues and Tuning Advice
- Load failure: first check whether the weight revision, shard count, and total bytes match.
- Performance below expectations: confirm the parameter network is in use and that tensor parallelism does not cross nodes.
- Long-context overflow: moderately reduce the concurrency batch, or set up a separate pool for long sequences.
- Hard to reproduce: pin the image digest and weight version, and record the parallel sharding and network topology.
6. Summary
Running trillion-parameter MoE on domestic accelerators depends not on single-point peak performance but on topology alignment, version pinning, efficient distribution, and benchmarking close to real workloads. Following the four-step workflow above, a two-node 32-die setup is enough to go from zero to usable.
