GPU Selection and VRAM Planning for Deploying Large MoE Models Locally

    This article explains why memory capacity and bandwidth, rather than peak TFLOPS, determine how well a large Mixture-of-Experts (MoE) model runs on local hardware. It compares three GPU tiers, maps hardware choices to common workload types, and covers quantization options and a sample VRAM estimate for a 671B-parameter model.

    1. Why MoE Deployment Cannot Be Judged by TFLOPS Alone

    MoE models have a distinctive profile: their total parameter count is very large, often in the hundreds of billions, but each token activates only a small subset, typically tens of billions of parameters. This shifts where the bottlenecks fall during deployment.

    1. All weights must stay resident in VRAM

    Although only a few parameters are active per token, the router can select different experts at each step, so inference frameworks generally require all expert weights to be quickly accessible. The minimum VRAM capacity is therefore set by total parameters multiplied by bytes per parameter, not by the number of active parameters. For a model with several hundred billion total parameters in FP8, the weights alone require hundreds of gigabytes of VRAM, which no single consumer GPU can hold.

    2. KV cache grows linearly with concurrency and context length

    The KV cache size can be roughly estimated as:

    1. KV Cache ≈ 2 × number of layers × hidden dimension × context length × concurrent requests × bytes per element

    With long contexts of 16K tokens or more and many concurrent users, the total KV cache can approach or even exceed the size of the model weights. This is why production deployments must reserve a large VRAM margin.

    3. Bandwidth determines decoding speed

    Autoregressive decoding is typically memory-bound. Generating each token requires reading the activated expert weights in full. Memory bandwidth therefore affects generation speed much more than peak compute. HBM-class high-bandwidth memory and GDDR memory differ by an order of magnitude in decoding throughput.

    2. Abstract Comparison of Three Typical GPU Tiers

    The hardware available to the industry falls roughly into three tiers, each suited to different workload patterns.

    1. Flagship data center GPUs (large VRAM with HBM high bandwidth)

    • VRAM capacity is typically in the 120–150GB range, with bandwidth in the multi-TB/s range.
    • They support NVLink-class high-speed interconnects, so tensor parallelism across multiple cards adds little communication overhead.
    • Best suited to: high-concurrency production services, contexts of 16K tokens or more, and multi-node cluster deployments.
    • Trade-off: a single card is expensive, and these GPUs are usually delivered in full 8-GPU servers.

    2. Workstation-class professional GPUs (medium VRAM with strong stability)

    • VRAM is typically around 96GB. Bandwidth falls between data center cards and consumer cards.
    • A single card can hold a quantized model of medium size, or host the sparse portion of a larger model.
    • Engineering stability, thermal design, and reliability under sustained full load exceed those of consumer cards.
    • Suited to enterprises with moderate concurrency and tight budgets that still need 24/7 stable operation.

    3. Consumer flagship GPUs (high compute with limited VRAM)

    • They offer strong peak compute and bandwidth for the price, but VRAM is usually around 32GB.
    • Best suited to scenarios where a quantized model fits entirely in VRAM: low-latency interaction for a single user, coding assistants, and personal AI agents.
    • Scaling by stacking multiple cards is limited by PCIe interconnect bandwidth and consumer driver restrictions.

    3. Choosing Hardware by Workload Profile

    Scenario A: High-concurrency production service

    Data center GPUs with large VRAM are the recommended choice. The reasons:

    • High-throughput frameworks such as vLLM rely on PagedAttention-style memory management, which needs a large VRAM pool to hold the KV cache for many sequences.
    • For long-context workloads, large-VRAM data center cards can deliver roughly 1.8–2.1× the throughput of the previous generation, depending on batch size and serving configuration.
    • NVLink connections across multiple cards keep tensor-parallel communication from becoming a bottleneck.

    Scenario B: Moderate concurrency with a focus on cost per unit of throughput

    Workstation-class professional GPUs are the balanced option. Community benchmark data reports that, for mid-to-high concurrency with long-context tasks, they deliver about 1.3–1.7× the throughput of consumer flagship cards. The main advantages are:

    • More VRAM headroom per card, which means fewer preemptions and recomputations caused by KV cache overflow.
    • Better stability under sustained high load, along with ECC-style error correction.
    • Two to four cards can be networked to cover quantized deployments of models with several hundred billion parameters.

    Scenario C: Low-latency interaction for a single user

    Consumer flagship cards have the edge here. Once the model fits entirely in VRAM, their time to first token (TTFT) can be about 5%–15% lower than on professional cards. This holds only if the model is scaled down to what the card’s VRAM can hold (roughly the 30B class), or if a sparse loading approach is used for large models and some layers reside in system memory, which adds latency.

    4. Quantization Strategy and VRAM Estimation

    1. Precision choices

    • FP8: Quality loss is small, and weights take about half the space of FP16. It is currently the mainstream choice for large model deployment.
    • INT4/AWQ-style methods: They compress the model further, fitting larger models into limited VRAM, but inference quality regression must be evaluated.
    • Mixed precision: Sensitive layers keep higher precision while the rest use lower precision, balancing quality and capacity.

    2. Sample VRAM estimate

    Using a model with 671B total parameters at FP8 (1 byte per parameter):

    1. Model weights: 671 × 1 ≈ 671 GB
    2. KV cache (FP8, assuming 32 concurrent requests and 16K context): approximately 100–200 GB
    3. Framework overhead and activations: reserve 10%–20%
    4. Total requirement ≈ 800 GB or more → requires 8 × 141GB GPUs or an equivalent configuration

    At INT4, the weights drop to about 340GB, which makes a 4-card 96GB setup feasible. The quality trade-off needs to be weighed in that case.

    3. Choosing a deployment framework

    • For production-grade throughput and concurrency scheduling, choose an inference engine that supports PagedAttention, continuous batching, and tensor/expert parallelism.
    • For quick setup and local experiments, lightweight tools such as Ollama suit single-machine, single-user use. They are not recommended for high-concurrency production.

    5. Practical Checklist

    1. Define the workload profile first. Concurrency, context length, and latency SLA together determine VRAM requirements.
    2. Plan VRAM as model weights plus peak KV cache plus a 20% margin to avoid out-of-memory errors and sequence preemption at runtime.
    3. With a large budget and high concurrency, use a multi-GPU data center server. With a tight budget and moderate concurrency, use a multi-GPU workstation setup. For single-user interaction, use a consumer flagship GPU with aggressive quantization.
    4. Before going live, load-test with real production traffic and monitor three metrics: TTFT, throughput, and VRAM utilization.
    5. Use elastic cloud GPU capacity to absorb overflow. Combining on-premises deployment with cloud resources can balance cost against peak capacity.

    Choosing hardware is not about buying the best GPU available. It is about matching VRAM capacity, bandwidth, interconnect topology, and the actual workload profile. Working through these three factors makes it possible to identify the best option quickly from a complex spec sheet.