Dual-Node MoE Deployment on Domestic AI Accelerators: TP16 × PP2 for a 2.8T-Parameter Model
This article presents a practical dual-node deployment of an ultra-large multimodal MoE model on domestically developed AI accelerator servers. It covers resource planning, node onboarding, parameter network configuration, weight preparation, inference instance setup with TP16 × PP2, functional validation, stress testing, and troubleshooting. The deployment uses 32 accelerator units across two servers, runs a W4A8-quantized model with about 1.47 TB of weights, and completes 836 stress-test requests across short, 80K, and 200K context scenarios.
1. Project Background and Deployment Goals
As ultra-large mixture-of-experts models move into production environments, single-machine compute and memory capacity often cannot meet the combined requirements of model loading, KV cache management, and long-context inference. For a natively multimodal MoE model with trillions of total parameters and over one hundred billion activated parameters, multi-node, multi-accelerator deployment has become a practical engineering approach.
This practice uses two domestically developed AI accelerator servers. Each server is equipped with 16 accelerator units, and each accelerator unit provides 64 GiB of memory, for a total of 32 accelerator units. The deployment target is a natively multimodal MoE model with about 2.8T total parameters, about 104B activated parameters, and support for contexts up to about 1M tokens. The model uses W4A8 quantization, and the total weight capacity is about 1.47 TB.
The core deployment goals are:
- Load model weights on both servers.
- Establish high-bandwidth compute communication across nodes.
- Run the model using a combination of intra-node tensor parallelism and inter-node pipeline parallelism.
- Validate basic capabilities such as text dialogue, long-context inference, and tool calling.
- Confirm service stability and request success rate through multiple stress tests.
The final topology uses TP16 per node and cross-node PP2, with a world size of 32. In other words, 32 accelerator units jointly form one inference instance.
2. Overall Architecture and Resource Planning
The deployment can be abstracted into the following structure:
Client or load generator│▼Unified access gateway│▼Model inference service┌────┴────┐Node 1: TP16 Node 2: TP16│└── Cross-node pipeline parallelism PP2
TP16 means that the 16 accelerator units within a single node jointly participate in tensor sharding. PP2 means that the model computation graph is divided into two pipeline stages, deployed separately on the two servers. The benefits of this design are:
- Intra-node communication mainly handles synchronization and aggregation after tensor sharding.
- Inter-node communication mainly handles activation transfer between pipeline stages.
- Each node handles a relatively clear range of model computation.
- Compared with large-scale cross-node tensor parallelism, this reduces inter-node communication pressure.
It is important to note that a parallelism strategy is not simply a matter of “more cards is better.” Model structure, memory capacity, quantization format, communication bandwidth, pipeline split points, and server-side scheduling policies all affect the final result. For ultra-large models, the following resources should be confirmed before deployment:
- Whether the number of accelerator units meets the world size requirement.
- Whether each card’s memory can hold the corresponding weight shard and runtime cache.
- Whether the inter-node accelerator network has stable connectivity.
- Whether the container runtime supports the target model’s operators and quantization format.
- Whether the software versions, driver versions, and firmware environments on both machines are consistent.
3. Node Onboarding and Environment Preparation
1. Onboard compute nodes
After creating compute nodes in the unified management platform, generate installation commands and execute them on the two servers. The node agent connects outbound to the management side, so the management side generally does not need direct access to the node’s internal network.
After the nodes come online, the platform needs to identify the following information:
- Number of accelerator cards and device IDs.
- Memory capacity of each device.
- Host CPU, memory, and local disk.
- Accelerator network and regular network interfaces.
- Container runtime and basic system information.
The environments of the two servers should be kept as consistent as possible. This is especially important for drivers, runtimes, device firmware, and container permission settings. Large version differences may cause one node to load the model successfully while the other fails during communication initialization or operator execution.
2. Configure the parameter network
Multi-node inference cannot rely only on the regular management network. Model parallelism generates a large amount of device-to-device communication, so the high-speed accelerator networks of both nodes need to be added to the same parameter network.
After configuration, run connectivity checks first, focusing on confirming:
- The two nodes can discover each other.
- All accelerator units can participate in communication.
- Network interface binding relationships are correct.
- Device ID mapping is stable across different nodes.
- Communication tests show no obvious packet loss, timeouts, or bandwidth anomalies.
If the parameter network is misconfigured, the model may wait for a long time during startup, or communication problems may only appear when the first request arrives. Therefore, do not skip pre-deployment network checks.
3. Prepare model weights
The total model weight capacity is about 1.47 TB. Downloading separately from the public internet on both nodes increases time cost and failure probability. A better approach is to download the weights to the first node first, then copy them to the second node over the high-speed inter-node network.
In this test, the public internet download speed was about 50–57 MB/s, while direct node-to-node transfer was about 490 MB/s. With this speed difference, downloading one copy and then copying it between nodes significantly shortens overall preparation time and helps ensure that both machines use exactly the same weight version.
When preparing weights, record:
- Model version identifier.
- Number of weight files.
- Total weight bytes.
- Quantization format.
- Config file and vocabulary version.
- File checksums.
In this deployment, the weights were split into 346 shards with a total size of 1,466,844,769,783 bytes. For multi-node deployment, the directory structures on both nodes must be consistent to avoid a pipeline stage being unable to find the corresponding files due to path differences.
4. Inference Instance Configuration
1. Select a compatible model runtime
Choose an inference image or runtime that has already been adapted for the target model and domestic accelerator cards. The runtime should cover at least the following capabilities:
- MoE routing and expert parallelism.
- W4A8 quantized weight loading.
- Multimodal input processing.
- Long-context KV cache management.
- Multi-node communication initialization.
- Tool calling or structured output.
- Device-side operator execution and memory management.
The image version should be fixed. Do not use floating tags that may change at any time in formal testing. For reproducible deployment, record the image digest, model version, config file, and launch parameters.
2. Set parallelism parameters
This instance uses the following parallelism strategy:
Number of nodes: 2Accelerators per node: 16Intra-node tensor parallelism: TP16Cross-node pipeline parallelism: PP2Global processes: 32
In actual configuration, the product of TP and PP should match the total number of devices participating in inference:
world_size = tensor_parallel_size × pipeline_parallel_size
Avoid duplicate device occupation or missing devices. The deployment platform usually generates the device mapping automatically, but engineers should still confirm from the logs that each process is bound to the correct accelerator unit.
3. Handle memory and cache
Quantized weights do not mean that memory only needs to hold the model files themselves. Runtime also requires additional space for:
- Model structure and quantization metadata.
- Activations.
- KV cache.
- Communication buffers.
- Intermediate representations of multimodal inputs.
- Scheduler and request queue data.
This is especially important in long-context tests such as Agentic 80K and Agentic 200K, where KV cache consumption increases significantly. Therefore, reserve some memory headroom and adjust the maximum context length, concurrency, and batching strategy according to service goals.
5. Functional Validation After Startup
After the instance starts successfully, do not immediately move to large-scale stress testing. Complete layered validation first.
Layer 1: Basic availability
Send a simple text request and confirm:
- The server can return normally.
- The first token can be generated.
- The output is not obviously truncated.
- Resources can be released after the request completes.
- The service does not exit abnormally when multiple requests are sent consecutively.
Layer 2: Inference process validation
Choose questions that require longer reasoning or multi-step processing, and observe whether the model can complete inference stably. At this stage, focus on:
- Whether abnormal pauses occur during generation.
- Whether the output contains repeated fragments.
- Whether multi-turn dialogue context is correctly retained.
- Whether long output triggers out-of-memory errors.
- Whether context leakage occurs between different requests.
Layer 3: Tool calling validation
For services that support tool calling, use structured tool descriptions to verify whether the model can:
- Correctly identify scenarios that require a tool call.
- Generate call parameters in the agreed format.
- Receive tool return results.
- Continue generating the final response based on the results.
A normal tool-calling chain indicates that model output, service orchestration, and request protocol are basically aligned.
6. Stress Test Design and Results
This test covers three types of requests:
- Random input of 2048 tokens and output of 512 tokens.
- Agentic 80K long-context scenario.
- Agentic 200K ultra-long-context scenario.
The three test groups completed 836 requests in total, all successful. This result shows that under the current configuration, model version, and runtime environment, the dual-node instance has good basic stability and can cover workloads ranging from ordinary short requests to long-context agent tasks.
However, “all successful” mainly reflects the request completion rate and is not equivalent to a final performance conclusion for production. Before formal launch, the following should also be recorded:
- Time to first token.
- End-to-end latency per request.
- Input and output throughput.
- Queue time under changing concurrency.
- Peak memory usage.
- Accelerator utilization.
- Share of inter-node communication.
- Error rate after long-running operation.
It is recommended to divide stress testing into three stages: warm-up, steady operation, and limit testing. The warm-up stage triggers operator compilation and cache initialization. The steady stage obtains representative average data. The limit stage gradually increases concurrency or context length to observe the system’s failure boundary.
7. Common Issues and Troubleshooting
1. Model startup takes too long
First check whether the weight directory is complete, whether the paths on both nodes are consistent, and whether there are duplicate loading or file permission issues. If logs remain stuck at communication initialization for a long time, check the parameter network and device mapping.
2. One node succeeds while the other fails
This is usually related to inconsistent drivers, runtimes, firmware, or container environments. Compare system information, device status, mount directories, and environment variables on both nodes, rather than checking only model files.
3. Out of memory on long-context requests
You can reduce concurrency, decrease the maximum context length, adjust the KV cache memory proportion, or split different request types into separate instances. For ultra-long requests, do not estimate memory requirements based only on weight size.
4. Occasional request timeouts
Distinguish whether the cause is slow model generation, gateway timeout, inter-node communication jitter, or server-side queue backlog. Check request logs, device monitoring, communication logs, and gateway access logs together to build a complete timeline.
8. Conclusion
Deploying an ultra-large MoE model on dual-node domestic AI accelerator cards is not only about loading the weights. More importantly, it requires coordination across nodes, networks, parallelism strategy, runtime, and service entry points.
This practice uses two servers, 32 accelerator units, and a TP16 × PP2 topology to successfully run a W4A8-quantized model of about 1.47 TB and complete validation for ordinary requests, long-context requests, and tool calling. The three stress test groups completed 836 requests in total with all requests successful, indicating that this deployment path has good engineering feasibility.
For future production work, it is recommended to further improve performance baselines, fault recovery, weight validation, monitoring and alerting, and rolling upgrade mechanisms. Model versions, runtime environments, parallelism parameters, and stress test data should also be included in standardized delivery documentation. This will help turn a successful experimental deployment into a reproducible, maintainable, and scalable domestic compute inference solution.
