Deploying Ultra-Large MoE Models Locally on Multi-Node Heterogeneous Clusters

    This article examines how enterprises can deploy ultra-large-scale MoE models in local environments using a 4-node heterogeneous compute cluster. It covers the cluster architecture and hardware-software coordination, including unified memory, NVMe SSD tiering, a switched star network with RoCE, and multi-node tensor parallelism. It also presents optimization strategies and benchmark results across daily Q&A, long-document processing, complex task orchestration, and AI coding/Agent scenarios, showing how the design addresses memory capacity limits and supports efficient private inference.

    As large language model technology evolves rapidly, ultra-large-scale models based on mixture-of-experts (MoE) architecture are becoming a mainstream choice for enterprise AI applications. MoE architecture dynamically activates a subset of expert networks, substantially increasing the model’s overall parameter scale and expressive capability without significantly increasing inference computation. However, massive model weights place extremely high demands on memory capacity for local deployment, and a single compute device often cannot carry the workload independently. In this context, building a multi-node distributed inference cluster has become an effective path for enterprises to achieve private deployment of ultra-large-scale models.

    This article uses a 4-node heterogeneous compute cluster as an example to discuss deployment architecture design, core technical optimization strategies, and inference performance across multiple scenarios for ultra-large-scale MoE models in local environments, providing a practical reference for enterprises building their own AI infrastructure.

    1. Cluster Deployment Architecture Design and Hardware-Software Coordination

    To achieve efficient local inference for ultra-large-scale MoE models, the first challenge is integrating and scheduling underlying compute resources. This solution adopts a hyperconverged-like approach, integrating underlying compute resources, model services, and AI applications into a unified AI infrastructure to achieve deep hardware-software coordination.

    1. Heterogeneous Compute Nodes and Infrastructure Configuration

    The cluster consists of four next-generation heterogeneous compute nodes. Each node integrates a high-performance Arm-based CPU (20 cores, 80 cores in total) and next-generation Blackwell architecture GPUs. The system moves away from a traditional VRAM design and instead adopts a large-capacity unified memory architecture. The four nodes share up to 512 GB of LPDDR5X memory, providing a theoretical maximum sparse compute capability of 4 PFLOPS at NVFP4 precision. For storage, the cluster is equipped with 8 TB of high-speed NVMe SSD, providing high throughput for model file loading and data exchange. The overall architecture is scheduled through a unified management software platform and works with a high-performance inference engine to enable centralized management of model deployment and inference services.

    2. High-Speed Switched Star Network Topology

    The core bottleneck in multi-node distributed inference often lies in communication latency between nodes. This solution uses a switched star network architecture, connecting four compute nodes through a 400G-class high-speed switch, with each node’s network interface supporting up to 200 Gbps.

    Compared with direct interconnection between nodes, such as mesh or ring topologies, the switched star network offers significant advantages. First, the topology is clear and cabling is simple, which facilitates later operations and expansion. Second, each compute node only needs to exchange data with the switch and does not need to handle data transit for other nodes, effectively reducing extra CPU and NIC overhead. More importantly, this architecture supports RoCE (RDMA over Converged Ethernet) high-speed networking, providing low-latency direct memory access for multi-node tensor parallel computing, which is the foundation for efficient distributed inference.

    2. Core Optimization Strategies for Large-Scale Models

    Given the characteristics of MoE models, hardware stacking alone cannot deliver optimal performance. Targeted optimization at the deployment layer is required to overcome memory capacity limits and improve inference throughput.

    1. Tiered Storage Mechanism Combining Unified Memory and NVMe SSD

    Although an ultra-large-scale MoE model activates only some experts during a single inference pass, the weights of all experts and routing table data must remain resident in memory during runtime. To address this, the solution adopts a tiered storage strategy that coordinates unified memory with NVMe SSD.

    During model loading, the main model weights are evenly distributed across the unified memory of each compute node, ensuring efficient access on the core compute path. At the same time, for some lookup data that is accessed less frequently but occupies a large amount of space, such as historical KV Cache indexes or specific Engram query data, the system offloads it to high-speed NVMe SSD. Through this hot/cold data separation mechanism, a large amount of valuable memory resources is freed for high-frequency inference computation, making it possible to run ultra-large-parameter models on limited hardware resources.

    2. Multi-Node Tensor Parallelism and Inference Engine Adaptation

    In distributed inference, the model is partitioned across multiple nodes for parallel computation. Mainstream high-performance inference engines play a key role in this process. This solution uses a mainstream industry inference engine and combines native FP8 and FP4 mixed-precision computation to effectively compress model size and accelerate matrix operations. The engine layer is deeply adapted for multi-node tensor parallelism, ensuring that during forward propagation, activation transfers between nodes can fully utilize the high bandwidth of the underlying RoCE network, masking communication latency as much as possible and maintaining the overall compute efficiency of the cluster.

    3. Multi-Scenario Inference Benchmarking and Performance Analysis

    To verify the actual performance of this cluster deployment solution, we conducted comprehensive performance benchmarks around typical enterprise scenarios such as daily Q&A, document processing, complex tasks, and AI coding/Agent workloads. The test model is a large language model based on an ultra-large-scale MoE architecture and supporting a 1M-token context window.

    1. Daily Q&A and Long-Text Processing Scenarios

    In daily Q&A tests, the model showed very low time to first token and stable generation speed. Thanks to NVFP4 sparse compute and mixed-precision inference, the end-to-end latency of a single Q&A request was kept at a very low level.

    In long-text processing scenarios, the 1M-token context window places severe demands on memory. Tests showed that through the tiered storage mechanism, the system can maintain stable throughput even when ingesting long documents containing hundreds of thousands of characters. When extracting summaries from long documents or performing cross-paragraph information retrieval, the model followed instructions accurately, and the inference engine’s PagedAttention mechanism effectively avoided memory fragmentation, ensuring system stability under high concurrency.

    2. Complex Task Orchestration and AI Coding/Agent Scenarios

    AI coding and Agent scenarios place higher demands on the model’s multi-step reasoning, tool invocation, and context maintenance capabilities. In these scenarios, the model frequently needs to handle code generation, logic decisions, and feedback from external API calls.

    Actual tests found that when the 4-node cluster handles such complex serial tasks, the advantages of multi-node tensor parallelism are fully utilized. With abundant CPU cores (80 cores in total), the cluster handles non-GPU-intensive tasks such as data preprocessing, JSON parsing, and tool scheduling with ease, without queuing caused by CPU bottlenecks. During continuous multi-round Agent interactions, the model state remains well maintained and response latency remains stable, supporting the automation of complex enterprise business processes.

    4. Conclusion and Outlook

    The tests and analysis above show that for local deployment of ultra-large-scale MoE models, using a multi-node heterogeneous compute cluster combined with high-speed switched networking is an effective technical path. The tiered storage strategy combining unified memory and NVMe SSD successfully resolves the memory capacity bottleneck, while RoCE networking and tensor parallelism ensure the efficiency of distributed inference.

    As enterprise AI applications deepen, relying solely on cloud APIs can no longer meet the needs of some industries in terms of data privacy, business customization, and long-term cost control. Building private AI infrastructure based on multi-node clusters can not only run hundreds-of-billions-parameter large models smoothly but also simplify operations through a unified management platform. In the future, as underlying compute chip architectures continue to evolve and inference engines are further optimized, the barrier to local large-model deployment will be further lowered, driving deeper adoption of AI technology across more vertical industries.