The most common question from people starting with local AI is simple: “Will this model run on my PC?” The answer depends almost entirely on memory, both system RAM and the graphics card’s VRAM. This guide gives you a formula you can use on the back of an envelope, a ready-made sizing table, and honest advice on where to spend money if you want to upgrade.
RAM vs VRAM: the two kinds of memory that matter
RAM (system memory) is the general-purpose memory your processor uses. Most PCs today have 8, 16 or 32 GB. VRAM (video memory) is separate memory soldered onto a dedicated graphics card. It is usually smaller, often 4 to 16 GB on consumer cards, but it is connected to the GPU with a much faster link.
That speed difference is the key to local AI performance. To generate each word, the model must read through most of its weights. The faster your memory can deliver those weights, the faster the replies. A graphics card’s VRAM typically offers many times the bandwidth of normal system RAM, which is why a model that fits entirely in VRAM feels dramatically quicker.
A model does not have to fit in VRAM to work, though. Tools based on llama.cpp, including Ollama and LM Studio, can run a model entirely from RAM on the CPU, or split it so some layers sit on the GPU and the rest in RAM.
The rough formula
You can estimate total memory use with three parts:
Total ≈ (parameters in billions × bits per weight ÷ 8) + context memory + overhead
Part 1: the weights
Multiply the parameter count (in billions) by the bits per weight and divide by 8. The answer is in gigabytes. For an 8B model at a typical 4-bit quant, which in practice averages a little under 5 bits per weight, that is about 8 × 4.8 ÷ 8 ≈ 4.8 GB. The downloaded file size gives you nearly the same number, so you can also just read it off the download page.
Part 2: context memory (the KV cache)
As you chat, the model stores information about every token (word piece) in the conversation so it does not have to recompute it. This store is called the KV cache, and it grows with the context length you allow. Its size depends heavily on the model’s design. For many modern 7B–8B models, a context of around 8,000 tokens needs very roughly 0.5–1 GB, while pushing the context to very long lengths can add several gigabytes. Some tools can compress the KV cache to reduce this.
Part 3: overhead
The runtime itself, temporary working buffers and the graphics driver all need some space. Budget roughly 0.5–1.5 GB. On Windows you must also leave room for the operating system and your other open apps, which commonly use several gigabytes of RAM on their own.
Worked example
You want to run an 8B model at Q4_K_M with an 8,000-token context on a GPU with 8 GB of VRAM:
- Weights: about 4.8 GB
- Context: about 1 GB
- Overhead: about 1 GB
- Total: about 6.8 GB, which fits in 8 GB with a small margin
Try the same model at Q8 and the weights alone are around 8.5 GB, which will not fit, so part of it would spill into system RAM and slow down.
Sizing table by model size and quantization
The figures below are approximate weight sizes based on the formula, using about 4.8 bits per weight for Q4_K_M, 5.7 for Q5_K_M and 8.5 for Q8_0. The last column adds a modest allowance for context and overhead to suggest a comfortable total. Real files vary by model architecture.
| Model size | Q4_K_M weights | Q5_K_M weights | Q8_0 weights | Comfortable total at Q4 (with ~4–8K context) |
|---|---|---|---|---|
| 1B | ~0.6–0.8 GB | ~0.7–0.9 GB | ~1.1–1.3 GB | ~2 GB |
| 3B–4B | ~1.8–2.4 GB | ~2.1–2.9 GB | ~3.2–4.3 GB | ~3–4 GB |
| 7B–8B | ~4.2–4.9 GB | ~5–5.7 GB | ~7.5–8.5 GB | ~6–7 GB |
| 12B–14B | ~7.2–8.5 GB | ~8.5–10 GB | ~12.8–15 GB | ~10–11 GB |
| 30B–32B | ~18–19.5 GB | ~21–23 GB | ~32–34 GB | ~22–24 GB |
| 70B | ~42 GB | ~50 GB | ~74 GB | ~46–48 GB |
Use the “comfortable total” as the amount of free VRAM for full GPU speed, or free RAM for CPU-only use. If you only just meet it, shorten the context or step down one quant level.
CPU-only vs GPU: what changes
| CPU-only (system RAM) | Partial GPU offload | Fully on GPU (VRAM) | |
|---|---|---|---|
| Where the weights live | All in RAM | Split between VRAM and RAM | All in VRAM |
| Typical speed | Slowest; fine for small models | In between; limited by the RAM part | Fastest |
| Size limit | Your free RAM | VRAM + free RAM | Your free VRAM |
| Good for | 1B–8B models, laptops, testing | Running a model slightly too big for your card | Daily use, longer chats, larger models |
With partial offload, speed is dragged down by the slowest part. Putting 90% of a model on the GPU usually gives far better results than 50%, so it is worth choosing a quant that gets you close to a full fit.
A note on “shared GPU memory”
Task Manager on Windows shows “Shared GPU memory” alongside dedicated memory. Shared memory is simply system RAM that the graphics card can borrow. It does not give you VRAM-like speed. Integrated graphics, which are built into many laptop processors, rely entirely on shared memory, so treat those machines as CPU-class for planning, even though some tools can still use the integrated GPU to help.
What happens when you run out
If a model needs more RAM than you have free, Windows starts moving data to the page file on your disk. Disk is vastly slower than RAM, so generation can slow to a crawl or the app may crash. If your disk light stays busy and replies stall, the model is too big.
Checklist: will this model run on my PC?
- Open Task Manager (Ctrl + Shift + Esc), go to Performance, and note total RAM and “Dedicated GPU memory”.
- Look at the model file size for your chosen quant.
- Add about 1–2 GB for context and overhead, more for long documents.
- If that total fits in your dedicated VRAM, expect fast responses.
- If not, check that it fits in free RAM (total RAM minus what Windows and your apps already use).
- If it fits in neither, choose a smaller model or a lower quant.
Upgrade advice for budget PCs
If you want to run bigger or faster models, here is where money tends to make the biggest difference, in rough order of value. Prices change constantly, so compare current offers yourself.
1. Add system RAM first
RAM is usually the cheapest upgrade and immediately raises the size of model you can load. Going from 8 GB to 16 GB moves you from 3B-class models to comfortable 7B–8B models, and 32 GB opens the door to 12B–14B models on CPU. Install memory in matched pairs so it runs in dual-channel mode, which roughly doubles bandwidth compared with a single stick. Check your motherboard or laptop manual first, because many thin laptops have RAM soldered to the board and cannot be upgraded.
2. Prioritise VRAM when buying a graphics card
For local AI, the amount of VRAM matters more than the card’s gaming speed. A mid-range card with more memory is often a better AI choice than a faster card with less. Cards with 12 GB or more open up the 12B–14B class at full GPU speed, and 16 GB gives extra room for longer contexts. A used card from an older generation can be good value if it has generous VRAM, but buy from a reputable seller.
3. Check software support for your GPU brand
NVIDIA cards have the broadest and most mature support across local AI tools. AMD and Intel GPUs are increasingly supported through technologies such as Vulkan and vendor-specific libraries, but support varies by tool and card. Check the current documentation of the tool you plan to use before buying.
4. Make sure the rest of the system can cope
A new graphics card needs a power supply with enough wattage and the right connectors, plus physical space in the case. Fast storage, such as an NVMe SSD, makes models load much faster, though it does not change generation speed once a model is loaded.
5. Consider whether you need to upgrade at all
If your goal is light everyday use, a well-chosen 3B–4B model on your current PC may be enough. For occasional heavy tasks, a cloud service may be cheaper than new hardware. Upgrade when local AI has become something you use often.
Common sizing mistakes
- Counting only the file size. The context and overhead are real and can add gigabytes.
- Setting a huge context “just in case”. Larger context settings reserve memory even if you never use them.
- Treating shared GPU memory as VRAM. It is system RAM and runs at system RAM speed.
- Buying a fast GPU with too little VRAM. For AI, capacity usually beats raw gaming performance.
- Forgetting Windows needs memory too. A 16 GB PC does not have 16 GB free for a model.
Related reading on Kairo Report
- How to Run AI Models Locally on Windows with Ollama and LM Studio
- Gemma 3 270M vs Qwen 2.5 0.5B: Best for Low-End PCs?
- I Built a Free Local AI Chatbot on a Low-End PC Using Gemma 3 — Here’s How It Actually Went
Key takeaways
- Total memory ≈ parameters × bits ÷ 8, plus context and overhead.
- A 7B–8B model at 4-bit needs roughly 6–7 GB in total for comfortable use.
- VRAM gives the best speed; RAM gives the most capacity per dollar.
- Upgrade RAM first for capacity, and choose GPUs by VRAM amount for AI work.
- If your disk is thrashing, the model is too big for your memory.
FAQ
Can I run a 7B model with 8 GB of RAM?
It is possible at 4-bit with a short context, but tight, because Windows also needs memory. Expect slow responses and close other apps. A 3B–4B model is a more comfortable fit for 8 GB.
Can I combine the VRAM of two graphics cards?
Several tools, including llama.cpp-based ones, can split a model across multiple GPUs so their VRAM adds up. It requires a suitable motherboard and power supply, and setup is more involved than a single card.
Does a faster CPU help?
Somewhat, especially for processing long prompts. For generating replies on CPU, memory bandwidth usually matters more than core count, which is why dual-channel RAM helps.
Does context length really use that much memory?
It depends on the model. Some designs keep the KV cache small, others make it large. If you raise the context setting and the model suddenly gets slow or fails to load, the KV cache is the likely cause.

