Deploying Ultra-Scale MoE Models on Two Ascend Nodes: A Practical Guide
This article presents a reproducible methodology for deploying an ultra-scale Mixture-of-Experts (MoE) model across two domestic accelerator servers. It covers parallel strategy design, static memory budgeting, environment setup, weight distribution, service startup, load testing, observability, and common pitfalls. The baseline configuration uses 32 compute dies with 64 GiB each to host a 2.8T-parameter model, offering direct reference value for large-scale model deployment on any domestic accelerator cluster.
1. Background and Problem Definition
The real challenge of deploying ultra-scale Mixture-of-Experts (MoE) models is no longer whether they can run at all, but how to balance memory, bandwidth, parallel partitioning, and long-context throughput simultaneously within limited whole-machine and whole-rack resources. Take a native multimodal MoE with 2.8T total parameters, roughly 104B activated parameters, and a context length of up to 1M tokens as an example. Even after W4A8 quantization, the weights still occupy around 1.47 TB. A single node clearly cannot hold them, so multi-node, multi-card coordination is mandatory.
This article uses a typical configuration as the baseline: two domestic accelerator servers, each with 16 compute dies and 64 GiB per die. It provides a reproducible deployment and stress-testing methodology. No vendor-specific products are involved; only general engineering practices are discussed.
2. Overall Architecture Design
2.1 Parallel Strategy: TP Inside Nodes, PP Across Nodes
The general principle for ultra-large model deployment is to keep tensor parallelism (TP), which has the heaviest communication volume, inside the node’s high-bandwidth domain, and let pipeline parallelism (PP), which has lighter communication but lower latency sensitivity, cross nodes. Accordingly, this design uses TP16 per node, PP2 across nodes, and a world size of 32, forming a single instance of 32 compute units.
Node A: die 0..15 -> TP rank 0..15 (Stage 0)Node B: die 0..15 -> TP rank 0..15 (Stage 1)Across nodes: PP with 2 stages, only passing activations at stage boundaries
The benefit is that intra-node interconnects handle high-density collective communication such as AllReduce and AllGather, while inter-node links only carry activation transfers during pipeline bubbles. This significantly reduces the bandwidth requirement on inter-node links.
2.2 Memory Budget Calculation
A static budget must be calculated before deployment to avoid “running out of memory halfway through loading”:
- Weights: 1.47 TB / 32 dies ≈ 46 GiB/die (each stage actually holds less after PP partitioning);
- KV Cache: proportional to
context length × concurrency × number of layers × number of KV heads, and the main variable in long-context scenarios; - Activations and temporary buffers: related to batch size, sequence length, and expert routing distribution, so headroom must be reserved;
- Conclusion: the 64 GiB/die specification can support this quantization level, but the KV Cache upper limit must be reduced under long-context, high-concurrency conditions.
2.3 Weight Source and Integrity Verification
Quantized weights come from public community channels. When deploying, pin a specific version rather than following latest:
# Example: verify the shard count and total bytes first, then loadls model/*.safetensors | wc -l # expected 346du -b model # expected 1466844769783 bytes
Pinning the revision and recording the shard count and total bytes is the first-hand basis for subsequent reproduction and troubleshooting.
3. Environment Preparation in Three Steps
Step 1: Node Onboarding
Generate an installation command under “Compute Nodes → Add Node” in the console and run it on the target machine to bring the node online. The platform automatically reports the number of accelerator cards, network cards, and storage information. The onboarding process for domestic cards should be exactly the same as for mainstream accelerators, so that two separate operations and maintenance systems do not have to be maintained for different hardware.
Step 2: Build a Parameter Network
Multi-node inference must explicitly declare “which cards can communicate over the accelerator network.” Add the inter-card interconnects of the two nodes to the same parameter network under “Network.” The platform performs connectivity checks (bandwidth, link status, topology consistency) and automatically selects nodes according to this network during deployment, avoiding combinations scheduled onto slow inter-node links.
Step 3: Weight Distribution
This is the long-tail step whose time cost is most easily underestimated. Downloading the same 1.47 TB of weights over the public internet takes about 50–57 MB/s, while direct node-to-node transfer can reach about 490 MB/s, nearly a tenfold difference. Therefore, “download once + copy between nodes” is recommended:
Public internet/object storage -> Node A (about 1.47 TB)Node A -> Node B (intranet direct transfer, ~490 MB/s)
For multi-node clusters, this strategy can compress overall preparation time from hours to minutes and naturally avoids shard corruption caused by public internet fluctuations.
4. Service Startup and Inference Serving
The image should be pinned by digest rather than tag, ensuring the runtime pulled at different times and on different nodes is exactly the same:
registry/xxx-runtime@sha256:e7c6...96b7
Only three categories of key parameters are needed at startup: parallelism (TP/PP/world size), memory and KV Cache limits, and the model path and quantization configuration. After the platform builds tiers as templates, the operation flow converges to “select a template → click deploy.” Nodes automatically form a network according to the parameter network, and initialization of the 32-unit instance completes in minutes.
5. Stress Test Plan and Results
Stress test traffic enters the instance through the platform gateway from the client side, covering three types of workloads:
| Scenario | Input/Output | Requests | Result |
|---|---|---|---|
| Random short sequences | 2048 / 512 | Hundreds | All succeeded |
| Agentic long context | 80K | Hundreds | All succeeded |
| Agentic ultra-long context | 200K | Hundreds | All succeeded |
All 836 requests across the three groups succeeded, and all three paths—conversation, chain of thought, and tool calls—worked normally. The key conclusion here is not peak throughput, but there were no silent failures under mixed long-context and tool-call workloads. MoE expert routing is prone to load skew on ultra-long sequences, and only real mixed traffic can expose it.
6. Observability and Stability
At least four categories of metrics should be collected: memory usage and fragmentation per die, intra-node/inter-node link utilization, expert load distribution per step, and request-level TTFT and TPOT percentiles. When P99 rises at the 200K context level, prioritize investigating the KV Cache limit and pipeline bubbles rather than blindly adding cards.
7. Common Pitfalls Checklist
- Following
latestweights changes the shard count and causes loading failures; - Not joining the parameter network, so inter-node traffic uses regular links and bandwidth drops sharply;
- Downloading weights node by node over the public internet, making preparation time uncontrollable;
- Setting the KV Cache too large, triggering OOM under long-context, high-concurrency conditions;
- Using a tag instead of a digest for the image, making environment drift hard to reproduce.
8. Conclusion
Running a 2.8T-class MoE on 32 units across two nodes is essentially solving four constraints—memory, bandwidth, parallelism, and context—simultaneously. Pinning versions, using an explicit parameter network, distributing weights over the intranet, adopting hybrid parallel partitioning, and validating with mixed real traffic—this workflow has direct reference value for deploying ultra-large models on any domestic accelerator cluster.
