Dual-Node Ascend Deployment: A Practical Guide to Ultra-Scale MoE Inference

    This guide walks through deploying and validating ultra-scale MoE inference on a dual-node Ascend setup with 32 dies and 2 TiB of aggregate memory. It explains why trillion-parameter models require this configuration, how to separate the control and data planes, and how to handle node onboarding, parameter networking, and weight distribution. You will also find the reasoning behind the TP16 x PP2 parallel strategy, a three-layer validation approach covering functional checks and long-context stress tests, and a troubleshooting checklist for common failures.

    Dual-Node Ascend Deployment: A Practical Guide to Ultra-Scale MoE Inference

    1. Why “Dual Node, 32 Dies” Is the Entry Ticket for Ultra-Scale MoE

    Over the past year, sparse architectures have kept pushing the capability boundaries of large models. Take a native multimodal MoE with 2.8T total parameters and roughly 104B activated parameters: its context window can reach 1M tokens. The engineering profile of such models is distinct: total parameters determine the static footprint on memory and bandwidth, while activated parameters determine the compute cost per token. Once the two are decoupled, inference cost no longer scales linearly with model size, but fitting the model into memory becomes harder rather than easier.

    A rough calculation shows where the barrier lies. With W4A8 quantization (4-bit weights, 8-bit activations), the 2.8T parameters occupy roughly 1.4–1.5 TB. Add KV cache, runtime framework overhead, communication buffers, and temporary memory for the multimodal encoder, and a single node with 8 cards—even at 64 GiB per card—falls far short. That is why a configuration of two nodes, 16 dies per node, 32 dies in total, and 64 GiB per die effectively expands 512 GiB of single-node memory into a 2 TiB memory pool, making trillion-scale MoE runnable in the first place.

    This article uses a dual-node environment with a domestic accelerator card (an Ascend 910C-class architecture) as the backdrop and presents a reusable deployment and validation methodology. Note that every step described here is general engineering practice and is not tied to any specific platform or product.

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

    An operable inference cluster should keep management and inference strictly apart:

    • Control plane: handles node registration, topology discovery, image and weight distribution, instance orchestration, and log and metrics collection. Control-plane traffic is small but reliability-sensitive.
    • Data plane: the inference requests and generated token streams. It is latency- and throughput-sensitive and needs to share high-bandwidth links with compute and communication.

    The recommended approach is to run an agent, built as a single static binary, on every node in the cluster. The agent initiates a long-lived connection to a central server (rather than the server dialing in), and control commands, monitoring metrics, logs, and inference traffic all reuse the same tunnel. This “node-initiated outbound” model delivers three direct benefits:

    1. Minimal network configuration: nodes expose no inbound ports, which plays well with NAT and firewall policies.
    2. Unified onboarding for heterogeneous nodes: domestic accelerator nodes and general-purpose GPU nodes follow exactly the same onboarding flow—paste one install command from the console and the node is live.
    3. Clear fault domains: a broken tunnel means the node is unreachable, and the scheduler can evict it immediately.

    When a node comes online, the agent reports the number of accelerators, per-die memory, and NIC and storage mount information. The control plane uses this to build a schedulable resource profile.

    3. Preparation: Nodes, Parameter Network, and Weight Distribution

    3.1 Node Onboarding and Resource Discovery

    Generate the install command under “Compute Nodes → Add Node” in the console and run it on each of the two machines. The platform should automatically detect 16 dies per node and aggregate them into 32 allocatable units. Check three things here: driver and firmware versions match, per-die memory is fully recognized (64 GiB), and the inter-die interconnect topology is read correctly.

    3.2 Parameter Network: A Hard Constraint for Multi-Node Inference

    Multi-node communication on domestic accelerator cards typically runs over a dedicated accelerator network (such as an HCCS-class high-bandwidth interconnect). The key point: all nodes involved in a single deployment must join the same parameter network, otherwise cross-node pipeline-parallel (PP) communication cannot be established. During cluster formation, the platform should run inter-card connectivity checks (bandwidth probing plus a full-mesh matrix validation) and automatically filter candidate nodes by that network at deployment time, avoiding scheduling instances onto machines with a mismatched network.

    3.3 Weight Distribution: The Underrated Time Sink

    A 1.47 TB weight set across 346 shards is the most easily overlooked cost in the deployment cycle. If both machines pull from the public internet at 50–57 MB/s, each takes 7–8 hours, and retrying after a failure is expensive. A better strategy is tree-based distribution:

    1. Node 1: download 1.47 TB from public internet/object storage → ~7–8 hours
    2. Node 2: direct transfer from Node 1 over the internal network → ~490 MB/s, ~50 minutes

    The internal transfer is nearly 10x faster than the public download. After downloading, run a per-file verification (compare shard hashes and the total byte count of 1,466,844,769,783). A single corrupted shard in quantized weights causes load-time errors or anomalous inference results, and such issues surface only during stress testing, making them costly to diagnose.

    Also pin the image digest rather than using a floating tag, ensuring bit-level identical runtime environments on both nodes—the foundation for reproducible experiments and root-cause analysis.

    4. Parallel Strategy: The Trade-offs Behind TP16 x PP2

    How to split 32 dies is the central decision of this practice. There are only three candidate approaches:

    Option Pros Risks
    Pure TP32 Lowest per-layer memory pressure Frequent cross-node AllReduce; communication becomes the bottleneck
    Pure PP32 Low communication volume Large pipeline bubbles, uneven load, wide blast radius from a single point of failure
    TP16 x PP2 High-bandwidth intra-node links handle TP; only PP crosses nodes Requires careful layer partitioning and bubble control

    The final choice is TP16 per node, PP2 across nodes, world size = 32, for clear reasons: confining tensor parallelism, the most communication-intensive dimension, to the low-latency interconnect domain inside a single node, while cross-node traffic carries only one pipeline-boundary transfer, reduces communication volume by an order of magnitude. Meanwhile, the PP2 layer split keeps memory usage roughly balanced across the two nodes.

    Example launch parameters (field names vary slightly by framework version):

    1. python -m vllm.entrypoints.openai.api_server \
    2. --model /models/kimi-k3.1-pro-w4a8 \
    3. --tensor-parallel-size 16 \
    4. --pipeline-parallel-size 2 \
    5. --quantization w4a8 \
    6. --max-model-len 200000 \
    7. --gpu-memory-utilization 0.90 \
    8. --trust-remote-code

    The memory budget needs headroom in three areas: KV cache (the main variable under long contexts), communication buffers, and temporary activations from multimodal inputs. As a rule of thumb, keep --gpu-memory-utilization between 0.88 and 0.92 to leave elasticity for bursty long requests.

    5. Validation: From Functional Correctness to Long-Context Stability

    A finished deployment is not necessarily a usable one. Validate in three progressive layers:

    1. Functional layer: run one pass each of single-turn dialogue, chain-of-thought output, and tool calls (structured output parsing) to confirm the tokenizer, template, and decoding path are correct.
    2. Short stress test: random 2048-token input / 512-token output to verify baseline throughput and time to first token.
    3. Long-context stress test: two groups at 80K and 200K for agentic scenarios, focusing on KV cache growth, memory watermark, and whether OOM or truncation occurs.

    In this practice, all 836 requests across the three groups succeeded, with no failures or timeouts. Stress-test traffic originated from the server and was forwarded by the platform gateway to the instance. This path also validated whether the control plane and data plane were cleanly isolated—if inference traffic interferes with management traffic, latency jitter amplifies significantly under long contexts.

    Metrics worth collecting continuously: time to first token (TTFT), time per output token (TPOT), throughput (tokens/s), the memory usage curve, and inter-die/inter-node communication bandwidth utilization. Performance inflection points in long-context inference usually appear first in memory and bandwidth curves, not in error logs.

    6. Common Issues and Troubleshooting Checklist

    • Stuck during loading: usually nodes not in the same parameter network, or mismatched image digests.
    • Shard verification failure: caused by an interrupted internal transfer; retransmit the single shard rather than starting over.
    • OOM on long requests: lower the memory utilization cap or limit the maximum context, prioritizing stability.
    • Low throughput from PP bubbles: adjust the layer split ratio to align compute across the two nodes.
    • Tool-call parsing errors: check whether the dialogue template matches the structured output constraints.

    7. Conclusion

    Running trillion-scale MoE on domestic compute has shifted from “can it compute” to “how to compute stably and reproducibly.” The dual-node, 32-die setup with TP16 x PP2 is essentially trading topology-aware parallel partitioning for communication efficiency. Meanwhile, tree-based weight distribution, digest pinning, and per-file verification—seemingly trivial steps—are the real source of reliability for long-running experiments. Turning this workflow into a templated deployment capability frees the team to focus on model quality and business refinement instead of environment setup.