Local LLM Deployment on a 4-Node Cluster: Architecture and Benchmarking

    \nThis article examines how to deploy large language models locally on a four-node cluster, covering the reference architecture, a three-tier loading strategy across GPU memory, shared memory, and NVMe SSD, benchmarking scenarios and key metrics, common pitfalls, and practical selection guidance. It explains why horizontal scaling with high-bandwidth interconnects can make large MoE models runnable when a single node's memory is insufficient.

    \n## 1. Why On-Premises Clusters Are a Practical Choice for LLMs\n\nAs model parameter counts and context lengths keep growing, single-node hardware is hitting limits in memory capacity, memory bandwidth, and scalability. For enterprises, keeping inference in an on-premises data center satisfies compliance requirements such as keeping data within its own domain and maintaining auditable traces, and it avoids the long-term cost uncertainty of pay-per-call usage. But going local is not as simple as buying one machine. The real challenge is organizing multiple compute nodes into a logically unified inference resource pool with controllable communication overhead.\n\nThe core value of a four-node cluster is replacing vertical hardware stacking with horizontal scaling. When a single node’s shared memory cannot hold both the model weights and the runtime cache, aggregating memory and compute across nodes over a high-bandwidth interconnect can move a model that previously failed to load into a runnable range.\n\n## 2. Reference Deployment Architecture: Treat Compute, Storage, and Network as One\n\n### 2.1 Resource Tiering Under a Hyper-Converged Approach\n\nA common engineering approach is hyper-converged integration: compute resources, model serving, and application entry points are consolidated into unified infrastructure, with a management platform handling node enrollment, model distribution, and inference service orchestration. Resources are typically organized into three tiers:\n\n- Compute tier: multiple ARM-based CPU nodes and Blackwell-architecture GPU nodes handle tensor computation and operator scheduling.\n- Memory tier: large-capacity, low-power memory forms a unified address space that holds model weights and the KV Cache.\n- Storage tier: local NVMe SSDs store model files, lookup data, and logs.\n\n### 2.2 Typical Configuration Baseline (Illustrative)\n\n| Dimension | Reference Baseline |\n| —- | —- |\n| Compute nodes | 4 GPU compute nodes |\n| CPU | 20 cores per node, 80 cores total |\n| GPU / shared memory | Around 512GB of LPDDR5X in total |\n| Theoretical compute | Up to 4 PFLOPS-class sparse compute (low precision) |\n| Local storage | Around 8TB of NVMe SSD |\n| Network | 200Gbps-class NIC per node, 400G-class switch, RDMA support |\n| Inference engine | Mainstream open-source engine compatible with the OpenAI API specification |\n| Model precision | Native low-precision mixed quantization (FP8 and FP4 combined) |\n| Context length | Million-token scale |\n\n### 2.3 Network Topology: Switched Star Beats Ring Direct Connect\n\nThe bottleneck in multi-node inference is often communication rather than compute. A switched star topology keeps the hop count between any two nodes at one, and combined with RDMA’s kernel-bypass capability, it can significantly reduce tail latency for AllReduce and AllGather. By contrast, connecting nodes directly in a ring tends to cause link contention and fault-domain spread as the cluster grows, and it is more complex to operate.\n\n## 3. Model Loading: Coordinating GPU Memory, System Memory, and SSD\n\nLarge mixture-of-experts (MoE) models have a defining trait: the total parameter count is huge, but only a limited subset of experts is actually activated per token. This means the deployment strategy cannot focus only on whether total capacity is sufficient; it must also ensure that hot data stays resident on fast media.\n\nThe recommended loading order is:\n\n1. Shard the frequently accessed attention layers and shared expert weights across the unified memory of each node, keeping them resident.\n2. Offload the sparsely activated expert weights and lookup-type structures to local NVMe, swapping them in on demand.\n3. Reserve an elastic memory pool for the KV Cache, adjusting it dynamically based on concurrency and context length.\n\nIllustrative engine startup parameters (expressing configuration intent only, not a specific product interface):\n\nbash\npython -m vllm.entrypoints.openai.api_server \\\n --model /models/local-large-moe \\\n --tensor-parallel-size 4 \\\n --enable-expert-parallel \\\n --kv-cache-dtype fp8 \\\n --max-model-len 1000000 \\\n --gpu-memory-utilization 0.90 \\\n --swap-space 64\n\n\nTensor parallelism handles intra-layer weight sharding, while expert parallelism handles MoE routing distribution. Only when the two are combined can bandwidth pressure be spread evenly across four nodes.\n\n## 4. Benchmarking Method: Four Scenarios and Key Metrics\n\nEffective benchmarking must reflect real business distributions. Four scenarios are recommended:\n\n- Everyday Q&A: short input and short output, focusing on time to first token (TTFT) and per-GPU throughput.\n- Document processing: long-input summarization, focusing on memory usage under long context and prefill speed.\n- Complex tasks: multi-turn tool calls and structured output, focusing on stability and timeout rate.\n- Code and agents: long-chain, multi-step reasoning, focusing on per-step latency variance and overall task completion rate.\n\nFor metric collection, record TTFT, time per output token (TPOT), end-to-end P95 latency, output tokens per second, inter-node communication share, and memory swap-in/swap-out frequency. Increase concurrency gradually during benchmarking and watch for the throughput inflection point and the latency knee, avoiding optimistic conclusions drawn from single-concurrency runs only.\n\n## 5. Five Common Pitfalls in Real Testing\n\n1. Estimating memory from parameter count alone while ignoring that the KV Cache grows linearly with concurrency.\n2. Not enabling RDMA, causing multi-node communication to fall back to TCP and halving throughput.\n3. A mismatch between quantization precision and engine kernels, creating hidden overhead from falling back to high-precision computation.\n4. An overly aggressive storage offload strategy that swaps out hot experts and causes latency jitter.\n5. Lacking a unified gateway layer, leaving model routing, rate limiting, and authentication scattered across nodes and hard to govern.\n\n## 6. Selection Guidance and a Deployment Checklist\n\n- Define business concurrency and context distribution first, then work backward to memory and bandwidth requirements.\n- Validate networking capability first, using point-to-point bandwidth and AllReduce benchmarks as an admission test.\n- Use a unified gateway for model routing, canary releases, and quota management, closing the loop with logging, monitoring, and alerting.\n- Build a capacity model and treat “supportable concurrency” as the acceptance criterion rather than “whether it starts.”\n- If the enterprise already has a container platform and object storage, incorporate the model repository and image distribution into the existing operations system to reduce delivery costs.\n\nOverall, a four-node high-bandwidth cluster is a viable path for on-premises deployment of large-parameter models at the current stage. Its success depends on memory tiering design, effective network bandwidth, and the rigor of the benchmarking method, not on stacking single-point hardware specifications.