Deploying Ultra-Scale MoE Models on Two Ascend Servers: A Practical Guide
This article documents a practical deployment of an ultra-scale multimodal MoE model (roughly 2.8T total parameters, 104B activated) across two domestic accelerator servers with 32 dies and about 2TB of aggregate memory. It covers memory budgeting, image and weight pinning, cluster onboarding and the parameter network, weight distribution bottlenecks, the TP16 x PP2 parallel strategy, load test design and results, a troubleshooting checklist, and a reusable methodology for larger clusters.
Deploying Ultra-Scale MoE Models on Two Ascend Servers: A Practical Guide
1. Background and Problem Definition
There has long been an order-of-magnitude gap between the memory capacity of a single card and the weight footprint of ultra-scale models. A native multimodal MoE model with roughly 2.8T total parameters and about 104B activated parameters still produces weight files in the 1.4TB range even with 4-bit weights and 8-bit activations. Meanwhile, the mainstream domestic accelerator cards on the market offer 64GiB of memory per die. Any single-node approach is therefore out of the question; distributed inference across multiple dies and multiple nodes is mandatory.
The question this article addresses is not “will it run at all,” but three more engineering-oriented questions:
- How to organize 32 dies across two domestic accelerator servers into a single logically unified inference instance.
- How to choose a combination of tensor parallelism (TP) and pipeline parallelism (PP) under constrained cross-node bandwidth.
- How to use a load test of limited length to determine whether the deployment is genuinely usable for long-context and tool-calling scenarios.
2. Hardware and Software Stack Planning
2.1 Resource Inventory
The typical configuration is two domestic accelerator servers, each with 16 dies and 64GiB of memory per die, for a total of 32 dies and roughly 2TB of memory. Dies within a node communicate over a high-bandwidth interconnect (an HCCS-class bus), while cross-node traffic rides the parameter network.
The memory budget has to be worked out in advance. Splitting 1.47TB of weights across 32 dies leaves about 46GB resident per die; the remaining space must accommodate the KV cache, communication buffers, activations, and framework overhead. In long-context scenarios the KV cache is the main variable, so enough headroom must be reserved — otherwise concurrency will trigger preemption or OOM as soon as it ramps up.
2.2 Image and Weight Consistency
The most mysterious failures in distributed inference usually come from version drift. The practice here is to pin twice:
- Pin the image by digest rather than using a mutable tag.
- Pin the weight revision, and record the shard count and total byte size for verification.
Illustrative verification logic:
# Verify shard count and total size to avoid load-time crashes from incomplete downloadsls model/*.safetensors | wc -l # expected: 346du -sb model/ # expected: 1466844769783 bytes
The inference image released alongside the model is typically already adapted to the operators and communication libraries of domestic accelerators. Preferring such images saves a great deal of operator adaptation and graph compilation troubleshooting.
3. Cluster Onboarding and the Parameter Network
3.1 Node Onboarding
On the platform side, a static single-binary server and agent architecture is used: the agent dials out to the server, and the control plane, monitoring, logs, and inference traffic all reuse the same tunnel. The benefit is that no inbound ports need to be opened specifically for domestic accelerator nodes, firewall policy stays simple, and as soon as a node comes online the console shows its NPU count, network interfaces, and storage.
The onboarding flow can be summarized as: generate an install command in the console → run it on the target machine → the platform automatically detects the 16 dies → the node enters the schedulable pool.
3.2 Parameter Network Semantics
Multi-node inference requires explicitly declaring which cards may communicate over the accelerator network. After adding both nodes’ HCCS to the same parameter network in the platform’s network module, the platform runs an inter-card connectivity check (bandwidth, RTT, topology affinity) and automatically filters candidate nodes by that network at deployment time. This prevents the scheduler from placing an instance on nodes that would have to communicate over plain Ethernet — a typical root cause of cross-node PP performance collapse.
4. Weight Distribution: An Underrated Deployment Bottleneck
Distributing 1.47TB of weights often dominates the overall delivery timeline. Comparing two paths:
| Distribution method | Measured throughput | Time for 1.47TB (approx.) |
|---|---|---|
| Public object storage download | 50–57 MB/s | Over 7.5 hours |
| Direct node-to-node transfer | ~490 MB/s | 50 minutes |
The conclusion is straightforward: download over the public network on the first node only, then use the platform’s “copy to…” capability to transfer directly between nodes, which speeds up the whole process by nearly 9x. Three further optimizations can be layered on: pipeline downloading and verification, pull shards with multiple threads, and place the weights in shared storage for both nodes to mount concurrently in read-only mode.
5. Parallel Strategy: Why TP16 x PP2
The final topology is TP16 within each node and PP2 across nodes, with a world size of 32.
The choice follows the distribution of communication volume. TP’s AllReduce is frequent and latency-sensitive, so it must be confined to the high-bandwidth domain (intra-node HCCS). PP only passes activations at stage boundaries, with small communication volume and higher latency tolerance, which makes it suitable for crossing nodes. Doing TP32 instead would make the cross-node AllReduce the immediate bottleneck.
Accompanying tuning points:
- Match micro-batch count to the number of pipeline stages to reduce pipeline bubbles.
- Disable unnecessary cross-stage synchronization points.
- Turn off symmetric memory and other optimizations that only matter for TP when configuring PP.
- Watch the memory watermark of each stage, and adjust the layer split if needed to balance load.
6. Load Test Design and Results
Three workloads were used, 836 requests in total, all successful:
| Scenario | Input/output | Validation target |
|---|---|---|
| Random short requests | 2048 / 512 | Baseline throughput and first-token latency |
| Agentic long context | 80K | KV cache capacity and long-sequence stability |
| Agentic ultra-long context | 200K | Memory ceiling, preemption behavior, long-range consistency |
The load test was initiated from the server side and reached the instance through the platform gateway, so what is measured is the real end-to-end path rather than a local loopback. Beyond success rate, TTFT, TPOT, throughput, peak memory, and the share of inter-die communication all need to be collected.
Beyond performance, three functional capabilities must be verified: context retention across multi-turn conversations, streaming output of the reasoning process (chain of thought), and parameter completeness plus result回填 for tool calls.
7. Common Failures and a Troubleshooting Checklist
- Crashes during loading: usually missing shards or a mismatched revision; verify the byte count first.
- Cross-node bandwidth collapse: check whether the instance landed in the same parameter network, and watch the share of time spent on PP communication.
- Long-context OOM: lower the maximum concurrency or context limit, and re-check the KV cache reservation.
- First-token latency jitter: check whether the graph compilation cache is being hit, and whether cold-start recompilation is occurring.
8. A Reusable Methodology
- Work out the memory budget first, then fix the parallel topology, then tune concurrency.
- Lock communication-intensive dimensions inside the node; let communication-sparse dimensions cross nodes.
- Pin both image and weights so delivery is reproducible.
- Prefer direct node-to-node transfer for weight distribution.
- Load tests must cover long context and tool calling; all-green short requests do not mean the deployment is usable.
Following this path, a two-node, 32-die domestic accelerator cluster can go from zero to stable service within a few hours, and provides a deployment pattern that transfers directly to larger clusters.
