Local Deployment of Large MoE Models on a Four-Node Cluster: An Engineering Test and Analysis

    This article examines the practical engineering of deploying a large Mixture-of-Experts (MoE) model on a distributed inference cluster built from four compute nodes and a high-speed switch. It covers the system-level constraints of memory capacity and bandwidth, a hyperconverged-style architecture with unified memory and NVMe tiering, switched star networking with RoCE/RDMA, environment consistency, a four-step path from model weights to a usable service, scenario-based load testing, and key tuning practices for throughput, latency, and operability.

    1. Why Large-Parameter Local Deployment Needs a Different Approach

    Bringing a large-parameter Mixture-of-Experts (MoE) model into an enterprise intranet is no longer as simple as copying weights onto a machine. The real challenges come down to three areas: the weights and runtime data cannot fit, inter-node communication overhead eats into the compute gains, and the inference service must be operable once it goes live.

    The subject of this discussion is a distributed inference cluster made up of four compute nodes and a single high-speed switch, used to host a very large MoE model with native low-precision mixed precision and a context window that can reach the million-token level. Note that this configuration is only one sample of a common industry approach; the focus is not on specific hardware models but on the engineering constraints and tuning methods behind them.

    The defining trait of the MoE architecture is that the total parameter count is very large, while the subset of experts activated per token is limited. As a result, memory/VRAM capacity determines “whether it fits,” while memory bandwidth and interconnect bandwidth determine “how fast it runs.” This turns the problem from a single-card compute contest into a system-level design problem.

    2. Deployment Architecture: A Hyperconverged-Style Approach to Resource Integration

    The approach follows a hyperconverged-style idea, integrating compute resources, model serving, and the application entry point into a unified enterprise AI infrastructure, with a central management platform handling model distribution, inference service orchestration, and gateway authentication. The hardware can be abstracted as:

    • Compute nodes: 4 nodes combining an ARM-architecture CPU with a new-generation GPU architecture, totaling roughly 80 CPU cores;
    • Unified memory: around 512GB of LPDDR5X in total, with shared addressing across nodes;
    • Storage: around 8TB of NVMe SSD, used for tiering between weights and cold data;
    • Network: up to 200Gbps-class NICs per node, interconnected through a 400G-class switch using RoCE/RDMA;
    • Software stack: a mainstream open-source inference engine plus a unified enterprise management platform (including an AI gateway).

    1. Large Unified Memory Pool Plus NVMe Tiering

    The core strategy is “hot data in memory, cold data on disk.” The main model weights are sharded by expert and distributed across each node’s memory, while lookup-type data (embeddings/lookup tables) is offloaded to NVMe, freeing up the scarce memory for the KV cache and activations. For capacity planning, it is advisable to reserve 20%–30% headroom; otherwise, once long-context concurrency ramps up, frequent swapping in and out will be triggered.

    2. Switched Star Topology Beats Direct Connections

    A star topology with the switch at the center and nodes radiating outward offers clear cabling and a controllable fault domain, and any two nodes can communicate without relaying through a third node, avoiding the “hop amplification” problem of chained direct connections. For communication-intensive parallelism such as tensor parallelism (TP), where AllReduce latency is dictated by the slowest link, the value of switched networking becomes clear.

    3. Environment Consistency Is a Hidden Barrier

    The real pitfalls of multi-node deployment often lie not in compute but in the consistency of drivers, firmware, NIC firmware, the container runtime, and inference engine versions. It is recommended to use image-based delivery plus a pre-launch consistency-check script to keep “environment drift” problems out of the way before load testing begins.

    3. Model Deployment: Four Steps from Weights to a Usable Service

    1. Weight preparation and sharding: split along the expert dimension, generate a shard manifest and checksums, and avoid silent errors caused by transmission corruption.
    2. Parallelism strategy: use high-bandwidth channels for tensor parallelism within a node, and pipeline/expert parallelism across nodes to reduce the frequency of inter-machine communication.
    3. Engine parameter tuning: control the maximum number of concurrent sequences, the KV cache occupancy ratio, and the chunked prefill size. An illustrative configuration is shown below (for demonstration only, not a specific product interface):
    1. # Illustrative inference service configuration
    2. tensor_parallel_size: 4
    3. pipeline_parallel_size: 2
    4. max_model_len: 1048576
    5. gpu_memory_utilization: 0.85
    6. enable_chunked_prefill: true
    7. kv_cache_dtype: auto
    1. Gateway and service exposure: a unified entry point handles authentication, rate limiting, auditing, and multi-model routing, turning “model capability” into a standard service that the enterprise can call.

    4. Performance Load Testing: Only Scenario-Based Design Is Meaningful

    A single throughput number is meaningless; it is better to design four types of scenarios separately:

    • Everyday Q&A: short input and short output, focusing on time to first token (TTFT) and per-request latency;
    • Document processing: long input and short output, focusing on prefill throughput and peak memory usage;
    • Complex tasks: multi-turn long context, focusing on the KV cache growth curve and stability;
    • Coding/Agent: tool calls and multi-step chains, focusing on tail latency (P99) and error retry rate.

    For metrics, it is advisable to record TTFT, per-token output latency, total throughput (tokens/s), P99 under concurrency, and the share of inter-node communication at the same time. The general method for locating bottlenecks is the “three checks”: check whether memory is maxed out, whether network bandwidth is saturated, and whether GPU utilization stays low over time—the combination of the three can distinguish a capacity bottleneck, a communication bottleneck, and a scheduling bottleneck.

    5. Observed Runtime Behavior and Tuning Priorities

    A common pattern observed in testing is that short-request scenarios are sensitive to scheduling and batching strategy, long-document scenarios are sensitive to memory tiering and prefill chunking, and Agent-type scenarios are sensitive to tail latency and gateway queuing strategy. Actionable optimizations include increasing batch aggregation, enabling chunked prefill for long contexts, pinning lookup data to low-latency storage, and setting independent rate limits and priority queues for different scenarios.

    6. Selection Recommendations

    Enterprise local deployment should not look only at peak compute, but should be evaluated along four main lines: whether capacity leaves headroom, whether the network has no relay hops, whether the environment is reproducible, and whether the service is operable. If elasticity and multi-tenancy are involved, the model service can be containerized and paired with monitoring and alerting, log services, and object storage for cold-data archiving, forming a sustainable, evolvable private AI foundation.