Deploying an Ultra-Large Model Across Two Servers with Chinese-Developed AI Accelerators
This article examines the engineering requirements for deploying an ultra-large mixture-of-experts model across two accelerator servers. Based on a reference deployment with 32 compute chiplets and approximately 1.47 TB of quantized weights, it covers memory planning, parallelism, network validation, weight distribution, staged acceptance testing, load-test interpretation, and production operations. The focus is on moving beyond successful model loading to a reproducible, reliable inference service.
1. Deployment Goals: From Loading the Model to Running a Reliable Service
Running an ultra-large model on Chinese-developed AI accelerators starts with capacity and compute requirements. However, delivery quality often depends on whether communication, scheduling, and operational processes work together reliably.
A model that loads successfully may still fail on long inputs. An endpoint that returns an answer may not support streaming, tool calls, or concurrent requests correctly. A two-server deployment therefore needs acceptance criteria at three levels:
- Resource availability: device detection, device memory, storage capacity, and inter-node communication.
- Inference correctness: weight loading, input processing, text generation, and structured responses.
- Service reliability: request queuing, timeout handling, failure recovery, and continuous monitoring.
The reference deployment uses two accelerator servers, each with 16 compute chiplets and 64 GiB of device memory per chiplet, for a total of 32 chiplets. The model has a mixture-of-experts (MoE) architecture with approximately 2.8 trillion total parameters and 104 billion active parameters per token. It uses 4-bit weights and 8-bit activations, with weight files totaling approximately 1.47 TB.
These figures illustrate the deployment’s scale; they are not a standard configuration for all comparable models. Model architecture, quantization methods, and inference implementations can substantially change device memory, communication, and operator requirements.
2. Capacity Planning: Leave Room Beyond the Weights
2.1 Active Parameters Do Not Determine MoE Memory Requirements
An MoE model typically activates only a subset of its experts for each token. As a result, the parameters involved in a single computation can be much fewer than the model’s total parameters. This does not mean that only the active weights need to be stored during deployment.
In a conventional deployment with resident weights, all expert weights must still be distributed across the devices. Active parameter count helps characterize compute requirements, while total parameter count and quantized weight size more directly determine storage and device memory requirements.
Capacity planning should include at least:
- Model weights and quantization metadata;
- Temporary tensors used during inference;
- Attention key-value (KV) caches;
- Communication buffers;
- Runtime management overhead;
- A safety margin for variations in request length.
The reference environment provides:
32 × 64 GiB = 2,048 GiB of device memory
This is aggregate capacity, not a contiguous allocation available to a single process. Weights must be partitioned according to the parallelism strategy, and each device must also accommodate its local caches and runtime data.
2.2 Weight Size Alone Does Not Establish Concurrency Capacity
Fitting the weights into device memory demonstrates basic feasibility, not maximum concurrency. Concurrent request capacity also depends on context length, output length, cache precision, cache allocation strategy, and memory consumption at different inference stages.
For the same number of concurrent requests, short question-answer exchanges and very long document analysis tasks can impose substantially different cache requirements. Long inputs can also create large transient compute and memory demands during prefill.
A safer approach is to increase load incrementally:
- Confirm that a minimal request completes.
- Gradually increase input length.
- Increase concurrency only after length testing.
At each step, record peak device memory, time to first token, output token rate, and failure causes rather than starting immediately with high concurrency.
3. Parallelism: Match Computation to the Hardware Topology
The reference deployment uses a tensor parallel degree of 16 and a pipeline parallel degree of 2, giving a total parallel size of 32. In this arrangement, the 16 chiplets within each server jointly execute one pipeline stage, and the two servers host different stages.
3.1 Tensor Parallelism Distributes Layer Weights and Computation
Tensor parallelism splits parts of a model layer’s tensors and computation across multiple devices. It reduces the per-device burden of layer weights and computation, but requires frequent inter-device communication.
Large tensor parallel groups are therefore generally better suited to hardware domains with high bandwidth and low latency. Device count alone is not enough to choose the parallel degree: actual topology, operator implementations, and communication efficiency also matter.
3.2 Pipeline Parallelism Partitions Layers Across Nodes
Pipeline parallelism usually divides the model into stages along its layers, with intermediate activations passed between stages. Placing one stage on each server helps avoid extending all tensor parallel communication across nodes.
Pipeline parallelism still has costs. Uneven stage workloads, small request batches, or insufficient scheduling can create waiting periods and idle pipeline stages.
For MoE models, expert routing also affects load distribution. Tensor and pipeline parallel degrees do not fully describe expert placement. The deployment must separately verify expert sharding, routing communication, and runtime support rather than assume an optimal expert layout will emerge automatically.
3.3 Correct Topology Matters More Than Correct Configuration Numbers
Before deployment, create a device mapping that identifies nodes, chiplet IDs, communication interfaces, and processes. Verify at least the following:
- Each worker process is bound to its intended device.
- Parallel groups contain all required members, without duplicates.
- Inter-node addresses and routes are reachable.
- Device communication uses the intended accelerator network.
- Software environments and communication component versions match across nodes.
If processes start but the first inference request stalls, investigate communication group initialization, device binding, and inter-node connectivity before simply increasing the API timeout.
4. Network Planning: Distinguish Control Traffic from Compute Traffic
Distributed inference typically involves several types of traffic:
- Control traffic: task dispatch, node status, and configuration management.
- User traffic: inference requests and responses.
- Compute traffic: tensor or activation exchanges between devices.
- File traffic: weight downloads and copies between nodes.
These traffic types may share physical infrastructure, but their performance requirements differ. Control traffic prioritizes reliability and manageability; compute traffic requires low latency and high throughput; file transfers can consume substantial bandwidth for extended periods.
A node’s ability to reach the management endpoint does not prove that device communication works. Deployment checks should independently validate:
- Connectivity between the management endpoint and nodes;
- File transfers between nodes;
- Communication between accelerators;
- The request path between the gateway and the inference instance.
Large weight transfers should preferably run outside formal load-testing periods. If file transfers and inference share network resources, measure their effect on request latency and apply bandwidth limits or isolation where necessary.
5. Weight Distribution: Treat Large File Transfers as an Engineering Process
5.1 Download Once, Then Copy Under Controlled Conditions
The reference deployment’s approximately 1.47 TB of weights consists of hundreds of shards. Recorded public-network download speeds were approximately 50–57 MB/s, while direct transfers between nodes reached approximately 490 MB/s.
At those rates, an idealized estimate puts the initial download at roughly 7–8 hours and the inter-node copy at around 50 minutes. Actual durations also depend on bandwidth fluctuations, disk writes, shard scheduling, and retries.
For a two-server environment, a practical workflow is usually to download and validate the weights on one node, then copy the verified files to the second node. This avoids duplicate external downloads.
However, the network used to copy weights is not necessarily the network used for accelerator computation. Fast file transfers do not establish that model-parallel communication is fast enough. Measure the two separately.
5.2 Validate Consistency, Not Just File Presence
Every node should use the same model revision, quantization configuration, and shard set. Maintain a weight manifest containing at least:
- File names;
- File sizes;
- Checksums;
- Version identifiers.
After copying, validate each file rather than checking only the directory’s total size. Missing shards, corrupted files, or files mixed from different versions may cause loading failures or harder-to-detect inference errors.
Avoid modifying a weight directory while an instance is using it. A safer approach is to place a new version in a separate directory, complete integrity checks and validation, and then update the deployment reference.
5.3 Plan Storage for the Entire Workflow
Disk capacity must cover more than one final copy of the weights. Temporary downloads, transfer caches, rollback versions, and runtime logs also require space.
If downloads go into a temporary directory before validation and switching, peak disk usage can be substantially higher than the final weight size. Also verify that the transfer workflow does not create large temporary files on the system disk, where running out of space could disrupt the node.
6. Startup and Acceptance: Narrow the Failure Scope in Stages
A deployment rollout can be organized into five checkpoints.
Checkpoint 1: A Consistent Base Environment
Confirm compatibility among drivers, runtimes, inference software, and quantized operators. Identical quantization format names do not guarantee compatibility across implementations. Check weight layouts, quantization metadata, and supported operators.
Pin the environment to explicit versions or immutable artifact identifiers so that nodes cannot unknowingly load different software contents.
Checkpoint 2: Weight Loading and Parallel Initialization
Verify that every process completes weight loading, communication group setup, and required initialization.
A listening service port does not mean the distributed instance is ready. Readiness should require successful completion of a real inference request.
Checkpoint 3: Minimal Functional Validation
Start with short text requests. Check both non-streaming and streaming responses, then validate multi-turn context and structured tool calls.
Distinguish between generating a tool-call structure and executing the tool. The former is a model output capability; the latter also requires application orchestration, authorization, argument validation, and execution isolation.
If the deployment is intended to support multimodal inputs, test each relevant input type separately. Passing text-chat tests does not establish that other modalities work.
Checkpoint 4: Increasing Length and Concurrency
Gradually increase context length and concurrent requests, checking whether resource usage grows as expected.
Test exceptionally long requests separately when they substantially exceed normal business workloads, so they do not interfere with routine traffic.
Checkpoint 5: End-to-End Gateway Acceptance
Run tests through the actual user-facing entry point. Include gateway forwarding, queuing, connection timeouts, and streaming response delivery.
Testing only a node-local endpoint can miss problems in the production request path.
7. Load Testing: Success Rate Is Only Part of the Result
The reference record includes three workload categories: randomized requests with approximately 2,048 input tokens and 512 output tokens, plus agent-style long-context scenarios at approximately 80,000 and 200,000 tokens. Across 836 requests, the record reports that all succeeded.
This establishes that no request-level failures were recorded within that test’s coverage. It does not demonstrate sustained high-concurrency stability, usable maximum context length, or leading performance. The source record does not provide complete concurrency, test duration, throughput, or latency data, so those results should not be inferred.
A reproducible load-test report should disclose at least:
- Distributions of input lengths and actual output lengths;
- Request concurrency and arrival patterns;
- Warm-up procedure and formal test duration;
- Time to first token and end-to-end latency;
- Output token throughput;
- Latency percentiles;
- Counts of successful, failed, canceled, and timed-out requests;
- Peak device memory and utilization;
- Whether requests passed through a gateway and whether retries were enabled.
“Success” also needs a clear definition. A normal API status does not necessarily mean that the output is complete, structurally correct, or sufficient to accomplish the task. For tool calls, validate that arguments are valid and execution results are correctly returned to the workflow.
When retries are enabled, report both first-attempt and final success rates so that retries do not conceal transient failures.
8. Production Operations: Treat the Two-Server Instance as a Shared Failure Domain
A failure in any critical process within a two-server model instance can affect the entire inference instance. A node failure, communication interruption, or device error cannot simply be treated as a partial loss of compute capacity.
Production operations should define health checks, request timeouts, abnormal process exit handling, and instance reconstruction procedures. Apply traffic protection at the entry point to prevent requests from accumulating during failures.
Monitoring should cover four layers:
- Device layer: memory, compute utilization, and error states.
- Communication layer: link health and collective communication duration.
- Inference layer: prefill, decoding, queuing, and cache usage.
- Service layer: request success rates, latency percentiles, and cancellations.
For troubleshooting, correlate a request across the gateway, main process, and worker processes. Looking at only one node’s logs can miss errors or waiting conditions in the other pipeline stage.
9. Conclusion: Make the Deployment Reproducible
Deploying an ultra-large model across two servers with Chinese-developed accelerators is fundamentally a distributed systems engineering task. Quantization reduces weight capacity requirements, and parallelism expands the model scale the hardware can accommodate. Both also introduce constraints around operator compatibility, communication coordination, and runtime scheduling.
A reliable deployment follows a clear sequence:
- Calculate capacity, then validate topology.
- Verify weights, then pin the environment.
- Complete minimal functional tests, then expand context length and concurrency.
- Perform end-to-end acceptance through the real user-facing entry point.
The deliverable should include more than a reachable endpoint. It should also contain an environment inventory, weight versions, device mappings, deployment configuration, acceptance records, load-test conditions, and failure-handling procedures.
Only when these artifacts are reproducible and auditable does a two-server deployment have a sound foundation for sustained operation and future expansion.
