Sizing Guide for Deploying Large MoE Models: Can an 8-GPU Server Handle It?

    When deploying a very large Mixture-of-Experts (MoE) model, the most common question teams ask is not "how good is it?" but "can our existing 8-GPU server run it?" The answer depends on three variables: the precision you plan to deploy, the context length you need to support, and how many users will access the model concurrently. This guide walks through each variable, explains why activated parameters don't determine memory usage, and provides a reusable capacity estimation framework you can apply before any deployment decision.

    1. A Common Misconception: Activated Parameters ≠ Memory Usage

    Many teams see “40B” in the model specs and estimate memory as if it were a 40B dense model. This is the most frequent mistake.

    That 40B refers to the number of parameters activated per token during the forward pass in the MoE architecture. It determines compute (FLOPs) and inference speed—not how much storage the weights require. A MoE model’s full weights include all experts, and although each token is routed to only a few experts at inference time, the entire weight set must be loaded onto the GPU node, because routing is dynamic and any expert can be hit by any request.

    The correct way to estimate: memory usage is driven mainly by total weights. Take a MoE model with roughly 744B total parameters as an example:

    • FP8: approximately 744GB
    • BF16: approximately 1.49TB
    • 4-bit quantization (e.g., Q4_K_M level): approximately 373GB

    Even the most aggressive quantization scheme leaves you far beyond a single GPU’s memory, so multi-GPU parallelism with tensor sharding is mandatory.

    2. Hardware Reference by Precision

    Combining weight footprint with inference framework runtime overhead (KV cache, activations, communication buffers, etc.), here are practical reference points:

    1. Native FP8 deployment

    FP8 is the native inference precision, balancing accuracy and efficiency. Weights come to about 744GB; adding runtime overhead, consider nodes with per-GPU memory above 140GB, such as 8×H200 (141GB-class) or 8×141GB H20. With this configuration, weights fit fully in memory, leaving room for the KV cache and supporting production-grade concurrency.

    2. Ultra-long context scenarios

    If your application requires the full 1M token context, KV cache overhead grows dramatically. Even if the weights fit, the KV cache becomes the bottleneck—consider 8×B200 180GB-class configurations. Note that ultra-long contexts usually also require corresponding attention optimizations (such as sparsification or hierarchical caching); otherwise, throughput will drop noticeably.

    3. Where quantization fits

    With 4-bit quantization, weights drop to roughly 373GB, which can theoretically be loaded on 8×80GB or 8×96GB GPU nodes. But be clear about its role: this suits low-concurrency validation and testing, not production serving, for two reasons:

    • Quantization introduces some accuracy loss, and performance on complex reasoning tasks may differ noticeably from native precision;
    • On 80GB-class GPUs, after loading the weights, little memory remains for the KV cache, so high concurrency or long contexts can easily trigger OOM errors or frequent swapping.

    3. A Reusable Capacity Estimation Method

    When sizing hardware, work through a quantified memory budget in these steps:

    Step 1: Calculate weight footprint

    1. Weight memory ≈ total parameters × bytes per parameter
    2. FP8: 744B × 1 byte ≈ 744GB
    3. BF16: 744B × 2 bytes ≈ 1488GB
    4. Q4: 744B × 0.5 byte ≈ 372GB

    Step 2: Estimate the KV cache

    1. KV cache ≈ 2 × layers × KV heads × head dim × context length × concurrency × precision bytes

    This term scales with context length and concurrency, making it the dominant variable in long-context scenarios. If the model uses mechanisms like Grouped Query Attention (GQA), the KV head count is far smaller than the attention head count, which significantly reduces cache pressure.

    Step 3: Reserve runtime overhead

    This includes activations, CUDA context, communication buffers, and framework-resident memory—generally 10%–15% of total GPU memory.

    Step 4: Validate the total budget

    1. Total memory required ≤ node total memory × 0.85 (safety factor)

    If it exceeds the budget, either lower precision, reduce concurrency, shorten the context, or add nodes.

    4. Practical Recommendations Before Deployment

    1. Validate at small scale before production: Use a quantized configuration on your existing 8-GPU node to run through the inference pipeline and verify business results. Once accuracy meets requirements, decide whether to invest in an FP8-class, high-spec node.
    2. Load-test with realistic traffic: Benchmark using request length distributions and concurrency patterns that mirror your actual workload, not theoretical values. The context length distribution affects the KV cache far more than the average length.
    3. Balance throughput and latency: Fitting the weights is only the baseline. Production environments also require attention to batch scheduling strategies, continuous batching capability, and the resource ratio between Prefill and Decode phases.
    4. Elastic validation in the cloud: If local hardware is insufficient, spin up GPU instances from cloud providers on demand—for example, container-based image deployment paired with object storage for weight files—to quickly compare multiple configurations before committing to a purchase or long-term rental.

    Conclusion

    “Can an 8-GPU server run it?” is never a static question—it’s a capacity planning problem shaped by three variables: precision, context length, and concurrency. The core methodology can be summed up in one sentence: size memory by total weights rather than activated parameters, size the KV cache by actual workload rather than theoretical peaks, and always leave headroom for runtime overhead. With this estimation framework, you can quickly determine the limits of your current hardware and chart a sensible upgrade path, no matter how model specs evolve.