- Home
- AI PC & Hardware
- How much VRAM do you need to run AI models locally?
How much VRAM do you need to run AI models locally?
Before you download a single model, you need one number: how much video memory your graphics card has. VRAM is the first gate for running AI locally, and it is the reason a model that works beautifully on one friend’s machine refuses to load on yours. This guide shows you how to estimate, in about a minute, which models fit your card, and what to buy if you are still shopping.
If you are brand new to the idea, start with our beginner’s guide to running AI locally on your PC. Here we go deeper on the one question that decides everything else.
Why VRAM, and not “just RAM”
A language model is, physically, a huge pile of numbers called weights. To produce each word, the hardware has to read essentially all of them. A graphics card can do that very quickly because its memory is fast and sits right next to thousands of small calculation units. System RAM is slower, and the processor has far fewer cores for this kind of work.
That is why the whole game is “does the model fit in VRAM?”. If it does, you get fluid answers. If it does not, the tool pushes part of the model into system RAM and the speed falls off a cliff. We covered the system-memory side in our guide on how much RAM you need; think of RAM as the safety net and VRAM as the engine.
The rule of thumb that gets you 90% of the way
The size of a model on disk, and in memory, is roughly its parameter count multiplied by the number of bytes used for each parameter. At full 16-bit precision that is two bytes per parameter, so a 7-billion-parameter model is about 14 GB. Almost nobody runs it that way at home, because of quantization: the weights are stored with fewer bits, typically 4 or 5, which cuts the size to around a quarter with a modest, usually tolerable loss in quality.
So the quick estimate for a 4-bit model is about 0.6 GB per billion parameters, then add one to two gigabytes for the working memory the runtime needs. This is an approximation, not a measurement: different quantization formats, different model architectures and different tools shift the numbers a little, so always leave a margin.
| Model size | Approx. at 4-bit | Approx. at 16-bit | Card that fits it comfortably |
|---|---|---|---|
| 3B (small assistants) | 2-3 GB | ~6 GB | 6-8 GB |
| 7-8B (general chat, coding help) | 4.5-6 GB | ~15-16 GB | 8 GB |
| 13-14B | 8-10 GB | ~28 GB | 12 GB |
| 20B-class | 12-14 GB | ~40 GB | 16 GB |
| 30-34B | 18-22 GB | ~65 GB | 24 GB |
| 70B | 40-45 GB | ~140 GB | Two cards or unified memory |
Read the table as an order of magnitude. If you are sitting right at the edge, say a 14B model on a 12 GB card with a long context, expect to flirt with out-of-memory errors and budget for a smaller quantization.
Context length: the hidden second bill
Here is the part that catches beginners. The model weights are a fixed cost, but the conversation itself also lives in VRAM. The runtime keeps a cache of everything it has processed so far, so each extra token in your prompt and in the reply takes a little more memory. For short chats it is negligible. For a long PDF, a big codebase or an hours-long conversation, it can add several gigabytes.
In practice, this is why “it loads fine but crashes when I paste the whole document” is such a common complaint. If you plan to work with long texts, subtract a few gigabytes from what you think you have, or pick the next model size down. Most tools let you cap the context length, which is a handy lever when you are tight on memory.
What each amount of VRAM really buys you
8 GB is where many people start, and we think it is fine for exploring. You can run the popular 7-8B models at 4-bit with room for a reasonable context, which is enough for everyday questions, drafting, summarising and basic coding help. You will not be running the bigger models, and you will notice the limit as soon as you try to feed in long documents.
12 GB is the first level where we stop apologising. A 13-14B model fits, and the jump in how well it follows instructions and keeps track of a conversation is real compared with the 7B class. It is also forgiving when you want a longer context.
16 GB is the one we would point most enthusiasts toward. It runs 13-14B models with ease and leaves room for the 20B class at reasonable quantization. It also handles image generation workloads without constant juggling, which matters if you want to dabble in both.
24 GB is where 30B-class models become practical, and where you can run the mid-size ones at higher quality settings with long contexts. It is also where prices stop being casual, and where a used card can be a smart buy if you are comfortable with the risks of the second-hand market.
Beyond that, you are in enthusiast territory: multi-card setups, workstation cards, or machines built around a large pool of unified memory. We would only go there with a specific model in mind that you cannot get by with anything smaller.
These bars are our editorial opinion on value for a typical hobbyist, not benchmark results. A researcher who needs a 30B model every day would flip the last two bars, which is the whole point of knowing your use case first.
Tricks that stretch the VRAM you already have
You can often run a bigger model than the table suggests without buying anything. The cheapest lever is the quantization level: dropping from a 5-bit to a 4-bit file shaves a noticeable chunk off the size, and for casual use the quality difference is hard to spot. Going below 4 bits saves more but starts to cost you in coherence, so we treat that as a last resort.
The second lever is partial offloading. Most local tools let you decide how many layers live on the GPU and how many on the processor. You lose speed in proportion to what you push out, so a model that is only slightly too big can still be perfectly usable, while one that is mostly in system RAM will feel sluggish. The third is simply closing other things that eat VRAM: browsers with hardware acceleration, games, video editors. On a small card, an open browser can steal a surprising amount.
Buying advice, if you are shopping
If AI is the main reason you are upgrading, prioritise VRAM capacity over raw gaming speed. A card with more memory and slightly lower performance will run models a faster but smaller card cannot load at all, and that “cannot load at all” is the part that hurts. We have gone through the options in our review of NVIDIA RTX GPUs for AI, and our desktop picks for local AI cover complete machines.
You can browse current options on Amazon, and if your budget is tighter, 12 GB cards are a decent middle ground. Prices swing a lot, and the used market is tempting, so check warranty and condition carefully. We are not quoting numbers because they would be stale within weeks.
One more consideration: power and size. High-memory cards are often large and power-hungry, so check your case clearance and power supply before you order. It is a boring detail that has ruined more than one upgrade weekend.
The short version
- Estimate a 4-bit model at roughly 0.6 GB per billion parameters, plus 1-2 GB of working memory.
- Long contexts add memory on top of the model, so keep a few gigabytes spare.
- 8 GB starts the journey, 12 GB is comfortable, 16 GB is the sweet spot, 24 GB opens 30B-class models.
- If the model does not fit, offloading to RAM works but slows you down a lot.
- When buying for AI, memory capacity matters more than raw frame rates.
Bottom line
We would not let the numbers intimidate you. Pick the model you actually want to use, do the quick multiplication, add a margin for context, and you will know in a minute whether your card is enough. If it is not, a smaller quantization or a smaller model is usually a better first move than a new graphics card. And if you do decide to upgrade, buy for the memory first, because that is the number that decides what you can run.
Want to put that VRAM to work on pictures? Here is how to generate AI images locally with ComfyUI.
Not sure what Q4 or Q8 means in those file names? Our guide to AI model quantization explains which level to pick.
Once your model is loaded, you can check it actually fits and runs on the card with our guide to monitoring GPU temperature and VRAM while running local AI.