Local Deployment of a MoE Large Language Model on a Four-Node Cluster: Performance Evaluation and Analysis
This article evaluates the local deployment of a hundred-billion-parameter Mixture-of-Experts (MoE) large language model on a four-node AI acceleration cluster. It examines the hardware architecture, unified memory, RDMA networking, tensor and expert parallelism, inference-engine optimizations, and performance across document processing, long-context conversations, coding, agent workflows, and concurrent workloads. The results show that high-speed interconnects, mixed-precision weights, and tiered storage are critical to achieving practical enterprise-scale distributed inference.
1. Background and Objectives
As large language models continue to grow, on-premises deployment faces three major challenges: compute capacity, memory capacity, and network communication. MoE models make distributed inference possible because, although they contain a very large number of total parameters, only a subset of experts is activated for each inference step. However, the practical viability of such a deployment depends on how model weights are distributed across compute nodes and how efficiently the system handles communication during expert parallelism and tensor parallelism.
The cluster evaluated in this article consists of four high-end AI acceleration nodes. Each node uses a high-performance ARM-based CPU and a large unified-memory pool. The nodes are connected through a high-speed switching network in the 400 Gbps class, forming a horizontally scalable foundation for distributed inference.
The goal of the evaluation was not simply to verify whether the model could run. Instead, it focused on real-world behavior under complex workloads, concurrent access, and long-context scenarios. The results are intended to provide a reproducible reference for organizations planning a private deployment of a similar scale.
2. Cluster Architecture and Hardware Configuration
2.1 Compute Nodes
Each node in the distributed cluster uses an integrated CPU-GPU design. The CPU is a 20-core ARM processor. Across four nodes, the cluster provides 80 physical CPU cores for data preprocessing, scheduling, encoding, decoding, and other supporting tasks.
The GPU subsystem is based on the current-generation Blackwell architecture and supports mixed-precision FP4 and FP8 computation. In sparse-computing workloads, the theoretical aggregated performance of the four-node cluster reaches the 4 PFLOPS class.
Each node is equipped with 128 GB of LPDDR5X unified memory, providing a total cluster memory capacity of 512 GB. Because the unified memory architecture allows the CPU and GPU to directly access the same physical memory region, it provides more flexibility for loading very large model weights than traditional systems with separate CPU memory and GPU VRAM.
In the evaluation, both model weights and the KV cache could be loaded within the memory system without frequent disk swapping.
2.2 High-Speed Networking and Storage
The cluster uses a star-shaped switching topology. Each node has a high-speed network adapter with RDMA support and up to 200 Gbps of bidirectional bandwidth. After aggregation through the central switch, the cluster provides internal communication bandwidth in the 400 Gbps class.
Compared with a topology based on direct links between pairs of nodes, a switched design offers a clearer network structure and more consistent bandwidth and latency between any two nodes. This is particularly important for the frequent All-to-All communication generated by multi-node MoE inference.
The four nodes provide a combined 8 TB of NVMe SSD storage. During deployment, model weight files are first stored on local NVMe drives and then loaded into unified memory at startup. Large lookup data structures used by the MoE model’s attention mechanism, such as Engram tables, can also be mapped to NVMe storage. This tiered-storage approach reduces memory pressure and preserves more capacity for the core inference workload.
3. Model Deployment and Distributed Inference Configuration
3.1 Model Characteristics and Precision Selection
The target model is an open-source MoE large language model with a parameter count in the hundred-billion range and a context window of up to 1 million tokens.
The model is officially distributed with mixed FP8 and FP4 weights. The attention and routing layers retain FP8 precision to maintain numerical stability, while the expert layers in the feed-forward network are compressed to FP4 to reduce memory consumption.
Compared with a full-precision version, this mixed-precision strategy significantly reduces the model footprint while largely preserving inference quality. As a result, the four-node cluster’s combined 512 GB of memory is sufficient to host the model and provide practical operating headroom.
3.2 Multi-Node Parallelism
The model uses a combination of tensor parallelism and expert parallelism.
Each Transformer layer is divided into four parts and loaded onto the GPUs of the four nodes. This is the tensor-parallel component of the deployment. Meanwhile, the hundreds of expert networks in the MoE layers are distributed across the nodes according to the routing strategy, implementing expert parallelism.
During inference, a token may activate an expert located on a remote node. When this happens, the required computation or result must be transferred through the interconnect. The system is therefore highly sensitive to network latency and communication bandwidth.
With the 400 Gbps RoCE network, point-to-point communication latency between nodes remained very low in testing. Compared with a conventional 10 Gigabit Ethernet network, the time required to transfer large data blocks was reduced by more than an order of magnitude. This substantially reduced the communication overhead of expert parallelism and allowed overall throughput to approach the ideal scaling expected from a single-node configuration.
3.3 Inference Engine and Service Management
The inference service is built on a mainstream open-source inference framework with several key optimizations enabled:
- Continuous batching
- Prefix caching
- PagedAttention
A unified management layer provides load balancing at the service entrance and distributes external requests to available nodes. It also dynamically adjusts the maximum concurrency based on memory utilization.
The cluster is centrally managed through an integrated AI management platform. The platform provides a model repository, inference-service lifecycle management, and a basic monitoring dashboard. Operations staff can replace model versions, adjust concurrency parameters, and inspect logs through a web interface without logging in to each node individually. This significantly lowers the operational complexity of a distributed inference cluster.
4. Performance Testing and Real-World Behavior
4.1 Everyday Question Answering and Document Processing
In single-turn knowledge question-answering tests, the model generated responses in streaming mode. Average time to first token ranged from 0.8 to 1.2 seconds, while generation speed was approximately 40 to 60 tokens per second. The interactive experience was comparable to using a cloud-based API.
For PDF analysis and summarization tasks involving dozens of pages, the model could load the complete document in a single context because of its 1-million-token context window. Sliding-window segmentation was not required.
In a test involving an annual report containing charts and long tables, the model accurately referenced specific figures from the document and generated a well-structured summary. No information loss caused by context truncation was observed.
4.2 Complex Tasks and Multi-Turn Conversations
For mathematical word problems and logical reasoning tasks involving multiple steps, the model demonstrated strong instruction-following and chain-of-thought capabilities.
When given a planning request with multiple constraints, it could break the task into several substeps, analyze each requirement, and produce a final conclusion. In multi-turn conversations, PagedAttention provided efficient KV-cache management. Even after more than 50 conversation turns, response speed remained stable, with no obvious performance degradation.
4.3 AI Coding and Agent Workloads
Coding capability was a major focus of the evaluation, particularly for enterprise software-assistance scenarios. The test set included algorithmic problems and engineering refactoring tasks of varying difficulty, covering code generation, bug identification and repair, and unit-test creation.
For routine web development and data-processing scripts, the generated code was generally executable without major changes, and its comments followed conventions commonly used in open-source projects. For less familiar low-level system-call issues, the model could still suggest viable implementation paths and provide detailed performance and compatibility considerations.
The model was especially useful in Agent mode. It could break down a task, call relevant tools, and verify execution results. In a simulated upgrade of an upstream dependency, the model identified the locations affected by an API change and automatically generated a migration patch for the new interface. This demonstrated strong practical value for engineering workflows.
4.4 Concurrent Load Testing
To evaluate production-oriented capacity, a load-testing tool was used to simulate request streams from multiple concurrent users.
With support from the 512 GB unified-memory pool, the cluster handled a large number of inference requests simultaneously. After several hours of continuous high-load operation, average utilization on each node remained within a reasonable range. The system did not encounter out-of-memory conditions or service crashes.
This stability was enabled by the combination of unified memory and NVMe-based tiered offloading. Less frequently accessed parameters could be dynamically moved to SSD storage, while frequently accessed weights and KV-cache data remained in memory. The design balanced cost and performance without requiring all data to remain in the fastest memory tier.
5. Lessons Learned and Optimization Recommendations
5.1 The Network Is the Backbone of Distributed Inference
During the initial testing phase, the nodes were connected only through a conventional TCP/IP network. Generation speed was very slow because every token could involve communication with experts located on other nodes.
After the deployment was moved to an RDMA network with a central high-speed switch, end-to-end throughput increased several times. For organizations planning distributed inference, an RDMA-capable high-speed switching solution should therefore be treated as a fundamental requirement rather than an optional enhancement.
5.2 Mixed Precision and Tiered Storage Are Equally Important
FP8 and FP4 mixed precision are not suitable for every workload. In tasks requiring precise mathematical reasoning or strict code-logic judgment, occasional numerical errors may lead to incorrect results.
For production deployments, it is advisable to prepare two inference services: one using higher-precision weights for offline workloads with strict logical requirements, and another using mixed precision for high-throughput online assistance scenarios.
5.3 The Main Value of a Management Platform Is Reduced Operational Risk
For midsize organizations without a dedicated large-model operations team, a unified management platform can greatly simplify routine cluster administration.
Through visual inference-service orchestration, monitoring, and alerting, operations staff can redeploy a model or adjust parameters within minutes. Detailed logs also provide clear troubleshooting clues and significantly reduce the time required to diagnose failures.
6. Conclusion and Outlook
This evaluation of a four-node AI acceleration cluster shows that, with an appropriate hardware architecture and network design, organizations can deploy and run hundred-billion- to trillion-scale-class MoE language models in a private on-premises environment.
The solution uses a high-speed switching network as its communication backbone, unified memory and tiered storage as its runtime foundation, and established inference-engine optimizations to balance performance, cost, and maintainability. It represents a competitive technical path for enterprise-scale private deployment of large language models.
As quantization techniques continue to improve and inference engines evolve, the compute cost per token is likely to decrease further. If the inference cluster also uses scheduling policies to run fine-tuning workloads during periods of spare capacity, the overall utilization and long-term value of the infrastructure could increase even more.
