Home / Free AI tools / LLM VRAM calculator
Pick a model and your graphics card or Mac to see whether it fits, which quantisation to download, and roughly how fast it will run. Everything is calculated in your browser.
Model not listed? Choose "Custom model" and copy num_hidden_layers, num_key_value_heads and head_dim from its config.json on Hugging Face.
A model on your computer needs memory for three things:
Speed when writing is limited mostly by how fast the device can read the weights from memory: roughly memory bandwidth ÷ model size. That is why an RTX 3090 (936 GB/s) writes much faster than a laptop CPU (about 60 GB/s) even when both can hold the model. To learn why the KV cache exists, see how transformers work.
| Size | Examples | Q4_K_M | Q8_0 | FP16 |
|---|---|---|---|---|
| 1B–4B | Llama 3.2 1B/3B, Qwen3 4B | 2–4.5 GB | 2.5–6.5 GB | 4–10 GB |
| 7B–9B | Llama 3.1 8B, Qwen3 8B, Mistral 7B | 6–9 GB | 9–13 GB | 16–22 GB |
| 12B–14B | Gemma 3 12B, Qwen3 14B | 10–12 GB | 15–19 GB | 26–33 GB |
| 27B–32B | Gemma 3 27B, Qwen3 32B | 21–23 GB | 34–38 GB | 60–69 GB |
| 70B–72B | Llama 3.3 70B, Qwen2.5 72B | 46–48 GB | 79–81 GB | 145+ GB |
With an 8K context. Ranges are wider for models with large KV caches, such as Gemma. Add more for longer contexts.
ollama run qwen3:8b. It downloads a Q4 version and opens a chat. It also gives your own code a local API.llama-server -m model.gguf, with full control over context, offloading and KV-cache settings.Then learn to call the model from your own Python code in Run LLMs on your own computer, part of the free Generative AI course.
Roughly the number of parameters in billions, times the bits per weight, divided by 8, plus 1 to 3 GB for the context and runtime. At the popular Q4_K_M setting, an 8B model needs about 6–7 GB, a 14B model about 11 GB, a 32B model about 23 GB and a 70B model about 46 GB (with an 8K context).
Yes. Tools like Ollama, LM Studio and llama.cpp run models on the CPU using system RAM. It works well for 1B–8B models, but writing is slower, often 3 to 15 tokens per second, because RAM is much slower than graphics memory.
It is a quantisation level in the GGUF file format. The weights are stored with about 4 to 5 bits each instead of 16, which makes the model about a third of its full size. Q4_K_M is the usual sweet spot: much smaller, with only a small drop in quality. Q8_0 is almost identical to the full model; Q3 and Q2 save more memory but lose noticeably more quality.
The model keeps a key and a value vector for every token it has seen, in every layer: the KV cache. It grows in a straight line with the context length, so going from 8K to 32K tokens makes it four times bigger. Quantising the KV cache to 8 bits halves it.
Apple Silicon Macs share one pool of memory between the CPU and GPU, so a 64 GB or 128 GB Mac can hold models that would need several graphics cards. By default macOS lets the GPU use about two thirds to three quarters of that memory. A Mac usually writes more slowly than an NVIDIA card with the same memory.
It is an estimate, usually within about 10–15%. Real use depends on the exact file, the tool, its settings (such as batch size and flash attention) and other apps using memory. Leave some headroom.