Free tool
AI Model Memory Calculator: How Much VRAM Do You Need?
Enter a model size, the quantization and the context length. See how much memory the model needs, what takes the space, and whether it fits your graphics card or RAM.
Runs in your browser. Nothing is uploaded. No sign-up, no download.
For mixture-of-experts models (names like 30B-A3B), enter the total size: all of it must fit in memory.
The usual choice. Small, and close to full quality.
4K to 8K is plenty for chat. Long documents need more, and more memory.
Memory needed
about 6.2 GB
8B at Q4_K_M, 4K context. Download size about 4.8 GB.
- Model weights: 4.8 GB
- Conversation memory (KV cache): 0.5 GB
- App overhead: 0.8 GB
6.2 GB needed of 7.4 GB usable
6.2 GB needed of 12.8 GB usable
Fits fully on your graphics card. This is the fast way to run it.
The same 8B model at every size
Q4_K_M is the usual pick: about a quarter of the full size with only a small loss in quality.
Happy with the result?
Your scores are in the link. It contains no personal data.
How to use it
- Type the model size in billions of parameters, or tap a preset. It is the number before the B in the model name, like 8 in an 8B model.
- Pick the quantization. Q4_K_M is what most apps download by default. Higher numbers are bigger and slightly better.
- Pick the context length: how much of the conversation the model keeps in mind. 4K to 8K is plenty for chat.
- Enter your VRAM and RAM to see if it fits. The list at the bottom shows the same model at every quantization, so you can find the biggest one that fits.
About this tool
A local AI model needs memory for three things. The weights are the model itself, the file you download. The KV cache is its short-term memory of the conversation, and it grows with the context length. The app overhead is what the app needs to run the model. This calculator adds the three.
Quantization in plain words
A full model stores every number with 16 bits. Quantization stores them with fewer bits, so the file shrinks. Q8 keeps 8 bits and is nearly identical to the full model. Q4_K_M uses about 4.85 bits on average and keeps most of the quality, which is why it is the default almost everywhere. Below Q4, the model gets noticeably worse, so a bigger model at Q3 is not always smarter than a smaller one at Q4.
How the numbers are worked out
Weights are the parameter count times the average bits per weight of each GGUF quantization type, divided by eight. The KV cache uses a rough fit to common modern models, which share their attention memory between heads; older or unusual models can need several times more for long contexts. The app overhead is a flat 0.8 GB. For your PC we keep 0.6 GB of VRAM free for the screen, and the larger of 3 GB or a fifth of your RAM for Windows and your other apps.
Mixture-of-experts models
Some models only use part of their weights for each word (names like 30B-A3B). They write faster than their size suggests, but all of the weights still need to fit in memory, so enter the total size.
Rough on purpose
Every app and model is a little different, so leave some room. If it shows tight, it probably works with other apps closed. Not sure what your PC has? The local AI checker shows every model size at once for your hardware.