Deploying Trillion-Parameter MoE Models on Two Ascend Nodes: A Practical Guide
This article walks through deploying a MoE model with roughly 2.8T total parameters across two nodes and 32 compute dies on Ascend accelerators. It covers capacity sizing for weights and KV Cache, node onboarding and topology checks, layered weight distribution, the TP16 x PP2 parallel strategy, a three-tier load testing design, and a troubleshooting order for common failures.
1. Background and Problem Definition
A single card’s memory can no longer hold the full weights of a trillion-parameter model, so multi-node, multi-card inference has shifted from an optional optimization to the only viable path. Once total parameters reach the trillion scale while activated parameters remain in the tens of billions, the engineering focus moves quickly from “can it run at all” to three more practical questions: how to distribute weights efficiently across nodes, how a parallel split should balance compute against communication, and whether the memory-versus-throughput tradeoff is sound under long context.
Deploying this class of model on domestic accelerators adds further constraints: software stack maturity, operator coverage, and the range of supported quantization formats. This article uses the scenario of “two nodes, 32 compute dies in total, a MoE model of roughly 2.8T total parameters” to lay out a reproducible deployment and load testing workflow, described throughout in terms of general engineering practice.
2. Model and Hardware Profile: Size First, Then Act
The defining trait of a MoE architecture is sparse activation: total parameter count determines the memory and storage the weights occupy, while activated parameter count determines the actual compute per token. A 1M-level context also means the KV Cache becomes the second-largest memory consumer, growing linearly with concurrency and sequence length.
Capacity planning before deployment should therefore cover at least three items:
- Weight footprint: roughly 1.47 TB after W4A8 quantization. Across 32 dies with 2048 GiB of aggregate memory, weights leave about 46 GiB per die, which is tight and must leave room for activations and temporary buffers.
- KV Cache footprint: estimated as layers x KV heads x head dimension x 2 x sequence length x concurrency x byte width. Under long context, this is often the primary reason load tests fail.
- Communication overhead: cross-node bandwidth is typically far lower than intra-node interconnect bandwidth, so the parallel strategy must keep high-frequency communication inside each node.
A schematic version of the sizing logic looks like this:
# Illustrative estimation logic only, not a specific product APIweight_per_die = total_weight_bytes / die_countkv_per_seq = 2 * layers * kv_heads * head_dim * seq_len * dtype_bytesmax_concurrency = (free_memory_per_die - weight_per_die) / kv_per_seq
3. Three Key Paths in Environment Setup
3.1 Node Onboarding and Topology Discovery
Multi-node inference platforms typically use a “control plane plus node agent” structure: the control plane is a static single binary, and the node-side agent initiates an outbound connection to it, with control commands, monitoring metrics, logs, and inference traffic all sharing the same tunnel. The benefit is that no inbound port has to be opened per machine, firewall policy stays simple, and nodes registering and leaving is highly automated. Onboarding only requires generating an install command in the console and running it on the target machine, after which the node registers itself with its accelerator count, NICs, and storage information.
3.2 Parameter Network and Connectivity Pre-check
Ascend multi-node scenarios carry compute communication over the accelerator network. The key step is placing all participating nodes into the same parameter network and having the platform run an inter-card connectivity check: whether links are reachable, whether bandwidth meets requirements, and whether the topology is symmetric. Skipping this step typically leaves the job hanging for a long time during initialization, or exiting with an obscure timeout error during collective communication. Selecting nodes automatically by parameter network during deployment avoids scheduling the job onto machines with a mismatched network.
3.3 Layered Weight Distribution
If every machine pulls 1.47 TB of weights over the public internet, download time becomes the bottleneck of the whole process. A better approach is “download once, transfer node to node”: download on the first node from a model repository source, then distribute to the second node using the platform’s node-to-node copy capability. In testing, public internet download ran at roughly 50-57 MB/s while node-to-node transfer reached roughly 490 MB/s, close to a tenfold difference. For multi-node deployment, weight distribution should be treated as an independent engineering step to optimize, not an incidental step in a deployment script.
It is also advisable to pin the weight version (revision or digest) so repeated experiments stay comparable; for quantized weights, verify that the shard count and total byte size are complete to avoid a load interruption caused by a few missing shards.
4. Parallel Strategy: The TP16 x PP2 Tradeoff
On a topology of 2 nodes with 16 dies each, the combination of intra-node TP16, cross-node PP2, and world size 32 rests on one core idea: keep the frequent AllReduce of tensor parallelism inside the node’s high-speed interconnect, and let cross-node links carry only the relatively infrequent activation passing of pipeline parallelism.
A comparison of the three options:
- Pure tensor parallelism across nodes: the most communication-intensive, cross-node bandwidth becomes the bottleneck very easily, generally not advisable.
- Pure pipeline parallelism: low communication volume but visible pipeline bubbles, higher single-request latency, and low utilization at small batch sizes.
- Intra-node TP plus cross-node PP (this article’s approach): balances communication locality with even memory distribution, a common starting point for two-node scenarios.
Two practical notes: first, pipeline depth and scheduling policy must work together so that enough micro-batches fill the pipeline; second, pin image and weight versions by digest to keep the environment reproducible and avoid the debugging black hole of “it ran yesterday and errors today.”
5. Load Testing Design: Three Workloads That Cover Real Behavior
A single QPS figure cannot reflect real behavior under long context and tool calling, so three workloads are worth designing along a gradient:
- Short input, short output (e.g., 2048/512): establishes the baseline for throughput and first-token latency.
- Medium-long context agentic workload (around 80K): validates stability and memory watermark as the KV Cache grows.
- Very long context agentic workload (around 200K): pushes toward the memory ceiling to observe whether preemption, recomputation, or request failures occur.
Where the load originates also matters: driving it from a separate load generator through the platform gateway into the instance covers the real overhead of gateway forwarding and the scheduling path, which is closer to production than self-testing inside the instance. Beyond success rate, metrics should record at least the first-token latency distribution, end-to-end latency percentiles, peak per-card memory, and inter-node link utilization.
In this validation, all 836 requests across the three workloads succeeded, with conversation, reasoning output, and the tool calling path all working normally, indicating that a templated deployment path is now usable for multi-node scenarios on domestic cards.
6. Common Failures and Troubleshooting Order
- Long hang during initialization: check parameter network connectivity and topology symmetry first.
- Failure during the load stage: verify weight shard count, total byte size, and version digest.
- Long-context request failures: watch peak memory and assess whether maximum concurrency or per-request context length needs to be reduced.
- Throughput well below expectations: check cross-node link utilization and judge whether the parallel split matches the physical topology.
- Non-reproducible results from environment drift: pin the image digest and weight revision, and record them in a change log.
7. Conclusion
Whether a trillion-scale MoE model can be deployed on two nodes and 32 dies depends on three things working together: the efficiency of weight distribution, how well the parallel strategy matches the physical topology, and how thoroughly the load testing covers real workloads. Making node onboarding, parameter networks, weight versions, and image digests into standardized, reproducible steps, then pairing them with gradient load testing and a clear troubleshooting order, turns large-model inference on domestic accelerators from occasional success into stable delivery.
