Deploying Trillion-Parameter Model Inference on Dual Ascend Nodes: A Practical Guide
This article walks through a real-world deployment of trillion-parameter MoE model inference across two domestic Ascend accelerator servers (32 dies total). It covers why single-node memory cannot hold such models, how to organize node onboarding and topology detection, how to stage 1.47 TB of weights via layered distribution, how to choose TP16 x PP2 parallelism for communication locality, and how to run functional validation plus mixed-load stress tests with long-context workloads. A checklist of common pitfalls and a recommended rollout order are included.
1. Why Trillion-Parameter Models Are Hard to Deploy
There is an order-of-magnitude gap between the memory capacity of a single card and the scale of trillion-level parameters. This is the fundamental conflict in productionizing ultra-large model inference. Take a native multimodal MoE model with 2.8T total parameters and roughly 104B activated parameters, with a context window of up to 1M tokens. Even with W4A8 quantization compressing the weights to about 1.47 TB, that still far exceeds the aggregate memory of any single 16-card node. So there is only one viable path: cross-node distributed inference, combining tensor parallelism with pipeline parallelism.
In practice, the model itself is rarely what consumes engineering time. Three things do: how quickly weights can be staged onto every node, whether the cross-machine communication topology is correctly identified, and whether stress testing covers the long-context shapes of real workloads. This article follows those three threads.
2. Target Topology and Overall Architecture
The target instance consists of 2 domestic Ascend accelerator servers, each with 16 dies at 64 GiB per die, for 32 dies in total. Within a node, TP16 handles intra-layer tensor sharding; across nodes, PP2 handles pipeline sharding, giving a world size of 32. Compute and communication traffic uses the high-speed inter-node interconnect (HCCS), while the control plane, monitoring plane, and inference traffic share the same tunnel.
The control plane uses a dual-component, statically linked single-binary design: the server and the node-side agent are each standalone executables. The agent dials out to the server, so no inbound port needs to be opened on each machine. This matters especially for domestic accelerator clusters, where data-center network policies typically reject inbound connections by default; a reverse-tunnel model can significantly shorten the rollout timeline. Onboarding for domestic accelerator nodes follows the same flow as for general-purpose GPU nodes: the console generates an install command, and once it runs on the target machine, the node auto-registers with its accelerator count, NIC, and storage information.
3. Preparation: Nodes, Network, and Weights
3.1 Node Onboarding and Topology Detection
Generate the install command under “Compute Nodes -> Add Node” in the console and run it on each of the two machines. The platform must automatically detect the physical topology of all 16 dies per node and report total available memory. Before going live, verify three things: driver and firmware versions match, per-die memory capacity matches, and clocks are synchronized across nodes. A version or capacity mismatch will directly produce a slow card inside the TP group, showing up as overall throughput dragged down by a single point.
3.2 Parameter Network Configuration
Multi-node inference on domestic cards must run over the accelerator network, not a general business NIC. In “Network,” add the HCCS of both nodes to the same parameter network; the platform then runs inter-card connectivity checks and selects nodes based on that network at deployment time. The value of the connectivity check is that it surfaces link degradation early: if a link has abnormal bandwidth, the stress test phase will show amplified PP bubble time, and troubleshooting then costs far more than intercepting the issue before deployment.
3.3 Layered Distribution of Ultra-Large-Scale Weights
The 1.47 TB of weights, split into 346 safetensors shards, is the main bottleneck in the deployment cycle. The recommended approach is to pull from the model repository on a single node first, then copy directly node-to-node to the second machine:
Node 1: public network pull ~50-57 MB/sNode 2: node-to-node transfer ~490 MB/sDifference: nearly 10x
The point of layered distribution is not just speed. It also avoids saturating the public network egress from both nodes at once, which causes timeouts and retry storms. Once weights land on both sides, the platform verifies shard integrity and revision consistency file by file. It is also worth recording the shard count and total byte count as a rollout baseline: a missing shard on either side will only surface at load time, which is expensive.
4. Deployment: Parallelism Strategy and Reproducibility
Both the image and the weights should be pinned to immutable identifiers (image digest + weight revision) to avoid “it started yesterday but won’t start today.” Example configuration:
parallel:tp: 16 # intra-node tensor parallelismpp: 2 # cross-node pipeline parallelismworld_size: 32quantization: w4a8max_model_len: 262144 # set per business needs, not the model limit
The reason for choosing TP16 x PP2 over pure TP32 is communication locality: TP all-reduce happens far more frequently than PP point-to-point transfers. Keeping TP inside the node lets high-frequency communication take the shortest path, while cross-machine traffic only carries inter-layer activations. The cost is pipeline bubbles, which need to be amortized through sensible micro-batch scheduling.
5. Validation and Stress Testing
Functional validation should cover three capabilities: multi-turn conversation, explicit reasoning-process output, and tool calling (structured argument parsing and result回填). Only when all three pass can you conclude there are no hidden errors in the prompt template or the parallel sharding.
For performance testing, three mixed workloads are recommended, with all 836 requests succeeding:
| Scenario | Input/Output | Focus |
|---|---|---|
| Short request | 2048 / 512 | Baseline throughput and time to first token |
| Agentic long context | ~80K | KV usage and concurrency capacity |
| Agentic ultra-long context | ~200K | Memory watermark and long-sequence stability |
Stress tests must be initiated from the server side and enter the instance through the platform gateway, so that gateway and tunnel overhead are counted in the real path. When reading results, watch four metrics: success rate, time-to-first-token distribution (P50/P95), total per-request latency, and peak memory in long-context scenarios. A 100% success rate only means nothing crashed; P95 is what capacity planning should be based on.
6. Common Pitfalls and Checklist
- Weights verified on only one side: missing shards on the other side will error at the end of loading.
- Wrong parameter network: traffic goes over the business NIC, and throughput drops by an order of magnitude.
- max_model_len set to the maximum immediately: KV cache crowds out memory and concurrency collapses.
- Image not pinned to a digest: environment drift makes reproduction fail.
- Stress testing only short requests: long-context problems only surface under real traffic.
The recommended rollout order is: topology verification -> parameter network connectivity -> layered weight distribution with dual-side verification -> the three functional checks -> the three stress test groups -> canary traffic ramp. Following this order, a dual-node 32-die setup running a trillion-level MoE model can be fully reproducible and rollback-capable end to end.
