Deploying Trillion-Parameter MoE Models on Dual Ascend Nodes: A Practical Guide

    This article walks through deploying a trillion-parameter multimodal MoE model across two Ascend nodes (32 compute dies) using tensor parallelism of 16 within each node and pipeline parallelism of 2 across nodes. It explains why dual-node setups are the practical threshold for W4A8-quantized weights exceeding 1.4 TB, how to prepare node access, parameter networks, and weight distribution, and how to run layered stress tests covering baseline, 80K, and 200K agentic workloads. Readers will find memory budgeting logic, startup parameter structure, smoke checks, and a troubleshooting checklist that generalizes to other domestic accelerator environments.

    Deploying Trillion-Parameter MoE Models on Dual Ascend Nodes: A Practical Guide

    1. Why Dual Nodes Are the Threshold for Large-Scale MoE

    Over the past year, trillion-parameter native multimodal MoE models have become the mainstream form factor for top-tier models. Total parameter counts sit in the trillion range, yet each token activates only a small fraction of them. As a result, the compute cost of a single forward pass is far lower than that of a dense model with the same total parameter count, striking a good balance between quality and inference cost.

    The trade-off is a sharp increase in weight size. Even with quantization schemes such as 4-bit weights and 8-bit activations (W4A8), the weight files still exceed 1.4 TB.

    That size dictates two things:

    1. A single node cannot hold it. With 64 GiB of memory per die and 16 dies per node, a node offers roughly 1 TB of usable memory. After subtracting KV Cache, communication buffers, and framework overhead, the full weight set does not fit. The deployment must span nodes.
    2. Cross-node communication becomes the main bottleneck. Expert parallelism in MoE generates heavy All-to-All traffic. If the inter-node link lacks bandwidth or the topology is poorly arranged, even the strongest compute will stall on communication.

    So “dual-node deployment” is not simply doubling the machine count. It is a typical distributed inference engineering problem: how to split a 1.4 TB-class weight set into non-overlapping shards across two servers and 32 compute dies, while keeping the communication required by each layer’s computation inside high-bandwidth domains.

    This article uses a dual-node Ascend environment on a cloud platform as an example and provides a reproducible end-to-end workflow along with a stress-testing method. The parallelism strategy, memory accounting approach, and layered stress-test design are general engineering practices that transfer directly to similar domestic accelerator environments.

    2. Overall Design: The Logic Behind TP16 × PP2

    The parallelism combination we use is intra-node tensor parallelism (TP=16) plus cross-node pipeline parallelism (PP=2), with a world size of 32.

    Why not pure TP32? The core reason is communication locality:

    • Every TP layer forward pass requires AllReduce/ReduceScatter. This communication is frequent and cannot be fully overlapped with computation, so it must be confined to a high-bandwidth domain (intra-node HCCS or private interconnect).
    • PP only passes activations at stage boundaries. Its communication volume is small and infrequent, making it suitable for crossing inter-node links with relatively limited bandwidth.

    This produces a clear mapping: the TP domain equals the 16 dies inside one node; the PP domain spans the two nodes. This “TP inside, PP outside” organization is the most reliable default choice for current cross-node large-model inference.

    A rough memory calculation shows the design is feasible: 1.47 TB of weights split evenly across 32 dies leaves each die carrying about 46 GB, with roughly 18 GiB remaining in the 64 GiB budget for KV Cache and runtime buffers. If the context length grows further, KV Cache usage grows linearly. In that case, create headroom by lowering per-instance concurrency or increasing the PP degree, rather than blindly compressing KV Cache precision.

    Illustrative startup parameters (structure only, not tied to any specific product interface):

    1. # One instance spanning two nodes: TP within a node, PP across nodes
    2. --tensor-parallel-size 16 \
    3. --pipeline-parallel-size 2 \
    4. --quantization w4a8 \
    5. --max-model-len 200000 \
    6. --gpu-memory-utilization 0.88 \
    7. --enable-expert-parallel

    3. Three Preparation Tasks: Nodes, Network, Weights

    3.1 Node Access: Let Heterogeneous Compute Be Discovered Automatically

    On the platform side, the control plane typically consists of a statically linked single-binary server plus an agent deployed on each node. The agent initiates an outbound long-lived connection, and control commands, monitoring metrics, logs, and inference traffic all reuse the same tunnel. The benefit is that no inbound ports need to be opened separately on domestic accelerator nodes, which keeps firewall policies simple. Once a node comes online, it reports its local accelerator count, network interfaces, and storage information.

    The onboarding action is a single step: generate an install command in the console and run it on the target machine. After it completes, the 16 dies on each node are automatically identified and added to the schedulable resource pool. Heterogeneous nodes (accelerators from different vendors) onboard the same way, which is a prerequisite for platform-level scheduling.

    3.2 Parameter Network: Declare the Homogeneous Interconnect to the Scheduler

    Multi-node communication for domestic accelerators relies on their own interconnect protocols. You must therefore explicitly create a parameter network on the platform: add the high-speed interconnect ports of both nodes to the same network object. The platform then runs inter-card connectivity checks (bandwidth, RTT, topology reachability) and automatically filters candidate nodes by that network at deployment time.

    This step is often overlooked, but its impact is large. If the scheduler places the two stages of an instance on nodes that are not interconnected or that sit in different domains, the inference service will start, but throughput will drop to an unusable level.

    3.3 Weight Distribution: Don’t Make the Second Node Download Over the Public Internet

    Downloading 1.47 TB of weights from public object storage or a model community measured roughly 50–57 MB/s, which theoretically takes close to 8 hours. The practical solution is direct node-to-node transfer:

    • Complete the download and verification on the first node;
    • Use the platform’s “copy to node” capability to transfer directly from the first node to the second, measured at about 490 MB/s, cutting the time to under 1 hour — nearly a 10x speedup.

    Also be sure to pin the weight version (revision/digest) and the image digest to avoid intermittent accuracy anomalies caused by “same name, different weights.” This is the first principle of reproducible experiments.

    4. Deployment: From Template to a 32-Die Instance

    The inference template includes a domestic-accelerator profile for this model, with parameters preset according to the parallelism strategy above. Select the template, click deploy, and the platform brings up a 32-die instance across the two nodes with TP16×PP2. Once health checks pass, the instance enters service.

    After going live, run three smoke checks before stress testing:

    1. Multi-turn dialogue: verify long-context concatenation and cache reuse;
    2. Reasoning output: verify streaming stability for chain-of-thought-style long outputs;
    3. Tool calling: verify that constrained decoding for structured output (JSON/function signatures) takes effect.

    If all three pass, the weight sharding, quantized operators, and template configuration are mutually consistent.

    5. Stress Test Design: Three Workloads, 836 Requests, All Successful

    The stress test is initiated from the server side and routed through the platform gateway to the instance, avoiding the case where the load-generating client itself becomes the bottleneck. The load is split into three groups:

    Group Input/Output Scenario Intent
    A Random 2048/512 Baseline throughput and single-request latency
    B Agentic 80K Long-context retrieval and tool chains
    C Agentic 200K Extreme context capacity and stability

    Result: all 836 requests across the three groups succeeded, with no failures and no truncation. Key observations:

    • Time to first token (TTFT) grows roughly linearly with input length. The TTFT at the 200K tier is significantly higher than at the 2K tier, consistent with the complexity characteristics of attention computation;
    • Concurrency drops under long context because KV Cache usage rises. Protect SLOs with rate limiting rather than scaling out;
    • Stability in agentic scenarios depends on structured-output constraints and streaming decoding of long outputs. Stress tests must cover this, or tool-call formats tend to drift after launch.

    6. Common Issues and Tuning Checklist

    • Instance won’t start: check parameter network connectivity and whether weight digests match first;
    • Throughput below expectations: confirm the TP domain is not split across nodes, and check whether inter-node links are mistakenly used for TP communication;
    • OOM on long text: lower max-model-len or concurrency, or raise the PP degree to gain per-die headroom;
    • Slow first token: this is an inherent cost of long context; mitigate it with prefix cache reuse, request batching, and reasonable rate limiting;
    • Reproducibility: pin both image and weights by digest, and put template versions under change management.

    7. Summary

    Running a trillion-parameter MoE on 32 dies across two nodes comes down to getting three things right: a parallelism mapping that matches the interconnect topology, weight distribution that avoids redundant public-internet downloads, and stress tests that cover real long-context and tool-calling scenarios. This method is not tied to a specific vendor; any domestic compute environment with high-speed intra-node interconnect and platform-level scheduling can reuse it. For similar practices on Baidu AI Cloud, fixing the parameter network, image and weight digests, and template versions as a standard workflow is the key to reliably delivering large-scale inference services.