LLM VRAM and Concurrency Capacity Planning Guide

    This guide explains how to plan GPU memory and concurrency capacity for large language models, especially MoE architectures. It breaks VRAM usage into weights, KV cache, and runtime overhead, outlines three typical configuration tiers, and lists the factors that change the final setup. It also covers server-level requirements and a staged path from validation to production, with acceptance based on load testing rather than configuration lists.

    1. The Starting Point: Why “Can It Run?” Has No Single Answer

    When the weights of a large MoE (Mixture of Experts) model are released, the question enterprise users ask most often is whether their existing eight-GPU server can handle it. There is no simple “yes” or “no,” because the answer depends on four variables at once: deployment precision, context length, concurrency level, and service-level objectives. If any one of them is missing, the capacity conclusion is only a reference point, not an acceptance-ready plan.

    A more common misconception comes from the parameter count itself. Many people see “roughly 40 billion activated parameters per pass” and size the hardware as if it were a 40-billion-parameter dense model. In reality, the full weights of an MoE model are typically in the hundreds of billions. Those weights must be loaded in full or sharded across compute nodes, even though only a subset is activated in each forward pass. Activated parameters determine compute volume; weight size determines VRAM usage. The two cannot be treated as the same thing.

    2. Three Sources of VRAM Usage

    A reliable capacity estimate requires breaking VRAM demand into three parts.

    1. Weights. Weight VRAM is roughly the parameter count multiplied by bytes per parameter. For a model with about 740 billion parameters at FP8 (1 byte per parameter), the theoretical floor is about 744GB; at BF16 (2 bytes per parameter), it is about 1.49TB. This is only the starting point for “fitting in memory.”
    2. KV Cache. The attention cache grows linearly with context length and the number of concurrent requests. In long-context scenarios, it can approach or even exceed the size of the weights themselves.
    3. Runtime overhead. This includes the framework’s activation buffers, communication buffers, CUDA graphs and operator workspaces, and fragmentation reserves. A certain percentage of headroom usually needs to be added on top.

    A practical estimation formula can be written as:

    1. Per-GPU VRAM demand ≈ weight shard + (per-request KV × max concurrency) + runtime reserve

    The weight shard equals total weight VRAM divided by the tensor parallelism degree. KV Cache is proportional to the number of layers, the number of attention heads, bytes cached per token, and context length. In engineering practice, it is advisable to add 10%–20% on top of the estimate to absorb fragmentation and peak fluctuations.

    3. What the Three Typical Configuration Tiers Solve

    Based on common industry reference practices, configurations can be grouped into three tiers. Each tier has a different goal, and they cannot substitute for one another.

    • Native FP8 validation tier: based on eight 141GB-class accelerator cards with 8-way tensor parallelism. The goal is to validate model precision alignment, operator availability, and baseline throughput. It suits functional validation and low-concurrency pilots.
    • Full long-context tier: based on eight 180GB-class accelerator cards. When context demand reaches the million-token range, the VRAM that must be reserved for a single request’s KV Cache rises sharply. Only larger per-GPU memory can hold both the weights and the cache at the same time.
    • Low-precision validation tier: after 4-bit quantization, weight size can be compressed to around 373GB, which loads on eight 80GB- or 96GB-class devices. It suits low-concurrency validation, offline batch processing, and cost-sensitive scenarios.

    One point deserves emphasis: the same VRAM capacity does not mean the same performance. Two 141GB cards may come from different product lines, with clear differences in compute, memory bandwidth, power, and interconnect capability. Actual throughput must be confirmed by load testing.

    4. Factors That Change the Final Configuration

    • Context strategy: common length and peak length should be measured separately, because long-tail requests often set the VRAM floor.
    • Output and reasoning mode: maximum output length and chain-of-thought reasoning can significantly amplify cache usage and generation time.
    • Concurrency model: registered users are not the same as concurrent users. Average and peak concurrency must be distinguished, along with queuing and rate-limiting policies.
    • Tool calls and long-running tasks: multi-turn tool calls extend the lifetime of a single session, making it hard to release the cache quickly.
    • Interconnect and software stack: inter-GPU bandwidth, parallelism strategy, and inference framework version all affect the concurrency ceiling.
    • Quality tolerance: low-bit quantization can cut costs significantly, but the business side must confirm that the quality change is acceptable.

    Therefore, “eight GPUs can fit FP8” does not mean the model can sustain a million-token context under high concurrency; “total VRAM is enough for quantized weights” does not mean the quantized backend can match the throughput of a native-precision setup. A configuration table is a starting point, not an acceptance conclusion.

    5. Server-Level Requirements

    Beyond the accelerator cards, the whole-node design matters just as much. A typical node for a large-parameter model usually needs dual-socket processors, at least 1.5TB of system memory, multi-terabyte enterprise SSDs, and stable power and cooling. Whether host memory offload is enabled, and whether multiple model versions and dataset caches are retained, will change the actual memory and storage requirements. For containerized deployment, it should be paired with an image registry, configuration management, logging services, and monitoring and alerting to form an observable, rollback-capable operations loop.

    6. A Staged Path from Validation to Production

    1. Define the target: first write down the acceptance metrics for context length, concurrency target, time to first token, and generation throughput.
    2. Small-scale validation: use a quantized version on existing hardware to verify the pipeline, precision, and functional correctness.
    3. Load testing and tuning: gradually increase concurrency, watch VRAM levels, cache hit rate, and latency distribution, and adjust parallelism strategy and batching parameters.
    4. Canary rollout: keep a rollback version and set capacity watermark alerts and scale-out triggers.
    5. Production acceptance: use the load-test report, not the configuration list, as the delivery basis.

    7. FAQ

    Q: What does native FP8 require? A: It usually requires a single node with eight 141GB-class devices and 8-way tensor parallelism enabled; the specifics follow the reference practice of the chosen inference framework.

    Q: Why doesn’t eight 141GB cards directly equal a million-context setup? A: Fitting the weights is only the first step. Long context requires reserving more VRAM per request for the cache, so larger per-GPU memory is needed.

    Q: Why can’t activated parameters be used to size hardware like a small model? A: Activated parameters reflect compute per pass, but the full weights still need to be loaded or sharded to the node.

    Q: Does the same capacity mean the same performance? A: No. Differences in compute, bandwidth, power, and interconnect must be confirmed through testing.

    8. Conclusion

    The essence of capacity planning is turning vague requirements into measurable metrics. A model that can be loaded and a system that can stably enter production are two different problems: the former is about VRAM, while the latter is about concurrency, latency, stability, and operations capability. Using general compute, storage, and monitoring capabilities from cloud services such as Baidu AI Cloud as the foundation, and following the approach above—define metrics first, then run load-test acceptance—can avoid repeated hardware selection and wasted resources.