Deploying a Large-Scale MoE Model Across Two Servers and 32 Accelerators
A practical guide to deploying a large-scale multimodal mixture-of-experts model across two servers with 32 accelerator compute units. It covers node registration, high-speed networking, distribution and verification of approximately 1.5 TB of quantized weights, runtime version pinning, tensor and pipeline parallelism, deployment validation, and performance testing. The workflow treats capacity, communication, and operational consistency as a single engineering challenge.
Deploying a Large-Scale MoE Model Across Two Servers and 32 Accelerators
1. Background and Core Challenges
As native multimodal mixture-of-experts (MoE) models grow, a single server can struggle to accommodate both the model weights and the inference runtime. Models with roughly a trillion total parameters, hundreds of billions of active parameters, and million-token context windows place three major demands on deployment infrastructure:
- Sufficient accelerator and host memory. Even with low-bit quantization, model weights can occupy approximately 1.5 TB, requiring multiple nodes and compute units.
- Fast communication within and between nodes. Tensor parallelism, pipeline parallelism, and expert routing generate substantial communication traffic. Network topology and interconnect quality directly affect throughput and latency.
- A consistent, reliable deployment workflow. Large numbers of weight shards and complex dependencies between container images and runtime versions increase the risk of loading failures and performance variability.
This guide uses two servers with a total of 32 accelerator compute units to describe a reusable deployment workflow.
2. Deployment Architecture
The architecture separates the control plane from the inference plane:
- Control plane: Handles node registration, task orchestration, configuration distribution, log collection, monitoring, and alerts.
- Inference plane: Loads the model, processes requests, generates tokens, and returns results.
- Node agent: Runs on each server and initiates a persistent connection to the control plane. Control, monitoring, logging, and inference traffic share a secure tunnel.
This design provides a consistent node onboarding process across accelerator types. An administrator generates an installation command in the management console and runs it on each target server. The node then reports its accelerator count, network devices, storage mounts, and system information.
The deployment environment is summarized below:
| Component | Configuration |
|---|---|
| Number of nodes | 2 |
| Compute units per node | 16 |
| Memory per compute unit | 64 GiB |
| Total compute units | 32 |
| Intra-node parallelism | Tensor parallelism: 16 |
| Inter-node parallelism | Pipeline parallelism: 2 |
| Global parallel size | 32 |
| Model type | Multimodal MoE with low-bit quantization |
| Weight size | Approximately 1.5 TB |
3. Node Registration and Resource Discovery
Register the Nodes
In the management console’s compute-node section, create a node onboarding task and generate a one-time installation command. Run the command on both servers.
Each node then:
- Reports its hostname, operating system version, and available resources.
- Detects accelerator count and memory per accelerator.
- Discovers high-speed network devices and storage mounts.
- Registers its node agent and establishes a secure connection.
Group the Resources
For a multi-node deployment, place both servers in the same resource pool and assign matching labels, such as:
role=llm-nodeaccelerator=multi-dienetwork=high-speed
These labels allow the scheduler to select eligible nodes and avoid placing the workload on general-purpose compute nodes.
4. High-Speed Network Configuration
Large-scale MoE inference is highly sensitive to network performance. Distributed inference may generate traffic from tensor parallelism, pipeline parallelism, and expert parallelism. Both nodes’ accelerator interconnect interfaces must therefore belong to the same parameter network—the network designated for distributed model communication.
Prepare the Network
Create a parameter network in the management console’s network section and add the relevant interfaces from both nodes. The platform should check:
- Reachability between nodes.
- Whether bandwidth meets expectations.
- Packet loss or abnormal latency.
- Consistent configuration across network queues and planes.
Bind the Deployment to the Network
Bind the deployment task to this parameter network. The scheduler should prioritize nodes that have passed network checks, reducing the risk of distributed initialization failures caused by connectivity problems.
Separate Traffic Where Possible
In production, separate inference, management, and storage traffic. At a minimum, model loading and parameter synchronization should use a dedicated high-speed network so that logs, monitoring, or container image downloads do not compete for bandwidth.
5. Preparing and Distributing Model Weights
Select Quantized Weights
Loading full-precision weights for a trillion-parameter MoE model is generally impractical in this deployment configuration. Low-bit quantization schemes such as W4A8 can substantially reduce weight size and memory-access demands while maintaining acceptable model quality.
This deployment uses approximately 1.5 TB of quantized weights distributed across hundreds of shard files. Every shard must be downloaded completely and verified before loading.
Download to the First Node
Select the model source in the model management section and download the weights to the first server. During the download, check:
- Available disk space.
- Whether download concurrency affects other network traffic.
- Support for resuming interrupted downloads.
- Recording of the model revision and checksums.
Copy Directly to the Second Node
The second server can copy the weights directly from the first rather than downloading them again over the public internet.
In the reported test, public-internet downloads reached approximately 50–57 MB/s, while direct node-to-node transfer reached approximately 490 MB/s—close to a tenfold improvement.
For a 1.5 TB weight set, direct transfer substantially reduces preparation time and exposure to public-network bandwidth fluctuations.
Verify Every Shard
After downloading or copying the weights, verify each file’s hash. Proceed with deployment only after all files pass validation.
Record the relevant metadata, for example:
model_revision=pinned_revisionweight_total_size=approximately_1.5TBshard_count=hundredschecksum=all_file_checks_passed
This helps prevent loading failures caused by missing or corrupted shards.
6. Pinning the Runtime Image and Versions
Large-model inference depends on compatible versions of the runtime, operator libraries, communication libraries, and drivers. To keep deployments reproducible, use a container image pinned by immutable digest rather than a floating tag.
Recommended practices include:
- Reference the image by its immutable digest.
- Pin the runtime version in the deployment template.
- Have the node agent verify the image digest at startup.
- Validate image changes on a test node before deployment.
Illustrative configuration:
runtime:image_digest: sha256:<pinned_digest>pull_policy: if_not_presentmodel:path: /models/large-moe-w4a8quantization: w4a8
7. Designing the Parallelism Strategy
Tensor Parallelism Within Each Node
Each server provides 16 compute units, so the deployment uses a tensor parallel size of 16 within each node.
Tensor parallelism distributes a layer’s matrix computations across multiple compute units. It is well suited to high-bandwidth intra-node interconnects.
Pipeline Parallelism Across Nodes
The deployment uses a pipeline parallel size of 2 across the two servers. Different groups of model layers run on different nodes.
This arrangement overcomes single-server capacity limits while reducing frequent, fine-grained communication across nodes.
Global Parallel Configuration
The resulting topology is:
tensor_parallel_size = 16pipeline_parallel_size = 2world_size = 32
The goal is to use the high-bandwidth local interconnect for tensor parallelism and coordinate the two servers through pipeline communication.
8. Deployment Workflow
The end-to-end process consists of nine steps:
- Register the nodes. Run the installation command on both servers and confirm that all 32 compute units are online.
- Create the parameter network. Add both nodes’ high-speed interfaces to the same network and complete connectivity checks.
- Prepare the weights. Download the quantized weights to the first server, then copy them directly to the second.
- Verify the weights. Check every shard’s hash and confirm that the weight set is complete.
- Pin the image. Use an inference runtime image identified by a fixed digest.
- Submit the deployment task. Set tensor parallelism to 16, pipeline parallelism to 2, and the global parallel size to 32.
- Load the model. Monitor logs to confirm completion of shard loading, distributed initialization, and accelerator memory allocation.
- Run health checks. Send test requests to validate multimodal input handling and long-context output.
- Run load tests. Increase concurrency gradually while recording throughput, latency, and error rates.
9. Load Testing and Performance Monitoring
Run load tests from a separate client, routing requests through the platform gateway to the inference instance.
Measure the following:
- Time to first token: Time from sending a request to receiving its first output token.
- Inter-token latency: Time between subsequent output tokens.
- System throughput: Total generated tokens per second.
- Concurrency capacity: Stability at different concurrent request levels.
- Error rate: Timeouts, truncated responses, model-loading failures, and inference exceptions.
- Resource utilization: Compute-unit utilization, memory usage, and network bandwidth.
For million-token context workloads, test long-input requests separately. Observe whether memory allocation, paged caching, and batch scheduling remain stable.
10. Common Issues and Tuning Recommendations
Model Loading Fails
Typical causes include missing shards, checksum mismatches, insufficient disk space, and incompatible runtime images.
Revalidate the weights and ensure that the deployment uses the intended image digest.
Distributed Initialization Times Out
Common causes include nodes not being attached to the parameter network, faulty inter-node links, and firewall restrictions.
Complete network connectivity checks before resubmitting the task.
Throughput Is Lower Than Expected
Review batch scheduling, the distribution of context lengths, expert-routing load, and network congestion.
For long-context requests, limit maximum concurrency as needed to avoid excessive accelerator memory pressure.
Node-to-Node Copies Are Slow
If direct transfers are substantially slower than expected, inspect storage mounts, network queues, and filesystem caching.
For large-file transfers, consider parallel copying in chunks.
11. Security and Reliability Practices
- Set expiration times for node onboarding commands rather than leaving them valid indefinitely.
- Enable integrity verification for model weights and container images.
- Keep inference services within a controlled network and expose only necessary interfaces through the gateway.
- Remove or mask sensitive information in logs and monitoring data.
- Run regression validation before changing runtime versions.
12. Conclusion
Deploying a large-scale multimodal MoE model across two servers and 32 compute units requires more than fitting the weights into memory. Node onboarding, network topology, weight distribution, quantized loading, parallel partitioning, and performance validation must be designed as one integrated workflow.
Direct node-to-node weight transfer, immutable runtime image digests, network-aware scheduling, and a combination of tensor and pipeline parallelism can improve deployment reliability and inference stability. Together, these practices provide a reusable engineering approach for organizations running trillion-parameter models in cloud environments.
