Deploying Ultra-Scale MoE Models on Dual Ascend Nodes: A Practical Guide

    This article presents a reproducible methodology for deploying an ultra-scale Mixture-of-Experts (MoE) model across two Ascend servers, forming a 32-die logical instance. It covers the rationale behind the dual-node setup, a control-plane and data-plane architecture, node onboarding, parameter network configuration, 1.47TB weight distribution, a TP16 x PP2 parallel strategy, and a three-layer validation process. The results show all 836 requests across three stress tests succeeded, offering a repeatable engineering pipeline for large-scale inference.

    Deploying Ultra-Scale MoE Models on Dual Ascend Nodes: A Practical Guide

    1. Why Dual-Node, Ultra-Scale MoE Is the Scenario Worth Mastering Now

    Over the past year, model architecture has clearly shifted toward a native multimodal and sparsely activated MoE approach: total parameter counts have climbed into the trillions, yet each forward pass activates only a small fraction of them. The scenario reproduced in this article, for example, has roughly 2.8T total parameters and about 104B activated parameters, natively supports multimodal inputs such as text and images, and offers a context window of up to 1M tokens.

    This architecture places three sharp demands on inference infrastructure:

    1. The memory capacity wall. Even with low-bit quantization like W4A8, the weight footprint remains around 1.47TB (346 shards, roughly 1,466,844,769,783 bytes). A single machine with 16 dies at 64GiB each provides 1TiB of memory in total; after subtracting KV Cache and runtime overhead, the headroom is very tight, so scaling across nodes is mandatory.
    2. The communication topology wall. Expert parallelism in MoE and tensor parallelism in the dense portions generate heavy collective communication. Once cross-node bandwidth becomes the bottleneck, cutting TP too deep actually slows the whole system down.
    3. The engineering complexity wall. Failure points in multi-node, multi-card deployments usually lie not in the model itself but in the “dirty work” of node management, network connectivity, and weight distribution consistency.

    Rather than discussing single-card benchmarks, this article provides a reproducible dual-node deployment and stress-testing methodology: two domestic accelerator servers, each with 16 dies, are combined through high-speed inter-node interconnect into a 32-die logical instance. The service is launched with a hybrid parallel strategy of “TP16 per node, PP2 across nodes,” followed by full validation across three stress tests totaling 836 requests.

    2. Overall Architecture: Separating the Control Plane from the Data Plane

    A mature multi-node inference platform typically follows a “control plane and data plane separation” design:

    • Control plane: Composed of a central-side service and lightweight agents on each node. The agent is a static single binary that actively establishes a long-lived outbound connection at deployment time. Once a node comes online, it automatically reports the number of accelerators, NICs, and storage information. Control commands, monitoring metrics, logs, and inference traffic reuse the same encrypted tunnel, reducing the complexity of firewall and port policies.
    • Data plane: Inference requests are routed by the platform gateway to the target instance, where the gateway handles authentication, rate limiting, and load balancing; inside the instance, the inference engine performs parallel scheduling.

    The key advantage of this architecture is that node onboarding is decoupled from the accelerator brand: whether it is a general-purpose GPU server or a domestic NPU server, the operational steps are identical—generate an install command in the console, run it on the target machine, and the node automatically registers and comes online with its hardware topology. For teams that need to scale frequently, this means the marginal cost of adding a node is close to zero.

    A schematic onboarding flow is shown below (commands are abstracted to express only the interaction sequence):

    1. # 1. Generate a one-time access token and install command in the console
    2. # 2. Run on each target node
    3. curl -sSL <control-plane-address>/agent/install | sh -s -- \
    4. --token <one-time-token> \
    5. --advertise-nic eth0
    6. # 3. After coming online, the node automatically reports: die count, memory per die, HCCS topology, mount points

    3. Preparation: Nodes, Network, and Weights

    3.1 Node Management and Topology Recognition

    Generate the install command under “Compute Nodes -> Add Node” and run it on each of the two servers. The platform needs to automatically recognize the memory structure of 16 dies per machine at 64GiB each and collect the interconnect relationships between dies. The output of this step is a schedulable resource inventory that all subsequent parallel strategies depend on.

    Practical recommendations:

    • Confirm that driver, firmware, and runtime versions are consistent before bringing nodes online, avoiding “same model, different behavior” across the two machines;
    • Check whether each die’s memory is occupied by leftover processes—the most common cause of startup failure in multi-node deployments is insufficient memory on a single card;
    • Record each node’s NICs and mount points to ease later troubleshooting of slow weight reads.

    3.2 Parameter Network: Isolating Cross-Node Communication from the General Network

    Multi-node inference must use the accelerator-dedicated network. Under the “Network” capability, add the inter-card high-speed interconnect (HCCS) of the two nodes to the same parameter network. The platform then runs inter-card connectivity checks (bandwidth, latency, link status) and automatically selects qualifying nodes based on that network at deployment time.

    The significance here is turning topology constraints into scheduling constraints. If a general scheduler picks nodes at random, it may select machines with degraded cross-node links or ones not in the same parameter network, resulting in a model that loads but delivers extremely low throughput. Treating the network as a first-class scheduling resource is a prerequisite for large-scale deployment stability.

    3.3 Weight Distribution: The “Last Mile” for 1.47TB

    Weight acquisition is the most easily underestimated step. The recommended process:

    1. Under the “Models” capability, select a public model source and download the weights to the first node;
    2. For the second node, do not repeat the public network download; instead, use the “Copy to…” capability to transfer directly from the first node;
    3. After both sides finish, the platform verifies shard integrity file by file.

    The measured difference is significant: public network download runs at about 50–57 MB/s, while direct node-to-node transfer reaches about 490 MB/s—nearly a 10x gap. For 1.47TB of weights, the former takes hours and is subject to public network fluctuations, while the latter can be compressed to minutes. Engineering-wise, you should also pin the weight version (revision) and image digest to ensure reproducibility across experiments—this article pinned a specific revision and image digest during validation.

    4. Parallel Strategy: Why TP16 x PP2

    Deploying on 32 dies offers several partitioning options; this article chooses “TP16 per node, PP2 across nodes,” with a world size of 32, for three reasons:

    • TP does not cross nodes. Tensor parallelism has the most intensive communication; confining it to the high-speed interconnect domain of 16 dies within a single machine avoids cross-node bandwidth becoming the bottleneck;
    • PP crosses nodes. Pipeline parallelism has low communication volume and is insensitive to bandwidth, making it naturally suited for cross-node deployment while distributing memory pressure across both machines;
    • It matches the MoE structure. The compute of sparsely activated expert layers varies with activated parameters, and PP can cleanly split the load of different layers, reducing hotspots on a single node.

    A pseudo-configuration example (field names abstracted):

    1. parallel:
    2. tensor_parallel_size: 16 # confined within a single node
    3. pipeline_parallel_size: 2 # across nodes
    4. world_size: 32
    5. quantization: w4a8
    6. context_length: 1048576

    Tuning points to note:

    • KV Cache proportion. In a 1M context scenario, the KV Cache is substantial and must be reserved in the memory budget; if necessary, cap the maximum length per request or enable paged cache management;
    • Quantization and precision. W4A8 offers clear benefits in memory and bandwidth, but you must validate whether the precision regression is acceptable on business datasets;
    • Image consistency. Use the official inference image released with the model and pin its digest to avoid “it ran yesterday but not today.”

    5. Validation: Functionality, Long Context, and Agentic Workloads

    After deployment, validation should proceed in three layers rather than jumping straight to stress testing:

    Layer 1: Functional correctness. Cover multi-turn dialogue, chain-of-thought/reasoning output, and tool calls (structured arguments and result回填). These three correspond to generation quality, long-output stability, and protocol parsing capability; any anomaly indicates a problem with the template or parallel partitioning.

    Layer 2: Random workload stress test. Use a random 2048-input/512-output combination and observe time-to-first-token, time-per-token, throughput, and error rate to establish a performance baseline.

    Layer 3: Long-context and agentic stress test. Construct agentic requests with 80K and 200K context lengths respectively. These workloads feature long inputs, structured outputs, and heavy memory pressure under concurrency, making them a touchstone for long-context capability.

    Validation results: all 836 requests across the three stress tests succeeded, with no failures or timeouts. The stress-test traffic originated from the server side, was forwarded through the platform gateway to the instance, matching the real business path.

    A reusable stress-test snippet:

    1. cases = [
    2. {"name": "random-2048-512", "in": 2048, "out": 512, "n": 300},
    3. {"name": "agentic-80k", "in": 80000, "out": 1024, "n": 268},
    4. {"name": "agentic-200k", "in": 200000, "out": 1024, "n": 268},
    5. ]
    6. # Metrics to watch: success rate, TTFT, TPOT, total throughput, peak memory

    6. Common Issues and Troubleshooting Checklist

    Symptom Common Cause Recommendation
    Instance fails immediately on startup A die’s memory is occupied / inconsistent driver versions Clear leftover processes; unify firmware and runtime
    Loads but throughput is extremely low Not using the parameter network; cross-node traffic goes over the general link Check parameter network membership and connectivity check results
    Second node preparation is too slow Repeated public network weight download Switch to direct node-to-node transfer with file-by-file verification
    Long-context requests fail Insufficient KV Cache budget Reserve cache space; cap per-request length
    Results are not reproducible Weight revision or image digest drift Pin versions and digests before experimenting

    7. Conclusion

    Getting a 2.8T-total-parameter, 104B-activated, 1M-context MoE model running on 32 dies across two nodes is not difficult because of “whether it can load,” but rather about chaining topology, network, weights, parallelism, and validation into a repeatable engineering pipeline: one-click node onboarding, the parameter network as a scheduling constraint, direct node-to-node weight transfer, TP within the domain and PP across nodes, and three-layer validation as a safety net. Once you master this methodology, whether switching model sizes or scaling to more nodes, you can complete migration and reproduction at low marginal cost.