Deploying Ultra-Scale MoE Models on Dual-Node Domestic NPU Clusters: A Practical Guide
This article presents a practical engineering approach for deploying ultra-large-scale Mixture-of-Experts (MoE) models for online inference on a dual-node domestic NPU cluster. It covers weight quantization, tensor parallelism and pipeline parallelism, parameter-network and storage planning, service deployment, runtime constraints, load testing, and common operational pitfalls. The goal is to show how to run dialogue, step-by-step reasoning, and tool-calling workloads reliably without depending on a vendor-specific product form.
1. Problem Definition and Target Deployment Shape
When ultra-large-scale Mixture-of-Experts (MoE) models move toward production inference, single-node memory capacity and interconnect bandwidth often become bottlenecks at the same time. Once native multimodal capability, million-level context length, and trillion-level total parameters are combined, the more common engineering path is to compress weight size with low-bit quantization and then combine tensor parallelism with pipeline parallelism across multiple nodes, spreading the computation graph over enough compute units.
This article uses a dual-node domestic NPU cluster as an example. It breaks that path into actionable steps and focuses on parallel strategy, network and storage coordination, service integration, and load-test validation, without tying the discussion to a specific vendor’s proprietary product shape.
The target can be stated as follows: launch one online inference instance of an ultra-large-scale MoE model on two homogeneous NPU servers, so that dialogue, step-by-step reasoning, and tool-calling chains can all work stably, and so that batch requests can be validated under multiple input lengths and agent-style long-context scenarios.
Each machine usually contains multiple compute dies, and each die is paired with independent high-bandwidth on-chip storage. The total number of dies across the two nodes determines the usable parallel world size. In practice, it is best to fix three constraints first:
- weight precision and size;
- the compute and communication topology between nodes;
- whether the external service entry shares the same security tunnel as the control plane.
2. Parallel Partitioning: Combining Tensor Parallelism and Pipeline Parallelism
For MoE models, the communication patterns of expert layers and attention layers are different. Tensor parallelism (TP) is suitable for splitting a single-layer matrix multiplication across multiple dies within the same node, reducing per-die memory usage and making full use of on-chip interconnect. Pipeline parallelism (PP) is suitable for placing adjacent stages on different nodes to enable cross-node scaling.
A common combination is to use TP across all dies in a node and use PP=2 between the two nodes to form a two-stage pipeline. The world size then equals the total number of dies across both nodes.
The benefit of this design is that intra-node communication uses the accelerator’s high-speed links, making latency more controllable. Inter-node communication is relatively concentrated at pipeline boundaries, making it easier to isolate with a dedicated parameter network.
It is important to emphasize that the values of TP and PP must be aligned with model partitioning, quantization kernels, and scheduler stage alignment. If the partitioning is too fine, communication overhead increases. If it is too coarse, memory in a single stage overflows. In practice, first infer the stage division from the rule that “one node can hold one complete pipeline stage,” then use TP inside each stage to absorb the remaining memory pressure.
3. Quantized Weights and Storage Planning
If an ultra-large-scale MoE model is stored at full precision, its size often exceeds the local disks and loading window of a dual-node setup. A common industry practice is weight quantization, for example quantizing weights to 4 bits while keeping activations at a relatively higher precision, to significantly reduce parameter size. At the same time, usable accuracy is maintained through dequantization on the kernel side and mixed-precision computation.
Weights are usually stored as a large number of shard files. Before deployment, verify checksums, shard integrity, and compatibility with the inference engine version.
For downloading and distribution, a layered approach is recommended:
- The first node pulls the model once from the model repository.
- The remaining nodes copy it through high-speed replication inside the data center, avoiding repeated public-internet downloads.
Public bandwidth is usually much lower than direct intra-data-center links. Internal replication can reduce hour-level waiting to an acceptable range.
On the storage side, note that the loading phase is a sequential large-block read. It is best to use local high-speed disks or a parallel file system, and to reserve cache space on the same order of magnitude as the quantized weights, preventing decompression, mapping, and KV cache from competing for resources at the same time.
4. Node Onboarding, Parameter Network, and Control Plane
The stability of multi-node inference depends first on whether compute nodes are discovered accurately and whether the accelerator network is truly connected.
The onboarding process should be standardized: run an installation agent on each node, and have the agent report NPU, NIC, and storage topology. The control plane then generates a resource view based on this information.
Links used for collective communication between nodes should be placed in a separate parameter network. During deployment, perform die-to-die connectivity checks on that network, then automatically select node combinations that satisfy the topology.
The control plane and data plane can reuse the same outbound tunnel initiated by the node. Control commands, monitoring metrics, logs, and inference traffic can share an encrypted channel, reducing firewall exposure.
For heterogeneous accelerators, such as NPUs or GPUs from different vendors, try to keep the same onboarding model to reduce operational complexity.
Monitoring should cover die utilization, memory watermark, collective communication latency, queue depth, and failed request codes, making it easier to distinguish between “can start” and “can serve stably.”
5. Service Deployment and Runtime Constraints
Deployment actions should be templated as much as possible: after selecting the quantized weights, runtime image digest, parallelism settings, context limit, and scheduling policy, launch the service with one action.
The image must be pinned to the quantization kernel, collective communication library, and driver versions to avoid hidden incompatibilities where the model can load but cannot compute correctly.
After startup, validate in order:
- health checks;
- short dialogue;
- multi-turn tool-calling sessions;
- long-context continuation.
MoE routing, expert parallelism, and pipeline bubbles can amplify tail latency. Therefore, timeouts, retries, and rate limiting should be set according to the worst-stage duration, not the average.
When the context reaches tens of thousands to millions of tokens, the KV cache becomes a second storage wall. In addition to weight quantization, consider paged cache, prefix reuse, and per-request cache quotas to prevent a few extremely long requests from occupying the entire pool.
Agent-style workloads often involve multiple tool round trips. The scheduler should support session affinity and interruption recovery to avoid state loss caused by pipeline stage switching.
6. Load-Test Design and Result Interpretation
Load testing should start from the gateway entry and cover authentication, routing, and queuing on the real path, rather than only hitting a local port.
At least three workload groups are recommended:
- medium-length random generation;
- medium-to-long agent tasks;
- ultra-long agent tasks.
Collect success rate, first-token latency, throughput, and error types.
The focus should not be only on averages. Also examine tail latency and whether failures are concentrated in specific stages, such as cross-node PP boundaries, expert-routing hotspots, or disk-loading jitter.
When interpreting data, avoid treating a single lab result as a capacity-planning basis. Fix the weight version, image digest, parallel configuration, and input distribution, then compare changes.
If the success rate is below expectations, prioritize checking:
- packet loss on the parameter network;
- memory fragmentation on a specific die;
- shard checksum failures;
- gateway timeout shorter than the maximum single-generation duration.
7. Engineering Checklist and Common Mistakes
Before going live, use the following checklist:
- The number of dies on each node matches the declared amount.
- The parameter network is bidirectionally connected and not mixed with the business network.
- The quantized weight format matches the kernel.
- Shards are complete and replicas are consistent across nodes.
- The product of TP/PP and world size is correct.
- Health checks pass before increasing traffic.
- No collective communication initialization warnings appear in logs.
Common mistakes include:
- using the business network for collective communication;
- downloading only on one node, causing a long cold start on the second node;
- failing to pin the image digest, leading to silent upgrades;
- extrapolating short-text load-test conclusions to long-context scenarios.
8. Conclusion
Deploying ultra-large-scale MoE on a dual-node domestic NPU cluster is essentially about aligning three things: quantized weights, high-bandwidth intra-node interconnect, and inter-node pipeline boundaries.
After turning onboarding, networking, storage, and runtime version management into repeatable templates, dialogue, reasoning chains, and tool-calling workloads can be served stably on the same instance.
Future optimization should focus on communication hiding, KV cache reuse, and scheduling fairness, rather than simply adding more machines. By following the partitioning and validation order in this article, teams can build transferable multi-node inference engineering capability without relying on a proprietary platform narrative.
