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

    This article walks through an end-to-end deployment and stress test of a native multimodal MoE model with roughly 2.8T total parameters and 104B activated parameters across two domestic accelerator nodes. It covers memory capacity estimation, the TP16 x PP2 parallel topology, quantized weight and runtime image loading, a three-tier stress test design, and a troubleshooting checklist, showing that dual-node deployment is the practical minimum for this model class and that capacity estimation, topology design, version alignment, and layered testing must form a closed loop.

    1. Background and Problem Definition

    The focus of large-scale model deployment is shifting from “can it run on a single card” to “can a multi-node cluster reliably carry real workloads.” Completing one inference run on a single high-end accelerator only proves that the model weights and the inference framework are compatible. Production environments demand answers to three harder questions: whether inter-node communication overhead is acceptable, whether memory and cache usage stay under control with very long contexts, and whether long-run stability holds up under tool-calling workloads.

    This article uses a native multimodal MoE model with about 2.8T total parameters and about 104B activated parameters as the target, completes end-to-end deployment and stress testing on two domestic accelerator nodes, and distills a transferable engineering method.

    Three characteristics of the model determine how hard it is to deploy:

    • Total and activated parameters differ by an order of magnitude, a typical sparse structure. Compute demand is driven by activated parameters, while memory demand is driven by total parameters.
    • Native support for million-token contexts means the KV cache becomes the main competitor for memory.
    • Native multimodal and tool-calling capabilities mean stress tests cannot cover short question-answering only.

    2. Capacity Estimation and Feasibility Before Deployment

    The first step of multi-node deployment is not typing commands but working out the memory budget. A rough estimate can be made as follows:

    1. Weight memory ≈ parameter count × bytes per parameter
    2. KV cache ≈ 2 × layers × hidden dimension × context length × batch size × precision bytes / parallelism split factor
    3. Free headroom = memory per card × card count - weight memory - framework and communication buffers

    With the commonly used W4A8 quantization scheme, weight size can be compressed to roughly 1.47TB, several times smaller than at the original precision. With two nodes, 8 cards per node, and 64GB per card, total memory is about 1TB. After subtracting the weights, headroom is very tight. This directly explains why a hybrid split of tensor parallelism plus pipeline parallelism is required rather than simply increasing the tensor parallel degree.

    Conclusion: a single node cannot host this class of model, and two nodes are the practical lower bound. Once the parallel degrees are fixed, context length and concurrency must be adjusted together; they cannot both be maxed out.

    3. Parallel Topology Design: The TP16 x PP2 Trade-off

    Bringing up one 32-die instance across two nodes with tensor parallelism of 16 and pipeline parallelism of 2 separates two kinds of pressure: communication-intensive and capacity-intensive.

    • Tensor parallelism stays inside a node, using high-bandwidth interconnects to absorb the high-frequency reduction communication in each forward pass.
    • Pipeline parallelism spans nodes, where communication volume is small and infrequent, and micro-batch scheduling hides cross-node latency.
    • Expert-layer parallelism and routing strategy must be configured orthogonally to TP/PP, so the same card does not take on too many communication domain roles at once.

    Practical points: cross-node link bandwidth is the hidden bottleneck of this topology. Before deployment, confirm that inter-node network configuration is consistent and that MTU and topology discovery work as expected. Do not increase pipeline stages blindly, or micro-batch scheduling bubbles will eat the throughput gains.

    4. Loading Quantized Weights and the Runtime Image

    In the Ascend ecosystem, models typically come with W4A8 quantized weights provided by the community, along with a runtime image that the inference framework officially ships to match the model. The two versions must correspond strictly. The recommended loading order:

    1. Verify the integrity of the weight directory and confirm the config, tokenizer, and shard index are all present.
    2. Distribute to each node via object storage or a shared file system, keeping paths identical.
    3. Pin the image version to avoid a mismatch between runtime and quantization format.
    4. Run a smoke test with the smallest context and a single request first, then gradually open up concurrency.

    Illustrative startup parameters (structure only, not a specific interface):

    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. --max-model-len 1048576 \
    6. --gpu-memory-utilization 0.90

    5. Layered Stress Test Design and Result Interpretation

    Stress testing should cover three workload types, forming a gradient from functionality to long-run stability:

    • Random short requests, 2048 input / 512 output: validates baseline throughput and time to first token.
    • Agentic 80K long context: validates mid-context attention and cache reuse.
    • Agentic 200K ultra-long context: validates memory watermark and scheduling stability.

    All 836 requests across the three groups succeeded, and the chat, reasoning-process display, and tool-calling paths all worked normally. Success rate is only the baseline metric. Production evaluation should also record the time-to-first-token distribution, per-request P99 latency, peak memory, and cluster utilization, and observe how throughput decays as context grows. Any conclusion that reports success rate without a latency distribution is not enough to support a launch decision.

    6. Common Failures and Troubleshooting Checklist

    • Out of memory: lower the context limit or concurrency first, then consider increasing pipeline stages.
    • Cross-node timeout: check the inter-node network and the initialization order of parallel groups.
    • Quantization accuracy anomalies: verify the correspondence between image and weight versions.
    • Long-run degradation: use log services and monitoring alerts to locate cache fragmentation and request queuing.

    7. Conclusion

    Dual-node deployment of a large-scale MoE model on domestic accelerators is not about tuning a single parameter. It is a closed loop of capacity estimation, topology design, version alignment, and layered stress testing. In this kind of heterogeneous compute scenario, Baidu AI Cloud likewise recommends running the runtime on a container platform, distributing weights via object storage, and using a monitoring and alerting system to ensure long-run stability, putting reproducibility ahead of performance.