Deploying Trillion-Parameter MoE Models on Two Ascend Nodes: A Practical Guide
This article walks through a real deployment of a trillion-scale multimodal MoE model across two Ascend 910C nodes, covering hardware and software preparation, W4A8 quantized weights, a template-based deployment flow, the reasoning behind a TP16 × PP2 parallel layout, load-test design and results, and troubleshooting tips for common issues such as load failures, long-context OOM, and unexpected throughput. Readers will get a reusable methodology for aligning memory, bandwidth, and parallel topology on domestic accelerators.
1. Background and Problem Definition
Deploying ultra-large mixture-of-experts (MoE) models is shifting from “can it run on a single card?” to “how do we run it stably and economically across multiple nodes?” Take a model with 2.8T total parameters, roughly 104B activated parameters, native multimodality, and a context length of up to 1M tokens. Both its weight footprint and its KV Cache demand far exceed what a single machine can hold, so multi-node coordination is mandatory.
Running this kind of workload on domestic accelerators means answering three questions at once: whether memory and bandwidth are sufficient, whether the parallel partitioning matches the model structure, and whether the service stays stable under long context and high concurrency. Using a domestic-card inference template built into a cloud platform as the example, this article explains how the setup was validated on real hardware across two Ascend 910C nodes and lays out a methodology that can be reused.
Note that all figures here come from a single real-hardware validation run. They reflect observations in that environment only and are not a general performance commitment.
2. Hardware and Software Stack Preparation
2.1 Nodes and Interconnect
Two nodes, eight accelerators per node, sixteen physical cards in total. Because each chip contains multiple compute dies, the setup can logically form 32 dies for parallel execution, which is where the “32-die instance” terminology comes from. The critical factor in multi-node deployment is not peak compute but whether inter-node bandwidth and topology are well organized: if cross-node traffic runs over a low-bandwidth link, the AllReduce in tensor parallelism quickly becomes the bottleneck.
2.2 Weights and Image
On the Ascend side, the deployment uses W4A8 quantized weights published by the community, roughly 1.47 TB in size. Compared with the original BF16 weights, quantization compresses memory usage into a deployable range while retaining acceptable accuracy. The inference image uses the official inference framework version released alongside the model, avoiding operator mismatches caused by assembling dependencies manually.
One general lesson applies here: images and weights should be managed as a pair. Model structure, quantization format, and operator implementation are tightly coupled, and mixing sources easily leads to load failures or numerical anomalies.
3. Deployment Flow: From Template to Instance
The overall path can be summarized as “pick a template, set parameters, click deploy, verify results.”
- Select the matching domestic-card tier in the cloud platform’s inference template; the template already includes defaults for parallelism, memory ratio, ports, and environment variables.
- Confirm the node pool resources and image version, then pull the weights from object storage into a local cache directory.
- Submit the deployment, and the platform brings up a 32-die instance with TP16 × PP2.
- Once the instance is ready, first validate a single-turn conversation with reasoning output echoed back, then validate the tool-calling path.
Illustrative startup parameters (structure only, not a specific interface):
# Tensor parallelism 16, pipeline parallelism 2, 32 parallel units in totalserve <model_path> \--quantization w4a8 \--tensor-parallel-size 16 \--pipeline-parallel-size 2 \--max-model-len 262144 \--gpu-memory-utilization 0.90
On the parameters: --max-model-len sets the context limit a single request can carry and directly affects how much KV Cache must be reserved. Setting --gpu-memory-utilization too high squeezes the scheduling headroom, which makes preemption and recomputation likely under concurrent long-context load.
4. Why TP16 × PP2
Tensor parallelism (TP) splits a single layer’s weights and computation across cards. It is communication-heavy and bandwidth-sensitive, so it belongs inside the high-bandwidth domain of a node. Pipeline parallelism (PP) splits by layer, moves far less data, and can span nodes, but it demands more attention to load balance and bubble control.
The logic behind TP16 × PP2 is this: 16 dies inside a node handle TP, and PP chains the two nodes together, so cross-node communication happens only at pipeline boundaries. That keeps the most expensive communication inside the machine. For a sparse MoE with only about 104B activated parameters, the All-to-All traffic introduced by expert routing also needs to stay within the high-bandwidth domain, and this layout fits those communication characteristics better.
5. Load Test Design and Results
The tests covered three workload types, 836 requests in total, all successful:
| Scenario | Input/Output Size | Focus |
|---|---|---|
| Regular conversation | Random 2048 / 512 | Time to first token, throughput baseline |
| Agentic long chain | ~80K context | Multi-turn tool calls, KV Cache reuse |
| Agentic ultra-long chain | ~200K context | Memory watermark, preemption, stability |
Three conclusions stand out from the results. First, functional completeness passed: conversation, reasoning-chain echo, and tool calling all worked. Second, no request failed in the long-context scenarios, which indicates the memory reservation and scheduling strategy are well matched. Third, the agentic scenarios confirmed that the service stays consistent across multi-turn, tool-assisted long chains.
6. Common Issues and Tuning Advice
- Load failure: first check whether the quantization format and image version are a matched pair, then verify weight shard integrity.
- Long-context OOM: lower the per-instance context limit or reduce memory utilization, and add pipeline stages if necessary.
- Throughput below expectations: check whether the cross-node link is saturated by high-frequency communication; keeping TP inside the node is the first thing to try.
- Accuracy anomalies: compare against a baseline using a fixed short sample, and confirm the quantization configuration matches the operator implementation.
7. Summary
The core of deploying a trillion-scale MoE on domestic cards across two nodes is aligning memory, bandwidth, and parallel topology: quantization makes it fit, in-node TP with cross-node PP makes it fast, and template-based deployment makes delivery efficient. For teams that want to reuse this path, the recommendation is to get the pipeline working with short context first, then raise context length and concurrency step by step, letting observable metrics drive tuning.
