Local LLM Deployment: Is 8 GPUs Enough?

    This article explains how to plan capacity for local deployment of large MoE models, using a model with roughly 320 billion total parameters and about 18 billion activated per inference as the technical background. It shows why active parameters cannot be used to estimate VRAM, breaks down the four components of memory demand, compares tensor, expert, and pipeline parallelism, and lists the four questions to answer before sizing a server. It also covers how to run a meaningful baseline benchmark and four engineering practices to follow before going live.

    1. Ask the Right Question First: It Is Not “Are 8 GPUs Enough”

    In discussions about deploying large Mixture-of-Experts (MoE) models locally, the most common question is whether eight of a given accelerator card are enough to run a specific model. The question itself is not wrong, but it compresses capacity planning into a binary judgment, and two typical problems tend to surface only after launch: VRAM looks sufficient but overflows the moment concurrency rises, or the hardware is fully purchased yet business metrics such as time-to-first-token and sustained output throughput still fall short.

    A better approach is to ask in layers:

    • If the target is low-precision weights (such as FP8), a single node, and a moderate context window, then a single node with 8 GPUs is a fairly clear reference path.
    • If a full million-token context is a hard requirement, VRAM and bandwidth demand rise sharply, calling for a higher tier of accelerator and a more careful parallelism strategy.
    • If the goal is to support real business traffic, you must first state the context length, concurrency scale, request types, and latency targets, and only then work backward to a server configuration.

    This article uses a large MoE model with roughly 320 billion total parameters and about 18 billion parameters activated per inference as its technical background to discuss a general method for LLM inference capacity planning. No specific vendor model is involved, and all configuration conclusions are given as order-of-magnitude references.

    2. Why You Cannot Estimate VRAM from Active Parameters

    This is the point most often misread. The core of the MoE architecture is to split parameters into a large number of expert subnetworks, where each token is routed to only a few experts for computation. “Active parameters” therefore describe the compute volume, not the storage volume.

    Three entirely different quantities must be separated:

    1. Weight footprint: all expert weights of an MoE model must stay resident in VRAM (or at least in a storage tier that can be called on quickly), because routing is data-dependent and it is impossible to know in advance which expert the next token will hit. Estimating VRAM from 18 billion active parameters underestimates the requirement by an order of magnitude.
    2. Runtime overhead: the framework’s own buffers, communication buckets, temporary activations, CUDA graphs, and kernel workspaces all consume VRAM, so a certain percentage of headroom should be reserved based on experience.
    3. KV Cache: this part is strongly tied to concurrency, context length, number of layers, and attention head dimensions. It is the only component that scales with business demand, and the one that most often causes OOM.

    A rough mental model:

    1. Total VRAM demand ≈ weights (fixed)
    2. + runtime and communication overhead (relatively fixed)
    3. + KV Cache (≈ concurrency × context length × cache bytes per token)
    4. + safety margin (10%~20% recommended)

    The conclusion is straightforward: weights determine whether the model can start at all, while KV Cache determines how many users you can serve simultaneously and how long a context you can write.

    3. Parallelism Strategies: 8 GPUs Is Not “Total VRAM Added Up”

    Multi-GPU deployment is often misunderstood as linear capacity stacking. In practice, the parallelism method determines both VRAM efficiency and communication overhead:

    • Tensor parallelism (TP): splits the weights of a single layer across GPUs. Communication is frequent and it is sensitive to inter-GPU interconnect bandwidth, making it suitable for 8 GPUs inside one node.
    • Expert parallelism (EP): places different experts on different GPUs. It noticeably improves VRAM balance for MoE models but introduces all-to-all communication.
    • Pipeline parallelism (PP): splits by layer. Communication volume is small, but single-request latency is amplified, so it is usually considered only across nodes.

    The real meaning of “8 GPUs” therefore depends on the topology: whether the GPUs have high-bandwidth interconnect, whether P2P is available, whether the collective communication library actually selects the high-speed link, whether the CPU and PCIe lanes become a bottleneck, and whether host memory and local NVMe are large enough to hold weight and cache swapping in and out. If any link in that chain degrades, it shows up as “enough GPUs but throughput will not go up.”

    4. Working Backward from Configuration: Four Questions to Answer First

    1. Context: is the daily workload 32K, 128K, or do you genuinely need 256K or even million-token context? Every doubling of context raises KV Cache and attention compute cost together, and the marginal cost of long context is far higher than that of short requests.
    2. Concurrency: single-user validation, shared use by several people in a lab, or an API service exposed to external callers? Concurrency in the single digits versus dozens requires completely different amounts of VRAM and different scheduling strategies.
    3. Workload type: chat, intelligent coding, AI agent tool calls, retrieval-augmented generation, or long-document summarization — which is the main scenario? Agents and RAG are usually a combination of long prompts, multiple turns, and high concurrency, which puts the most pressure on the system.
    4. Acceptance targets: which is the hard metric — time-to-first-token (TTFT), per-user output rate, or overall throughput? Without acceptance targets there is no way to judge whether a configuration is adequate.

    5. How to Run a Baseline Test That Is Actually Useful

    Under baseline conditions of a single node with 8 GPUs, low-precision weights, tensor parallelism, and a 128K context, it is advisable to first disable optimizations such as speculative decoding (MTP) and prefix caching to establish a “clean baseline,” then enable them one at a time. The commonly observed pattern is:

    • With short requests, some inference frameworks have an advantage in time-to-first-token and output throughput.
    • As the prompt grows longer, other frameworks achieve lower TTFT, but their sustained output throughput may be slightly worse.

    These differences depend heavily on version and workload, so do not pick a side in advance. The right approach is to run an A/B test with your own real prompts and concurrency curve:

    1. # Minimal example: a usable load-test loop
    2. cases = [
    3. {"name": "chat_short", "prompt_len": 512, "out_len": 256, "concurrency": 8},
    4. {"name": "rag_long", "prompt_len": 32768,"out_len": 512, "concurrency": 4},
    5. {"name": "agent_mixed", "prompt_len": 8192, "out_len": 1024,"concurrency": 16},
    6. ]
    7. for c in cases:
    8. run_benchmark(**c) # record TTFT, TPOT, throughput, peak VRAM, failure rate

    The recommended metrics are fixed at four: TTFT, per-token output latency, total system throughput, and peak VRAM together with request failure rate. Only by looking at all four at once can you tell whether a configuration merely “runs” or can actually “hold up.”

    6. Four Engineering Disciplines Before Going Live

    1. Do not max out the context on the first attempt. Get the window your business actually uses running stably first, then scale it up gradually while watching the inflection points in the VRAM and latency curves.
    2. Lock versions together. Model weights, inference framework, accelerator libraries, drivers, and kernels should be pinned as a set; when troubleshooting, do not focus on a single parameter alone.
    3. Treat topology as a first-class concern. Plan parallelism degree, inter-GPU interconnect, host memory, and local storage together to avoid “enough compute, clogged links.”
    4. Enable optimizations one at a time. Change only one of speculative decoding, prefix caching, or quantization strategy at a time, and keep the baseline so you can identify the cause of a regression.

    7. Conclusion

    The answer to “can 8 GPUs run it” is now fairly clear, but “can this configuration support my business” requires bringing real workloads into the test. The correct order for capacity planning is to first describe business requests, context, concurrency, and acceptance targets, and only then work backward to the server and parallelism strategy. When deploying in the cloud, general capabilities such as container platforms, object storage, log services, and monitoring and alerting can be combined to build elastic scaling and observability, so that capacity conclusions are continuously calibrated against business data rather than settled once and for all.