MoE LLM VRAM Requirements: Conditions, Limits, and Deployment

    This article explains how VRAM budgets, system memory capacity and bandwidth, and layered deployment prerequisites determine whether a 35B-parameter MoE model can run on a 12GB GPU with experts offloaded to system memory.

    1. MoE lowers the barrier, but does not eliminate it

    A Mixture-of-Experts (MoE) model splits its parameters into numerous expert subnetworks. Each token activates only a small number of experts, so the compute per step is determined mainly by the active parameters. VRAM usage, however, still depends on the total weight size, because inference must keep the required weights somewhere.

    Whether a 35B-class MoE model can run on a 12GB GPU depends on three things. The weights that must stay in VRAM have to fit. The routed experts must be holdable in system memory. Experts must also move from system memory to VRAM fast enough. If any one of these conditions is not met, the approach fails.

    2. How to calculate the VRAM budget

    VRAM usage on a single GPU can be roughly broken down as follows:

    VRAM usage ≈ resident weights + KV cache + intermediate activations + expert buffer + runtime overhead

    The components are as follows.

    Resident weights include the embedding layer, the QKV and output projections in the attention layers, LayerNorm parameters, and the shared experts. Every token uses these weights, so they must stay in VRAM.

    KV cache scales with sequence length, batch size, number of layers, and number of KV heads. Longer conversations increase its size, and it cannot be moved out during inference.

    Intermediate activations are temporary tensors produced during the forward pass. Larger batches raise the peak.

    The expert buffer temporarily holds routed expert weights loaded from system memory.

    Runtime overhead covers the CUDA context and the memory pool of the inference framework. Typically, 1 GB to 2 GB should be reserved.

    The following is a hypothetical budget example. The KV cache value assumes a sequence length of 4K and a batch size of 4. Actual values must be recalculated based on the model configuration.

    Item Example budget on a 12GB device Notes
    Runtime overhead 1.5 GB CUDA context and framework reservation
    KV cache 2.0 GB Estimate for sequence length 4K and batch size 4
    Intermediate activations 1.0 GB Estimate for a small batch size
    Expert buffer 1.0 GB About 2 to 4 times the expert weights of a single active layer
    Available for resident weights About 6.5 GB 12 GB minus the sum of the four items above

    Under this budget, the resident weights can hold the following number of parameters. FP16 uses 2 bytes per parameter, so 6.5 GB holds about 3.2B parameters. INT4 uses about 0.5 bytes per parameter. Including quantization scaling parameters, the estimate is 0.56 bytes per parameter, so 6.5 GB holds about 11B parameters.

    Whether a 35B-total-parameter MoE model can run therefore depends mainly on the size of its non-expert part, which is the resident weights. If the resident part exceeds the VRAM budget, the model cannot run even when all experts are moved to system memory. This figure must be taken from the parameter breakdown in the model card. The example values in this article cannot replace measured results.

    3. Memory capacity and bandwidth: another barrier

    Routed expert weights are mainly stored in system memory, and both capacity and bandwidth limit deployment performance.

    On capacity, storing all weights of a 35B-total-parameter model in FP16 requires about 70 GB. After excluding the resident part, the expert weights still need more than 60 GB of system memory. With INT4 quantization, all weights need about 20 GB, and the expert part is about 18 GB. 32 GB of system memory can hold them, but space must still be left for the operating system and other processes.

    On bandwidth, assume a 40-layer model where each token requires about 200 MB of expert weights per layer (FP16). On a cache miss, each decoding step needs about 8 GB of data transferred. PCIe 4.0 x16 reaches about 20 GB/s in practice, so one step’s transfer takes about 0.4 seconds. With INT4, the data volume drops to about a quarter, and the transfer time drops to about 0.1 seconds.

    These numbers show that single-token, low-latency scenarios are hard to satisfy. Batching lets multiple tokens share the same experts, which spreads the transfer cost. Cache hits also reduce the number of transfers.

    4. Prerequisites for layered deployment

    Whether layered scheduling works depends on the following conditions. All of them are required.

    • Interconnect and memory: Consumer GPUs usually have only PCIe lanes. Use PCIe 4.0 or later with x16 lanes, and store expert weights in pinned (page-locked) memory. Otherwise, transfer speed drops noticeably.
    • Expert granularity: The inference engine must support loading and unloading individual experts, not whole layers. If the granularity is too coarse, the buffer fills with many unrelated weights.
    • Concurrency and batch size: The higher the expert overlap among tokens in a batch, the fewer transfers are needed. When concurrent requests are scattered, the overlap decreases.
    • Engine version and configuration: Different inference engines handle experts