⏱ 8 min read  ·  ✅ Updated Dec 2026

As an Amazon Associate we earn from qualifying purchases.

Running a language model on your own graphics card is one of the most rewarding things a PC can do: private chat, offline coding help, and no subscription. The question that stops most people is the same one every time: how much VRAM do I need? The answer is not a single number, because it depends on the model size, the quantisation, and the context length, and a model that fits on one card with a short context will not fit on the same card with a long one. Get the method right and you can answer the question for any model in a minute.

This guide explains the estimation method, gives you a table of common model sizes and quantisations, and shows what each VRAM tier can actually run. The numbers are estimates based on the standard weights-per-parameter method and on published measurements, and they are labelled as such, because model releases change and the exact figure depends on the runtime you use.

Quick Answer

For a local LLM, estimate VRAM as parameters times bytes, plus the KV cache for context length, plus 1GB of overhead. At 4-bit, a 7B model needs about 4 to 5GB, an 8B model about 5 to 6GB, a 13B model about 8 to 9GB, a 27B model about 16 to 19GB, and a 32B model about 19 to 22GB before cache. An 8GB card runs 7B and 8B models comfortably, a 12GB card adds 13B models, a 16GB card runs 27B models at 3-bit, and a 24GB card runs 27B and 32B models at 4-bit with a useful context.

The Estimation Method

Weights: Parameters Times Bytes Per Parameter

The weights are the fixed cost of a model, and they follow a simple formula: parameter count multiplied by bytes per parameter. At full 16-bit precision, each parameter takes 2 bytes, so a 7B model needs about 14GB, a 13B model about 26GB, and a 32B model about 64GB. Almost nobody runs full precision at home, because quantisation cuts the size dramatically with a small quality cost. At 8-bit precision, each parameter takes about 1 byte, so a 7B model needs about 7GB and a 13B model about 13GB. At 4-bit precision, each parameter takes about half a byte, so a 7B model needs about 3.5 to 4.5GB, a 13B model about 7 to 9GB, and a 32B model about 17 to 20GB.

The most common 4-bit quantisation is Q4_K_M, which is the default in most Ollama and llama.cpp builds. Its file sizes are slightly larger than the pure half-byte estimate, because it stores some values at higher precision to protect quality. A 7B model at Q4_K_M is about 4.1GB, an 8B model about 4.9GB, a 13B model about 8.1GB, a 27B model about 17.8GB, and a 32B model about 19 to 20GB. A 3-bit quant such as Q3_K_M cuts those figures by roughly a quarter, at the cost of noticeably lower quality on hard tasks. A 5-bit or 6-bit quant sits between, offering better quality than 4-bit for a modest size increase, and it is worth considering when you have a few gigabytes to spare.

The KV Cache: The Cost That Grows With Context

The KV cache is the cost most people forget, and it is the reason a model that fits with a short context fails with a long one. When a model generates text, it stores the attention keys and values for every token in the conversation so far, and that cache grows with each token. The size depends on the model architecture: the number of layers, the number of attention heads, and the hidden size. A rough rule is that a 7B dense model needs about 0.5MB per token with a 16-bit cache, so 8K tokens of context adds about 4GB, and 32K tokens adds about 16GB. An 8-bit cache halves those numbers, and a 4-bit cache halves them again.

Some newer models are far kinder. Qwen 3.8 27B uses a hybrid architecture where only 16 of its 64 layers keep a full KV cache, so its cache grows about four times slower than a dense model of the same size, at about 64 KiB per token with a 16-bit cache. That is why a 24GB card can hold it with a 128K context while a dense 27B model would need far more. When you plan a setup, check whether the model uses grouped-query attention or a hybrid design, since both reduce the cache dramatically. Most modern models use grouped-query attention, which already cuts the cache by a factor of four to eight compared with older designs.

Overhead and the Headroom Rule

The runtime itself needs memory: the inference engine, the output buffers, the CUDA context and scratch space, typically 0.5 to 1GB. On top of that, keep at least 1GB of free headroom, because a model that exactly fills the card will fail to load, and the system needs room for the display and any other GPU application. The practical formula is therefore weights plus cache plus 1 to 2GB of overhead and headroom, compared against the card memory. If the total is within 1GB of the card capacity, choose a smaller quantisation or a shorter context, since a tight fit will be fragile and slow.

What Each VRAM Tier Can Run

8GB: The Starter Tier

An 8GB card such as an RTX 4060 runs 7B and 8B models at Q4_K_M with a comfortable context window, using about 5 to 6GB for weights and leaving room for several thousand tokens of cache. It can also run a 13B model at Q4_K_M with a short context, although the margin is thin. This tier suits chat, summarising, and light coding help, and it is the cheapest way to try local AI. It also handles image generation at modest resolutions, which makes it a good first step into local AI work beyond chat. Generation speed is good for 7B models, since the card can hold the whole model in VRAM and the compute per token is modest. The limit is model quality: 7B models are capable, but they lag behind larger models on hard reasoning and long documents.

12GB and 16GB: The Comfortable Middle

A 12GB card such as an RTX 3060 runs 13B models at Q4_K_M with a useful context window, and 7B models at higher precision for better quality. A 16GB card such as an RTX 4060 Ti 16GB goes further: it runs 13B models at 8-bit precision, 27B models at 3-bit precision with up to 64K tokens of context, and 32B models at 3-bit with a short window. This tier is the sweet spot for most home users, because it covers the models that feel genuinely smart without requiring a flagship card. The 16GB tier is also where image generation becomes comfortable, since diffusion models benefit from the extra memory for larger images and batch sizes.

24GB and 32GB: The Serious Tier

A 24GB card such as an RTX 3090 or RTX 4090 runs 27B and 32B models at Q4_K_M with a long context window, and 13B models at full 8-bit precision with room to spare. A 32GB card such as an RTX 5090 holds Q4_K_M with the full 262K context of models such as Qwen 3.8 27B, and it can run 8-bit quants of 27B models that a 24GB card cannot. This tier suits agentic coding, long-document analysis and running two models at once. It is also the tier where fine-tuning becomes practical, since training needs memory for gradients and optimiser states on top of the weights, and a 24GB card is the realistic minimum for tuning a 7B model.

Common Mistakes

  • Forgetting the KV cache entirely, so a model that fits the weights fails as soon as the context grows.
  • Using a 16-bit cache by default, which can double the memory a long conversation needs.
  • Loading a model at full 16-bit precision when a 4-bit quant would fit and run nearly as well.
  • Leaving other GPU applications open, so the display and the browser eat the headroom the model needs.
  • Choosing a model by parameter count alone, when the architecture and the cache design change the real memory cost.

Frequently Asked Questions

How Much VRAM for a 7B Model?

About 4 to 5GB at Q4_K_M, plus cache and overhead, so an 8GB card is comfortable. At 8-bit precision the same model needs about 7 to 8GB, and at full 16-bit precision about 14GB. For most users, Q4_K_M on an 8GB card is the right starting point, with room for a context window of several thousand tokens.

Is 12GB Enough for Local AI?

Yes, for most home use. A 12GB card runs 7B and 8B models at high quality and 13B models at Q4_K_M with a useful context window. It struggles only with 27B and larger models, which need 16GB or more even at heavy quantisation. If local AI is a main use, 16GB is a safer buy than 12GB.

Does More VRAM Make the Model Faster?

Not directly. Generation speed depends on the GPU compute and the memory bandwidth, not on how much VRAM is installed. More VRAM helps indirectly: it lets you run a larger model, a higher quantisation, or a longer context, and it prevents the slow offloading to system memory that happens when a model does not fit. A model that fits entirely in VRAM runs at full speed.

What Happens If the Model Does Not Fit?

The runtime either refuses to load it with an out-of-memory error, or it offloads some layers to system memory and the CPU, which makes generation extremely slow, often a few tokens per second. Some tools split the model across the GPU and the CPU automatically, but the result is rarely usable for interactive chat. The fix is a smaller quantisation, a shorter context, or a larger card.

Related Products

  • ASUS Dual GeForce RTX 4060 V2 OC Edition, 8GB GDDR6, a starter card for 7B and 8B local models.
    ASIN: B0D6CYLHW1
  • ASUS Dual GeForce RTX 4060 EVO White OC Edition, 8GB GDDR6, the same 8GB tier in a white dual-fan design.
    ASIN: B0DKS9D5DD
  • ASUS ProArt GeForce RTX 4060 Ti OC Edition, 16GB GDDR6, the comfortable middle tier for 13B and 27B models.
    ASIN: B0CCC7MP3H
  • ASUS Dual GeForce RTX 4060 Ti OC Edition, 16GB GDDR6, a second 16GB option for local LLM work.
    ASIN: B0CC33B3PZ

Explore Our Guides & Free Tools