Back to guides
Awareness
Hardware
Local AI
How-to
Offline

VRAM Guide: What Local Coding Models Fit 8GB, 16GB, and 24GB (2026)

A practical VRAM budget for offline AI coding: which GGUF model sizes fit 8GB, 16GB, and 24GB GPUs, how KV cache eats memory, and how to pick a Quietly-ready stack that stays fast.

Aug 21, 202612 min

Awareness · 12 min

VRAM Guide

A practical VRAM budget for offline AI coding: which GGUF model sizes fit 8GB, 16GB, and 24GB GPUs, how KV cache eats memory, and how to pick a Quietly-ready stack that stays fast.

HardwareLocal AIHow-toOffline

Definition

VRAM for local coding LLMs is the GPU memory that must hold model weights plus the KV cache for your context window—if either overflows, inference slows dramatically or fails, even when system RAM looks fine.

Buying a “coding LLM” is really buying a memory budget. Parameter count on the box means little until you map it to quantization, context length, and leftover VRAM for the editor, browser, and OS.

This guide gives Quietly’s practical VRAM map for 8GB, 16GB, and 24GB cards in 2026: what fits, what feels fast enough for pair-programming, and what to avoid so you do not spend a weekend fighting swap thrash.

Numbers below assume GGUF-style runtimes (llama.cpp-class) with a coding chat/agent session open—not a bare CLI hello-world at 512 tokens.

The Quietly VRAM Budget Formula

Treat VRAM as three buckets. If you only size for weights, long chats and repo context will still OOM mid-session.

note

Usable VRAM ≈ Total − 0.8–1.5GB overhead

Drivers, desktop compositor, and Quietly’s UI typically leave ~0.8–1.5GB less than the marketing sticker. Plan with usable VRAM, not the box label.

  • Weights: file size of the GGUF (or loaded HF shards) that must stay resident.
  • KV cache: grows with context tokens × layers × heads—often the silent killer at 16k–32k context.
  • Runtime headroom: 1–2GB buffer so a longer reply or a second tool call does not evict layers to CPU.

Rule-of-thumb weight footprints for common coding sizes (Q4_K_M class). Exact files vary by architecture; treat ±10–15% as normal.

Model classApprox. weights (Q4)Comfortable min usable VRAMTypical role
~7–8B dense4–5.5 GB7–8 GBFast chat, light refactors
~9–14B dense6–9 GB12–16 GBDaily pair-programming
~22–32B dense12–18 GB20–24 GBStronger reasoning / multi-file
MoE “large” (few active params)Varies widely16–24 GB+Agentic coding when quant fits

warning

Context is not free

Doubling context from 4k→8k or 8k→16k can add hundreds of MB to multiple GB of KV cache. A model that “fits” at 4k may thrash at 32k on the same card.

8GB VRAM: what actually works

8GB is an entry lane—not a dead end. It is honest about limits: prioritize speed and discipline over chasing leaderboard giants.

8GB practical map (usable ~6.5–7.2GB). Prefer Q4/Q5; leave ≥1GB free.

Fit?Model size / quantContext targetQuietly workflow tip
Yes7–8B Q4_K_M4k–8kBest daily driver on 8GB
Tight7–8B Q5 / Q64kHigher quality, less headroom
Risky9–14B Q3/Q42k–4kOften CPU-offload; chat feels laggy
No (daily)22B+ at usable quantSave for a 16GB+ card
  • Best jobs: explain selection, write small functions, draft tests, rename/refactor within one file.
  • Weak jobs: huge multi-file agents, 100k-token repo dumps, “rewrite the whole service.”
  • Cards in this class: many RTX 4060 8GB / laptop 8GB designs—capacity-limited more than “slow cores.”

tip

8GB survival kit

Cap context, close unused GPU apps (browsers with hardware acceleration, games, other local servers), and prefer one coding model at a time. In Quietly, start with a 7–8B coding instruct GGUF before importing a larger HF folder.

Quietly IDE pair-programming on constrained local hardware
On 8GB, a snappy 7–8B model in Quietly beats a stuttering 14B that constantly spills to system RAM.

16GB VRAM: the daily-driver sweet spot

16GB is where local coding stops feeling like a demo and starts replacing cloud assistants for most solo developers. You can run mid-size models with enough context for real PRs.

16GB practical map (usable ~14–15GB).

Fit?Model size / quantContext targetQuietly workflow tip
Excellent7–8B Q5/Q6 or Q88k–16kNear-lossless quality, very fast
Excellent9–14B Q4_K_M8k–16kPrimary “Copilot-like” local tier
Good14B Q54k–8kQuality up; watch KV growth
Possible22–27B Q3/Q44k–8kUsable if you keep context tight
Avoid32B+ high quant + 32k ctxStarves headroom; pick 24GB
  • Best jobs: multi-file refactors with surgical context, Project Brain retrieval + chat, agent proposals you still approve action-by-action.
  • Hardware examples: RTX 4060 Ti 16GB, many 16GB workstation/laptop SKUs—VRAM capacity matters more than chasing peak TFLOPS for chat latency.
  • Quietly angle: keep Llama.cpp for GGUF speed; reserve heavier engines when you intentionally load larger HF models.

note

Bandwidth vs capacity

Some 16GB cards have less memory bandwidth than older 12GB cards. For coding chat, fitting a better model (capacity) usually beats a slightly higher tok/s on a smaller model—until latency exceeds ~your typing rhythm.

24GB VRAM: room for strong models and longer context

24GB unlocks the “I barely compromise” tier: stronger dense models, healthier context, and fewer forced trade-offs when Quietly’s Project Brain attaches repo snippets.

24GB practical map (usable ~22–23GB).

Fit?Model size / quantContext targetQuietly workflow tip
Excellent14B Q5–Q816k–32kHigh quality + long sessions
Excellent22–32B Q4_K_M8k–16kSerious multi-file reasoning
Good32B Q54k–8kQuality first; trim context
SelectiveLarge MoE GGUF8k–16kOnly if active params + quant fit
Still noFrontier cloud-only sizesLocal ≠ infinite; stay realistic
  • Best jobs: agentic edit plans, deeper debugging, longer design chats without constantly summarizing history by hand.
  • Hardware examples: RTX 3090 / 4090-class 24GB—often the best price/performance for heavy local coding if you already own or buy used.
  • Team note: one 24GB machine can be a dedicated local inference box; Quietly still keeps prompts on-device instead of a SaaS path.

tip

Do not waste 24GB on vanity context

32k–64k context is useful only when you feed high-signal code. Dumping an entire monorepo into the window burns VRAM and accuracy. Prefer Quietly Project Brain retrieval over raw paste.

No discrete GPU? CPU, unified memory, and Mac notes

Quietly runs on Windows, macOS, and Linux without requiring a datacenter GPU—but physics still applies. Unified memory (Apple Silicon) and large system RAM change the math.

  • CPU-only / iGPU: expect 7–8B Q4 as the realistic daily class; treat 14B as “batch help,” not instant autocomplete.
  • Apple Silicon unified memory: model weights compete with the OS and IDE—budget like VRAM plus a bigger safety margin (often 20–30% free).
  • 64GB+ system RAM: enables larger GGUF via RAM inference or hybrid offload; latency still trails a true 16–24GB GPU for interactive coding.

warning

Swap is not VRAM

If the OS starts swapping model layers to disk, token generation can fall to a crawl. Downsize the model or close memory hogs—do not “fix” it by raising context.

Quietly model picker: choose by tier, not hype

Decision matrix for Quietly setups in 2026.

Your GPUStart hereUpgrade pathAvoid first week
8GB7–8B coding instruct Q4Same size Q5 if stable14B+ with 16k context
16GB9–14B coding Q414B Q5 or 22–27B Q4 tightTwo models loaded at once
24GB14B Q5 or 22–32B Q4Longer context / MoE experimentsMax context + max model together

In Quietly’s Model Hub, download one coding-oriented GGUF, verify chat latency with Wi‑Fi off, then increase size only if replies stay interactive. Engines (Llama.cpp, AirLLM, Frontier/Colibri) change loader behavior—but they do not invent VRAM.

tip

Airplane test

After download, disconnect the network and run a 20-turn coding chat at your chosen context. If it stays smooth, your VRAM budget is honest. If it dies mid-thread, you oversized the model or the context—not Quietly’s offline claim.

Related product pages: quietlycode.org/local-ai-coding and quietlycode.org/offline-ai-ide. Download: quietlycode.org/download.

Seven VRAM mistakes that waste weeks

  • Sizing only for weights and ignoring KV cache growth.
  • Buying 8GB cards expecting 32B “almost fits” quality.
  • Running a second local server (another UI + same model) that doubles residency.
  • Leaving 32k context on by default for tiny edits.
  • Comparing tok/s on empty prompts to real IDE sessions with RAG attachments.
  • Assuming cloud “private mode” is equivalent to local VRAM isolation.
  • Chasing every new MoE release before your 14B daily driver is tuned.

FAQ

How much VRAM do I need for a local coding LLM in 2026?

8GB works for 7–8B quantized models with modest context. 16GB is the practical daily driver for 9–14B coding models. 24GB comfortably runs stronger 22–32B Q4 models and longer sessions. Always reserve headroom for KV cache—not only weights.

Can I run a 14B coding model on 8GB VRAM?

Sometimes with aggressive quantization and CPU offload, but interactive pair-programming often feels too slow. Prefer a 7–8B Q4 model on 8GB, or move to 16GB for a true 14B daily driver.

Does system RAM replace VRAM for Quietly?

System RAM and unified memory can host models, especially on Apple Silicon or large-RAM PCs, but latency and contention differ from a dedicated GPU. Quietly still keeps inference local either way—choose a model size that stays responsive.

Why does my model fit at start but crash after a long chat?

KV cache grows with conversation and attached code context. Lower max context, clear history, attach fewer files, or use a smaller quant so long sessions keep a VRAM buffer.

What should I download first in Quietly?

Start with one coding-instruct GGUF sized for your tier (7–8B on 8GB, ~14B Q4 on 16GB, 14B–32B Q4 on 24GB). Confirm offline chat speed, then experiment—do not load three models on day one.