Before a brand can run an open-weight language model privately, it has to know how much GPU memory the model needs, because that decides which GPUs, and how many, the deployment uses. This answer sets out how the memory is made up, what the model and inference engine docs say, what each data-centre GPU offers, and how we size 7B, 32B and 70B models for private inference, as read on 28 and 29 November 2026. It covers sizing only, not cost.
Where GPU memory goes during inference
NVIDIA's TensorRT-LLM documentation splits it into three parts: "At inference time, there are 3 major contributors to GPU memory usage for a given TRT engine generated from a TensorRT-LLM model: weights, internal activation tensors, and I/O tensors." It adds that "For I/O tensors, the major memory footprint comes from the KV cache tensor."
SGLang's documentation gives the same picture as a sum: "SGLang allocates memory as follows: Total memory usage = model weights + KV cache pool + CUDA graph buffers + activations". In practice:
- Weights are fixed. TensorRT-LLM says "Weights size is fixed depending on the model size, the chosen precision of the weights and the parallelization strategy."
- The KV cache grows with the length of each request and the number of requests served at once. It is usually the part that decides how many users a GPU can serve.
- Activations and CUDA graphs take a smaller, roughly fixed slice. SGLang's tuning guide says reserving 5 to 8 GB for activations is typically enough, and vLLM notes that "By default, we optimize model inference using CUDA graphs which take up extra memory in the GPU."
Hugging Face's guide to optimizing LLMs makes the point that weights dominate for short inputs: "For shorter text inputs (less than 1024 tokens), the memory requirement for inference is very much dominated by the memory requirement to load the weights."
Memory for the weights at each precision
Hugging Face gives the rule of thumb: loading a model with X billion parameters takes roughly 4 times X GB in float32 and roughly 2 times X GB in bfloat16 or float16. It also notes that "Nowadays, models are however rarely trained in full float32 precision, but usually in bfloat16 precision or less frequently in float16 precision." Its own example puts Llama-2-70b at 140 GB in bfloat16.
Lower precision cuts the weights further. TensorRT-LLM says "Using lower precision like INT8 or FP8 can reduce the weights size," and vLLM says "Quantized models take less memory at the cost of lower precision." Hugging Face's memory estimator shows the scale. For an 80-billion-parameter model it lists a total size of 148.56 GB in float16, 74.28 GB in int8 and 37.14 GB in int4.
| Model size | 16-bit (BF16 or FP16) | 8-bit (FP8 or INT8) | 4-bit (INT4) |
|---|---|---|---|
| 7B | About 14 GB | About 7 GB | About 3.5 GB |
| 32B | About 64 GB | About 32 GB | About 16 GB |
| 70B | About 140 GB | About 70 GB | About 35 GB |
What a real model uses, measured
Qwen publishes a speed benchmark for its Qwen3 models that records GPU memory on one GPU with Hugging Face Transformers. The figures below are copied from that table (read 29 November 2026).
| Model | Precision | Input of 1 token | Input of 30,720 tokens |
|---|---|---|---|
| Qwen3-8B | BF16 | 15,947 MB | 20,267 MB |
| Qwen3-8B | FP8 | 9,323 MB | 13,644 MB |
| Qwen3-8B | AWQ-INT4 | 6,177 MB | 11,001 MB |
| Qwen3-32B | BF16 | 62,751 MB | 70,728 MB |
| Qwen3-32B | FP8 | 33,379 MB | 41,060 MB |
| Qwen3-32B | AWQ-INT4 | 19,109 MB | 27,718 MB |
Two things stand out. The measured BF16 figures sit close to the 2 GB per billion parameters rule. And a long input adds several gigabytes on top: about 8 GB for the 32B model in BF16 at 30,720 tokens (our arithmetic). That is for a single request. Serving many users at once multiplies the KV cache.
How much memory each GPU offers
| GPU | Memory per GPU | Source |
|---|---|---|
| A100 | About 40 GiB or 80 GiB, depending on the version (our arithmetic) | AWS lists 320 GiB across the 8 GPUs of p4d.24xlarge and 640 GiB across the 8 GPUs of p4de.24xlarge |
| B200 | About 179 GiB (our arithmetic) | AWS lists 1,432 GiB across the 8 GPUs of p6-b200.48xlarge |
| H100 | 80 GB (SXM) or 94 GB (NVL) | NVIDIA H100 page |
| H200 | 141 GB | NVIDIA H200 page |
| L40S | 48 GB GDDR6 | NVIDIA L40S page |
For larger models, NVIDIA's H100 page says: "For LLMs up to 70 billion parameters (Llama 2 70B), the PCIe-based NVIDIA H100 NVL with NVLink bridge utilizes Transformer Engine, NVLink, and 188GB HBM3 memory to provide optimum performance and easy scaling across any data center, bringing LLMs to the mainstream." With 94 GB per H100 NVL, that 188 GB is two GPUs joined by the NVLink bridge, not one (our arithmetic).
When one GPU is not enough
A model that does not fit in one GPU is split across several. vLLM says "Tensor parallelism (`tensor_parallel_size` option) can be used to split the model across multiple GPUs." TensorRT-LLM gives the effect on memory: "For example, each rank typically uses just 1/8 of the model weights when using 8-way tensor parallelism or 8-stages pipeline parallelism." It adds "Thus tensor parallelism normally has higher memory efficiency than pipeline parallelism when all other parameters are the same."
Hugging Face makes the same point for 70B-class models: at 140 GB in 16-bit they are larger than one 80 GB A100 or H100, so they need tensor or pipeline parallelism.
How the inference engines manage memory
- vLLM: "You can further reduce memory usage by limiting the context length of the model (`max_model_len` option) and the maximum batch size (`max_num_seqs` option)." It also warns that "Large models might cause your machine to run out of memory (OOM)."
- SGLang: one setting, mem_fraction_static, decides how much GPU memory goes to weights plus the KV cache. To serve more requests at once, "you should maximize the KV cache pool capacity by setting `--mem-fraction-static` as high as possible while still reserving enough memory for activations and CUDA graph buffers."
- TensorRT-LLM: "If neither `maxTokens` nor `freeGpuMemoryFraction` is specified, KV cache will by default allocate 90% of the remaining free GPU memory."
For how the three engines compare more broadly, see our comparison of vLLM, SGLang and Ollama.
How we size 7B, 32B and 70B models
These are Brand Media Works working estimates from the figures above, not vendor guarantees. Test with your own prompts and load before committing to hardware.
| Model size | 16-bit | 8-bit | 4-bit |
|---|---|---|---|
| 7B | One 24 GB GPU for light use, one 48 GB GPU for many users or long inputs | One 24 GB GPU | One 24 GB GPU, with room for long inputs |
| 32B | One 80 GB GPU | One 48 GB GPU | One 48 GB GPU |
| 70B | Two 80 GB GPUs, or one 179 GB-class GPU | One 141 GB GPU, or two 80 GB GPUs | One 80 GB GPU, or one 48 GB GPU with little room for long inputs |
Our rules when sizing a private model:
- Weights plus at least 20% headroom for the KV cache and runtime, more if many people will use it at once or if prompts carry long documents (our view).
- Prefer the smallest model that passes your own tests. A 7B or 32B model that fits one GPU is simpler to run than a 70B model split across several.
- Test quantized versions on your own tasks. 8-bit and 4-bit versions save memory, and quality loss varies by model and task.
- Set the context length you need, not the model's maximum. Each engine lets you cap it, which frees memory for more users.
For which providers offer these GPUs, see Alibaba Cloud vs AWS for GPU compute. For what an open-weight model is and why it can run in your own account, see open-weight models.
Frequently asked questions
How much GPU memory does a 7B model need?
About 14 GB for the weights in 16-bit precision, plus room for the KV cache (our arithmetic). Qwen's benchmark records its 8B model at 15,947 MB in BF16 for a one-token input on one GPU.
Can a 70B model run on one GPU?
Not in 16-bit on an 80 GB GPU: the weights alone are about 140 GB. It can on a GPU with more memory, such as a B200 class GPU, or on one 80 GB GPU in 4-bit precision, about 35 GB of weights (our arithmetic). Otherwise it is split across GPUs with tensor parallelism.
Does quantization reduce quality?
It can. vLLM says quantized models take less memory at the cost of lower precision. How much quality changes depends on the model and the task, so test the quantized version on your own work before choosing it.
Why does memory use grow with longer prompts?
Because the KV cache stores information for every token being processed. Qwen's benchmark shows its 32B model rising from 62,751 MB to 70,728 MB in BF16 when the input grows from 1 to 30,720 tokens.