# How much VRAM do you need to run an AI model? About 0.57 GB per billion parameters, plus context

The rule by model size, the card sizes it maps to, and the real Ollama download sizes we checked it against on Nov 3, 2026. Why context costs some models far more than others, why MoE models still need room for every parameter, and what to do when your card is too small.

Updated Nov 22, 2026 · By Ari Vale

This page has referral links: we earn a commission if you buy, at no cost to you.

Our Vast referral code: 623346 (link: https://cloud.vast.ai/?ref_id=623346). New users get no bonus from it; we earn 3% of what referred users spend (Vast's referral program docs: https://docs.vast.ai/guides/reference/referral-program?ref_id=623346).

**How much VRAM do you need to run an AI model?** At Q4_K_M, the quant most people run, about **0.57 GB per billion parameters** for the weights, plus memory for the context (the KV cache) and about 0.8 GB of runtime overhead. So a 9B model needs about 6.5 GB at 8K context, a 27B about 17 GB, and a 70B about 40 GB for the weights alone. In card sizes: **8GB** runs 9B-class models, **12GB** runs 12B to 14B, **16GB** runs 20B models or a 27B at 3-bit, and **24GB** runs a 27B at Q4_K_M with 32K of context. We checked the rule against Ollama's real download sizes on November 3, 2026; for the newest hybrid Qwen models the real files are up to about 1 GB bigger, so keep that headroom. Check your exact model and card in the [VRAM calculator](https://aliteq.com/tools/vram-calculator).

## The short answer (checked Nov 3, 2026)

VRAM needed = weights + KV cache + about 0.8 GB overhead. Weights at Q4_K_M take about 0.57 GB per billion parameters (about 1 GB at Q8_0), so a 9B model is about 5.5 GB, a 27B about 15.7 GB and a 70B about 40 GB. Context adds anywhere from 0.5 GB to 8 GB at 32K tokens depending on the model. Mixture-of-experts models need VRAM for every parameter, not only the active ones. On those numbers: 8GB runs 9B-class models, 12GB runs 12B to 14B, 16GB runs 20B or a 3-bit 27B, 24GB runs a 27B at Q4_K_M with 32K context, and a 70B needs 48GB.

- **Rule:** about 0.57 GB per billion parameters at Q4_K_M, 1 GB at Q8_0
- **Plus context:** from about 0.5 GB to 8 GB at 32K tokens, by model
- **Plus overhead:** about 0.8 GB for the runtime
- **MoE:** total parameters set VRAM; active parameters set speed
- **Real files:** Ollama's Q4_K_M downloads matched our estimate within about 1 GB (Nov 3, 2026)

## How much VRAM per billion parameters?

It depends on the quant. A model's size is its parameter count (the "B" in Qwen3.8 27B), and each quant stores those parameters at a different number of bits. A GGUF quant is a bit bigger than its name suggests, because the format stores scales alongside the weights and keeps some tensors at higher precision: in our engine Q4_K_M works out to 4.85 bits per weight and Q8_0 to 8.5, calibrated against published GGUF file sizes. That gives these working figures for the weights alone:

|   | VRAM per billion parameters | A 27B model | Quality |
| --- | --- | --- | --- |
| Q8_0 | ~1.0 GB | ~27.5 GB | Effectively lossless |
| Q6_K | ~0.76 GB | ~21.2 GB | Very close to Q8 |
| Q5_K_M | ~0.66 GB | ~18.4 GB | Small, hard-to-notice loss |
| Q4_K_M | ~0.57 GB | ~15.7 GB | The community default |
| Q3_K_M | ~0.46 GB | ~12.6 GB | Noticeable loss; fits a bigger model |
| IQ3_XS | ~0.38 GB | ~10.7 GB | Aggressive; test before trusting it |

Our figures are in the binary gigabytes VRAM is measured in (a "24GB" card has 24,576 MiB). The [quantization guide](https://aliteq.com/what-is-quantization-llm-explained) covers how to choose between quants.

## What size model can each GPU run?

Here is the rule turned into card sizes, at Q4_K_M with 8K of context unless the row says otherwise. We leave about 10% of the card free, because a model that needs 98% of VRAM loads and then fails the moment a browser or the desktop wants some.

|   | Runs comfortably | Example on our numbers |
| --- | --- | --- |
| 8GB | 7B to 9B models | Qwen3.5 9B: ~6.5 GB at 8K |
| 12GB | 12B to 14B models | Qwen3-14B: ~10.4 GB at 8K |
| 16GB | 20B models, or a 27B at 3-bit | gpt-oss-20b: ~13.0 GB at 8K; Qwen3.8 27B at IQ3_XS: ~12.0 GB |
| 24GB | 27B to 32B models | Qwen3.8 27B: ~18.5 GB at 32K; Qwen3-32B: ~21.3 GB at 8K |
| 48GB | 70B models | 70B weights alone: ~40 GB |

For what each tier runs best, see the guides for [8GB](https://aliteq.com/best-local-ai-model-for-8gb-gpu), [12GB](https://aliteq.com/best-local-llm-12gb-vram), [16GB](https://aliteq.com/best-local-llm-16gb-vram) and [24GB](https://aliteq.com/best-local-llm-24gb-gpu-qwen-gemma-gptoss), or [the whole VRAM ladder](https://aliteq.com/best-local-llm-vram-tiers-what-actually-fits). Shopping for the card itself? [The cheapest GPU for local AI](https://aliteq.com/cheapest-gpu-for-local-ai) ranks cards by VRAM per dollar, and if you own an Intel card, [what fits on Intel Arc](https://aliteq.com/intel-arc-gpu-local-llm-what-fits) applies these numbers to [Intel Arc cards](https://aliteq.com/how-to-run-local-ai-intel-arc). Memory-modded cards such as [the 20GB RTX 3080 sold in China](https://aliteq.com/modded-rtx-3080-20gb-vram-worth-it-local-ai) add VRAM cheaply, but without a factory warranty. Or pick your exact card in [what AI can my PC run](https://aliteq.com/what-ai-can-my-pc-run) and see every model that fits it at once.

## How much VRAM do popular models need?

These are current models at Q4_K_M from our VRAM engine (weights, KV cache at fp16, and about 0.8 GB of overhead), next to the size of the Q4_K_M download [Ollama](https://aliteq.com/ollama) lists for the same model, read on November 3, 2026.

|   | Our weights estimate | Ollama Q4_K_M download (Nov 3, 2026) | Total at 8K context | Total at 32K context |
| --- | --- | --- | --- | --- |
| Qwen3 8B | ~4.6 GB | 5.2GB | ~6.5 GB | ~9.9 GB |
| Qwen3.5 9B | ~5.5 GB | 6.6GB | ~6.5 GB | ~7.2 GB |
| Qwen3-14B | ~8.3 GB | 9.3GB | ~10.4 GB | ~14.1 GB |
| gpt-oss-20b (MoE) | ~11.8 GB | 14GB (MXFP4) | ~13.0 GB | ~14.1 GB |
| Qwen3.8 27B | ~15.7 GB | 18GB | ~17.0 GB | ~18.5 GB |
| Qwen3-32B | ~18.5 GB | 20GB | ~21.3 GB | ~27.3 GB |
| Qwen3.5 35B-A3B (MoE) | ~20.3 GB | 22GB | ~21.2 GB | ~21.7 GB |
| Llama 3.3 70B | ~39.8 GB | 43GB | ~43 GB | ~51 GB |

![Screenshot of Ollama's qwen3.8 tags page with the qwen3.8:27b-q4_K_M row outlined: 18GB, 256K context, Text and Image input](https://media.aliteq.com/media/local-ai/ollama-qwen3-8-27b-q4km-2026-11-03.jpg)
Ollama's tags page for Qwen3.8: the 27B at Q4_K_M is an 18GB download. Read November 3, 2026. · Screenshot of ollama.com by aliteq

### Why is the real download bigger than the estimate?

Mostly units, and for some models a few extra tensors. Ollama lists sizes in decimal gigabytes, which read about 7% higher than the binary gigabytes VRAM is counted in: Llama 3.3 70B's 43GB is about 40 GB of VRAM, which matches our estimate. For Qwen3 32B and Qwen3.5 35B-A3B the two also match. For the newer hybrid Qwen models (Qwen3.5 9B, Qwen3.8 27B) the real files are still about 0.6 to 1.1 GB bigger than our weights figure, and gpt-oss-20b ships in OpenAI's own MXFP4 format rather than Q4_K_M. So on those, add about 1 GB of headroom to our totals.

![Screenshot of Ollama's llama3.3 tags page with the llama3.3:70b-instruct-q4_K_M row outlined: 43GB, 128K context, Text](https://media.aliteq.com/media/local-ai/ollama-llama3-3-70b-q4km-2026-11-03.jpg)
Ollama's tags page for Llama 3.3: the 70B at Q4_K_M is a 43GB download, about 40 GB in VRAM units. That's why a 70B needs a 48GB card or two 24GB cards. Read November 3, 2026. · Screenshot of ollama.com by aliteq

For running cost per model, see [cost to run](https://aliteq.com/cost-to-run), for example [Qwen3.8 27B](https://aliteq.com/cost-to-run/qwen3.8-27b).

## How much VRAM does context length add?

Anywhere from about half a gigabyte to 8 GB at 32K tokens, depending on the model's design. The KV cache is the model's running memory of the conversation, and it grows with every token. Older models keep a cache on every layer; newer hybrid models keep a growing cache on only some layers. Qwen's model card for Qwen3.8 27B, for example, lists 64 layers in a "16 × (3 × (Gated DeltaNet → FFN) → 1 × (Gated Attention → FFN))" layout, so only 16 of them hold a growing cache.

|   | KV cache per 1,000 tokens (fp16) | At 32K tokens |
| --- | --- | --- |
| Qwen3-32B | ~250 MB | ~8 GB |
| Qwen3-14B | ~156 MB | ~5 GB |
| Qwen3 8B | ~141 MB | ~4.5 GB |
| Qwen3.8 27B | ~62 MB | ~2 GB, plus ~0.3 to 0.5 GB fixed state |
| gpt-oss-20b | ~47 MB | ~1.5 GB |
| Qwen3.5 9B | ~31 MB | ~1 GB, plus ~0.1 to 0.2 GB fixed state |
| Gemma 4 12B | ~16 MB | ~0.5 GB, plus ~0.3 GB fixed window cache |

That is why Qwen3.8 27B uses less memory at 32K than the older Qwen3-32B, and why Qwen3.5 9B stays near 7 GB at 32K (tight on an 8GB card once you add the ~1 GB download headroom, but possible) while Qwen3 8B needs about 10 GB. An 8-bit KV cache halves these figures, at a small quality cost.

## Do mixture-of-experts models need less VRAM?

No. Total parameters set VRAM; active parameters set speed. OpenAI's model card describes gpt-oss-20b as "21B parameters with 3.6B active parameters", and it still needs room for all 21B: that is the 14GB download above. Qwen3.8 Flash Next is a bigger case. Its model card lists "125B with 6B activated, plus 51B n-gram embedding and 4B MTP", about 180B of weights in all, so at Q4_K_M it needs roughly 100 GB if everything stays in memory.

![Screenshot of the Qwen3.8-Flash-Next model card on Hugging Face with the line outlined: Number of Parameters: 125B with 6B activated, plus 51B n-gram embedding and 4B MTP](https://media.aliteq.com/media/local-ai/hf-qwen3-8-flash-next-params-2026-11-03.jpg)
Qwen's own model card for Qwen3.8 Flash Next: 6B active, but 125B plus 51B of n-gram embedding to store. Read November 3, 2026. · Screenshot of huggingface.co by aliteq

What the small active count buys is speed, and the option to keep inactive experts in system RAM. Engines like llama.cpp (with its MoE offload, explained in [what --n-cpu-moe actually does](https://aliteq.com/n-cpu-moe-llama-cpp-what-it-actually-does)) keep the busy parts on the GPU and the rest in RAM, so an 8GB or 12GB card can run a model several times its size. The costs are real: those setups usually run 2-bit to 4-bit quants, and anything read from RAM slows each token down. The most common complaint we see is a model that loads fine and then runs far slower than expected, because part of it spilled out of VRAM. If you go this route, size your RAM too: see [how much RAM you need for local AI](https://aliteq.com/how-much-ram-do-you-need-for-local-ai), and for the trade-off itself, [MoE vs dense models explained](https://aliteq.com/moe-vs-dense-ai-models-explained).

## What if the model doesn't fit my card?

Five options, cheapest first:

1. **Drop one quant.** Going from Q4_K_M to IQ4_XS saves about 12% on the weights; Q3_K_M saves about 19%.
2. **Shorten the context, or use an 8-bit KV cache.** On older models this can free several GB.
3. **Pick a hybrid-attention model.** Qwen3.5, Qwen3.8 and Gemma 4 need far less memory per token of context.
4. **Offload to RAM.** Works best for MoE models; costs speed.
5. **Rent a bigger card for the job.** On November 17, 2026 our price feed showed a 24GB [RTX 3090](https://aliteq.com/gpus/rtx-3090) on Vast.ai from $0.12 an hour on-demand and a 48GB [RTX A6000](https://aliteq.com/gpus/rtx-a6000) there from $0.32 an hour on-demand (checked Nov 17, 2026). Prices move hourly; [cloud GPU prices](https://aliteq.com/cloud-gpu) shows today's, and [rent vs buy a GPU for AI](https://aliteq.com/rent-vs-buy-gpu-ai-cloud-vs-local) shows when owning a card pays off.

**Test a 24GB card before you buy one** Load the exact model and context you want, see if it fits and feels fast enough, then shut it down. [Rent a 24GB RTX 3090 by the hour](https://cloud.vast.ai/?ref_id=623346) (Referral link: we earn a commission if you buy.) Live RTX 3090 prices on Vast.ai, from and typical: https://aliteq.com/vast-ai-pricing

Renting is also the honest way to check this article's numbers on your own model before you spend on hardware. If you're choosing a card to buy, start with [the best GPU for local AI](https://aliteq.com/best-gpu-for-local-ai).

> **How we got these numbers**
>
> Every VRAM figure comes from our own VRAM engine, the one behind the calculator and cost-to-run pages: weights = parameters × bits per weight for the quant (checked against published GGUF sizes), KV cache = 2 × KV layers × KV heads × head size × context × 2 bytes from each model's official config, plus about 0.8 GB of runtime overhead. On November 3, 2026 we compared the weights figures with the Q4_K_M download sizes on ollama.com. Treat the totals as estimates; real use varies with the app, its settings and what else is on the GPU.

**Want to run a 70B without buying two cards?** A 70B at Q4_K_M needs about 40 GB for the weights. Runpod rents 48GB cards like the RTX A6000 in Secure Cloud datacenters with one-click templates, so you can run it for an evening without buying two cards. [Rent a 48GB RTX A6000 on Runpod](https://console.runpod.io/signup?ref=nuninlts) (Referral link: we earn a commission if you buy.) Live RTX A6000 prices on Runpod, from and typical: https://aliteq.com/runpod-pricing

If you'd rather own the hardware, the two usual routes are [a 70B local AI workstation build](https://aliteq.com/best-local-ai-pc-build-70b-workstation) and, for 32GB on a budget, [two RTX 5060 Ti 16GB cards](https://aliteq.com/dual-rtx-5060-ti-16gb-worth-it-local-ai).

Running out of memory at long context? [Shrinking the KV cache with q8_0](https://aliteq.com/kv-cache-quantization-explained) in llama.cpp or Ollama frees a lot of it.

Image models have their own VRAM floor: SD 1.5 runs on 4GB, SDXL wants 8GB and [Flux](https://aliteq.com/how-to-run-flux-locally) 12GB, as laid out in [our free local Stable Diffusion walkthrough](https://aliteq.com/how-to-run-stable-diffusion-locally-free). Video models need more, and [the VRAM each ComfyUI workflow needs, from Flux to Wan 2.2 video](https://aliteq.com/cloud-gpu-for-comfyui-stable-diffusion) comes with the cheapest rented card for each.

Related guides: [How to quantize a local LLM to GGUF and what you lose at Q4, Q6 or Q8](https://aliteq.com/how-to-quantize-local-llm-gguf), [Which MoE model runs best on a 12GB or 16GB GPU, and how much RAM do you need?](https://aliteq.com/best-moe-models-for-12gb-16gb-gpu), [Ollama has no --n-cpu-moe switch. Here's what it does with MoE experts](https://aliteq.com/ollama-moe-offload-cpu). Related topics: [How much do AI GPUs cost in November 2026? Buy vs rent for every card](https://aliteq.com/gpu-prices).

Memory decides whether a model loads; speed has two parts, reading your prompt and writing the answer, explained in [prefill vs decode](https://aliteq.com/prefill-vs-decode-local-llm).

## Quick answers

**Q: How much VRAM do I need to run an AI model?**

A: At Q4_K_M, about 0.57 GB per billion parameters for the weights, plus the KV cache for your context and about 0.8 GB of overhead. On our numbers a 9B model needs about 6.5 GB at 8K context, a 27B about 17 GB, and a 70B about 40 GB for the weights alone. Ollama's Q4_K_M downloads matched within about 1 GB when we checked on Nov 3, 2026.

**Q: How much VRAM do I need for a 7B or 8B model?**

A: About 5 to 6.5 GB at Q4_K_M with 8K context, so a 6GB card is too tight for most of them and an 8GB card is comfortable. At 32K context an older 8B such as Qwen3 8B needs about 10 GB, while the hybrid Qwen3.5 9B stays near 7 GB.

**Q: How much VRAM do I need for a 70B model?**

A: About 40 GB for the weights at Q4_K_M (Ollama lists Llama 3.3 70B's Q4_K_M download at 43GB, read Nov 3, 2026), plus context. That means a 48GB card, two 24GB cards, a Mac with plenty of unified memory, or offloading part of it to RAM at a big speed cost.

**Q: Is 8GB of VRAM enough for AI?**

A: For 7B to 9B models at Q4_K_M, yes. Qwen3.5 9B needs about 6.5 GB at 8K context on our numbers. Bigger models need a 3-bit quant or offloading to system RAM.

**Q: Does context length affect VRAM usage?**

A: Yes, and by very different amounts per model. At 32K tokens, Qwen3-32B's KV cache is about 8 GB on our numbers, while Gemma 4 12B's is about 0.5 GB. Check your exact model and context in the VRAM calculator.

**Q: Do mixture-of-experts models need less VRAM?**

A: No. VRAM is set by total parameters; active parameters set speed. gpt-oss-20b has 3.6B active parameters but still needs room for all 21B. MoE models do offload to system RAM better than dense ones, which is how they run on small cards.

**Q: Can I run AI models without enough VRAM?**

A: Yes, within limits: use a smaller quant, a shorter context, a hybrid-attention model, offload to RAM, or rent a bigger card by the hour. For fast, predictable performance the model has to fit in VRAM.

That's the rule: a bit over half the parameter count in GB at Q4_K_M, plus context, plus headroom. Check any model against your card in the [VRAM calculator](https://aliteq.com/tools/vram-calculator), then pick a model from [the VRAM ladder](https://aliteq.com/best-local-llm-vram-tiers-what-actually-fits) and set it up with our [beginner's guide](https://aliteq.com/how-to-run-a-local-llm-on-your-pc-beginners-guide).

## Sources

- [Aliteq VRAM calculator (our engine, src/lib/vram.ts; model configs from official Hugging Face config.json files)](https://aliteq.com/tools/vram-calculator)
- [Ollama, qwen3.8 tags (qwen3.8:27b-q4_K_M listed at 18GB, read Nov 3, 2026)](https://ollama.com/library/qwen3.8/tags)
- [Ollama, qwen3.5 tags (9b-q4_K_M 6.6GB, 35b-a3b-q4_K_M 22GB, read Nov 3, 2026)](https://ollama.com/library/qwen3.5/tags)
- [Ollama, qwen3 tags (8b 5.2GB, 14b 9.3GB, 32b 20GB at q4_K_M, read Nov 3, 2026)](https://ollama.com/library/qwen3/tags)
- [Ollama, llama3.3 tags (70b-instruct-q4_K_M 43GB, q8_0 75GB, read Nov 3, 2026)](https://ollama.com/library/llama3.3/tags)
- [Ollama, gpt-oss (gpt-oss:20b 14GB, gpt-oss:120b 65GB, read Nov 3, 2026)](https://ollama.com/library/gpt-oss)
- [Hugging Face (Qwen), Qwen3.8-27B model card (64 layers, 16 full-attention, 262,144 context, read Nov 3, 2026)](https://huggingface.co/Qwen/Qwen3.8-27B)
- [Hugging Face (Qwen), Qwen3.8-Flash-Next model card ("125B with 6B activated, plus 51B n-gram embedding and 4B MTP", read Nov 3, 2026)](https://huggingface.co/Qwen/Qwen3.8-Flash-Next)
- [Hugging Face (OpenAI), gpt-oss-20b model card ("21B parameters with 3.6B active parameters", read Nov 3, 2026)](https://huggingface.co/openai/gpt-oss-20b)
- [Aliteq cloud GPU prices (Vast and Runpod, live; readings quoted here taken Nov 3, 2026, 15:20 UTC)](https://aliteq.com/cloud-gpu)

---

Canonical: https://aliteq.com/how-much-vram-do-you-need-to-run-ai-models

This page has referral links: we earn a commission if you buy, at no cost to you.
