Local LLM Deployment: Four Architecture Options and a Selection Guide

    This guide compares four practical approaches to deploying large language models on-premises: single-node multi-GPU with low-bit quantization, multi-node tensor and expert parallelism, heterogeneous tiered offloading, and distributed elastic serving. It covers how to estimate VRAM for weights and KV cache, the trade-offs of each option, and a general tuning checklist, helping you choose based on model size, latency, throughput, and total cost.

    1. Why Run Very Large Models Locally

    A recent open-source model series released a preview version built on a mixture-of-experts (MoE) architecture. The flagship tier has roughly 1.6T total parameters with about 49B activated per token; the lightweight tier has roughly 284B total parameters with about 13B activated. Both claim support for million-token context and rank among the top open-source models for agentic tasks, world knowledge, and reasoning. These models are highly capable, but cloud token-based billing creates two practical problems: costs grow linearly with usage, and long contexts plus frequent agent loops can inflate the bill significantly; and moving data outside your network creates compliance and privacy pressure. The point of local deployment is to turn variable operating expense into a one-time hardware investment while keeping data inside your network, enabling deep customization, and allowing offline operation.

    Local deployment is not “free,” though: power, data center space, operations staff, and hardware depreciation are all real costs. The reasonable rule of thumb is that self-hosting becomes economical once average daily usage and the proportion of long-context requests exceed a certain threshold.

    2. Start With the VRAM Math: How to Estimate Capacity

    The first step is not choosing a framework but calculating VRAM. A rough estimate:

    1. Weight VRAM ≈ total parameters × bytes per parameter
    2. KV cache ≈ 2 × layers × KV heads × head dim × sequence length × batch × precision bytes
    3. Usable VRAM = per-GPU VRAM × GPU count × 0.85 (reserve for activations and fragmentation)

    For 1.6T total parameters, FP8/INT8 weights need on the order of 1.6TB, BF16 doubles that to around 3.2TB, and 4-bit quantization can compress it to near 0.8TB. The 284B tier at 4-bit is roughly 150GB, which fits in a single-node multi-GPU range. What is easy to overlook is the KV cache: at million-token context, a single request’s cache can reach tens of GB and must be budgeted separately and controlled with techniques such as paged cache, prefix reuse, and sliding window.

    3. Four Deployment Options

    Option 1: Single Node, Multiple GPUs, Low-Bit Quantization (Best Starting Point)

    Suitable for the 284B-class lightweight tier. Use 4-bit/FP8 weight quantization to fit the model into the VRAM of 4–8 accelerators in one node, and run it with tensor parallelism. The advantages are simple deployment, low latency, and no network dependency; the cost is possible accuracy loss from quantization and the need to limit context length.

    1. # Example: launch settings focus on quantization, parallelism, and context limit
    2. launch = {
    3. "quantization": "fp8", # or int4, depending on remaining VRAM
    4. "tensor_parallel_size": 8, # match intra-node parallelism to GPU count
    5. "max_model_len": 131072, # context limit directly affects KV cache
    6. "gpu_memory_utilization": 0.85,
    7. }

    Tuning tip: match max_model_len to the real distribution of your workload rather than maxing it out; enabling prefix caching lets a fixed system prompt be computed only once.

    Option 2: Multi-Node Tensor Parallelism + Expert Parallelism (Main Path for the Flagship Tier)

    A 1.6T-class model cannot fit on a single node and needs an inference cluster across multiple nodes. Beyond tensor parallelism, the MoE design makes expert parallelism key: distribute different experts across devices and communicate based on routing results at activation time. This option delivers the highest throughput but is sensitive to interconnect bandwidth; use a high-speed network between nodes and set the parallelism to an integer multiple of the per-node GPU count to reduce cross-node traffic.

    Three engineering points matter: first, routing load balance, so a few hot experts do not slow down the whole batch; second, overlapping communication with computation; third, fault-domain isolation, so one failing node does not take the entire service down.

    Option 3: Heterogeneous Tiered Offloading (A Compromise for Tight Budgets)

    When accelerator VRAM is insufficient, place inactive expert layers and some weights in host memory or high-speed storage, swapping them in and out on demand. This significantly lowers the hardware barrier but has two consequences: higher time-to-first-token and lower throughput. It therefore suits latency-insensitive scenarios such as offline batch processing, internal knowledge-base Q&A, and code completion, and is not fit for strongly real-time conversation.

    Practical advice: keep hot layers resident in VRAM and push cold layers down, and measure the actual expert activation distribution to guide the tiering strategy with real access patterns.

    Option 4: Distributed Elastic Serving (Shared by Teams and Multiple Workloads)

    Turn inference into an internal platform service: use a container platform for orchestration, a gateway for tenant isolation and rate limiting, logging and monitoring/alerting for observability, and object storage for model weights and versions. The value is that multiple workloads share the same expensive compute, with queuing and priority scheduling to improve overall utilization; model upgrades can be rolled out gradually and rolled back quickly if problems appear.

    4. Side-by-Side Comparison

    Dimension Single-Node Quantization Multi-Node Parallelism Heterogeneous Offloading Distributed Serving
    Parameter scale Small to medium Flagship Any Any
    Hardware barrier Low High Low to medium High
    Time to first token Low Low Relatively high Medium
    Throughput Medium High Low High (after sharing)
    Ops complexity Low High Medium High

    5. General Tuning Checklist

    1. Context governance: set context limits by workload tier, and retrieve and summarize/compress long documents first.
    2. Batching strategy: continuous batching significantly improves throughput, but set timeouts and priorities so long requests do not starve short ones.
    3. Quantization validation: run A/B evaluation on real business samples before launch; quantization gains must be premised on acceptable accuracy.
    4. Capacity load testing: use P99 latency at the target concurrency as the acceptance line, not the average.
    5. Cost review: include power, depreciation, and staff in total cost and compare periodically with pay-as-you-go billing to avoid sunk-cost decisions.

    6. Conclusion

    The four options are not mutually exclusive: a common evolution is to validate results and the data loop with single-node quantization first, then scale to multi-node parallelism as needed, and finally consolidate into a shared inference platform at the organizational level. If a team lacks the conditions to self-build and operate, it can also use general container, storage, and monitoring capabilities from cloud platforms such as Baidu AI Cloud to carry the deployment, focusing its effort on model selection and business evaluation.