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.
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.

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).
Our Runpod referral code: nuninlts (link: https://console.runpod.io/signup?ref=nuninlts). A new account that signs up with Google through it and loads $10 gets a one-time bonus credit, a fixed $5 for European customers and a random $5 to $500 elsewhere (Runpod says most get $5), valid 90 days; we earn 3% of Pod and 5% of Serverless spend for the first 6 months (Runpod's referral docs).
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:
Q8_0
- VRAM per billion parameters
- ~1.0 GB
- A 27B model
- ~27.5 GB
- Quality
- Effectively lossless
Q6_K
- VRAM per billion parameters
- ~0.76 GB
- A 27B model
- ~21.2 GB
- Quality
- Very close to Q8
Q5_K_M
- VRAM per billion parameters
- ~0.66 GB
- A 27B model
- ~18.4 GB
- Quality
- Small, hard-to-notice loss
Q4_K_M
- VRAM per billion parameters
- ~0.57 GB
- A 27B model
- ~15.7 GB
- Quality
- The community default
Q3_K_M
- VRAM per billion parameters
- ~0.46 GB
- A 27B model
- ~12.6 GB
- Quality
- Noticeable loss; fits a bigger model
IQ3_XS
- VRAM per billion parameters
- ~0.38 GB
- A 27B model
- ~10.7 GB
- Quality
- 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 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.
8GB
- Runs comfortably
- 7B to 9B models
- Example on our numbers
- Qwen3.5 9B: ~6.5 GB at 8K
12GB
- Runs comfortably
- 12B to 14B models
- Example on our numbers
- Qwen3-14B: ~10.4 GB at 8K
16GB
- Runs comfortably
- 20B models, or a 27B at 3-bit
- Example on our numbers
- gpt-oss-20b: ~13.0 GB at 8K; Qwen3.8 27B at IQ3_XS: ~12.0 GB
24GB
- Runs comfortably
- 27B to 32B models
- Example on our numbers
- Qwen3.8 27B: ~18.5 GB at 32K; Qwen3-32B: ~21.3 GB at 8K
48GB
- Runs comfortably
- 70B models
- Example on our numbers
- 70B weights alone: ~40 GB
For what each tier runs best, see the guides for 8GB, 12GB, 16GB and 24GB, or the whole VRAM ladder. Shopping for the card itself? The cheapest GPU for local AI ranks cards by VRAM per dollar, and if you own an Intel card, what fits on Intel Arc applies these numbers to Intel Arc cards. Memory-modded cards such as the 20GB RTX 3080 sold in China add VRAM cheaply, but without a factory warranty. Or pick your exact card in 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 lists for the same model, read on November 3, 2026.
Qwen3 8B
- Our weights estimate
- ~4.6 GB
- Ollama Q4_K_M download (Nov 3, 2026)
- 5.2GB
- Total at 8K context
- ~6.5 GB
- Total at 32K context
- ~9.9 GB
Qwen3.5 9B
- Our weights estimate
- ~5.5 GB
- Ollama Q4_K_M download (Nov 3, 2026)
- 6.6GB
- Total at 8K context
- ~6.5 GB
- Total at 32K context
- ~7.2 GB
Qwen3-14B
- Our weights estimate
- ~8.3 GB
- Ollama Q4_K_M download (Nov 3, 2026)
- 9.3GB
- Total at 8K context
- ~10.4 GB
- Total at 32K context
- ~14.1 GB
gpt-oss-20b (MoE)
- Our weights estimate
- ~11.8 GB
- Ollama Q4_K_M download (Nov 3, 2026)
- 14GB (MXFP4)
- Total at 8K context
- ~13.0 GB
- Total at 32K context
- ~14.1 GB
Qwen3.8 27B
- Our weights estimate
- ~15.7 GB
- Ollama Q4_K_M download (Nov 3, 2026)
- 18GB
- Total at 8K context
- ~17.0 GB
- Total at 32K context
- ~18.5 GB
Qwen3-32B
- Our weights estimate
- ~18.5 GB
- Ollama Q4_K_M download (Nov 3, 2026)
- 20GB
- Total at 8K context
- ~21.3 GB
- Total at 32K context
- ~27.3 GB
Qwen3.5 35B-A3B (MoE)
- Our weights estimate
- ~20.3 GB
- Ollama Q4_K_M download (Nov 3, 2026)
- 22GB
- Total at 8K context
- ~21.2 GB
- Total at 32K context
- ~21.7 GB
Llama 3.3 70B
- Our weights estimate
- ~39.8 GB
- Ollama Q4_K_M download (Nov 3, 2026)
- 43GB
- Total at 8K context
- ~43 GB
- Total at 32K context
- ~51 GB

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.

For running cost per model, see cost to run, for example 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.
Qwen3-32B
- KV cache per 1,000 tokens (fp16)
- ~250 MB
- At 32K tokens
- ~8 GB
Qwen3-14B
- KV cache per 1,000 tokens (fp16)
- ~156 MB
- At 32K tokens
- ~5 GB
Qwen3 8B
- KV cache per 1,000 tokens (fp16)
- ~141 MB
- At 32K tokens
- ~4.5 GB
Qwen3.8 27B
- KV cache per 1,000 tokens (fp16)
- ~62 MB
- At 32K tokens
- ~2 GB, plus ~0.3 to 0.5 GB fixed state
gpt-oss-20b
- KV cache per 1,000 tokens (fp16)
- ~47 MB
- At 32K tokens
- ~1.5 GB
Qwen3.5 9B
- KV cache per 1,000 tokens (fp16)
- ~31 MB
- At 32K tokens
- ~1 GB, plus ~0.1 to 0.2 GB fixed state
Gemma 4 12B
- KV cache per 1,000 tokens (fp16)
- ~16 MB
- At 32K tokens
- ~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.

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) 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, and for the trade-off itself, MoE vs dense models explained.
What if the model doesn't fit my card?
Five options, cheapest first:
- Drop one quant. Going from Q4_K_M to IQ4_XS saves about 12% on the weights; Q3_K_M saves about 19%.
- Shorten the context, or use an 8-bit KV cache. On older models this can free several GB.
- Pick a hybrid-attention model. Qwen3.5, Qwen3.8 and Gemma 4 need far less memory per token of context.
- Offload to RAM. Works best for MoE models; costs speed.
- Rent a bigger card for the job. On November 17, 2026 our price feed showed a 24GB RTX 3090 on Vast.ai from $0.12 an hour on-demand and a 48GB RTX A6000 there from $0.32 an hour on-demand (checked Nov 17, 2026). Prices move hourly; cloud GPU prices shows today's, and rent vs buy a GPU for AI shows when owning a card pays off.
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.
If you'd rather own the hardware, the two usual routes are a 70B local AI workstation build and, for 32GB on a budget, two RTX 5060 Ti 16GB cards.
Running out of memory at long context? Shrinking the KV cache with q8_0 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 12GB, as laid out in our free local Stable Diffusion walkthrough. Video models need more, and the VRAM each ComfyUI workflow needs, from Flux to Wan 2.2 video 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, Which MoE model runs best on a 12GB or 16GB GPU, and how much RAM do you need?, Ollama has no --n-cpu-moe switch. Here's what it does with MoE experts. Related topics: How much do AI GPUs cost in November 2026? Buy vs rent for every card.
Memory decides whether a model loads; speed has two parts, reading your prompt and writing the answer, explained in prefill vs decode.
Quick answers
How much VRAM do I need to run an AI model?
How much VRAM do I need for a 7B or 8B model?
How much VRAM do I need for a 70B model?
Is 8GB of VRAM enough for AI?
Does context length affect VRAM usage?
Do mixture-of-experts models need less VRAM?
Can I run AI models without enough 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, then pick a model from the VRAM ladder and set it up with our beginner's guide.
Found this useful? Share it
Sources
What this guide was researched from. How we check facts and compute numbers: methodology.
- Aliteq VRAM calculator (our engine, src/lib/vram.ts; model configs from official Hugging Face config.json files)
- Ollama, qwen3.8 tags (qwen3.8:27b-q4_K_M listed at 18GB, read Nov 3, 2026)
- Ollama, qwen3.5 tags (9b-q4_K_M 6.6GB, 35b-a3b-q4_K_M 22GB, read Nov 3, 2026)
- Ollama, qwen3 tags (8b 5.2GB, 14b 9.3GB, 32b 20GB at q4_K_M, read Nov 3, 2026)
- Ollama, llama3.3 tags (70b-instruct-q4_K_M 43GB, q8_0 75GB, read Nov 3, 2026)
- Ollama, gpt-oss (gpt-oss:20b 14GB, gpt-oss:120b 65GB, read Nov 3, 2026)
- Hugging Face (Qwen), Qwen3.8-27B model card (64 layers, 16 full-attention, 262,144 context, read Nov 3, 2026)
- 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)
- Hugging Face (OpenAI), gpt-oss-20b model card ("21B parameters with 3.6B active parameters", read Nov 3, 2026)
- Aliteq cloud GPU prices (Vast and Runpod, live; readings quoted here taken Nov 3, 2026, 15:20 UTC)
Founder & chief editor
Ari Vale
Founder and chief editor of Aliteq (a PC hardware shop from 2019, now a US-based publication). Ari Vale is my pen name: I stay anonymous, the work doesn't. I research the questions people actually ask, check every price and limit against the vendor's own pages, and write down what I'd choose and why. I use the cloud-GPU and AI-video services I write about.
Work out the hardware
GPUs in this article
Specs, the AI models each one runs, and where to buy or rent it.
Email list
Local AI, only the changes that matter
A new model your GPU can actually run, a GPU price move worth acting on, or a fix that saves you an evening. Nothing in between.
Written and sent by hand. One-click unsubscribe in every email. Emails may contain referral links.
Keep reading

Qwen3.8 27B NVFP4, how much VRAM it needs and which GPU runs it
The NVFP4 build of Qwen3.8 27B is about 22 GB of files and runs fastest on a Blackwell card like the RTX 5090. What the nvidia and unsloth builds are, the VRAM math, the vLLM command, and measured speeds from other people's tests.
Ari Vale · · 10 min

Out of memory at long context? Shrink the KV cache with q8_0 in llama.cpp or Ollama
The model fits. Then you paste in a long document and the GPU runs out of memory. The culprit is the KV cache, it has a formula you can do on a napkin, and two settings cut it by roughly half or three quarters.
Ari Vale · · 9 min

How much VRAM does Qwen3.8 27B need, and can a 16GB card run it?
A 24 GB card runs Qwen3.8 27B at Q4 or Q5, and 32 GB runs Q6 with room to spare. 16 GB works too, at a 3-bit quant with a squeezed cache. Here is the math, what Reddit owners report, and what to check when it codes badly.
Ari Vale · · 12 min

How to quantize a local LLM to GGUF and what you lose at Q4, Q6 or Q8
Quantization is the trick that lets a 16GB card run models it has no business running. Here's how GGUF quant levels work, which one I default to, the memory math, and the honest quality trade — so you get the most model your VRAM can hold.
Ari Vale · · 9 min