Deploying a Trillion-Parameter MoE Model on Two Ascend Servers: A Practical Guide
This article walks through deploying a native multimodal Mixture-of-Experts (MoE) model with roughly 2.8 trillion total parameters across two domestic Ascend accelerator servers, 32 compute dies in total. It covers environment baselining, node onboarding, network orchestration, distributing 1.47 TB of W4A8 weights, the TP16 x PP2 parallel strategy, functional validation, layered load testing, and troubleshooting, offering a reproducible methodology for large-scale MoE inference on domestic compute.
Deploying a Trillion-Parameter MoE Model 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-large-scale models. Take a native multimodal Mixture-of-Experts (MoE) model with roughly 2.8 trillion total parameters and about 104 billion activated parameters: even with W4A8 quantization, its weights still occupy around 1.47 TB. Meanwhile, a domestic accelerator card with 16 compute dies per node and 64 GiB per die gives a full node 1024 GiB of usable memory. No single-node approach can hold the complete weights, so a multi-node distributed route is mandatory.
The problem this article addresses is how to bring up a trillion-parameter MoE instance on two domestic Ascend accelerator servers in an engineering, reproducible way, and then validate its correctness, stability, and long-context capacity with real requests. Rather than discussing the capabilities of a specific platform, the focus is a general, transferable methodology: node onboarding, network orchestration, weight distribution, parallel partitioning, image pinning, and layered load testing.
It is worth stressing that deploying an MoE architecture is fundamentally different from deploying a dense model. A dense model’s memory footprint scales linearly with parameter count, and its partitioning strategy is relatively intuitive. MoE models, by contrast, have a huge number of expert layers, routing introduces irregular communication patterns, and combining expert parallelism with tensor parallelism significantly reshapes the communication volume distribution. The choice of parallel strategy is therefore not a matter of “just make it run”; it is a key variable that directly determines the throughput and latency ceiling.
2. Hardware/Software Baseline and Environment Planning
A reproducible deployment starts with pinning down every environment variable. Plan the baseline as follows:
| Item | Configuration |
|---|---|
| Compute nodes | 2 domestic Ascend accelerator servers, 16 dies each (64 GiB per die), 32 dies total |
| Intra-node interconnect | High-bandwidth inter-card fabric carrying tensor-parallel AllReduce/ReduceScatter |
| Inter-node interconnect | High-speed compute network carrying point-to-point transfers for pipeline parallelism |
| Parallel strategy | Intra-node TP=16, cross-node PP=2, world size=32 |
| Weights | W4A8 quantized version, about 1.47 TB, 346 shards |
| Runtime image | Official inference runtime image released with the model, pinned by digest |
| Load-test origin | Load-test client, forwarded to the instance through the platform gateway |
Three points must go on the checklist.
First, the image must be pinned by digest, not by tag. A runtime image tag can be overwritten, so the same tag pulled at different times may resolve to different content. This is the most common root cause of failed reproduction. In practice it should look like:
# Bad: mutable tag, not reproducibleruntime-image: inference-runtime:latest# Good: immutable digest, reproducibleruntime-image: inference-runtime@sha256:e7c67329...96b7
Second, record the weight revision and byte count. Only by verifying shard count, total bytes, and revision number together can you confirm after transfer that nothing was truncated or missing. The number 1,466,844,769,783 bytes is itself a verification stamp.
Third, distinguish the two network planes. The intra-node inter-card fabric handles high-frequency, high-bandwidth tensor-parallel communication, while the inter-node network handles adjacent-stage transfers for pipeline parallelism. Conflating the two wastes a great deal of time during fault localization.
3. Node Onboarding: Bringing Heterogeneous Compute Online Uniformly
The first hurdle for a heterogeneous cluster is onboarding. The ideal form is a static single binary for both the control plane and the node agent, with the agent initiating an outbound connection to the control plane, and the control, monitoring, and log streams sharing the same tunnel as the inference data path. This design yields three direct benefits:
- No inbound public access: nodes can come online behind a firewall without opening management ports;
- Uniform onboarding: domestic accelerator nodes and general-purpose GPU nodes follow exactly the same onboarding flow, where the console generates an install command to run on the machine;
- Automatic asset discovery: when a node comes online it automatically reports accelerator count, NICs, and storage, from which the platform builds a schedulable resource view.
After running the install command, the platform should automatically detect the 16 dies on each machine and present them in the node details as 16 independently allocatable units. The accuracy of this step directly determines whether the parallelism can be fully enabled later. If only 8 dies are detected, TP=16 simply cannot hold.
4. Parameter Network Orchestration and Connectivity Pre-checks
Most multi-node inference failures are not model problems but network problems. When building the parameter network, therefore:
- Add the inter-card fabric devices of both nodes to the same parameter network;
- Have the platform run an inter-card connectivity check that validates bandwidth and reachability pair by pair;
- During deployment, let the network automatically select qualifying nodes, avoiding affinity errors from manual assignment.
The value of the connectivity pre-check is moving uncertainty forward. In a thousand-card cluster, one degraded link may cut overall throughput by only 10% without raising an error, yet it can completely distort load-test conclusions. Surfacing problems at the pre-check stage costs far less than investigating them after go-live.
5. Weight Distribution: Minimizing the Cost of Moving 1.47 TB
Weight distribution is the most underestimated step in a two-node deployment. Downloading 1.47 TB over the public internet at 50-57 MB/s takes roughly 7 to 8 hours, whereas direct node-to-node transfer at about 490 MB/s moves the same volume in about 50 minutes, nearly a ninefold difference.
The recommended approach is a two-phase “download once, replicate between nodes” strategy:
- Phase one: select the target source in the model repository and download the weights to the first node;
- Phase two: use the platform’s inter-node replication capability to transfer directly from the first node to the second, bypassing the public internet entirely.
Three engineering points matter here. First, replication should support resumable transfer and shard-level verification, so you do not discover a corrupted shard only after an 8-hour download. Second, the weight path, revision, and shard count must match on both nodes, otherwise distributed loading will hit mismatched metadata across ranks. Third, if shared or object storage is used as a relay, confirm that bandwidth does not become a new bottleneck; object storage suits long-term archiving and reuse across nodes, while direct local-disk transfer suits a one-off two-node scenario.
6. Parallel Strategy: The Logic Behind TP16 x PP2
With a world size of 32, the partitioning is not unique, but under a two-node topology TP16 x PP2 is the most natural choice because the communication characteristics align with the physical topology:
- TP=16 stays inside the node: tensor parallelism performs an AllReduce at every layer, which is frequent and latency-sensitive and must be confined to the high-bandwidth inter-card fabric;
- PP=2 spans the nodes: pipeline parallelism only does point-to-point transfers at stage boundaries, with small volume and low frequency that inter-node bandwidth can easily carry;
- Expert-layer handling: the expert dimension of MoE can be partitioned within the TP group and locally aggregated according to routing results, reducing irregular cross-node traffic.
Reversing this to TP=2 x PP=16 would generate large amounts of fine-grained tensor communication across nodes, with latency amplified by the network; pure TP=32 would force AllReduce across nodes, worsening both bandwidth and latency. This reasoning generalizes into a rule: place the parallel dimension with high communication frequency inside the highest-bandwidth domain, and only allow low-frequency dimensions to cross the boundary.
For the launch parameters, ensure the product of the parallel degrees equals the world size, and explicitly specify the parameter network and weight path, as illustrated below:
run-inference \--model-path /models/moe-w4a8 \--tensor-parallel-size 16 \--pipeline-parallel-size 2 \--quantization w4a8 \--max-model-len 262144 \--trust-remote-code
--max-model-len must be sized jointly with the memory budget: context length directly determines KV Cache usage, and in long-context scenarios the KV Cache may hit the memory ceiling before the weights do.
7. Functional Validation: Correctness First, Performance Later
Functional closure must be completed before load testing, validating four capabilities:
- Single-turn dialogue: confirm that token output is coherent and free of garbled text, and that quantization has not broken numerical stability;
- Reasoning-process output: no truncation or repetition under long chain-of-thought scenarios;
- Tool calling: structured output is parsed correctly, with complete function names and arguments;
- Multimodal input: mixed image-and-text input runs without errors and modality alignment is correct.
The purpose of this step is to establish a correctness baseline. If functionality does not pass, every subsequent performance number is meaningless.
8. Layered Load-Test Design and Result Interpretation
Use three workloads covering real scenarios: short requests at high concurrency, long context, and agentic multi-turn:
| Scenario | Input/Output | Requests | Focus |
|---|---|---|---|
| Random short sequences | 2048 / 512 | Hundreds | Peak throughput, scheduling efficiency |
| Long context A | Agentic 80K | Dozens | KV Cache management, memory watermark |
| Long context B | Agentic 200K | Dozens | Stability at the context limit |
In this validation, all 836 requests across the three groups succeeded, with no failures and no timeout interruptions. Three points matter when interpreting the data:
- Success rate comes before throughput. Once a long-context scenario hits OOM or a timeout, no throughput number is usable;
- Look at time-to-first-token and decode throughput separately. Under long inputs the prefill stage is compute-intensive, so time-to-first-token is driven mainly by compute and parallel efficiency, while the decode stage is affected by memory bandwidth and KV Cache read volume;
- Cross-scan concurrency and context length. Fixing concurrency while testing only long context underestimates memory pressure, and fixing short sequences while testing only high concurrency masks long-context bottlenecks.
9. Common Failures and Troubleshooting Order
- Instance fails to start: first check whether the world size matches the product of the parallel degrees, then check whether the parameter network includes all nodes;
- Stuck during loading: verify the weight revision, shard count, and total bytes on both nodes;
- Long-context OOM: lower
--max-model-lenor adjust KV Cache precision and block size; - Throughput well below expectations: run the inter-card connectivity check and investigate link degradation and topology affinity;
- Non-reproducible results: confirm the image is pinned by digest, the weight version matches, and sampling parameters are fixed.
10. Summary
Running a trillion-parameter MoE on 32 dies across two nodes comes down not to any single trick but to four engineering disciplines: pin the entire environment (digest, revision, byte count), layer the network planes (high bandwidth inside the node, low frequency across nodes), cut weight-distribution cost (download once plus direct node-to-node transfer), and design layered load tests (a functional baseline plus three cross-validated workloads). Turn these four items into a checklist, and ultra-large-scale model deployment on domestic compute shifts from occasional success to stable reproducibility.
