Deploying a Trillion-Parameter MoE Model Across Two Multi-Chip Servers
This guide covers the deployment of a native multimodal MoE model with 2.8 trillion total parameters, approximately 104 billion active parameters, and a one-million-token context window across two servers with 32 compute dies. It explains W4A8 quantization, TP16 and PP2 parallelism, node onboarding, high-speed interconnect configuration, weight distribution, and reproducible container environments.
Mixture-of-experts (MoE) architectures have become an important direction for foundation models because they support very large parameter counts while activating only a subset of those parameters during inference. However, deploying models with trillions of parameters and supporting context windows of up to one million tokens places substantial demands on accelerator memory, inter-chip bandwidth, and cluster deployment engineering.
This guide walks through a two-server deployment of a native multimodal MoE model with 2.8 trillion total parameters, approximately 104 billion active parameters, and a one-million-token context window.
1. Technology Selection and Architecture Design
Model Quantization and Memory Planning
The original multimodal MoE model exceeds the accelerator memory capacity of a single server, making low-bit quantization necessary. W4A8 quantization—4-bit weights and 8-bit activations—offers a practical balance between model accuracy and memory usage. With this scheme, the model footprint is reduced to approximately 1.47 TB.
The hardware configuration consists of two servers, each containing 16 compute dies with 64 GiB of accelerator memory per die. Together, the 32 dies provide 2 TiB of memory for model weights, the KV cache, and activations.
Multidimensional Parallelism
Distributing a 1.47 TB model across 32 compute dies requires an appropriate partitioning strategy. Because inter-server network bandwidth is typically lower than intra-server interconnect bandwidth, this deployment combines tensor parallelism within each server with pipeline parallelism across the two servers:
- Intra-server tensor parallelism (TP16): Model tensors are partitioned across the 16 dies in each server using a high-bandwidth interconnect, substantially reducing weight-loading latency.
- Inter-server pipeline parallelism (PP2): Model layers are divided into two pipeline stages, with one stage deployed on each server. Cross-server communication transfers intermediate activations rather than performing tensor-parallel communication across the slower inter-server network.
- Overall parallel configuration: The world size is set to 32, covering the complete compute topology.
2. Platform Architecture and Node Onboarding
The control-plane and data-plane architecture of the underlying cloud-native AI platform is important when deploying models at this scale. The platform used in this deployment has a lightweight control plane consisting of a central controller and multiple edge agents.
Architecture and Traffic Management
- Statically compiled single binary: Each edge agent is distributed as a statically compiled binary with no additional dependencies, reducing the risk of environment conflicts.
- Outbound connection model: Agents running on compute nodes initiate connections to the central controller. No additional listening ports need to be opened on the nodes, improving security and simplifying firewall configuration.
- Multiplexed traffic tunnel: Control commands, monitoring metrics, logs, and inference traffic share a single secure tunnel, reducing network topology complexity.
Node Onboarding Workflow
The onboarding process is largely consistent for supported NPU and GPU nodes. On the platform used in this deployment, an administrator generates an installation command from the compute-node management page and runs it on the target server.
Once started, the edge agent automatically inventories the hardware and reports information such as the NPU model, network interface status, and storage mounts to the platform. This enables streamlined node registration without extensive manual configuration.
3. Deployment Steps and Performance Optimization
Configure the High-Speed Communication Network
Multi-node, multi-accelerator inference depends heavily on reliable connectivity between accelerators. For this two-server deployment, the high-speed interconnects of both nodes must be assigned to the same parameter communication network through the platform’s network configuration interface.
The platform automatically checks accelerator connectivity using tests such as ping checks or bandwidth stress tests to verify that the topology is healthy. During scheduling, it uses affinity to this communication network to place the two nodes for a task on physical infrastructure with the required high-speed connectivity.
Distribute Model Weights Efficiently
The 1.47 TB weight set contains hundreds of safetensors shards, making downloading and synchronization time-consuming. Downloading the full model independently on both servers consumes public-network bandwidth and increases setup time.
The recommended approach is to download once over the public network, then transfer the weights directly between nodes over the internal network:
- Download to the first node. Use the platform’s model repository workflow to download the weights from an open-source model community to the first server. In this deployment, public-network bandwidth limited download speeds to approximately 50–57 MB/s.
- Copy directly to the second node. Instead of downloading the model again over the public network, use the platform’s “Copy to…” function to transfer the weights from the first node to the second over the internal network.
- Verify integrity. With a weight set this large, a corrupted file can cause inference failures. After the transfer completes, the platform automatically verifies the hash of every shard on both nodes to ensure byte-for-byte consistency.
Direct node-to-node transfer reached approximately 490 MB/s in this deployment—nearly 10 times the public-network download speed—substantially reducing cluster initialization time.
Pin the Container Environment and Load the Image
Use the officially provided high-performance inference container image to maintain compatibility between the inference framework and the underlying NPU drivers.
When configuring deployment through the platform, pin the image template to its digest, such as a SHA256 value, rather than relying only on a mutable image tag. This prevents tag changes in the registry from introducing environment inconsistencies.
At container startup, mount the required NPU devices, configure shared memory, and attach the model storage volume.
The following pseudocode illustrates the inference container configuration:
# Pseudocode example: inference container startup configurationdocker run -d \--name moe_inference_server \--device /dev/davinci0 ... --device /dev/davinci15 \--shm-size 16g \-v /mnt/models/moe_w4a8:/workspace/model \-v /usr/local/dcmi:/usr/local/dcmi \quay.io/registry/vllm-ascend:moe-a3 \--tensor-parallel-size 16 \--pipeline-parallel-size 2 \--model /workspace/model
4. Summary and Best Practices
Deploying a trillion-parameter MoE model across two multi-chip servers is a complex systems engineering task. The central challenge is aligning model partitioning with the bandwidth characteristics of the hardware interconnects.
W4A8 quantization reduces the model footprint, while the TP16 + PP2 configuration distributes the model beyond a single server’s memory capacity. Keeping tensor parallelism within each server and using pipeline parallelism between servers limits the impact of lower inter-server bandwidth.
Operationally, outbound agent connections and multiplexed secure tunnels simplify node access and traffic management. Downloading weights once and distributing them over the internal network accelerates initialization, while shard-level hash verification protects model integrity. Pinning container image digests helps keep the inference environment consistent.
Together, these practices provide a deployment approach for very large MoE models as NPU-based AI infrastructure continues to mature.
