Operationrange Get a free plan

How much VRAM do you need to run an LLM?

Short answer: the size of the model files, plus a KV cache that grows with every token of context, plus about 1–2 GB for the inference engine. Below are the numbers for the open models people actually deploy in November 2026, which GPU each one fits on, and what that GPU costs today.

Quick answers

Common models and the smallest GPU that runs them

“Cheapest” is the typical (median) hourly price on the Vast.ai marketplace on 5 Dec 2026 for a GPU with room for at least 32K tokens of context. Details and the full tables are below.

The formula

What actually uses GPU memory

Serving an LLM needs memory for four things:

GPU memory ≈ weights
           + KV cache per token × tokens in context (all requests together)
           + fixed state per request (sliding-window and linear-attention layers)
           + engine overhead (activations, CUDA graphs: about 1–2 GB)

1. Weights: use the file size, not parameters × bytes

The rule of thumb “2 bytes per parameter in BF16, 1 in FP8, about 0.5 in 4-bit” is a good first guess, but real checkpoints keep some parts (embeddings, vision encoders, MoE routers, quantization scales) in higher precision. Qwen3.8-27B has 27.8B parameters, yet its official FP8 files take 30.9 GB, not 27.8 GB. gpt-oss-120b was post-trained in MXFP4, so its 117B parameters fit in 65.2 GB. All weights in this guide are the sizes of the files an engine actually loads, taken from Hugging Face.

2. KV cache: the part that grows with context

For every token in the context, each attention layer stores a key and a value vector:

KV bytes per token = 2 (K and V) × KV heads × head dim × bytes per value × attention layers

Llama 3.3 70B: 2 × 8 × 128 × 2 bytes × 80 layers = 327,680 bytes ≈ 320 KB per token
32K tokens of context → about 10.7 GB, on top of the weights

Models released in 2025–2026 need far less, because most of their layers no longer keep a full-length cache:

  • Sliding-window attention. gpt-oss alternates layers that only look at the last 128 tokens with full-attention layers, so only half the layers grow with context: about 38 MB per 1K tokens for gpt-oss-120b. Gemma 4 does the same with a 1,024-token window on most layers.
  • Hybrid linear attention. In Qwen3.6 and Qwen3.8, three out of four layers use linear attention with a fixed-size state (about 150 MB per request for Qwen3.8-27B). Only 16 of Qwen3.8-27B's 64 layers keep a KV cache: 67 MB per 1K tokens.
  • Multi-head latent attention (MLA). Mistral Small 4 compresses keys and values into a small latent vector: about 24 MB per 1K tokens for a 119B model.

The KV cache is shared by everything the server is processing. Room for 128K tokens means one 128K-token conversation, or eight users with 16K tokens each.

3. Engine overhead

vLLM pre-allocates 90% of GPU memory by default (--gpu-memory-utilization 0.9), loads the weights, keeps some memory for activations and CUDA graphs, and turns the rest into KV cache. llama.cpp allocates exactly the context you ask for with --ctx-size. In our tables we assume vLLM uses 90% of the GPU minus 1 GiB, and llama.cpp the whole GPU minus 1.5 GiB.

Single GPU

VRAM needed for popular open models, and the cheapest GPU today

“Runs on one GPU” means the weights fit and at least 32K tokens of context are left for one request. “Context room” is how many tokens of KV cache fit on the cheapest such GPU.

Model · formatWeightsKV per 1K tokensRuns on one GPU (32K+ context)Cheapest todayContext room on it
gpt-oss-20b
MXFP4 (as released) · vLLM
13.8 GB25 MBRTX 3090, RTX 4090, RTX A6000, RTX 5090, RTX 6000 Ada and moreRTX 3090 · $0.22/hrfull 128K context
gpt-oss-120b
MXFP4 (as released) · vLLM
65.2 GB38 MBA100 80GB, RTX PRO 6000, H100, H200, B200A100 80GB · $0.84/hrfull 128K context
Qwen3.8-27B
BF16 · vLLM
55.6 GB67 MBA100 80GB, RTX PRO 6000, H100, H200, B200A100 80GB · $0.84/hrfull 256K context
Qwen3.8-27B
FP8 (official) · vLLM
30.9 GB67 MBRTX A6000, RTX 6000 Ada, L40S, A100 80GB, RTX PRO 6000 and moreRTX A6000 · $0.48/hr≈212K tokens
Qwen3.8-27B
NVFP4 · vLLM
26.4 GB67 MBRTX 5090, RTX PRO 6000, B200RTX 5090 · $0.67/hr≈46K tokens
Qwen3.8-27B
GGUF Q4_K_M · llama.cpp
16.6 GB67 MBRTX 3090, RTX 4090, RTX A6000, RTX 5090, RTX 6000 Ada and moreRTX 3090 · $0.22/hr≈110K tokens
Gemma 4 31B
BF16 · vLLM
62.5 GB84 MBA100 80GB, RTX PRO 6000, H100, H200, B200A100 80GB · $0.84/hr≈153K tokens
Gemma 4 31B
FP8 · vLLM
33.3 GB84 MBRTX A6000, RTX 6000 Ada, L40S, A100 80GB, RTX PRO 6000 and moreRTX A6000 · $0.48/hr≈133K tokens
Gemma 4 31B
4-bit QAT (W4A16) · vLLM
23.3 GB84 MBRTX A6000, RTX 5090, RTX 6000 Ada, L40S, A100 80GB and moreRTX A6000 · $0.48/hr≈252K tokens
Gemma 4 31B
GGUF Q4_0 (QAT) · llama.cpp
17.7 GB84 MBRTX 3090, RTX 4090, RTX A6000, RTX 5090, RTX 6000 Ada and moreRTX 3090 · $0.22/hr≈66K tokens
Gemma 4 26B-A4B
BF16 · vLLM
51.6 GB21 MBA100 80GB, RTX PRO 6000, H100, H200, B200A100 80GB · $0.84/hrfull 256K context
Gemma 4 26B-A4B
GGUF Q4_0 (QAT) · llama.cpp
14.4 GB21 MBRTX 3090, RTX 4090, RTX A6000, RTX 5090, RTX 6000 Ada and moreRTX 3090 · $0.22/hrfull 256K context
Gemma 4 12B
BF16 · vLLM
23.9 GB17 MBRTX A6000, RTX 5090, RTX 6000 Ada, L40S, A100 80GB and moreRTX A6000 · $0.48/hrfull 256K context
Gemma 4 12B
4-bit QAT (W4A16) · vLLM
10.3 GB17 MBRTX 3090, RTX 4090, RTX A6000, RTX 5090, RTX 6000 Ada and moreRTX 3090 · $0.22/hrfull 256K context
Qwen3.6-35B-A3B
FP8 (official) · vLLM
37.5 GB21 MBRTX A6000, RTX 6000 Ada, L40S, A100 80GB, RTX PRO 6000 and moreRTX A6000 · $0.48/hrfull 256K context
Qwen3.6-35B-A3B
GGUF Q4_K_M · llama.cpp
22.1 GB21 MBRTX 3090, RTX 4090, RTX A6000, RTX 5090, RTX 6000 Ada and moreRTX 3090 · $0.22/hr≈95K tokens
Llama 3.3 70B
FP8 · vLLM
72.7 GB336 MBRTX PRO 6000, H200, B200RTX PRO 6000 · $1.60/hr≈55K tokens
Llama 3.3 70B
4-bit (W4A16) · vLLM
39.5 GB336 MBA100 80GB, RTX PRO 6000, H100, H200, B200A100 80GB · $0.84/hr≈109K tokens

Weights: files on Hugging Face (GB = 10⁹ bytes). KV cache: BF16, layers whose cache grows with context; for Gemma 4 we count keys and values separately although the model shares them on some layers, so its numbers are an upper bound. Prices: typical hourly price on the Vast.ai marketplace on 5 Dec 2026. NVFP4 needs a Blackwell GPU (RTX 5090, RTX PRO 6000, B200).

Model × GPU

How much context fits on each GPU

Tokens of KV cache left for one request after loading the model. Green: 32K or more. Amber: 8K–32K, fine for short chats. “–”: does not fit.

ModelRTX 3090
24 GB
RTX 4090
24 GB
RTX 5090
32 GB
RTX A6000
48 GB
RTX 6000 Ada
48 GB
L40S
48 GB
RTX PRO 6000
96 GB
A100 80GB
80 GB
H100
80 GB
H200
141 GB
B200
192 GB
gpt-oss-20b
MXFP4 (as released)
fullfullfullfullfullfullfullfullfullfullfull
gpt-oss-120b
MXFP4 (as released)
––––––fullfullfullfullfull
Qwen3.8-27B
BF16
––––––fullfullfullfullfull
Qwen3.8-27B
FP8 (official)
–––212K212K169Kfullfullfullfullfull
Qwen3.8-27B
NVFP4
––46K–––full–––full
Qwen3.8-27B
GGUF Q4_K_M
110K110K235Kfullfullfullfullfullfullfullfull
Gemma 4 31B
BF16
––––––full153K149Kfullfull
Gemma 4 31B
FP8
–––133K133K98Kfullfullfullfullfull
Gemma 4 31B
4-bit QAT (W4A16)
––66K252K252K217Kfullfullfullfullfull
Gemma 4 31B
GGUF Q4_0 (QAT)
66K66K167Kfullfullfullfullfullfullfullfull
Gemma 4 26B-A4B
BF16
––––––fullfullfullfullfull
Gemma 4 26B-A4B
GGUF Q4_0 (QAT)
fullfullfullfullfullfullfullfullfullfullfull
Gemma 4 12B
BF16
––fullfullfullfullfullfullfullfullfull
Gemma 4 12B
4-bit QAT (W4A16)
fullfullfullfullfullfullfullfullfullfullfull
Qwen3.6-35B-A3B
FP8 (official)
–––fullfull230Kfullfullfullfullfull
Qwen3.6-35B-A3B
GGUF Q4_K_M
95K94Kfullfullfullfullfullfullfullfullfull
Llama 3.3 70B
FP8
––––––55K10K9Kfullfull
Llama 3.3 70B
4-bit (W4A16)
–––17K17K8Kfull109K108Kfullfull
Multi-GPU

Models that need a multi-GPU server

Large mixture-of-experts models are split across GPUs with tensor parallelism. For GLM-5.3-Flash and DeepSeek-V4.1-Flash we only check that the weights fit with 15% headroom, because their sparse and linear attention is not modelled here. We skip A100s for these FP8 models: Ampere GPUs have no FP8 tensor cores.

Model · formatWeightsRuns on (32K+ context)Cheapest todayContext room on it
Mistral Small 4 119B
FP8 (official) · vLLM
120.9 GBH200, B200H200 · $4.73/hrfull 256K context
GLM-5.3-Flash
FP8 (official) · vLLM
328.3 GB8× RTX PRO 6000, 8× H100, 4× H2008× RTX PRO 6000 · ≈$12.81/hrfits
DeepSeek-V4.1-Flash
FP8/INT8 (official) · vLLM
510.3 GB8× RTX PRO 6000, 8× H100, 4× B2008× RTX PRO 6000 · ≈$12.81/hrfits
Llama 3.3 70B
FP8 · vLLM
72.7 GBRTX PRO 6000, H200, B200RTX PRO 6000 · $1.60/hr≈55K tokens
Reality check

How close are these estimates to real deployments?

vLLM publishes measured numbers for some setups. Its Qwen3.8-27B recipe runs the NVFP4 checkpoint on a single RTX 5090 with a 32K maximum context and --enforce-eager, and reports a KV cache pool of 76,458 tokens with BF16 KV. Our method gives ≈46K tokens for the same GPU. The estimate is deliberately conservative: real headroom depends on the engine version, CUDA graphs, the vision encoder and your settings. Treat the tables as “will it fit and roughly how much context”, then confirm with the startup log of your engine.

Ways to fit more into the same GPU

  • FP8 KV cache. --kv-cache-dtype fp8 in vLLM halves KV memory. In the same recipe, FP8 KV plus a few other settings raised the pool on one RTX 5090 from 76,458 to 152,917 tokens.
  • Limit the context. Set --max-model-len to what your application needs. vLLM refuses to start if one request of that length cannot fit in the KV cache.
  • Drop what you don't use. For multimodal models served for text only, vLLM's --language-model-only skips the vision encoder. On one RTX 5090 it raised Qwen3.8-27B's KV pool from 91,022 to 135,926 tokens (vLLM recipe).
  • Quantize the weights. 8-bit is close to BF16 quality for most models. Models with official low-precision releases (gpt-oss in MXFP4, Gemma 4 QAT checkpoints, Qwen FP8) are the safest choice.
  • Pick the engine for the job. llama.cpp with a 4-bit GGUF squeezes a 27–31B model onto a 24 GB GPU for one user. For many concurrent users, use vLLM or SGLang on a GPU with room for a large KV cache.

Older GPUs have limits too. Ampere cards (RTX 3090, RTX A6000, A100) have no FP8 tensor cores, so FP8 weights run through slower weight-only kernels, and NVFP4 needs Blackwell.

Step-by-step guides

Not sure which GPU to rent?

Send us the model, expected traffic and context length. We size the GPUs, estimate the monthly bill and can deploy it for you with monitoring and 24/7 support, with no markup on GPU prices.

Get a free estimate
FAQ

VRAM questions

How much VRAM do I need for a 70B model?

Llama 3.3 70B takes 39.5 GB in 4-bit and 72.7 GB in FP8, and its KV cache needs about 320 KB per token. In 4-bit it fits on a 48 GB GPU only with a short context (≈8K tokens on an L40S); an 80 GB GPU leaves ≈109K tokens. FP8 needs a 96 GB RTX PRO 6000 or an H200.

Can a 24 GB GPU like the RTX 4090 run a 27–31B model?

Yes, in 4-bit with llama.cpp: Qwen3.8-27B as a Q4_K_M GGUF (16.6 GB) leaves ≈110K tokens of context, Gemma 4 31B as Google's QAT Q4_0 GGUF (17.7 GB) leaves ≈66K tokens. For vLLM and several concurrent users, a 32 GB RTX 5090 or a 48 GB GPU is more comfortable; see RTX 5090 vs 4090 vs 3090.

How much VRAM does gpt-oss-120b need?

The weights take 65.2 GB in the MXFP4 format OpenAI released, so it runs on one 80 GB GPU (A100 80GB, H100) with full 128K context of context room on an H100. gpt-oss-20b needs 13.8 GB and runs on any 24 GB GPU.

Does a longer context window need more VRAM?

Yes. Every token in the context adds to the KV cache: about 38 MB per 1,000 tokens for gpt-oss-120b, 67 MB for Qwen3.8-27B and 336 MB for Llama 3.3 70B. Concurrent requests share the same cache, so 10 users at 16K tokens need as much as one request at 160K.

Is 4-bit quantization good enough?

For chat and most assistants, usually yes, especially with official quantized releases: gpt-oss was post-trained in MXFP4 and Google publishes quantization-aware (QAT) 4-bit Gemma 4 checkpoints. 8-bit (FP8) is closer to full precision. Test on your own prompts before going to production, particularly for code, math and long documents.