8 GB vs 12 GB VRAM: How Large a Local Model Can You Actually Run?
Scope: You are weighing 8 GB against 12 GB of VRAM for a local model, or you already have one of them and want to know which quantization tier and context length will fit. This article gives a qualitative framework and a principles-based table, with no hard-coded VRAM figures - because numbers detached from model, tier, context and concurrency are meaningless.
Short answer: VRAM is not a ruler converting parameter count into capacity. The real budget is weights + KV cache + runtime overhead, and all three change with your choices. The Ollama official FAQ is the source for parameter names, defaults and causal claims here: it explicitly explains how the KV cache grows with context and concurrency, can be quantized, and what happens when a model does not fit. No citable official weight-size table was obtained in this check, so this article writes no "7B at q4 takes X GB" figures; every concrete size is marked "verify against the model page" and needs site confirmation. Technical accuracy takes priority over length - better to omit than to invent.
1. The budget has three terms
Lay out the ledger:
total VRAM needed ~= model weight size + KV cache size + runtime overhead
weights: set by parameter count and the model's own quantization tier (a property of the model file)
KV cache: grows with num_ctx context length and parallel request count; quantizable via OLLAMA_KV_CACHE_TYPE
runtime overhead: backend, compute buffers and other fixed/floating parts - verify against your environment
The weight term belongs to the model file: more parameters or higher precision means a larger size. Quantization compresses weights to lower precision, so a lower tier means a smaller size at the cost of precision. Publishers offer different tiers, and exact sizes should be read from the model page you intend to pull - no hard-coded numbers here.
The KV-cache term is the most easily overlooked. The official FAQ's concurrency section gives a revealing example: parallel requests multiply context by the request count, so a 2K context with 4 parallel requests results in an 8K context and additional memory allocation. In other words, the KV cache is not fixed - it grows with context length and concurrency. The FAQ also has a dedicated K/V-cache quantization section noting that the KV cache occupies a significant amount of memory and can be reduced through quantization.
The runtime-overhead term varies with backend, buffers and implementation, with no cross-version fixed number - verify against your environment. Add all three for total demand; watching only weight size is the common reason "the file looked small enough, but loading failed".
2. Quantization tier: the weight term
The tier is the first variable you can actively change. Do not confuse the q8_0 and q4_0 listed in the official FAQ's K/V-cache quantization section with weight tiers - those are KV cache quantization types. A model's weight tier is usually part of its tag (suffixes such as q4 or q8), chosen by the publisher, not a runtime switch. In practice you pull a tag with a lower tier:
The directional conclusion is solid: a lower tier means smaller weights at the cost of output quality, especially on complex reasoning; a higher tier stays closer to full precision and is larger. But "how many GB does a 7B take at q4" could not be verified against a citable official table in this check, so no number is given here - verify against the model page and your environment, with this marked as needing site confirmation. This site's LLM Quantization in Practice explains the trade-off logic and is best read alongside the model page.
A separate switch is KV-cache quantization. The FAQ says OLLAMA_KV_CACHE_TYPE sets the K/V context cache quantization type, default f16; q8_0 uses about half the memory of f16 with very small precision loss, while q4_0 uses about a quarter with small-to-medium loss more noticeable at larger contexts. It requires Flash Attention and is a global option affecting all models. The FAQ also notes models with a high GQA count (e.g. Qwen2) may see a larger precision impact and that experimentation is needed. It cuts the KV-cache term, not the weights.
3. Context and concurrency: the KV-cache term
The second adjustable variable is context length. The official FAQ confirms num_ctx controls context length and gives two ways to set it: /set parameter num_ctx <number> in an interactive session, and num_ctx inside the options object of an API request. The right value varies by model and version, so verify against your environment.
# inside an interactive session
/set parameter num_ctx 2048
# in an API request body
# "options": { "num_ctx": 2048 }
Shorter context trades "how much it remembers" for VRAM: the smaller the KV cache, the more likely total demand drops below the card's limit - but too little context makes the model lose earlier turns, trading correctness for VRAM. Start at the default or a conservative value to confirm loading, then raise it step by step until ollama ps shows a mixed ratio or loading fails; that is your local boundary.
The third variable is concurrency. The FAQ gives three settings: OLLAMA_MAX_LOADED_MODELS caps how many models load concurrently (default 3 times the GPU count, or 3 for CPU inference); OLLAMA_NUM_PARALLEL caps parallel requests per model (when unset or zero, backends other than MLX default to 1, and more parallel requests require more memory); and OLLAMA_MAX_QUEUE caps queued requests when busy (default 512). The same section notes that if a model is already resident and available memory is insufficient for a new one, new requests queue until prior models are unloaded, and that under GPU inference a new model must fit entirely in VRAM to allow concurrent loading. Defaults change with the version - verify against your environment.
4. A principles-based table: VRAM to model size to quantization
This table is qualitative only and writes down no specific VRAM figures. "Runnable size" means a scale that has a chance of fitting entirely at a suitable tier and moderate context - it is not a performance promise. Confirm the real boundary on your own machine with section 5.
| VRAM tier | Runnable model size (qualitative) | Quantization direction | Main constraint |
| --- | --- | --- | --- |
| 8 GB | low tiers of smaller models, or compact tiers of mid-sized models | prefer lower weight tiers; optionally KV-cache quantization | weights plus KV cache easily reach the ceiling; long context and concurrency are the main enemies |
| 12 GB | larger parameter counts at the same tier, or looser context/concurrency on the same model | trade some tier for quality, or keep a low tier for longer context | more headroom, but concurrency amplification and resident models still eat it |
| above 12 GB | larger models or longer contexts with more room | balance quality against size by task | still do the math; capacity alone is not a buying reason |
How to read it: capacity sets the floor (whether it fits); tier and context decide how close you are to the ceiling; concurrency and residency quietly eat the remainder.
The table deliberately avoids "8 GB runs 7B, 12 GB runs 13B", because model-page sizes, publisher quantization quality and required context all change the conclusion. For a decision, list "largest model + lowest acceptable tier + required context and concurrency" and compare against the table.
5. Self-test: draw your own boundary with field data
The qualitative table is not the finish line. These steps draw the real boundary on any machine.
ollama ps # see resident models and the PROCESSOR column
ollama stop <name> # unload a resident model you do not need
First, fix one model and tag, load it at default or conservative num_ctx, and confirm the ollama ps PROCESSOR column reads 100% GPU or an acceptable high GPU share - not 100% CPU or a mixed ratio. Second, raise num_ctx step by step, rerunning the same prompt each time, and record where a mixed ratio or load failure first appears - that is the context boundary for this model on this machine. Third, raise concurrency from 1 upward and watch for queuing or VRAM exhaustion; the FAQ's 2K-times-4-becomes-8K example shows how strongly concurrency amplifies the KV cache. Fourth, if weights are already at a low tier and still do not fit, try the independent OLLAMA_KV_CACHE_TYPE=q8_0 switch and evaluate answer quality. Record the model tag, num_ctx, concurrency and ollama ps output at each step to build your own comparison table.
If the target model will not fit on 8 GB no matter what, switching to a smaller model is more honest than more tuning; if a 12 GB card has room to spare, consider a higher tier for quality rather than an extreme context length. Inference engines also differ in memory efficiency - see Inference Engine Selection on this site - but weigh the benefit of a stack switch yourself.
6. Acceptance checklist before calling it done
-
Did the "weights + KV cache + runtime overhead" math, without looking only at model file size
-
Took weight sizes from the target model's model page, not from any hard-coded figure (this article gives none)
-
Chose
num_ctxonly after confirming it is sufficient, and measured the context boundary -
Checked concurrency and resident model count; no extra models left in
ollama ps -
If
OLLAMA_KV_CACHE_TYPEis enabled, confirmed Flash Attention is active and evaluated precision impact -
Compared 8 GB and 12 GB on-site with the same model/tier/prompt, recording the PROCESSOR column
-
Checked hardware specs against the specification page and model sizes against the model page, marking both verify against your environment
One last line: choosing VRAM is not memorizing a "GB to B" table but doing three-term arithmetic. Separate weights, KV cache and runtime overhead, then tune with quantization trade-offs and context boundaries, and your conclusion will beat any comparison chart. For the scheduler behavior when a model does not fit, revisit 8 GB VRAM OOM troubleshooting and the Ollama Deployment Handbook on this site.