Dual-Server Deployment of a Very Large MoE Model on Domestic AI Accelerators: An Engineering Practice Guide
This engineering practice guide covers deploying a very large mixture-of-experts model on two domestic AI accelerator servers, focusing on the transition from successful weight loading to a stable, observable inference service. It explains capacity accounting across weights, KV cache, workspaces, communication buffers, and runtime overhead; discusses intra-node tensor parallelism with cross-node pipeline parallelism; and separates management, file-transfer, and device communication network validation. It also details version-pinned weight preparation and internal distribution, staged startup validation, functional acceptance for chat, reasoning output, and tool calls, pressure-test interpretation boundaries, and production governance for observability and recovery. The goal is a reproducible deployment loop with clear performance boundaries and operational evidence.
1. Deployment Goal: From “It Fits” to “It Runs Stably”
Deploying a very large model on two domestic AI accelerator servers is fundamentally a systems engineering task spanning models, hardware, communication, and service governance. Successful weight loading is only the starting point. A truly deliverable inference service also needs to satisfy three conditions: correct basic functionality, acceptable performance under the target load, and observability during operation.
The reference deployment record used in this article adopts a mixture-of-experts model with about 2.8 trillion total parameters and about 104 billion activated parameters per inference. The model declares a context capability of about one million tokens. The deployment uses a weight release with 4-bit weight quantization and 8-bit activation quantization, with a total file size of about 1.47 trillion bytes.
These figures must be understood separately. Total parameters determine the scale of weight storage and loading, activated parameters reflect the part of the model involved in a single computation, and context length affects attention computation, intermediate states, and key-value cache resource requirements. You cannot estimate full-model weight capacity from activated parameters just because only some experts are activated per pass; nor can you assume that any hardware configuration can run to that context length at high concurrency just because the model declares support for very long context.
Therefore, before deployment, define the business goal first: whether the task is to validate single-request functionality or support multi-user interaction; whether it processes short text or long-document analysis; and whether it involves reasoning output, external tool calls, and multimodal input. Different goals correspond to different resource budgets and acceptance criteria.
2. Hardware and Capacity: Build a Complete Resource Ledger First
The reference environment consists of two servers. Each server contains 16 accelerator compute dies, and each die has 64 GiB of device memory, for 32 compute units in total.
| Item | Reference configuration and notes |
|---|---|
| Compute nodes | Two domestic AI accelerator servers |
| Per-node resources | 16 compute dies, 64 GiB device memory per die |
| Total device memory | 2048 GiB, or 2 TiB |
| Parallel layout | 16-way tensor parallelism within each node; 2-stage pipeline parallelism across nodes |
| Distributed process scale | 32, depending on the runtime device mapping |
| Quantization | 4-bit weights, 8-bit activations |
| Weight file size | About 1.47 trillion bytes, split into hundreds of files |
| Test path | The load generator accesses the inference instance through a service gateway |
Capacity assessment must use consistent units. About 1.47 trillion bytes is approximately 1.33 TiB and must not be compared directly with 2 TiB of device memory as if both used the same decimal unit. Even if a nominal difference exists, not all of that space is available for request caching.
Actual device memory usually needs to cover:
- Model weights and quantization auxiliary data;
- Key-value cache;
- Operator workspaces and temporary tensors;
- Collective communication buffers;
- Execution graphs and runtime management overhead;
- Memory fragmentation and safety margin.
In addition, the quantized representation in files may not exactly match the final layout on the device. Weight loading may involve rearrangement, blocking, or construction of auxiliary structures. Therefore, “the total weight file size is smaller than total device memory” is only a preliminary screening condition, not a substitute for measurement.
A more reliable approach is to record memory at three stages: baseline usage after runtime startup, stable usage after model loading, and peak usage under the target context and concurrency. Capacity planning should be based on the remaining space of the tightest compute unit, not just the average across all devices.
3. Parallel Strategy: Keep High-Frequency Communication Inside the Node Where Possible
This configuration uses 16-way tensor parallelism within a node and 2-stage pipeline parallelism across nodes.
Tensor parallelism splits the computation of the same layer across multiple devices and usually requires frequent collective communication. Pipeline parallelism divides different model layers into multiple stages and passes intermediate results between stages. Therefore, in an environment with strong intra-node interconnect, limiting high-frequency tensor communication to the inside of a node is often a layout worth validating first.
However, this configuration is not automatically optimal. The following factors also need to be examined:
First, whether pipeline stages are balanced.
Splitting evenly by layer count does not necessarily produce equal computation and memory usage. Input processing, output projection, expert layers, and different attention structures can all affect stage load.
Second, whether the cross-host link meets real transfer requirements.
Do not merely verify that the two hosts can reach each other. Also check whether device-side communication is available, whether the communication library selects the expected link, and whether multi-device concurrent transfers show obvious degradation.
Third, whether the mixture-of-experts model introduces additional communication.
A mixture-of-experts model may involve expert routing and token dispatch. Whether independent expert parallelism is used and how experts are placed should be based on the actual inference implementation. You cannot infer all communication behavior solely from the tensor-parallel and pipeline-parallel configuration.
Fourth, whether pipeline idle time appears at low concurrency.
When the number of requests is insufficient, different stages may wait on one another. Increasing concurrency or adding schedulable micro-batches can help improve utilization, but it also increases cache pressure and queueing time and must be balanced against business latency targets.
4. Environment Preparation: Validate Compute and Management Networks Separately
Multi-server inference involves at least three types of links: node management, model file transfer, and device compute communication. They may share some physical infrastructure, but their responsibilities differ, and they should be checked separately during acceptance.
The management link handles node registration, task dispatch, log collection, and status reporting; the file link handles weight download and node-to-node copying; the compute link carries data exchange during distributed inference. A management console showing “node online” does not mean compute communication is ready.
Before deployment, complete the following checks:
- Verify the device count, device health status, and available memory on both nodes.
- Confirm that the driver, device runtime, and inference software versions are compatible with one another.
- Check the topology between devices, processors, and network interface cards to avoid unreasonable cross-domain access.
- Verify hostname resolution, port access, time synchronization, and process startup permissions.
- Run small-scale communication tests, then multi-device and multi-node joint tests.
- Check device visibility, shared memory, and file access permissions inside containers.
If control information, logs, and inference traffic reuse a management tunnel, also assess bandwidth contention and the blast radius of failures. A burst of logs should not crowd out the critical request path; a brief management connection anomaly should not trigger uncontrolled duplicate starts without an explicit policy.
5. Weight Preparation: Pin the Version First, Then Optimize Distribution
For very large models, preparation time is often dominated by weight download, copying, and verification.
In the reference record, public network download speed was about 50–57 MB/s, and direct node-to-node transfer was about 490 MB/s. Based on these observed rates, copying the same weight set of about 1.47 trillion bytes would take roughly 7–8 hours over the public network and about 50 minutes between nodes. Actual time also depends on disk writes, file count, verification, and network fluctuation.
These speeds represent only that environment and should not be treated as performance commitments for other clusters. However, they illustrate a generally useful engineering approach: complete a trusted download on one node first, then distribute it over the internal network, which usually reduces repeated public network transfers.
The recommended weight preparation workflow is:
- Pin the model version and save the file manifest and checksum information.
- Download to a temporary directory and do not expose it to inference tasks until complete.
- Verify file count, file sizes, and content digests.
- Copy the complete set to the other node and verify it again.
- Confirm that directory permissions are consistent on both ends, then switch to the official loading path.
Images should also be pinned to immutable content digests to avoid the same readable tag pointing to different software content at different times. Model version, image version, and startup configuration should be archived together to form a rollback-capable, reproducible release unit.
6. Service Startup: Use Staged Validation Instead of Scaling Load All at Once
It is recommended to divide startup acceptance into four steps.
1. Validate the Runtime Environment
First confirm that device enumeration, memory allocation, basic operators, and cross-node communication work correctly. At this stage, do not rush to diagnose complex model issues; otherwise, driver compatibility, communication configuration, and weight loading problems can easily be confused with one another.
2. Validate Model Loading
Check whether all weight shards are readable, whether the quantization format is supported, whether each process enters the expected parallel group, and whether memory distribution across devices is reasonable. If any process exits early, preserve the full logs instead of repeatedly restarting automatically and hiding the first error.
3. Validate Short Requests
Use short input, short output, and low-concurrency requests to confirm response structure, stop conditions, streaming return, and request cancellation behavior. The focus at this stage is correctness, not throughput.
4. Gradually Increase Context and Concurrency
After short requests are stable, increase input length first, then concurrency, and finally combine them into long-context, high-concurrency load. Change only a small number of variables at a time so that cache shortage, scheduling congestion, and communication bottlenecks can be distinguished.
Maximum input length, maximum output length, and concurrency limit should be configured jointly as a set of constraints. In long-context scenarios in particular, a single request running successfully does not mean that multiple similar requests can run at the same time.
7. Functional Acceptance: A Successful Return Does Not Mean Semantic Correctness
Basic dialogue, reasoning output, and tool calls need to be accepted separately.
For basic dialogue, check whether multi-turn context is preserved, whether stop markers are correct, and whether abnormal input is handled reasonably. For reasoning output, confirm that the service protocol and client parsing are consistent, avoiding incorrect concatenation of different content types.
Tool calls should cover at least the following cases:
- Normal generation of structured parameters;
- Malformed parameter formats or missing required fields;
- Call timeouts and tool return failures;
- Ordering of multiple calls and result backfilling;
- Stopping subsequent execution after user cancellation;
- Authentication and duplicate-execution protection for operations with external side effects.
The model being able to generate tool-call content does not mean the external operation will necessarily execute successfully, and it certainly does not mean a security boundary is already in place. Tool execution should be performed by an independent controlled component, with audit records retained.
If the model has multimodal capabilities, corresponding inputs also need separate tests. Pure-text pressure-test results cannot prove the correctness or performance of image and other input paths.
8. Pressure Testing: Explain the Sample Clearly Instead of Overgeneralizing the Conclusion
The reference record includes three types of load: random-text requests with 2048 input tokens and 512 output tokens, and agent-style tasks with contexts of about 80k and 200k tokens, totaling 836 requests. All requests succeeded in the record.
This shows that no request failures occurred under the tested conditions, but there are clear interpretation boundaries: the material does not provide the full concurrency configuration, request counts per group, latency distribution, or sustained runtime, so it cannot be used to derive throughput ceilings, production readiness, or million-token context performance.
It is recommended to add the following information for each test group:
| Dimension | What to record |
|---|---|
| Load composition | Input length distribution, actual output length, request count |
| Concurrency mode | Fixed concurrency, fixed arrival rate, or burst traffic |
| Request experience | Time to first token, end-to-end response time, output interval |
| System efficiency | Input throughput, output throughput, device utilization |
| Stability | Timeouts, cancellations, retries, process exits, and failure reasons |
| Resource state | Device memory, host memory, network, and storage changes |
Long-context tests should also add content quality checks, such as key fact retrieval, cross-paragraph information integration, and state retention after multi-turn tool calls. The absence of system errors does not mean the model still completes the task accurately in long text.
For interactive workloads, high-percentile latency should also be observed in addition to averages. A small number of slow requests can directly affect user experience, and average throughput usually does not reveal this.
9. Operational Governance: Include Observability and Failure Recovery in Delivery
In production, create a trace identifier for each request that runs through the gateway, scheduler, and inference process, so that time spent in network waiting, queueing, prefill, and generation can be distinguished.
Monitoring should cover at least device health, memory watermark, communication errors, request queue length, failure rate, and instance restart count. Logs should be leveled and redacted, and long-term storage of raw user input and sensitive tool parameters should be avoided.
Recovery strategy should also match model scale. Reloading very large weights can take a long time, and a brief health-check timeout must not be simply equated with a mandatory restart. Distinguish process death, service congestion, and incomplete loading, and set clear readiness states and traffic switching rules.
Also validate single-node failure, communication interruption, abnormal disk reads, and mass client cancellation. For requests that have already executed external operations, retry must determine whether duplicate side effects may occur.
10. Conclusion: Close the Deployment Loop with Reproducible Evidence
The key to deploying a very large mixture-of-experts model on two servers is not a single startup parameter, but a complete engineering loop: unify capacity units, match the parallel topology, validate the compute network, pin weights and the runtime environment, increase load step by step, and explain results with clear metrics.
A test in which all requests succeed is valuable phase-level evidence, but it is not joint proof of unlimited context, high concurrency, and long-term stability. Only when test conditions, performance boundaries, failure behavior, and recovery procedures are delivered together does an inference instance truly move from “able to start” to “maintainable, reproducible, and sustainable in operation.”
