Deploying Large Language Models on a Four-Node Compute Cluster: Architecture and Performance Benchmarks

    This article walks through a real-world deployment of a large Mixture-of-Experts (MoE) model on a local four-node AI compute cluster interconnected by a high-speed switch. It covers the rationale for multi-node distributed inference, cluster architecture design, the model deployment workflow, and measured performance across typical workloads, offering practical guidance for teams evaluating on-premises LLM deployment.

    Deploying Large Language Models Locally on a Multi-Node Compute Cluster: Practice and Performance Benchmarks

    As large language models continue to grow in parameter count, the compute and memory of a single machine are no longer sufficient to run full inference for large Mixture-of-Experts (MoE) models. More and more organizations are exploring distributed inference clusters built from multiple compact AI compute nodes, deployed privately in their own data centers. This article uses a local inference cluster composed of 4 compute nodes and a high-speed switch as an example. Across four dimensions—deployment architecture, model loading, performance benchmarking, and real-world behavior—it summarizes the key engineering points and measured results of this approach, providing a reference for on-premises deployment decisions.

    1. Why Multi-Node Distributed Inference?

    Among today’s mainstream open-source models, large MoE architectures activate only a subset of expert parameters during inference, but storing and loading the full model weights still requires substantial memory. For an MoE model with hundreds of billions of total parameters, even with FP8 or lower-precision quantization, the weight footprint plus the KV cache generated during inference often exceeds the unified memory available on a single node.

    Multi-node distributed inference delivers three core benefits:

    1. Memory pooling: The memory resources of multiple nodes are aggregated into a single logical memory pool. Combined with tensor parallelism, model weights are sharded across nodes, breaking through the memory ceiling of a single machine.
    2. Near-linear compute scaling: Provided inter-node bandwidth is sufficient, inference throughput scales almost linearly with the number of nodes, supporting higher request concurrency.
    3. High availability and elasticity: When a node fails, the cluster can degrade gracefully or reschedule workloads. Together with a unified model-serving management layer, this enables enterprise-grade capabilities such as model version management, traffic gatewaying, and canary releases.

    2. Cluster Architecture Design

    This deployment uses 4 ARM-based AI compute nodes, each equipped with large unified memory (128GB per node, 512GB in total), connected through a 400G-class high-speed switch to form a switched star-topology inference cluster. The overall hardware and software configuration can be summarized as follows:

    • Compute nodes: 4 compact AI accelerator nodes, each integrating a 20-core ARM processor and a new-generation GPU
    • Total memory: 512GB LPDDR5X unified memory
    • Total storage: 8TB NVMe SSD
    • Networking: Up to 200Gbps NIC per node; inter-node communication over the 400G-class switch via RDMA (RoCE)
    • Inference engine: A mainstream open-source high-throughput inference framework
    • Model precision: Mixed FP8 and FP4, supporting ultra-long context (on the order of one million tokens)

    Two design decisions are worth highlighting:

    1. Unified memory with NVMe tiered storage

    Beyond expert weights, MoE models also contain large volumes of lookup-table data (such as embedding tables in retrieval-augmented structures). This approach distributes the main model weights across the unified memory of each node, while offloading infrequently accessed lookup data to NVMe SSDs, using the SSDs’ high sequential read bandwidth to compensate for limited memory capacity. The key to this tiered strategy is that inference-hot data must reside in memory, while SSD offloading of cold data must not block the main compute path—this typically requires asynchronous prefetching and pipelined scheduling.

    2. Switched networking over direct node-to-node links

    Fully meshed direct connections among four nodes would require many cables, a complex topology, and poor scalability. With a star topology built around a central switch, each node maintains only a single uplink, and inter-node traffic is forwarded by the switch. Cabling stays simple and failure domains are clearly bounded. RoCE support provides low-latency RDMA communication, supplying ample bandwidth for collective operations such as All-Reduce and All-Gather in multi-node tensor parallelism. When setting up the network in practice, make sure the switch port congestion-control parameters (such as PFC and ECN) are aligned with the NIC configuration, to avoid tail-latency degradation caused by packet loss and retransmission.

    3. Key Points of the Model Deployment Workflow

    At the cluster management layer, this deployment uses a unified management console for model distribution and inference-service orchestration. The overall workflow is as follows:

    1. # Illustrative workflow (not real commands)
    2. # 1. Shard model weights and distribute them to local storage on each node
    3. model-distribute --model moe-large-fp8 --nodes node1..node4
    4. # 2. Start the cross-node inference service with tensor parallelism of 4
    5. inference-server --tensor-parallel-size 4 \
    6. --kv-cache-dtype fp8 \
    7. --max-model-len 1000000 \
    8. --offload-kv-cache-to ssd
    9. # 3. Register with the AI gateway to expose a unified API endpoint
    10. gateway-register --service moe-large --endpoint http://cluster/v1

    Three aspects deserve close attention during deployment. First, consistency verification of weight shards across nodes—an interrupted distribution can cause loading failures. Second, the trade-off between KV cache precision and memory budget: in ultra-long-context scenarios, the KV cache footprint can exceed the weights themselves, and FP8 caching or SSD swap-out are common remedies. Third, health checks and warm-up after service startup: the first inference on an MoE model incurs extra latency from expert-routing initialization, so it is advisable to warm up with a small number of requests before accepting production traffic.

    4. Benchmarking Methodology and Measured Results

    Benchmarks covered four typical scenarios: everyday Q&A (short input, short output), document processing (long input), complex reasoning tasks, and AI coding/agent scenarios (multi-turn tool calls). The evaluation focused on three metric dimensions:

    • Time to first token (TTFT): A key user-experience metric; in long-context scenarios it is mainly constrained by prefill compute.
    • Output throughput (tokens/s): Including per-stream generation rate and aggregate cluster throughput, affected by decode bandwidth and parallelization efficiency.
    • Concurrency capacity: Gradually increasing concurrent requests to observe the throughput inflection point and the latency degradation curve.

    The measured results show that under low-concurrency Q&A, TTFT stayed within an interactive range and single-stream generation was smooth, meeting the needs of conversational applications. In long-document processing, thanks to ample prefill compute and high-speed interconnects, TTFT for long-context requests did not grow explosively with length. In coding and agent scenarios with multi-turn calls, prefix caching significantly reduced redundant prefill overhead for repeated context, noticeably shortening overall task completion time. During high-concurrency stress testing, aggregate cluster throughput climbed roughly linearly with concurrency until approaching compute saturation, where it leveled off—with no throughput collapse attributable to network bottlenecks. This validates that switched RDMA networking adequately supports multi-node tensor parallelism.

    5. Selection Guidance and Conclusion

    In summary, a four-node compact compute cluster is well suited for private deployment of MoE models at the hundred-billion-parameter scale with context requirements ranging from hundreds of thousands to about one million tokens. Its value lies in delivering inference capability close to that of traditional multi-GPU servers while keeping data-center power and space consumption relatively manageable. Organizations evaluating this path should proceed as follows: first, determine the target model’s weight footprint and KV cache requirements, and derive the required memory pool size from them; second, assess whether inter-node bandwidth can sustain the communication overhead of tensor parallelism—switched RDMA networking is currently a sound choice; finally, balance cost and performance through tiered storage (memory plus NVMe) and cache optimization strategies (FP8 caching, prefix reuse). For organizations that want to build this capability quickly, it is also possible to leverage general-purpose cloud products from mainstream cloud providers—container platforms, object storage, monitoring and alerting—to construct a hybrid deployment that coordinates local inference with elastic cloud resources.