VRAMfarm logo VRAMfarm
EN
Sign up

11 November 2026 · VRAMfarm team

How much VRAM do I need? A table for LLMs, Flux, Wan 2.2 video and training

Stacked memory blocks sized by model, from an 8B chat model to a 235B MoE: how much VRAM you need for LLMs, image and video models

A 7–8B chat model in 4-bit fits on a 12 GB card, a 32B model needs 24 GB, and Llama 3.3 70B needs about 43 GB just for its weights, so 48 GB is the realistic minimum. Image models sit between 10 GB (SDXL) and 24 GB (Qwen-Image in fp8), and Wan 2.2 video needs 22–48 GB. The same estimates drive the VRAM picker on the home page, and the formula they come from works for any model you want to check yourself.

The formula: weights, KV cache and overhead

Video memory holds three things while a model runs:

VRAM ≈ parameters × bytes per parameter + KV cache (or activations) + 1–2 GB overhead

The first part is the weights. One billion parameters at 2 bytes each is 2 GB, so an 8B model in fp16 needs about 16 GB before it has processed a single word. The bytes per parameter depend on precision:

Precision Bytes per parameter 8B model 32B model 70B model Quality
fp32 4 32 GB 131 GB 282 GB Training only, nobody serves in fp32
fp16 / bf16 2 16 GB 66 GB 141 GB The reference
fp8 / int8 1 8 GB 33 GB 71 GB Very close to fp16
4-bit (Q4_K_M, AWQ, GPTQ) 0.55–0.6 5 GB 20 GB 43 GB Small loss, fine for chat
2–3 bit 0.3–0.4 3 GB 12 GB 25 GB Clearly worse, last resort

The second part depends on what the model does. For a language model it is the KV cache: the model keeps keys and values for every token in the conversation, and that grows with context length. For image and video models it is the activations: intermediate tensors that grow with resolution, number of frames and batch size.

The third part is the CUDA context, the framework’s buffers and memory fragmentation. Budget 1–2 GB, more with vLLM, which reserves 90% of the card up front by default.

Quantisation is how most people fit bigger models onto smaller cards. fp8 halves the weights with almost no visible difference, and it is the default for Flux, Qwen-Image and Wan in ComfyUI. 4-bit halves them again. For chat and summarising, a 4-bit 32B model (about 20 GB) usually gives better answers than an 8B model in fp16, which takes almost as much memory. For code and maths in small models the loss is easier to notice. Below 4 bits, quality drops quickly.

One hardware detail: fp8 is computed natively from the Ada generation onwards (RTX 40 and 50 series, L40S, H100, B200). Ampere cards (RTX 3090, RTX A6000, A100) can load fp8 weights, but they compute in fp16, so you save memory without gaining speed.

Language models: from 8B to 235B

The numbers are approximate: weights plus working buffers at short context. Long context comes on top, see the KV cache section below. The “4-bit” column matches what our picker shows, because that is how most people run these models on one card.

Model fp16 fp8 4-bit Card for 4-bit Card for fp8
Qwen3 8B, Llama 3.1 8B 17 GB 9 GB 7 GB 12 GB: RTX 3060 16 GB: RTX 4060 Ti, RTX 4080
Qwen3 14B 30 GB 15 GB 10 GB 16 GB: RTX 4060 Ti, RTX 5070 Ti 24 GB: RTX 3090, RTX 4090
Qwen3 32B 66 GB 33 GB 21 GB 24 GB: RTX 3090, RTX 4090 48 GB: RTX A6000, L40S
Llama 3.3 70B 141 GB 71 GB 43 GB 48 GB: RTX A6000, L40, L40S 80–96 GB: H100, RTX PRO 6000
Qwen3 235B-A22B (MoE) 470 GB 235 GB 136 GB 192 GB: B200, or 2 × A100 / H100 4 × H100 or 2 × B200

A few notes on reading it:

  • 24 GB runs a 32B model, with a short context. A 4-bit 32B model leaves 2–3 GB for the KV cache on a 24 GB card, enough for roughly 8–10k tokens. The 32 GB RTX 5090 gives the same model room for something like 30–40k, depending on the quantisation and the runtime’s own buffers.
  • 70B on one card means 48 GB or more. On 48 GB, a 4-bit 70B runs with 8–12k context, about twice that with an 8-bit cache. For long documents, several users at once or vLLM serving, take an 80 GB A100 or H100.
  • The 141 GB H200 looks right for a 136 GB model, but it is too tight. After the CUDA context almost nothing is left for the cache. Take a B200 or two 80 GB cards.
  • MoE models need all their experts in memory. Qwen3 235B-A22B activates 22B parameters per token, so it generates text about as fast as a 22–30B dense model, yet it needs the memory of a 235B one.

Speed is a separate question. Generating each token reads the whole model from memory, so a rough ceiling for tokens per second is memory bandwidth divided by model size. An RTX 4090 (1,008 GB/s) with a 20 GB model tops out around 50 tokens per second, and real numbers land a bit lower. That is why an H100 with 3,350 GB/s feels so much faster with the same model.

Image and video models

Image and video models in ComfyUI are usually run in fp8, and ComfyUI moves the text encoder and VAE in and out of VRAM as needed. The “minimum” column means “runs at 1024 × 1024 (or 720p video) without errors”; the recommended card gives you headroom for LoRAs, ControlNet and higher resolutions. Treat the figures as estimates for a typical workflow: resolution, frame count and ComfyUI’s offloading settings can move them by several gigabytes either way.

Model Precision VRAM Minimum card Comfortable card
SDXL fp16 ~10 GB 12 GB: RTX 3060 16 GB: RTX 4060 Ti, RTX 4080
Flux.1 dev fp8 ~16 GB 16 GB: RTX 4080, RTX 5070 Ti 24 GB: RTX 4090 (also bf16)
Qwen-Image, Qwen Image Edit fp8 ~24 GB 24 GB: RTX 3090, RTX 4090 32–48 GB: RTX 5090, L40S
HiDream fp8 ~24 GB 24 GB: RTX 3090, RTX 4090 32 GB: RTX 5090
Wan 2.2 5B (text/image to video) bf16 ~22 GB at 720p 24 GB: RTX 4090 32 GB: RTX 5090
Wan 2.2 14B (text/image to video) fp8 ~30 GB 32 GB: RTX 5090 48 GB: L40S, RTX A6000

Video is the category where “fits” and “fits comfortably” differ most. Each extra second of video adds frames, and every frame adds activations. Wan 2.2 14B in fp8 needs about 30 GB at 720p for a 5-second clip: a 32 GB RTX 5090 handles it, but longer clips or higher resolution push you to 48 GB. That is why our ready-made Wan 2.2 14B app asks for a 48 GB card, and the 5B app for 24 GB.

GGUF quantisations (Q4, Q5) of Flux and Qwen-Image exist and squeeze them onto 8–12 GB cards, at the price of slower steps and some detail. If you only need a few images, that is fine; for real work the extra memory pays for itself in time. The GPU guide for Flux, SDXL and ComfyUI goes card by card.

Speech and training

Speech models are small. Training needs far more memory than running the same model, because gradients and optimiser states sit next to the weights.

Task VRAM Card
Whisper large-v3 (fp16) ~10 GB (int8 with faster-whisper: a few GB) 12 GB: RTX 3060
Chatterbox, Qwen3-TTS, VoxCPM 6–8 GB 12 GB: RTX 3060
SDXL LoRA 12–16 GB 16–24 GB
Flux LoRA ~24 GB 24 GB: RTX 3090, RTX 4090
QLoRA, 8B model 10–16 GB 16–24 GB
QLoRA, 32B model 24–32 GB 48 GB
QLoRA, 70B model ~48 GB with short sequences 80 GB: A100, H100
Full fine-tune, 8B model ~70 GB with 8-bit optimiser and gradient checkpointing 80 GB card, or several

The full fine-tune line needs explaining. With the standard AdamW optimiser in mixed precision, each parameter costs about 16 bytes: bf16 weights (2), gradients (2), an fp32 master copy (4) and two optimiser states (8). For 8B parameters that is about 128 GB before activations, which means two or more 80 GB cards, an H200 or a B200. An 8-bit optimiser and gradient checkpointing bring it down to roughly 70 GB, depending on sequence length and the trainer, which fits on a single A100 or H100. QLoRA avoids almost all of it: the base model stays frozen in 4-bit and only small adapter matrices are trained.

Why a model that fits still crashes on long context

This is the most common surprise: the model loads, answers the first questions, then fails with “CUDA out of memory” when you paste a long document. The weights did fit. The KV cache did not.

The cache per token is 2 × layers × KV heads × head size × bytes. In fp16 that gives:

Model KV cache per token 8k tokens 32k tokens 128k tokens
Qwen3 8B 0.15 MB 1.2 GB 4.8 GB 19 GB
Qwen3 32B 0.26 MB 2.1 GB 8.6 GB 34 GB
Llama 3.3 70B 0.33 MB 2.7 GB 10.7 GB 43 GB

So a 4-bit 70B on a 48 GB card is fine at 8k tokens and runs out somewhere around 10–12k. At its advertised 128k context the cache alone is as big as the weights. Serving several users multiplies the cache by the number of parallel conversations.

How to fix it without a bigger card:

  • Cap the context. In vLLM set --max-model-len 16384. vLLM refuses to start if the context you ask for can’t fit, which is better than crashing later. In Ollama, the context length (num_ctx) is what decides memory, so set it on purpose rather than relying on the default, which has changed between versions.
  • Quantise the cache. --kv-cache-dtype fp8 in vLLM, or -ctk q8_0 -ctv q8_0 in llama.cpp (with flash attention on), halves the cache with little effect on answers.
  • Limit parallel requests if you serve an API: fewer simultaneous conversations, less cache.

If you need the long context every day, the cheaper fix is usually the next card up: an 80 GB card for 70B, or a 32 GB RTX 5090 instead of 24 GB for 32B.

Picking the card from the number

Take the number from the tables, add 10–20% for headroom, and pick the smallest card above it. The cards come in fixed steps: 10–12 GB, 16 GB, 24 GB, 32 GB, 48 GB, 80 GB, 96 GB, 141 GB and 192 GB. Within one step the difference is speed, not what you can run: an RTX 3090 and an RTX 4090 both hold 24 GB. The 4090 makes images about 1.6–2.5 times faster, but generates LLM text only a little faster, because their memory bandwidth is similar (936 vs 1,008 GB/s). Compare their hourly prices, from €0.30 and €0.59, on the pricing page.

If you are unsure, start one step bigger than you think. Billing is per minute, so a card that is too large costs you a few cents for the test, while one that is too small costs you an evening of out-of-memory errors.

Questions on this topic

Can I run a 70B model on a single 24 GB card?

Not in a way you will enjoy. In 4-bit the weights alone are about 43 GB; squeezing them into 24 GB takes 2-bit quantisation, which noticeably hurts quality, or offloading layers to system RAM, which drops speed to a few tokens per second. A 48 GB card is the practical minimum.

Do two GPUs add up their memory?

For LLMs, yes: vLLM (tensor parallel), llama.cpp and Ollama (layer split) spread one model across cards, so 2 × 80 GB can hold a model of roughly 130–140 GB, with less room left for the cache. For image and video models in ComfyUI, one model normally has to fit on one card, so a second card helps with a second job, not a bigger model.

How much system RAM do I need next to the GPU?

At least as much as the card's VRAM, more if you offload. Models are loaded through RAM, and ComfyUI parks text encoders and VAEs there between steps. Our ready-made apps only offer machines whose RAM is at least the total VRAM.

Does a mixture-of-experts model need less memory?

No. Qwen3 235B-A22B uses about 22B parameters per token, so it runs at the speed of a much smaller model, but all 235B parameters still have to sit in memory.

Find the GPU your model fits on

Pick a model and see the cheapest card with enough VRAM, billed by the minute in euros.