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

    This article walks through a real-world deployment of a trillion-parameter multimodal MoE model across two domestic Ascend servers with 32 compute dies in total. It covers the engineering constraints of memory budget, communication topology, and long-context stability, along with the test environment, node onboarding, parameter network setup, weight distribution, the TP16 x PP2 parallel strategy, load-testing methodology, and common pitfalls. Readers will find practical guidance for reproducing a stable long-context deployment on multi-node domestic accelerators.

    1. Background: The Engineering Challenge of Running Trillion-Parameter Models on Domestic Accelerators

    In a recent hands-on session, we completed a performance baseline on a single high-end accelerator card. During a follow-up live discussion, we noted that we wanted to add real measurements on domestic accelerator cards as soon as possible. A cloud platform’s inference template now includes an Ascend profile for trillion-parameter MoE models, and it has been validated on real hardware across two domestic servers: select the template, click deploy, and the two nodes bring up an instance composed of 32 compute dies using intra-node tensor parallelism of 16 and cross-node pipeline parallelism of 2. Dialogue, chain-of-thought output, and tool-calling chains all worked normally. Across three load tests, random 2048/512, Agentic 80K, and Agentic 200K, all 836 requests succeeded.

    The model under test is a native multimodal MoE architecture with roughly 2.8T total parameters, about 104B activated parameters per token, and a context window of up to 1M tokens. On the domestic card side, we used community-published W4A8 quantized weights (about 1.47 TB) and the inference image released officially alongside the model. One engineering judgment is worth emphasizing: the difficulty of deploying trillion-parameter models is no longer about whether they can run at all, but about the joint constraints of memory budget, communication topology, and long-context stability.

    2. Test Environment Design

    Item Configuration
    Nodes 2 domestic Ascend servers, 16 dies each (64 GiB per die), 32 dies total
    Interconnect High-speed inter-node interconnect (HCCS-class) carrying compute communication
    Parallelism Intra-node TP16, cross-node PP2, world size 32
    Model Community W4A8 quantized weights, 346 shards, about 1.47 TB
    Image Official inference image released with the model, digest pinned at the template layer
    Platform Cloud platform nightly build; load tests initiated from the load-testing client and routed through the platform gateway to the instance

    On the platform side, both the server and the agent are statically linked single binaries. The agent initiates an outbound connection to the server from each node, and the control plane, monitoring, logs, and inference traffic all share the same tunnel. Domestic nodes onboard in exactly the same way as general-purpose GPU nodes: copy an install command from the console, run it on the machine, and the node comes online with its accelerators, network cards, and storage information attached. This zero-modification onboarding is the key prerequisite for mixed-architecture clusters.

    3. Preparation: Nodes, Network, and Weight Distribution

    1. Node onboarding: generate an install command under Compute Nodes > Add Node, run it on both machines, and the platform automatically detects 16 dies per node and reports the topology.
    2. Parameter network: multi-node domestic cards use the accelerator network. Add the inter-card interconnect of both nodes to the same parameter network under Network. The platform runs a connectivity check and selects placement automatically based on that network during deployment, avoiding scheduling onto a cross-network topology.
    3. Weight distribution: after downloading from the model repository to the first node, the second node does not need to go over the public internet; copy the weights directly between nodes. In testing, public internet download ran at about 50-57 MB/s, while direct node-to-node transfer ran at about 490 MB/s, nearly a tenfold difference. For 1.47 TB of weights, this determines whether environment preparation takes half an hour or a full day.

    4. Parallel Partitioning: Why TP16 x PP2

    A single machine’s 16 dies set the upper bound on tensor parallelism, while cross-machine bandwidth is relatively limited. Placing pipeline parallelism on the cross-node dimension is therefore the natural choice that minimizes communication volume. Intra-node TP handles partitioning of attention and expert matrices, while inter-node PP partitions by layer. The world size is exactly 32, mapping one-to-one to the 32 dies with no redundant cards.

    Illustrative startup logic (pseudocode):

    1. parallel = {
    2. "tensor_parallel_size": 16, # intra-node
    3. "pipeline_parallel_size": 2, # cross-node
    4. }
    5. # world_size = 16 * 2 = 32, aligned with the physical die count
    6. engine = build_engine(model=weights_path, parallel=parallel,
    7. quantization="w4a8", max_model_len=1048576)

    Note that W4A8 means 4-bit weights and 8-bit activations. The memory savings are significant, but dequantization and operator adaptation are sensitive points for both accuracy and throughput. Always use the official image released with the model, and do not assemble the runtime yourself.

    5. Load-Testing Method and Result Interpretation

    The three workloads cover different bottlenecks: random 2048/512 validates baseline throughput and time-to-first-token; Agentic 80K and 200K validate KV Cache pressure and scheduling stability under long contexts. All 836 requests succeeded, indicating no OOM or timeout cascades occurred in long-sequence, multi-turn tool-calling scenarios.

    Recommended load-testing layers:

    • Smoke layer: single-turn short dialogue to confirm weight loading and parallel topology are correct;
    • Capability layer: chain-of-thought and tool calling to validate the template and parsing logic;
    • Capacity layer: progressively increase concurrency and context length, recording throughput, P99 latency, and memory watermark.

    6. Common Pitfalls

    • The image digest must be pinned to avoid tag drift causing operator mismatches;
    • Failing to add the parameter network can degrade cross-node communication or even cause initialization to fail;
    • The second node must use direct node-to-node transfer; repeatedly downloading over the public internet is the biggest waste of time;
    • For long-context load tests, watch the KV Cache growth curve rather than only average latency.

    7. Summary

    Getting a trillion-parameter MoE model running on 32 dies across two nodes comes down to getting three things right: topology alignment, locality-aware weight distribution, and reproducible images. Domestic cards and general-purpose cards are now isomorphic at the onboarding and scheduling layers, so the engineering focus should be on parallel partitioning and long-context capacity evaluation.