How much GPU memory (VRAM) do you need? Chat models, image models and fine-tuning

KernelMachine is preparing an invite-only beta; no launch date is set. Where this guide describes KernelMachine, it's how it works at launch. Join the waitlist

Short answer: for chat models, plan on about 0.6 GB per billion parameters at 4-bit, or 2 GB per billion at full 16-bit, plus a few GB for the conversation. For images, 12 GB covers SDXL and 24 GB covers Flux at full precision. For fine-tuning, QLoRA fits an 8B model in about 10 to 16 GB; a full fine-tune needs about 16 bytes per parameter.

GPU memory, usually called VRAM (video memory), is the memory built into the graphics card. A model has to fit in it to run at full speed. If it doesn't fit, you either get a "CUDA out of memory" error, or the software moves part of the model into normal system memory and runs many times slower. That's why memory, not the card's name, is the first thing to choose.

Chat and text models

A model's size is counted in parameters: the numbers it learned in training. "8B" means 8 billion. Each parameter takes a fixed amount of memory, depending on how precisely it's stored:

PrecisionMemory per parameterNotes
16-bit (FP16 or BF16)2 bytesFull quality. How most models are published.
8-bit (e.g. Q8_0, FP8)about 1 byteNearly the same quality.
4-bit (e.g. Q4_K_M)about 0.6 bytesSmall quality loss. The default in Ollama and LM Studio.

So: memory for the model ≈ parameters × bytes per parameter. Then add room for the conversation (below).

Model size4-bit8-bit16-bitCard to rent (4-bit)
8B~5 GB~9 GB~16 GB8 GB or more
14B~9 GB~15 GB~28 GB12 to 16 GB
32B~19 GB~34 GB~64 GB24 GB
70B~42 GB~75 GB~140 GB48 GB, or two 24 GB cards

Room for the conversation

While it answers, a model keeps a working memory of the conversation so far (the "KV cache"). It grows with every word. For Llama 3 8B it's about 128 KB per token (a token is roughly three-quarters of a word), so an 8,000-token conversation adds about 1 GB. For a 70B Llama model it's about 320 KB per token, so a 32,000-token conversation adds about 10 GB. Long documents and many users at once need much more headroom.

Mixture-of-experts models

Some models, such as OpenAI's gpt-oss and several Qwen models, only use part of themselves for each word. That makes them fast, but memory still follows the total size. OpenAI says gpt-oss-120b runs on a single 80 GB GPU and gpt-oss-20b within 16 GB (OpenAI).

Image and video models

ModelWorks onComfortable on
Stable Diffusion 1.54 to 6 GB8 GB
SDXL8 GB12 GB
Flux.1 (8-bit FP8 versions)12 GB16 GB
Flux.1 (full precision)16 GB with tricks24 GB
Video models (e.g. Wan, HunyuanVideo)12 to 16 GB for small or 4-bit versions, slowly24 GB or more

Higher resolutions, bigger batches, upscalers and extra models (LoRAs, ControlNets) all add memory. If you're unsure, go one size up: an hour on a bigger card often costs less than an afternoon fighting out-of-memory errors. Running these in ComfyUI? See ComfyUI on a rented GPU.

Fine-tuning

Training needs far more memory than running a model, because it also stores how each parameter should change.

Which card has how much memory

GPU memoryExample cardsGood for
8 to 12 GBRTX 3060 12 GB, RTX 3070, RTX 3080SDXL, 8B chat models at 4-bit
16 to 20 GBRTX 4060 Ti 16 GB, RTX 4080, RTX 5080Flux at 8-bit, 14B chat, QLoRA on 8B
24 GBRTX 3090, RTX 4090, NVIDIA A10, L432B chat at 4-bit, Flux at full precision, LoRA on 8B
32 GB and upRTX 5090 (32 GB), A100 (40 or 80 GB), H100 (80 GB)70B at 4-bit (48 GB+), video, bigger fine-tunes

When memory isn't the problem

Once the model fits, speed comes from the card's memory bandwidth (for chat) and raw compute (for images and training). A model split across two cards runs at the pace of the slower one, and the link between the cards matters. For most single-card jobs, fitting comfortably matters more than having the newest card.

How KernelMachine uses this

On KernelMachine you pick what you want to do and we suggest how much card memory: 16–20 GB for Notebook and Chat, 24 GB for Image maker and Fine-tuning. Pick more if your model needs it (the biggest cards have 32 GB or more), then take the cheapest card with that much, or one by name. Cards under 16 GB aren't rented: they're too tight for most of what people run today. Which models need which size.

Read next

Questions, answered plainly.

How much VRAM do I need to run an 8B model?

About 5 to 6 GB at 4-bit, which fits an 8 GB card. At full 16-bit precision it needs about 16 GB plus room for the conversation, so a 24 GB card is comfortable.

How much VRAM does a 70B model need?

About 40 to 45 GB at 4-bit, so a 48 GB card or two 24 GB cards. At 16-bit it needs about 140 GB for the weights alone, which means two 80 GB cards.

How much VRAM do I need for Stable Diffusion or Flux?

Stable Diffusion 1.5 runs on 4 to 6 GB. SDXL is comfortable on 12 GB. Flux.1 [dev] at full precision wants a 24 GB card; 8-bit (FP8) versions run on 12 to 16 GB.

How much VRAM do I need to fine-tune a model?

With QLoRA, a 7B or 8B model fits in about 10 to 16 GB, and a 70B model in about 48 GB. A full fine-tune needs roughly 16 bytes per parameter before activations, so even a 7B model needs more than one 80 GB card.

What happens if a model doesn't fit in GPU memory?

It either stops with a "CUDA out of memory" error or, in tools like Ollama, puts part of the model in normal system memory and runs many times slower.

Preparing an invite-only beta

Get an email when access opens.

No launch date is set. We'll email you once when KernelMachine opens. Nothing else.

I want to
We use your email only for this. Privacy