Local Deployment of Large Models on a 4-Node Cluster: What the Benchmarks Actually Show
This article examines a real-world benchmark of running a large MoE model on a 4-node cluster with unified shared memory and high-bandwidth interconnect. It explains why on-premises inference has become an engineering priority, outlines the reference hardware and its practical limits, and analyzes the dual pressure MoE architectures place on memory capacity and interconnect bandwidth. It covers tensor and expert parallelism trade-offs, the real bottlenecks of 1M-token context, a step-by-step throughput and latency tuning path, and the observability needed to catch silent degradation. The key takeaway: performance comes from tuning layered storage, parallel topology, batch scheduling, and monitoring together—not from peak compute numbers.
1. Why Running Large Models Locally Is an Engineering Issue Again
Over the past two years, demand for running large-parameter models on owned compute has risen sharply, driven by three main factors. First, keeping data within its original domain has become a hard compliance requirement: sensitive corpora such as code, contracts, and medical records are not suitable for transit over external networks. Second, the cumulative cost of long context and high-frequency calls is hard to predict, and once scaled, the marginal cost of a self-built cluster is more controllable. Third, the inference pipeline often needs deep coupling with internal systems, where network round trips and queueing latency are unacceptable.
But going local does not mean “buy a few machines and it will just run.” Three things ultimately decide success: whether memory capacity can hold both the weights and the KV cache, whether inter-node bandwidth can sustain the high-frequency communication that parallel splitting introduces, and whether the scheduling layer can reliably route requests to the correct parallel group. The benchmark analysis below is organized around these three threads.
2. Reference Cluster Hardware and Its Capability Limits
This benchmark used 4 homogeneous compute nodes, interconnected through a single 400G-class high-speed switch into a distributed inference cluster with RDMA-style low-latency communication. A unified operations management platform handled model distribution, service orchestration, and gateway access. The overall configuration can be summarized as:
- Compute: 4 ARM-architecture CPUs with 20 cores each, 80 cores total, handling data preprocessing, tokenization, and scheduling
- Accelerator architecture: next-generation Blackwell architecture GPUs
- Unified shared memory: 512GB LPDDR5X, with all four nodes sharing the same address-space semantics
- Theoretical compute: up to roughly 4 PFLOPS of NVFP4 sparse compute
- Storage: 8TB NVMe SSD, used for tiering between weights and cold data
- Network: up to 200Gbps per node, 400G-class interconnect on the switch side
- Model and precision: large-scale MoE architecture model, with the vendor’s native FP8 and FP4 mixed precision
- Context: 1M tokens
- Inference engine: a mainstream high-throughput serving framework
- Management: a unified operations management platform with built-in AI gateway capabilities
It is worth stressing that the numbers above are the “ceiling” for this specific configuration, not guaranteed performance under any workload. Real throughput depends on concurrency, the distribution of input and output lengths, and the parallel strategy; the sections below give quantitative methods.
3. The Core Challenge: MoE Squeezes Both Memory and Bandwidth
Large-scale MoE models have a completely different resource profile from dense models. In a dense model, every weight participates in computation for every token, whereas in an MoE model each token activates only a few experts. Compute demand is therefore relatively controllable, but the price is a huge total weight footprint and a random access pattern.
This creates two concrete conflicts:
- Capacity conflict. All expert weights must stay resident in addressable memory; otherwise every inference step has to read weights back from storage, and latency becomes unacceptable.
- Bandwidth conflict. Expert routing is data-dependent, so different tokens hit different experts. The block sizes transferred across nodes are not fixed, which makes it easy to underutilize the link and also easy to hit long-tail waits.
The tiering strategy used in the benchmark was to distribute the main weights evenly across the unified memory of the four nodes, and offload the large, low-access-frequency lookup-style structures to local NVMe SSD. This leaves the precious memory for the KV cache and activations. The benefit is longer usable context and higher concurrency; the cost is the introduction of storage-access tail latency, which must be controlled through warm-up and cache hit rate.
4. Parallelism Strategy: Trade-offs Between Tensor and Expert Parallelism
In a four-node setup, two common splitting approaches are usually mixed in practice:
- Tensor parallelism (TP): splits a single layer’s matrices across multiple cards. It is communication-intensive and the most sensitive to bandwidth, making it suitable for the high-bandwidth domain inside a node.
- Expert parallelism (EP): shards experts across different nodes. Its communication volume depends on the routing distribution, making it suitable for scaling across nodes.
A practical principle is “TP within the node first, EP across nodes,” so that the most frequent reduction communication travels the shortest physical path. A schematic form of the launch parameters looks like this (structure only, not any specific implementation):
# Tensor parallel size = 4, expert parallel size = 4, node-local firstserve --model /models/moe-large \--tensor-parallel-size 4 \--enable-expert-parallel \--expert-parallel-size 4 \--max-model-len 1048576 \--kv-cache-dtype fp8 \--enable-chunked-prefill \--num-scheduler-steps 8
When tuning, watch three metrics first: effective cross-node bandwidth utilization, expert load skew, and the variance of request lengths within a batch. If skew is severe, adjust the routing capacity factor or replicate experts rather than blindly adding nodes.
5. Where the Real Bottleneck of 1M Context Lies
Long context is not just a matter of “big enough parameters.” The KV cache grows linearly with context length, and at million-token lengths it often consumes more memory than the weights. Engineering practice usually combines three measures:
- Lower-precision KV cache, using FP8 storage to gain several times the capacity;
- Chunked prefill, slicing an ultra-long prompt to avoid a single forward pass filling memory and blocking other requests;
- Prefix reuse, caching repeated prefixes such as system prompts and code-base context; in the benchmark, this kind of workload showed the most obvious gains.
# Prefix reuse sketch: put the stable prefix first, the changing part lastmessages = [{"role": "system", "content": SYSTEM_PROMPT}, # cacheable{"role": "user", "content": long_context}, # semi-static{"role": "user", "content": current_question}, # changes frequently]
6. A Tuning Path for Throughput and Latency
It is best to troubleshoot in a fixed order to avoid variables contaminating each other:
- First measure the single-request baseline: time to first token, per-output-token latency, and sensitivity to context length.
- Then load concurrency: raise it step by step, recording the throughput inflection point and the P99 latency inflection point.
- Tune batching: increasing the per-batch token budget raises throughput but also raises time to first token, so it must be balanced against the business SLA.
- Finally tune parallelism and offloading: only change the TP/EP ratio and the SSD offload ratio when bandwidth utilization or memory becomes the bottleneck.
A practical capacity estimation method is: available KV budget ≈ total memory − weight footprint − activation and framework reserve. Then use “per-request KV footprint × target concurrency” to work backward to the average context length that can be supported. This formula predicts real serving capacity better than any peak compute number.
7. Observability and Operations
Failures in distributed inference are mostly “silent degradation”: a node’s bandwidth drops, a certain class of experts stays hot over the long term, or an NVMe drive enters a high-latency range—on the surface it just looks like worse P99. Monitoring therefore needs to cover at least: inter-node link bandwidth and retransmissions, memory and KV cache occupancy curves, expert routing distribution, request queue wait time, and storage read-latency percentiles. The value of a unified operations platform is binding these metrics to model versions and parallel configurations, making rollback and reproduction easier.
8. Conclusion
A four-node high-bandwidth unified-memory cluster can already support private inference of large MoE models with million-level context, but performance is not a function of configuration. It is the result of tuning “layered storage + parallel topology + batch scheduling + observability” together. In practice, start with baseline load testing using a real corpus distribution, then decide the combination of precision, context, and concurrency, and build capacity planning on a measurable KV budget rather than on nominal peak compute figures.
