Local Deployment of Large Models on a Four-Node Cluster: Architecture and Benchmarking
This article examines how to deploy large parameter models locally using a four-node cluster. It explains why single-node setups hit capacity and bandwidth limits with large MoE models, presents a reference architecture based on star networking and a unified resource pool, and covers layered storage, tensor and expert parallelism, KV Cache planning, benchmarking scenarios, common bottlenecks, and hardware selection advice for private inference.
1. Why Large-Model Deployment Needs a Cluster Approach
Once large models move into an enterprise intranet, the first problem is rarely model capability. It is that a single machine runs out of resources. Take a large MoE (Mixture of Experts) architecture as an example. The total parameter count is very large, but each token activates only a small subset of experts. As a result, memory capacity and bandwidth become the primary constraints, while peak compute is a secondary concern.
A single-node setup usually hits three ceilings:
- Unified memory capacity is insufficient, leaving no room for the weights or no headroom for the KV Cache.
- Memory bandwidth is saturated by weight reads, which caps throughput during the decode phase.
- The system cannot scale horizontally, so requests simply queue up when concurrency rises.
The essence of clustering is to separate the “capacity wall” from the “bandwidth wall”: aggregate capacity across nodes, trade high-speed interconnect for aggregate bandwidth, and then use a parallelism strategy to split the model across nodes.
Multi-node deployment is not free. Interconnect latency, parallel communication volume, and a larger fault domain all add cost. The goal of the architecture is therefore not “more nodes is always better,” but keeping communication overhead in balance with the gains from parallelism.
2. Reference Architecture: Four-Node Star Topology and a Unified Resource Pool
A typical enterprise local inference architecture follows a hyper-converged-like approach. It consolidates compute, model serving, and application entry points into unified infrastructure, with a unified control plane handling model distribution, service orchestration, and gateway access. A representative hardware configuration looks like this:
- Compute nodes: 4 all-in-one nodes based on ARM CPUs and a new-generation GPU architecture, totaling roughly 80 CPU cores
- Unified memory: about 512GB of LPDDR5X in total, serving as the main carrier for model weights and runtime state
- Storage: 8TB of NVMe SSD in total, used for weight persistence and cold data offload
- Interconnect: up to 200Gbps NICs per node, connected through a 400G-class high-speed switch in a star topology, supporting RDMA/RoCE
- Precision and context: native FP8 and FP4 mixed precision, with support for million-token context
- Inference engine and control plane: a mainstream open-source inference engine plus a unified enterprise management console (including an AI gateway)
Compared with direct node-to-node connections, a star-switched topology offers a clear layout, simple cabling, and easy fault isolation. No node has to relay data for others, so communication paths are predictable. This matters especially for tensor parallelism, which is a high-frequency, small-message, strongly synchronized communication pattern that is very sensitive to tail latency.
On the software stack, it is advisable to decouple the layers of model repository, service orchestration, gateway routing, and metering/audit. Model weights live in a shared storage or object storage abstraction layer, service instances are orchestrated by a container platform, the gateway handles authentication, rate limiting, and multi-model routing, and logs and metrics feed into a unified monitoring and alerting system. This way, scaling out or swapping models does not require changes to application code.
3. Model Deployment: Layered Storage and Parallelism Strategy
The core technique for deploying a large MoE model is layering: keep frequently accessed weights and runtime state in unified memory, and offload low-frequency lookup data (such as large embedding or memory tables) to NVMe SSD. This frees memory for the KV Cache and concurrent requests.
There are usually two parallelism options:
- Tensor parallelism (TP): splits each layer’s weights across nodes. It is communication-heavy and suits scenarios with high bandwidth and low latency between nodes.
- Expert parallelism (EP): shards by expert and communicates on demand after routing. It fits the MoE structure naturally, but suffers from load imbalance.
In practice, a TP+EP hybrid is common, combined with the following points:
- Reserve room for the KV Cache. Context length and concurrency multiply, so estimate cache usage by “context × concurrency” to avoid OOM interruptions in long-context scenarios.
- Control expert load skew. Routing hotspots cause some nodes to finish early while others wait idle, so monitor the expert hit distribution.
- Push cold data down. Route lookup data to SSD, trading a little latency for several times the effective memory.
- Unify the precision strategy. Mixed precision significantly reduces bandwidth pressure, but confirm that operators and the engine fully support the chosen precision.
An illustrative service startup command (showing configuration dimensions only, not a specific product interface):
python -m vllm.entrypoints.openai.api_server \--model /models/large-moe-model \--tensor-parallel-size 4 \--enable-expert-parallel \--kv-cache-dtype auto \--max-model-len 1048576 \--gpu-memory-utilization 0.90
4. Benchmarking: Four Scenarios and Metric Definitions
Evaluation should stay close to real workloads. Cover four scenarios and fix the metric definitions to avoid misjudgments from “looking only at the first token.”
- Everyday Q&A: short input and short output, focusing on time to first token (TTFT) and per-request end-to-end latency.
- Document processing: long input (tens of thousands to hundreds of thousands of tokens), focusing on prefill throughput, memory peak, and whether offloading is triggered.
- Complex tasks: multi-turn tool calls and structured output, focusing on stability and timeout rate.
- AI coding/Agent: long context plus high-frequency calls, focusing on output tokens per second (TPS) and the throughput degradation curve under concurrency.
Suggested benchmark record table:
| Scenario | Input length | Output length | Concurrency | TTFT | TPS | Error rate |
|---|---|---|---|---|---|---|
| Q&A | 512 | 256 | 1/8/32 | record | record | record |
| Document | 32K | 1K | 1/4 | record | record | record |
| Agent | 8K | 2K | 4/16 | record | record | record |
Key takeaway: when concurrency rises, if TPS drops but GPU/memory utilization is not saturated, the bottleneck is usually the interconnect or scheduling. If memory saturates first, shorten the context or offload cold data.
5. Common Bottlenecks and a Tuning Checklist
- Network bottleneck: confirm RDMA is actually active and the switch is not congested; adjust the parallelism split granularity if needed.
- Memory bottleneck: compress KV Cache precision, cap the maximum context, and offload low-frequency data to SSD.
- Load imbalance: check the expert routing distribution and adjust the routing policy or replica placement.
- Scheduling bottleneck: enable continuous batching and chunked prefill to ease long requests blocking short ones.
- Stability: set timeouts, retries, and circuit breaking at the gateway to prevent a single instance failure from spreading.
6. Selection Advice
Enterprises should derive resources backward from the business SLA: first define context length, peak concurrency, and latency limits, then work backward to memory capacity, interconnect bandwidth, and node count. Factor operability into the score as well, including a unified control plane, monitoring and alerting, model canary release, and metering/audit capabilities. If cloud resources are used, general-purpose categories (such as container platforms, object storage, message queues, log services, and monitoring/alerting) can carry elasticity and operations, while the model itself stays on the intranet, balancing compliance and elasticity. Overall, a four-node cluster strikes a good balance among capacity, bandwidth, and operability, making it a solid starting point for mid-to-large private inference that can scale horizontally as the business grows.
