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.

Weights only, before KV cache and runtime overhead. Our arithmetic from the Hugging Face rule of thumb (about 2 GB per billion parameters in 16-bit), halved for 8-bit and quartered for 4-bit.
Model size16-bit (BF16 or FP16)8-bit (FP8 or INT8)4-bit (INT4)
7BAbout 14 GBAbout 7 GBAbout 3.5 GB
32BAbout 64 GBAbout 32 GBAbout 16 GB
70BAbout 140 GBAbout 70 GBAbout 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).

GPU memory reported in Qwen's speed benchmark, Transformers, one GPU. Memory in MB as the page states it.
ModelPrecisionInput of 1 tokenInput of 30,720 tokens
Qwen3-8BBF1615,947 MB20,267 MB
Qwen3-8BFP89,323 MB13,644 MB
Qwen3-8BAWQ-INT46,177 MB11,001 MB
Qwen3-32BBF1662,751 MB70,728 MB
Qwen3-32BFP833,379 MB41,060 MB
Qwen3-32BAWQ-INT419,109 MB27,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, from NVIDIA product pages (read 26 and 29 November 2026) and the AWS EC2 accelerated computing specifications (read 28 November 2026). GPUs in alphabetical order.
GPUMemory per GPUSource
A100About 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
B200About 179 GiB (our arithmetic)AWS lists 1,432 GiB across the 8 GPUs of p6-b200.48xlarge
H10080 GB (SXM) or 94 GB (NVL)NVIDIA H100 page
H200141 GBNVIDIA H200 page
L40S48 GB GDDR6NVIDIA 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.

Brand Media Works sizing view for private inference with headroom for the KV cache (our arithmetic and our view, 29 November 2026).
Model size16-bit8-bit4-bit
7BOne 24 GB GPU for light use, one 48 GB GPU for many users or long inputsOne 24 GB GPUOne 24 GB GPU, with room for long inputs
32BOne 80 GB GPUOne 48 GB GPUOne 48 GB GPU
70BTwo 80 GB GPUs, or one 179 GB-class GPUOne 141 GB GPU, or two 80 GB GPUsOne 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.

Book a discovery call