Local Deployment of Large Models on a Four-Node Cluster: An Architecture and Benchmarking Analysis
This article examines how large model deployment is shifting from single-server GPU stacking to distributed cluster collaboration, using a four-node setup with ARM CPUs and Blackwell GPUs connected through a 400G switch as a reference. It covers the three-layer decoupled architecture, hybrid precision loading with tiered storage, parallelism strategy selection, a four-scenario benchmarking methodology, and a practical tuning checklist. Readers will learn the key constraints that determine whether a cluster is worth deploying and which metrics matter for evaluating real-world performance.
1. Why Local LLM Deployment Is Moving from Single-Server GPU Stacking to Cluster Collaboration
Over the past two years, the most common path for enterprises deploying private large models has been the single-server, multi-GPU approach: a single server packed with accelerator cards, relying on high-speed inter-card interconnects to perform tensor parallelism. This path is effective enough when model parameters range from tens of billions to hundreds of billions. However, once models shift to large-scale Mixture of Experts (MoE) architectures and context windows are extended to the million-token level, the single-server approach hits three walls at once: insufficient GPU memory capacity, KV Cache expansion, and inter-card bandwidth becoming a bottleneck.
The essence of clustered deployment is to separate the “capacity wall” from the “bandwidth wall”: aggregate memory across multiple compute nodes solves the capacity problem, while a high-speed switching network solves the bandwidth problem. This article uses a distributed inference cluster as a reference—four compute nodes, each combining an ARM-based CPU with a Blackwell-based GPU, arranged in a star topology via a single 400G-class high-speed switch—to discuss the general principles of such solutions in architecture design, model loading, performance benchmarking, and real-world business performance. The article does not reference any specific vendor products; all configurations are general, reproducible parameter ranges common in the industry.
2. Deployment Architecture: Three-Layer Decoupling with a Hyperconverged Approach
2.1 Hardware Baseline
The hardware baseline for a four-node cluster capable of million-level context inference is roughly as follows:
- Compute nodes: 4 nodes, each combining a 20-core ARM CPU with a Blackwell-architecture GPU, totaling 80 CPU cores;
- Aggregate memory: 512GB of LPDDR5X unified memory with shared addressing across all four nodes;
- Aggregate compute: up to approximately 4 PFLOPS of NVFP4 sparse compute;
- Storage: 8TB of NVMe SSD for tiered weights and cold data;
- Network: ConnectX-7-class NIC per node, up to 200Gbps, with a 400G-class switch, RDMA/RoCE enabled.
The key here is not the peak compute number but the combination of “aggregate memory plus high-bandwidth interconnect.” In MoE model inference, the cost of moving and looking up expert weights often consumes more bandwidth than matrix multiplication. Therefore, network specifications directly determine whether the cluster can run at all, not just how fast it runs.
2.2 Three-Layer Decoupling
The core of the hyperconverged-style design is to split the infrastructure into three layers that evolve independently:
- Resource layer: compute nodes plus the high-speed switching network, responsible for providing memory, compute, and RDMA channels;
- Service layer: the inference engine and model serving, responsible for parallel partitioning, batch scheduling, and KV Cache management;
- Application layer: the AI gateway, knowledge base, intelligent coding, and agent orchestration, responsible for authentication, routing, rate limiting, and observability.
The direct benefit of three-layer decoupling is that swapping models does not require changing the network topology, scaling nodes does not require rewriting applications, and the gateway layer can handle multi-model routing and canary releases uniformly.
2.3 Advantages of Star-Topology Switching over Direct Connections
Early multi-node solutions favored direct point-to-point connections between nodes; four nodes would require six links, making cabling complex and fault domains difficult to isolate. A switched star topology shifts the relay burden to the switch: any node only needs to communicate with the switch, without forwarding data for other nodes. This brings three engineering benefits—clear topology, a single troubleshooting path, and scaling that only requires adding ports. The trade-off is higher demands on the switch backplane and RoCE lossless network configuration (PFC, ECN). Flow control tuning must be completed during deployment; otherwise, large-scale AllReduce operations will exhibit tail latency jitter.
3. Model Deployment: Tiered Storage and Mixed Precision Are the Key Variables
3.1 Weight Distribution and Cold Data Offloading
When loading a million-level context MoE model with native FP8 + FP4 mixed precision, the naive approach is to stuff all weights into memory. The result is often that the space left for KV Cache is compressed to the point where it cannot support long contexts. A more robust strategy is tiering:
- Hot tier: high-frequency expert weights and attention parameters that reside permanently in memory;
- Warm tier: low-frequency expert weights, prefetched on demand from NVMe;
- Cold tier: Engram-type lookup data and historical caches, offloaded directly to SSD.
The benefit of this tiering is predictable memory usage; the cost is introducing a new metric—prefetch hit rate. In practice, you need to monitor the “expert hit distribution.” If hotspots are too dispersed, you should adjust the routing strategy or increase the warm-tier residency ratio.
3.2 Choosing a Parallelism Strategy
Three partitioning approaches are common in four-node scenarios:
- Pure tensor parallelism (TP=4): the most communication-intensive and most sensitive to network performance, suitable for dense models with large per-layer parameters;
- Expert parallelism (EP) combined with tensor parallelism: different nodes host different experts, reducing communication volume but increasing the risk of load imbalance;
- Pipeline parallelism (PP): partitions layers across nodes, saving the most communication but showing noticeable bubbles under long contexts.
For MoE models, the industry generally favors a hybrid of EP and TP, combined with expert load balancing to avoid individual nodes becoming long-tail bottlenecks.
3.3 Service Layer Configuration Example
On the inference engine side, the key parameters center on context length, batch scheduling, and memory utilization ratio. An example is shown below (illustrating configuration dimensions only, not a specific product interface):
model:precision: fp8_fp4_mixed # Mixed-precision loadingmax_context: 1000000 # Million-level contextparallel:tensor_parallel: 4expert_parallel: truecache:kv_cache_dtype: fp8offload_to_ssd: true # Tiered cold-data offloadingscheduler:max_num_seqs: 128 # Max concurrent sequenceschunked_prefill: true # Chunked prefill to reduce long-prompt jittergateway:rate_limit_qps: 64route_by_model: true
Among these, chunked_prefill has the greatest impact on long-document scenarios: it splits the prefill of an ultra-long prompt into multiple small chunks interleaved with decode requests, significantly reducing the variance of time-to-first-token.
4. Performance Benchmarking: Four Scenario Types and Metric Definitions
The most common mistake in benchmarking is reporting only a single “throughput” number. A credible methodology should include at least four dimensions: time to first token (TTFT), time per output token (TPOT), end-to-end throughput (tokens/s), and the latency degradation curve under long contexts.
It is recommended to design test cases in four groups based on business scenarios:
- Everyday Q&A: short prompts, low concurrency; observe TTFT and P99 stability;
- Document processing: long prompts (tens of thousands to hundreds of thousands of tokens); observe prefill time and peak memory usage;
- Complex tasks: multi-turn tool calls and structured output; observe TPOT jitter and retry failure rates;
- AI coding / agents: high concurrency, long sessions, frequent context switching; observe cache hit rates and overall QPS.
Benchmarking scripts should prioritize reproducibility: fix random seeds, fix the input length distribution, and record cold-start and steady-state data separately:
# Pseudocode: tiered benchmarking loopfor scenario in ["qa", "doc", "agent", "code"]:for concurrency in [1, 8, 32, 64]:metrics = run_benchmark(prompt_len=SCENARIO_LEN[scenario],concurrency=concurrency,warmup=2, # Warmup to exclude cold startduration=300, # Steady-state sampling for 5 minutes)report(metrics) # TTFT / TPOT / throughput / p99
It is important to emphasize that cross-cluster comparisons must standardize precision, context length, and concurrency levels; otherwise, the numbers are not comparable.
5. Real-World Performance and a Tuning Checklist
Under the four-node configuration, three general patterns can be observed. First, in short Q&A scenarios, the bottleneck is usually scheduling and the gateway rather than compute; improving batch merging efficiency is more effective than scaling out. Second, in long-document scenarios, the bottleneck shifts to prefill and KV Cache; chunked prefill and FP8 caching can noticeably improve first-token performance. Third, in agent and coding scenarios, the bottleneck is context reuse; every incremental improvement in prefix cache hit rate yields an almost linear improvement in overall QPS.
The corresponding tuning checklist can be standardized as follows:
- Network side: confirm RoCE lossless configuration is in effect, check PFC and ECN thresholds, and avoid tail latency jitter;
- Memory side: monitor hot/warm/cold tier hit rates and dynamically adjust offloading ratios;
- Engine side: set maximum concurrency and chunked-prefill granularity per scenario;
- Application side: implement request prioritization and rate limiting at the gateway layer to prevent long tasks from crowding out short requests;
- Operations side: establish core dashboards and alert thresholds for TTFT, TPOT, and cache hit rate.
6. Selection Recommendations
Returning to the question enterprises care about most: when is a four-node cluster worth deploying? The criteria can be summarized as three hard constraints—whether the aggregate memory demand of model weights and KV Cache exceeds the single-server limit; whether context length reaches the hundreds-of-thousands-of-tokens range; and whether multiple teams need to share the same inference service with unified governance. If two of the three conditions hold, the total cost of ownership of a clustered solution is typically better than stacking single servers.
Conversely, if the workload is primarily short Q&A with low concurrency, a single-server solution is more manageable in terms of deployment complexity and operational cost. The final decision should not be based on peak compute parameters, but on measured latency and throughput data under real-world business input distributions.
