Deploying a 2.8T MoE Large Model on Dual Domestic AI Accelerator Servers: A Practical Guide
This article documents the deployment of a 2.8-trillion-parameter multimodal MoE model with about 104B active parameters and a 1M-token context window, running on two domestic AI accelerator servers (32 dies total) connected via HCCS high-speed links. It covers the hardware and network setup, parallel strategy (TP16 × PP2), efficient weight distribution (1.47 TB via public download then internal fast transfer), inference deployment with framework image pinning, functional and stress testing results, and troubleshooting tips for memory and network issues. The article also discusses the limitations of the reported test data and provides guidance for estimating KV cache memory and extending to longer contexts.
1. Background: Why Multi-Node Deployment?
The parameter scale of multimodal large models has reached hundreds of billions or even trillions. A single server’s GPU memory (or accelerator memory) is usually insufficient to hold the entire set of weights, making multi-node, multi-card deployment a common practice in enterprise environments. While the ecosystem compatibility of domestic AI accelerator chips has been steadily improving, deploying ultra-large MoE (Mixture of Experts) models still presents three major challenges: memory management, cross-node communication bandwidth, and inference framework adaptation.
This article uses as an example a natively multimodal MoE model with a total parameter count of 2.8T, about 104B active parameters, and a theoretical maximum context length of 1M tokens. The deployment was completed on Baidu AI Cloud’s heterogeneous computing platform, using two domestic AI accelerator servers, each with 16 dies, for a total of 32 dies. Figures explicitly disclosed in the original text are cited as-is; metrics not provided in the original are marked as “not disclosed.”
2. Deployment Environment
| Item | Configuration |
|---|---|
| Compute nodes | 2 servers, each with 16 dies, 64 GiB memory per die, 32 dies total |
| Inter-node interconnect | HCCS high-speed links carry compute communication |
| Parallel strategy | Node-internal TP16 (tensor parallelism), cross-node PP2 (pipeline parallelism), world size = 32 |
| Model weights | Community open-source W4A8 quantized weights (4-bit weights, 8-bit activations), total volume ~1.47 TB |
| Inference framework | Domestic adaptation image of a mainstream open-source framework |
Memory budget estimation: 1.47 TB ≈ 1.34 TiB. When evenly distributed across 32 dies, each die holds about 42.8 GiB of weights. After subtracting the weights from the 64 GiB per die, approximately 21 GiB remains per die for KV cache, activation values, and framework workspace. This is a rough estimate based on uniform splitting. During TP splitting, some parameters are not split but are replicated onto every card, so the actual available space should be determined by runtime monitoring data.
The platform uses a Server–Agent architecture. Both the Agent and the Server are static single-binary files. The Agent is deployed on compute nodes and actively connects outbound to the Server. Control signaling, monitoring logs, and inference traffic share the same secure tunnel. The onboarding flow for domestic accelerator nodes is the same as for general GPU nodes: copy the installation command from the console, execute it on the machine, and the node automatically reports NPU, NIC, and storage information.
3. Node Onboarding and Parameter Network Construction
3.1 Node Onboarding
In the platform’s “Compute Node → Add Node” page, generate the installation command and execute it on both domestic AI servers. The platform automatically detects the underlying hardware and reports the 16 dies of each server. Subsequent fine-grained scheduling depends on this resource reporting step, so after going live, you should first verify that the die count is correct.
3.2 Parameter Network Construction
The core difficulty of multi-node deployment lies in cross-node communication. Multi-node setups for domestic AI accelerators typically use the accelerator’s native network. In the platform’s “Network” configuration, you need to add the HCCS network interfaces of both nodes to the same parameter network. The platform includes a built-in card-to-card connectivity check tool to verify the high-speed interconnect status between nodes. When deploying an instance, the system selects nodes that meet the requirements based on the network topology, avoiding suboptimal topology that could degrade communication performance. The original text does not specify the HCCS interface name or measured bandwidth; it is recommended to run the connectivity check before deployment and save the results.
4. Weight Distribution: Download First, Then Transfer Directly
Downloading 1.47 TB of weights is the most time-consuming step in the deployment. If each node pulled from the public internet, it would waste bandwidth and extend the deployment time.
4.1 Public Download to First Node
In the “Model” management interface, select a mainstream open-source model hosting platform as the data source and download the weights to the first node. Public internet download speed is approximately 50–57 MB/s. At that speed, 1.47 TB would take about 7–8 hours.
4.2 High-Speed Direct Transfer Between Nodes
Once the first node completes the download, the second node does not need to access the public internet. Using the platform’s “Copy to…” feature, the weights can be transferred directly from the first node to the second node. Internal network direct transfer speed is about 490 MB/s, so the same volume of data takes about 50 minutes—roughly 8–10× faster than public download.
The original text did not mention the following, but they are worth doing during large-file copying: verify SHA256 checksums after copying to confirm file integrity; use resumable transfer if the transfer is interrupted; check the target node’s disk space and read/write permissions before starting.
5. Inference Deployment and Parallel Strategy
After preparation, select the deployment template in the platform and deploy with one click. The platform launches a 32-die distributed inference instance across the two nodes following the TP16 × PP2 strategy.
5.1 Division of Work for TP16 × PP2
The model has very large per-layer parameters; a single die cannot hold a complete layer. Tensor parallelism (TP) splits the weights of a single layer across the 16 dies on the same node, with intra-layer communication relying on the high bandwidth of the node-internal HCCS. Pipeline parallelism (PP) assigns different layers of the model to the two nodes, so that only activation values are transmitted across nodes. This keeps the cross-node network load small, reducing its impact on inference throughput.
5.2 Image Version Pinning
The deployment template pins the inference framework image by digest (a SHA256 hash). Even if the image repository updates the “latest” tag, the platform will still pull the specific verified version, avoiding operator incompatibility or performance regressions introduced by framework upgrades. For rollback, simply change the digest in the template back to the previous value.
6. Functional Verification and Stress Testing
6.1 Functional Verification
After the instance is launched, test regular conversation, multi-turn reasoning, and external tool invocation. All functions performed normally during testing.
6.2 Stress Testing
Stress traffic originated from the Server end, routed through the platform gateway to the inference instance. Three test groups were conducted:
| Test Name | Parameters | Focus |
|---|---|---|
| Random short-text throughput | 2048/512 | Concurrent processing capability and time-to-first-token latency |
| Long-text Agentic | 80K | KV cache management under long sequences |
| Ultra-long context Agentic | 200K | Memory usage and attention computation efficiency at long sequences |
The three groups processed a combined total of 836 requests. The original report did not show any out-of-memory (OOM) or timeout errors.
The applicability of these results is limited, mainly for three reasons:
- The original text does not provide per-group request count, concurrency, input/output length distribution, P50/P95 time-to-first-token, tokens-per-second, throughput, peak memory, or test duration. Therefore, these results cannot be directly used for capacity planning.
- 200K covers only about 20% of the 1M maximum. The full 1M context was not tested, so the model’s behavior at 1M length cannot be inferred.
- The test duration was very short and did not cover long-running stability.
7. Common Issues
How to choose TP16+PP2?
TP should be placed within a node because HCCS bandwidth is high and intra-layer communication is frequent. PP is placed across nodes because only activation values cross nodes, resulting in lower communication volume. If the model fits entirely within a single node, cross-node splitting is usually unnecessary and can reduce cross-node communication. The choice depends on model size, memory budget, and measured network bandwidth.
How to estimate KV cache memory for 1M context?
The KV cache size is roughly: 2 × number of layers × number of KV heads × head dimension × sequence length × bytes per element, then divided across dies according to the parallel split. KV cache grows linearly with sequence length. Based on the rough budget above, each die has about 21 GiB available for KV cache and other runtime overhead. A precise estimate requires the model configuration file’s layer count, KV head count, and head dimension. It is recommended to first measure peak memory at 200K length and then extrapolate linearly, but extrapolation cannot replace actual testing at 1M length.
How to troubleshoot OOM?
Follow this checklist in order:
- Check per-die memory monitoring to identify which card hits the limit first.
- Reduce the maximum context length or concurrency and observe changes in peak memory.
- Verify that the deployment template’s TP16 × PP2 matches the actual topology of the 32 dies.
- Confirm that the image digest matches the one recorded in the template.
- Compare the SHA256 of the weight files to rule out corruption during copying.
8. Conclusion
Under the configuration and test set described in this article, the two domestic AI servers successfully deployed inference for a 2.8T MoE model. Functional testing and three stress test groups completed without OOM or timeout errors. The platform’s unified Agent architecture and topology-aware scheduling simplified node onboarding and instance deployment.
To generalize these conclusions to other models, higher concurrency, or longer runtime, additional testing is needed. In particular, 1M-context testing, complete performance metrics, and long-duration stability data are still unavailable.
