Deploying Trillion-Parameter MoE Models on Two Ascend Nodes: A Practical Guide
This article walks through a real-world deployment of a trillion-parameter multimodal MoE model across two domestic accelerator servers with 32 dies in total. It explains why a TP16 x PP2 parallel strategy aligns with the physical topology, how to prepare the environment in three steps, what layered validation and stress testing look like, and which tuning practices help with cross-node bandwidth, long-context memory pressure, and cold starts. Readers will find a reusable methodology for deploying and benchmarking large models on domestic accelerator platforms.
Deploying Trillion-Parameter MoE Models on Two Ascend Nodes: A Practical Guide
1. Background and Problem Definition
The gap between the memory capacity of a single card and the parameter count of trillion-scale models means that deploying ultra-large MoE (Mixture of Experts) models requires multi-card, multi-node coordination. Take a native multimodal MoE with roughly 2.8T total parameters, about 104B activated parameters, and a context length of up to 1M tokens: even with W4A8 quantization (4-bit weights, 8-bit activations), the weights still occupy around 1.47TB, far exceeding the combined 1TB of memory across 16 dies per machine at 64GiB each. A deployment plan therefore has to solve three problems at once: how to partition memory, how to carry cross-node communication, and how to organize ultra-long-context stress tests.
This article uses two domestic accelerator servers (16 dies each, 32 dies in total) as the test environment and documents a complete real-machine validation. The focus is not on any single product, but on a methodology for deploying and stress-testing large models on domestic accelerator platforms.
2. Overall Architecture and Parallel Strategy
2.1 Why TP16 x PP2
There are several ways to organize 32 compute units, each with its own trade-offs:
- Pure tensor parallelism (TP32): layers are split too finely, communication frequency is highest, and cross-node bandwidth pressure is greatest;
- Pure pipeline parallelism (PP32): the pipeline bubble ratio increases, and throughput utilization for long-sequence inference drops;
- Intra-node TP plus cross-node PP: high-frequency, high-volume communication stays inside the node’s high-speed interconnect domain, while cross-node links only carry coarser-grained activation passing.
The final choice is TP16 per node, PP2 across nodes, and a world size of 32. The point is to align communication characteristics with the physical topology. Inside a node, collective communication between cards runs over the high-bandwidth accelerator interconnect; between nodes, the high-speed interconnect links carry pipeline stage transfers. This principle generalizes: decide how to split parallel dimensions based on topology first, then consider load balancing.
2.2 Parameter Network and Connectivity Checks
Multi-node setups on domestic accelerator cards typically use a dedicated accelerator network rather than the general-purpose network. The practical approach is to first add the accelerator NICs of both nodes to the same parameter network on the platform side, let the platform run inter-card connectivity checks, and then let deployment select nodes automatically based on that network. Skipping the connectivity check and launching directly is a common cause of random timeouts during long-context stress tests.
3. Three Steps to Prepare the Environment
3.1 Node Onboarding
Simplifying the control plane and data plane is key to efficiency. The ideal onboarding flow is: the console generates a single install command; after running it on the target machine, the node comes online automatically with its accelerator card count, NIC, and storage information; control, monitoring, logging, and inference traffic all reuse the same encrypted tunnel, with the node initiating outbound connections to the control end, so no inbound ports need to be opened per node. Onboarding for domestic cards follows the same flow as for general-purpose accelerators, which significantly lowers the operational cost of managing multiple heterogeneous resource pools.
3.2 Obtaining Weights and Distributing Them Across Nodes
If both nodes download the 1.47TB of weights over the public internet at 50-57MB/s, it takes several hours. Instead, download on the first node and then use the platform’s inter-node copy capability to transfer directly; measured throughput was about 490MB/s, cutting the time by nearly an order of magnitude. The general best practice: distribute large model weights with “one public download plus internal fan-out,” and keep resumable transfer and checksum verification.
3.3 Pinning Versions
Reproducibility in production comes down to pinning versions: on the model side, fix the weight revision and shard count (for example, 346 shards with the total byte count recorded precisely); on the image side, pin to a digest rather than only a tag. Example configuration:
model:source: model_hubrevision: <pin-by-revision>shards: 346total_bytes: 1466844769783runtime:image_digest: sha256:<pinned-digest>parallel:tp: 16pp: 2world_size: 32
4. Deployment and Validation Checklist
After launching an instance, do not just check whether the process is alive. Run layered validation:
- Availability: does a single-turn conversation return normally;
- Inference process: are chain-of-thought/reasoning content fields complete and untruncated;
- Tool calling: are structured calls parsed correctly and results filled back in;
- Long context: ramp up gradually from short 2K/512 requests to 80K and 200K agentic long contexts.
5. Stress Test Design and Reading the Results
This round covered three scenarios: random 2048/512, agentic 80K, and agentic 200K, with all 836 requests succeeding. Three aspects of the design are worth reusing:
- Layered scenarios: short input and short output measure baseline throughput and time to first token; long context measures memory and cache management; agentic scenarios measure stability under multi-turn tool calling;
- Consistent metric definitions: success rate, time to first token, time per token, and throughput should all be collected at the same gateway location, avoiding mixed definitions between client and gateway;
- Attribute every failure: any non-200 response should be traced back to a specific stage (queueing, prefill, decode, tool parsing) rather than being lumped together as a “timeout.”
Note that the figures above come from real-machine runs with a specific hardware and quantization configuration and are not a general performance commitment. Results vary widely across model sizes, quantization formats, and parallel splits, so readers should re-test in their own environments.
6. Common Issues and Tuning Tips
- Cross-node bandwidth becomes the bottleneck: raise the intra-node TP share first to reduce cross-node collective communication;
- Long-context memory is tight: combine paged attention cache management, and control concurrency batch size and maximum sequence length;
- Slow cold starts: use internal weight fan-out plus local image pre-warming, and avoid all nodes saturating storage bandwidth at the same time;
- Missing observability: unify where logs, metrics, and traces are collected, and make sure the control plane and inference plane share one time baseline.
7. Conclusion
Running a trillion-scale MoE on two nodes with 32 dies has been proven feasible on real hardware. The reusable lessons are not any specific numbers, but three principles: parallel strategy follows the physical topology, versions and weights stay pinnable throughout, and stress tests are layered by scenario with failures attributed to specific stages. Bake these three into deployment templates, and large model engineering on domestic accelerator platforms can move from “it runs” to “it runs well, repeatedly.”
