Deploying a Trillion-Parameter MoE Model on Two Nodes of Domestic AI Accelerators: A Hands-On Guide
This article walks through the full process of deploying and validating a 2.8-trillion-parameter mixture-of-experts (MoE) model on two servers equipped with domestic AI accelerator cards. It covers parallelization strategy design (TP16 × PP2), W4A8 quantization, environment preparation, functional smoke tests, and load testing across short, long, and ultra-long context scenarios, along with common pitfalls and engineering recommendations. All steps are platform-agnostic and can be ported to any hardware and software stack that meets similar technical specifications.
Deploying a Trillion-Parameter MoE Model on Two Nodes of Domestic AI Accelerators: A Hands-On Guide
1. Background: The Push for Localized Inference of Ultra-Large Models
As open-source models scale into the trillion-parameter range, single-machine deployment can no longer meet memory and compute requirements, making multi-node distributed inference the standard approach. At the same time, a growing number of enterprises want to migrate inference workloads onto domestically produced AI accelerator cards to address supply chain security, data compliance, and cost optimization. This article uses a natively multimodal MoE model with 2.8 trillion total parameters and roughly one hundred billion activated parameters as the working example, and reviews the general workflow for completing inference deployment and validation on two nodes powered by domestic AI accelerators. The article is not tied to any specific platform or product; every step can be ported to hardware and software stacks that conform to similar technical specifications.
Before diving into practice, three key premises should be clarified:
- Model size determines the parallelization strategy. With 2.8T parameters, even 4-bit quantized weights amount to roughly 1.5TB—far beyond the memory capacity of a single card or even a single machine. Cross-node tensor parallelism (TP) and pipeline parallelism (PP) are mandatory.
- Quantization is a prerequisite for deployment. The community provides a W4A8 quantized version of this model (4-bit weights, 8-bit activations), with a weight footprint of about 1.47TB. This dramatically lowers the memory bar while keeping accuracy loss under control.
- The software stack must be deeply adapted to the hardware. Domestic accelerators typically ship with customized inference framework branches. You should use the official container image released alongside the model adaptation, rather than compiling from source and introducing unpredictable compatibility issues.
2. Environment Preparation Before Deployment
2.1 Hardware and Topology Planning
This practice uses two servers with domestic accelerator cards, each containing 16 compute dies, for a total of 32 dies. The two nodes communicate over a high-speed interconnect, which is the prerequisite for the high-frequency all-reduce communication within tensor parallel groups to run efficiently. In practice, it is recommended to verify the actual available bandwidth between nodes with a bandwidth testing tool before deployment, ensuring it reaches a reasonable proportion of the hardware’s nominal value. Otherwise, communication will become a significant bottleneck in long-sequence scenarios.
2.2 Obtaining Weights and the Container Image
The quantized weights are obtained from an open-source model hosting platform, then placed on shared storage or written to local high-speed disks on both nodes. Given that the weights total nearly 1.5TB, it is advisable to:
- Use a sharded parallel download tool to speed up retrieval;
- Verify the hash of each shard to avoid silent corruption that would cause loading failures;
- If each node loads its own local copy, ensure the two copies are identical.
For the container image, choose the official inference framework image released with the model adaptation. It already contains the operator implementations, communication libraries, and driver dependencies adapted for this model. Manually installing dependencies on a generic image is not recommended—version mismatches are the most common source of failure in this type of deployment.
2.3 Choosing a Deployment Method
If you are using a cloud inference service platform or container platform that supports domestic accelerator card configurations, you can directly select a pre-built inference template, and the platform will automatically handle node scheduling, weight mounting, and startup parameter rendering. For self-built clusters, you need to expose accelerator resources to Pods through a container orchestration system (such as Kubernetes with device plugins) and orchestrate the cross-node inference group using host networking or RDMA networking mode.
3. Parallelization Strategy Design: TP16 × PP2
This is the core of the entire solution. The 32 dies are organized into a topology of “tensor parallelism degree 16 × pipeline parallelism degree 2”:
- Tensor parallelism (TP=16): The 16 dies within a single machine shard the weight matrices of each layer, aggregating results via all-reduce during the forward pass. For an MoE model, the expert layers are sharded along the expert dimension and the attention layers along the attention head dimension, so each die carries only about 1/16 of the layer parameters.
- Pipeline parallelism (PP=2): The model’s layer sequence is split into two segments: the first segment’s layers reside on node one, and the second on node two. Activation values are exchanged between nodes only at the pipeline boundary, so the communication volume is far smaller than intra-TP-group communication. Placing the PP dimension across machines while confining the TP dimension within a single machine is the standard practice that matches the hardware characteristic of “high intra-machine bandwidth, relatively lower inter-machine bandwidth.”
A rough estimate: spreading 1.47TB of weights across 32 dies yields about 46GB of weight occupancy per die. Adding KV cache and activation overhead on top, this sits at a reasonable level relative to the per-die memory capacity of this class of accelerator. For 1M-token ultra-long context capability, KV cache consumption grows linearly with concurrent sequence length. In practice, you need to reserve sufficient headroom using the framework’s memory utilization parameter (typically expressed as an upper limit on memory fraction), and pay attention to how PagedAttention-style mechanisms control fragmentation in long-context scenarios.
4. Service Validation and Load Testing
After the deployment is up, validation should proceed in three progressive layers.
4.1 Functional Smoke Tests
First, send requests through the standard chat interface and confirm that:
- Normal multi-turn conversation output is correct, with no garbled text or abnormal truncation;
- The model’s reasoning field is parsed and returned correctly;
- The function calling chain is complete—the model can continue generating after tool results are fed back.
These three items cover the core capability surface of a modern agent-oriented LLM. An anomaly in any of them indicates a problem with template configuration or parser parameters.
4.2 Benchmark Load Testing
Once functional validation passes, move on to load testing. This practice designed three representative workload groups:
- Random short-text scenario: 2048-token input, 512-token output, simulating high-concurrency requests for routine conversation and content generation;
- Agentic medium-to-long-text scenario: approximately 80K-token input, simulating long-context calls such as retrieval-augmented generation and document understanding;
- Agentic ultra-long-text scenario: approximately 200K-token input, approaching the practical boundary of the model’s long-context capability, with a focus on stressing KV cache management and scheduler stability.
A total of 836 requests were issued across the three test groups, and all returned successfully—no timeouts, no OOM, no scheduling failures. This result shows that the two-node, 32-die topology reached a usable level in both functional correctness and stability.
4.3 Caveats in Interpreting Results
It should be objectively noted that “all requests succeeded” validates reliability and a throughput floor, not latency optimality. In long-context scenarios, time to first token (TTFT) rises significantly with input length. For production deployment, set reasonable concurrency caps and request timeouts based on business SLAs, and use general optimization techniques such as prefix caching and chunked prefill to smooth out head-of-line blocking of short requests by long ones.
5. Common Issues and Recommendations in Engineering Practice
- For startup failures, check three things first: weight shard integrity, the match between the container image and the model version, and cross-machine network connectivity. The vast majority of “won’t start” problems originate in one of these three areas.
- Accuracy regression testing for quantized models cannot be skipped. Before going live, compare the quantized version’s outputs against the full-precision version on a set of business-relevant samples, and confirm the difference is acceptable before scaling up traffic.
- Monitoring should cover die-level metrics. Beyond the usual QPS, latency, and error rate, collect per-die memory usage, interconnect bandwidth utilization, and chip temperature. The long-term stability of domestic accelerators depends heavily on thermal and power management.
- Version upgrades should go through canary releases. The inference framework and model weights are strongly coupled; any upgrade on either side should first undergo full regression of all three load test groups in an isolated environment.
6. Conclusion
Deploying a trillion-parameter-class MoE model on two nodes of domestic AI accelerators is fundamentally a systems engineering problem of “parallel topology design + software/hardware stack adaptation + layered validation.” Confining TP within a machine while spanning PP across machines fits the hardware’s interconnect characteristics; W4A8 quantization compresses memory requirements into a deployable range; and the three-tier load test combination—functional, short-text, and long-text—forms a reliable acceptance standard. As the domestic inference ecosystem continues to mature, localized deployment of such ultra-large models is moving from “it can run” to “it runs stably and cost-effectively,” giving enterprises more autonomous options for deploying LLMs in scenarios such as intelligent customer service, code assistance, and long-document analysis.
