Local LLM Deployment: Four Architecture Options and How to Choose
This article breaks down four practical approaches to deploying very large sparse models on your own hardware: single-node multi-GPU full precision, quantized single-node deployment, distributed multi-node clusters, and a hybrid cloud-plus-local routing model. It starts with capacity math for weights, KV cache, and compute, then covers inference framework selection, tuning priorities, and a simplified cost comparison, so you can match an architecture to your latency, compliance, and budget constraints.
1. Why Bring Very Large Models Back On-Premises
In April 2026, an open-source model family released a preview with two members: a flagship with roughly 1.6 trillion total parameters and about 49 billion activated parameters, and a lightweight variant with roughly 284 billion total parameters and about 13 billion activated parameters. Both support million-token context windows and rank among the strongest open models for agentic tasks, world knowledge, and reasoning.
Both share one defining trait: sparse activation. Total parameter count is huge, but each token only passes through a small subset of expert networks, so compute is far lower than a dense model of the same total size. Two consequences follow. Compute demand stays relatively manageable, while memory capacity (VRAM or system RAM) becomes the real bottleneck, because every expert weight must stay resident and cannot be loaded on demand.
Now look at the cost of hosted API calls. The lightweight variant is priced at roughly ¥1 per million input tokens and ¥2 per million output tokens; the flagship at roughly ¥12 per million input tokens and ¥24 per million output tokens. For a team burning tens of millions of tokens per day, a monthly bill in the five figures is normal, and it climbs another order of magnitude once you add batch data processing, repeated inference over long documents, or repository-scale agent loops. That is the case for self-hosting: convert a variable cost into a one-time hardware investment plus operating cost, with a predictable budget, data that never leaves your perimeter, and availability on your own schedule.
Self-hosting is not a free lunch, though. Hardware depreciation, power, rack or desk space, and operations headcount are all real costs. A reasonable rule of thumb: self-build only makes economic sense when steady-state utilization stays above a threshold (empirically around 30%–50%) for the long run and data compliance requirements are strict. Otherwise a hybrid model is the better answer.
2. Capacity Math First: VRAM, Memory, and Compute
Do the math before comparing options, or you risk buying hardware that either cannot run the model or is badly oversized.
The rule of thumb for weight memory:
Weight bytes ≈ total parameters × bytes per parameterFP16/BF16: 2 bytes per parameterINT8 : 1 byte per parameterINT4 : 0.5 bytes per parameterFor a 1.6T-parameter model:BF16 ≈ 3.2 TBINT8 ≈ 1.6 TBINT4 ≈ 0.8 TB
That covers weights only. A real deployment also has to add:
- KV cache: scales with context length, concurrency, layer count, and number of key/value heads. At million-token context, a single request’s KV cache can reach tens of GB, so budget for it separately and keep it in check with paged management and quantization.
- Framework and runtime overhead: communication buffers, transient activations, CUDA contexts, and similar. Reserve 10%–20%.
- Headroom: another 10% to avoid OOM caused by fragmentation.
On the compute side, two metrics matter. Memory bandwidth determines decode speed (token-by-token generation); FLOPS determine prefill speed (processing long prompts). Sparse activation models are more bandwidth-sensitive during decode, so “large memory plus high bandwidth” beats “high FLOPS.”
A practical estimation order: fix your target concurrency and context length, compute the KV cache; estimate weights at INT4/INT8; add the two and multiply by 1.2 to get minimum VRAM capacity; then divide bandwidth by the model’s activated parameter count to roughly bound single-request decode speed.
3. Four Deployment Options
Option 1: Single-Node Multi-GPU, Full Precision (Quality First)
For workloads where output quality is critical and budget is not a constraint. The setup is a single node with 8 accelerators in the 96GB class, with weights sharded across cards via tensor parallelism (TP). At BF16, 3.2TB of weights needs at least 4 such machines, so the realistic shape is “single node, multi-GPU for the lightweight variant; multi-node, multi-GPU for the flagship.”
Key engineering points:
- Parallelism: prefer TP inside a node and add pipeline parallelism (PP) across nodes. Keep the TP degree at or below the card count in one node, or cross-node communication will eat the gains.
- Interconnect: make sure cards are linked by a fast intra-node fabric and nodes by a high-speed network (RDMA-class), otherwise AllReduce becomes the bottleneck.
- Context: for long context, enable KV cache paging and quantization so a single request cannot blow up VRAM.
The upside is no quality loss and predictable behavior. The downside is the highest hardware bar and a need for mature distributed operations.
Option 2: Quantized Deployment (Best Value)
Compressing weights to INT8 or INT4 is the default choice for most teams. The 1.6T model lands around 0.8TB at INT4, which fits on a single 8×96GB node; the 284B model drops to roughly 140GB at INT4 and runs on 2×96GB cards or 4×48GB cards.
The goal is to quantize accurately, not aggressively:
Recommended workflow1. Use an activation-aware quantization method, keeping higher precisionfor sensitive layers (attention, normalization, output head);2. Calibrate with 128–512 real business samples; the closer toproduction traffic, the better;3. Run a quality regression after quantization: compare perplexity andtask accuracy against a fixed evaluation set;4. Quantize the KV cache to INT8 as well; the gain at long context is significant.
In practice, 4-bit weights usually land within an acceptable quality range, but the spread across tasks is wide. Code generation and math reasoning are more sensitive to quantization, so treat your own evaluation set as the source of truth rather than copying someone else’s conclusions.
Option 3: Distributed Multi-Node Cluster (Flagship On-Premises)
When the flagship must run locally with acceptable throughput, a multi-node setup is the only path. The core idea is turning “one machine cannot hold it” into “several machines hold it together.”
Architecture recommendations:
- Topology: 8 cards per node, TP=8 inside the node and PP across nodes; or use expert parallelism (EP) to spread experts across devices with hierarchical AllReduce.
- Network: at least 200Gbps-class RDMA with NUMA affinity binding. Network jitter shows up directly as tail latency.
- Scheduling: put a request queue and batch scheduler in front, with continuous batching and chunked prefill, interleaving long-prompt chunks with decode requests to raise utilization.
- Fault tolerance: a single card failure taking the whole deployment down is the norm, so prepare health checks, automatic isolation, and fast restarts. For critical workloads, run two clusters as mutual failover.
This option delivers the most capability at the highest operational cost, and suits organizations with a platform team.
Option 4: Cloud Bursting with Local Fallback (Hybrid)
For most enterprises the answer is not either/or but tiered routing:
Request → Gateway (routes by sensitivity / length / cost)├─ Sensitive data, high-frequency short requests → local quantized cluster├─ Very long context, peak traffic → cloud elastic inference└─ Complex long-chain agent tasks → cloud flagship + local result cache
In the cloud, a container platform can host inference services, object storage can hold model weights and datasets, a message queue can smooth request spikes, and logging plus monitoring with alerting can provide observability. The value: local infrastructure carries the steady baseline load to hold unit cost down, the cloud absorbs peaks and the long tail, the overall bill stays controlled, and you never keep hardware around just for peak capacity.
4. Inference Frameworks and Key Tuning
On framework choice, the mainstream direction is a general-purpose inference engine supporting paged attention, continuous batching, and tensor/pipeline/expert parallelism, plus a lightweight runtime aimed at quantized models. Validate four capabilities during selection: support for the quantization format you use, paged KV cache, chunked prefill, and a usable serving interface (an OpenAI-compatible API is now the de facto standard and makes switching transparent to the business).
Tuning checklist:
- Batch and concurrency: push max concurrency and the per-batch token cap to the edge of VRAM, then watch the throughput-latency curve for the inflection point.
- Context hygiene: retrieve and summarize long documents first instead of treating a 1M context as the default; KV cache reuse (prefix caching) cuts the cost of repeated system prompts substantially.
- Speculative decoding: pair a small model or n-gram draft with large-model verification for a noticeable decode speedup.
- Match parallelism to hardware: align the TP degree with card count and bandwidth, and avoid TP across nodes where possible.
- Observability: track VRAM fragmentation, queue time, time to first token (TTFT), and time per output token (TPOT), and let data drive parameter tuning.
5. Cost Comparison and Decision Guidance
Use a simplified model to decide (numbers are illustrative; recompute with your own power rates and hardware quotes):
Cloud: monthly cost ≈ input tokens × unit price + output tokens × unit priceLocal: monthly cost ≈ hardware depreciation / 36 + power + ops overhead + rack space
Bottom-line recommendations:
- Low daily volume with pronounced peaks: choose Option 4, keeping only a small local footprint as fallback.
- Data residency is a hard constraint and load is steady: choose Option 2, a single-node multi-GPU quantized deployment.
- The flagship is mandatory and throughput requirements are high: choose Option 3, and build platform capability alongside it.
- Maximum quality with ample budget: choose Option 1, but budget VRAM for long context carefully.
Three common mistakes to avoid: judging compute needs by total parameters while ignoring activated parameters; forgetting the KV cache and hitting OOM as soon as context grows; and skipping the quality regression, so accuracy quietly degrades after quantization without anyone noticing. Get capacity math, quantization validation, and observability right, and self-hosting really does deliver “invest once, run freely for the long term.”
