Deploying Trillion-Parameter MoE Models on Two Ascend Servers: A Practical Guide
This article walks through deploying a native multimodal MoE model with roughly 2.8 trillion total parameters and 104 billion activated parameters across two domestic accelerator servers with 32 compute dies and about 2 TiB of total memory. It covers memory budgeting, interconnect topology, parallelism choices, weight distribution, deployment steps, layered load testing, and common pitfalls, offering a practical blueprint for building a multi-node inference platform.
1. Background and Problem Definition
The hard part of running very large MoE models is no longer simply getting them to start. It is balancing memory, interconnect bandwidth, and parallelism under a limited number of accelerator cards. Take a native multimodal MoE with about 2.8 trillion total parameters, about 104 billion activated parameters, and a context length of up to one million tokens. A single node almost certainly cannot hold the full weights, so a multi-node, multi-card setup is required. Once the deployment crosses the single-node boundary, communication topology, weight distribution efficiency, and how the model is sharded become the key factors that determine success.
This article uses two domestic accelerator servers as the test environment. Each server has 16 compute dies with 64 GiB of memory per die, for a total of 32 dies and about 2 TiB of memory. It walks through the full process of standing up inference for a very large MoE model and reports results from layered load testing. Every step is described with general engineering methods and does not refer to any specific vendor product.
2. Resources and Topology: Get the Foundation Right First
2.1 Memory Budget Is the First Constraint
Memory accounting must come before deployment. The community-published W4A8 quantized weights are about 1.47 TB across 346 shard files. The weights alone consume more than 70% of total memory, and the remaining space must hold the KV Cache, activation buffers, communication staging areas, and runtime overhead. The conclusion is that 32 dies are the entry point for this class of model, and any idea of “using half the cards” will directly cause OOM.
A rough self-check formula:
Per-die memory need ≈ weight shard + KV Cache per card + activation and temporary buffers + runtime reserveKV Cache per card ≈ 2 × layers × (KV heads / TP) × head_dim × context length × bytes per precision / PP
TP shards the attention and expert matrices within a layer, while PP shards across layers. A larger TP saves more weight and KV memory per card but increases communication frequency. A larger PP reduces cross-node traffic but raises latency through pipeline bubbles.
2.2 Interconnect Topology Determines the Parallelism Strategy
Within a node, dies communicate over a high-speed interconnect. Across nodes, traffic uses a dedicated accelerator network such as HCCS. The practical rule is to keep TP inside the node (for example, TP16 per node) and use only PP across nodes (for example, PP2). This keeps the most frequent intra-layer communication in the highest-bandwidth domain, while cross-node links only carry inter-layer activation passing. The world size is 32.
2.3 Unified Access for the Control Plane and Data Plane
On the platform side, a statically linked single-binary server and agent architecture is used. The agent runs on each compute node and initiates an outbound connection to the control end. Control commands, monitoring metrics, logs, and inference traffic all reuse the same tunnel. The benefit is that there is no need to maintain a separate jump host and port mapping in a domestic-card environment, and each node reports its accelerator cards, network interfaces, and storage information as soon as it comes online.
3. Implementation Steps
Step 1: Onboard the Nodes
Generate the install command from the console under “Compute Nodes — Add Node” and run it on each of the two servers. The platform automatically detects 16 dies per node and reports device and network information. The key point is to keep the driver, firmware, and runtime versions strictly identical on both nodes. Otherwise, you may see a single node run fine while the multi-node setup hangs.
Step 2: Build the Parameter Network
Multi-node inference must use the accelerator network rather than the regular business network. In “Network,” add the HCCS of both nodes to the same parameter network. The platform runs inter-card connectivity checks for bandwidth and reachability, and selects nodes from this network during deployment to avoid scheduling onto machines that are not on the network.
Step 3: Obtain and Distribute the Weights
Select the weights from the model source and download them to the first node. Public internet download measured about 50–57 MB/s. Do not repeat the public download on the second node. Instead, use the platform’s “copy to…” capability for direct node-to-node transfer, which measured about 490 MB/s, nearly a tenfold difference. For weights on the order of 1.47 TB, this step saves hours. In production, it is better to pre-stage the weights on shared or object storage and pull them concurrently from multiple nodes over a parallel file system.
Step 4: Pin the Image and Versions
The inference image must match the model version. Pin the image digest and weight revision in the template to ensure “same template = same result.” Example:
template:parallel: { tp: 16, pp: 2, world_size: 32 }model: { precision: w4a8, revision: <pinned> }image: { pinned_digest: true }network: parameter-plane-hccs
Step 5: Launch and Self-Check
Select the template and click deploy. The two nodes bring up one 32-die instance with TP16 × PP2. The recommended self-check order is: health check → single-turn conversation → long context → visibility of the reasoning process → tool-calling chain. If any step fails, review the logs and topology first rather than blindly tuning parameters.
4. Load Test Design and Results
Three workloads were used: random 2048 input / 512 output, Agentic 80K, and Agentic 200K, for a total of 836 requests, all successful. The load test ran from the client through the platform gateway to the instance, covering the real path rather than bypassing the gateway with a direct connection.
| Workload | Input/Output | Requests | Success Rate | Focus |
|---|---|---|---|---|
| Short text | 2048/512 | ~300 | 100% | Throughput and time to first token |
| Agentic medium-long | ~80K | ~300 | 100% | Stability as KV grows |
| Agentic extra-long | ~200K | ~236 | 100% | Memory watermark and tail latency |
There are three conclusions. First, W4A8 quantization is a viable option in memory-constrained scenarios, but you must accept the trade-off in precision and throughput. Second, the value of long-context load testing is that it exposes KV Cache growth and scheduling jitter. Third, a 100% success rate only shows the path is correct; P50/P95/P99 latency and tokens/s are still needed to characterize service capability.
5. Common Pitfalls
- Version drift: mismatched driver, runtime, and image, showing up as multi-node initialization hangs.
- Network misuse: sending parameter-plane traffic over the business network, where the bandwidth drop amplifies PP bubbles.
- Repeated weight downloads: ignoring node-to-node transfer and wasting hours.
- Only watching success rate: without percentile latency and memory watermark monitoring, tail issues cannot be located.
- Context misconfiguration: using the maximum context as the default, so KV Cache growth reduces concurrency.
6. Conclusion
Getting a trillion-parameter MoE running on two nodes with 32 dies is essentially doing five things in order: memory budget, interconnect topology, parallel sharding, weight distribution, and layered validation. The same method applies to other domestic accelerators and multi-node inference scenarios, and can serve as a reference blueprint for teams building their own inference platform.
