Skip to content
← Back to YouBlog

Published article

12GB VRAM for Local AI: What Fits in 2026

Drafted with AI from the video "Is 12GB of VRAM Enough for Local AI Now?", then reviewed and published by Gustavo Miranda.

On one 12GB card, 12GB VRAM for local AI buys about 96K context at roughly 10 tokens per second, or 16K context near 64 tokens per second with 2-bit weights. You cannot have both, and the arithmetic below shows why.

Is 12GB VRAM enough for local AI?

12GB VRAM for local AI is workable but forces a choice: long context at low speed, or high speed at short context. Every published Qwen3 27B run near 65 tokens per second used 16GB or more, or two pooled cards, and the fastest single 12GB setups land around 64 tokens per second only at 16,000 tokens of context.

The model discussed here is Qwen3 27B, a dense 27-billion-parameter model with a hybrid attention design. Runs in the article use llama.cpp, the open-source C/C++ inference engine that loads GGUF weight files, and quantized builds published by Unsloth.

Three budgets decide what fits: static weight size, growing KV cache, and memory bandwidth. The KV cache is the stored keys and values for earlier tokens, so the model does not recompute them. Bandwidth is how fast a card can read its own memory.

Fitting a model is not a licensing or quality guarantee. Community token rates are self-reported and vary with prompt shape, driver version, and draft acceptance.

How big is the KV cache for a 262K window?

The Qwen3 27B KV cache costs about 18 kilobytes per token at 4-bit precision, which is roughly 4.8GB at 262,144 tokens. At the default 16-bit cache setting the same window needs about 17GB, more than an entire 12GB card before any weights load.

The saving comes from the model's hybrid layout. Unsloth's model card lists 64 layers arranged as 16 repeats of three gated delta layers followed by one gated attention layer. Only the 16 attention layers keep a growing cache; the 48 delta layers carry fixed-size state.

The arithmetic for a 4-bit cache follows the attention configuration: 16 attention layers × 4 KV heads × 256 head dimension × 2 (keys and values) gives 32,768 values per token, or about 65,536 bytes at 16-bit and about half that in bytes per value at 4-bit. Multiply by 262,144 tokens and you reach roughly 4.8GB.

A community repository for a two-card setup reports the same per-token figure, which supports the cache-side estimate. The cache is the cheap part of the bill.

Do 2-bit weights plus a long cache fit on one card?

The smallest recommended 2-bit build does not fit alongside a full 262K 4-bit cache and multi-token prediction head on a 12GB card, even before compute buffers are counted. The weights, not the cache, are what overflow.

Sizes matter here. Unsloth lists roughly 7.27GB for the 2-bit IQ2_XXS file, 9 to 11GB for 3-bit, 12 to 14GB for 2-bit file ranges depending on build, and 15.4GB for 4-bit Q4_K_S with 16.5GB for Q4_K_M. A 12GB card holds about 12.9GB in the decimal gigabytes those files use, minus some for the driver and display.

Add the parts. At 4-bit 262K cache plus 2-bit weights you reach 12.1GB. Add the 1.37GB MTP head and the total is about 13.5GB. Even a 1-bit build near 6.19GB reaches about 12.4GB with the cache and head, leaving almost no room.

Unsloth's own guidance recommends preparing 1 to 2GB of extra headroom for MTP and warns that very small builds degrade on tool use and multi-step work.

Is the 64 tokens per second benchmark real?

Yes, the roughly 64 tokens per second figure is real, but it comes from a 10GB RTX 3080 at 16,000 tokens of context with extreme 2-bit quantization, not from a 262K window or from a stock 12GB card.

The closest row on the community table is an RTX 3080 10GB running IQ2_XXS weights with a headless desktop, meaning the GPU drives no display. It reaches 45.1 tokens per second without MTP and 64.4 with MTP. Sizing a 4-bit cache for 16,000 tokens gives about 0.3GB, and with 7.27GB of weights and a 1.37GB head the total lands under 9GB.

The fastest confirmed 262K runs use more hardware. A two-card setup pooling an RTX 3080 Ti 12GB with an RTX 3060 12GB holds about 15GB of IQ4_XS weights and reaches about 52 tokens per second at 98,000 tokens with an 8-bit cache. Its max preset arrives at 22.5GB for the full 262,144-token window at 25.8 tokens per second, dropping to about 15 tokens per second near 94,000 tokens of depth.

A single-card 24GB result, from a custom 5.01-bit build run by a hardware reviewer, reports about 50 tokens per second averaged over the window and 12.6 tokens per second once the cache fills to 261,500 tokens.

Why does speed fall as context grows?

Speed falls as context grows because each new token must read a larger attention cache, so longer windows cost more memory reads per token even when all weights stay on the card.

Measured with MTP disabled and Q4_K_S weights, an RTX 3090 moves from 40.31 tokens per second at 4,000 tokens to 33.95 at 64,000 tokens. An RTX 4090 moves from 46.16 to 38.41 over the same span.

Multi-token prediction helps without changing that curve. An MTP head is a separate single-layer draft model loaded from the same GGUF file with its own context. It drafts a few next tokens, the main model checks them in one pass, matches stay, and everything after the first mismatch rolls back.

The llama.cpp pull request that added MTP for the earlier Qwen3 3.6 model reports 72% acceptance with three drafted tokens and 82.6% with two. On an RTX 3090 it took that model from 22.97 to 42.45 tokens per second, roughly 1.85×, at the cost of slower prompt processing, one parallel slot, and about 2.49GB of extra memory.

MTP improves speed per pass. It does not shrink weights or cache, and its head consumes VRAM.

What happens when weights spill into system RAM?

Weights that spill into system RAM are read at RAM speed on every generated token, so inference drops from tens of tokens per second to single digits. Dual-channel DDR4 at 3,200 MHz peaks at 51.2GB/s, about one-seventh of an RTX 3060's 360GB/s.

One documented RTX 3060 12GB run used Q4_K_S weights with a 4-bit cache at 96,000 tokens and llama.cpp's override-tensor flag to keep the feed-forward blocks of 46 layers in system RAM. It reached about 9.7 tokens per second, with MTP acceptance near 88% and a mean accepted length of 2.76 tokens.

Vendor bandwidth figures set the ceiling. NVIDIA lists 360GB/s for the RTX 3060, 504GB/s for the RTX 4070, and 760GB/s for the 10GB RTX 3080. Dividing one by the other gives about 37 memory passes per second for a 3060 holding a 9.83GB 2-bit file. Real runs land below those ceilings.

The thread does not explain why only the feed-forward tensors were offloaded; it shows only what worked. A dense 27B model has no experts to park on the CPU, so there is no gentler fallback.

GPUMemory bandwidthDense 27B ceiling (2-bit file)Reported speed
RTX 3060 12GB360 GB/s~37 tok/s9.7 tok/s at 96K
RTX 4070 12GB504 GB/s~51 tok/s6-7 tok/s at 100K
RTX 3080 10GB760 GB/s~100 tok/s64.4 tok/s at 16K
RTX 3090 24GB——33.95 tok/s at 64K

How do you check any card with three steps?

You can test any card against the same three-step check: add up the file size, the 4-bit cache, the MTP head, and about a gigabyte of slack, then keep that total under the card's real capacity.

  1. Add the weight file size, 18 kilobytes for every token of 4-bit cache, about 1.4GB if you want MTP, and a gigabyte of working slack. A 12GB card holds about 12.9GB in those same decimal units, minus the driver and display.
  2. Divide your card's memory bandwidth by the weight file size to get the ceiling in passes per second. Anything that spills into system RAM runs at RAM speed.
  3. Choose the trade you can live with: a 4-bit file with feed-forward blocks in system RAM and a window near 96,000 tokens, expecting roughly 7 to 10 tokens per second, or a 2-bit file fully in VRAM at a short window for speed.

Scaling the RTX 3080's 64.4 tokens per second by bandwidth puts an RTX 3060 near 30 and an RTX 4070 near 43, assuming decode stays bandwidth-bound. A hypothetical 12GB RTX 3080 at 912GB/s works out to roughly 77. Those are arithmetic projections, not measurements, and 2-bit answer quality is unmeasured here.

Frequently asked questions

  • Can a 12GB card run Qwen3 27B at 262K tokens? Yes, but not with everything in VRAM. The 2-bit weights, 4-bit 262K cache, and MTP head total about 13.5GB, above a 12GB card's roughly 12.9GB capacity before compute buffers.
  • What speed should a 12GB owner expect at 96K context? Documented RTX 3060 runs land around 9.7 tokens per second with Q4_K_S weights, feed-forward blocks in system RAM, and MTP drafting two tokens. Other users in the same thread reported 6.64 to 8.45 tokens per second.
  • Does MTP fix the memory problem? No. Multi-token prediction extracts more tokens per pass by drafting and verifying, but it needs its own 1.37GB head and does not shrink the main weights or the cache.
  • Is 12GB enough for local AI if I only run short chats? For short windows near 16K tokens, a 2-bit build that fits entirely in VRAM can run in the tens of tokens per second. Quality at extreme quantization is the open question.
  • Should a 12GB owner upgrade to 16GB or 24GB? A bigger card buys room for context, but it does not promise 65 to 70 tokens per second. One unaudited 16GB laptop report with a custom fork and MTP reached about 22 tokens per second beyond 200,000 tokens.
  • Why is the RTX 3060 slower than an RTX 3080 at the same settings? Memory bandwidth. Dense models read every weight for every token, so the 3080's 760GB/s supports a higher ceiling than the 3060's 360GB/s.
  • What are 2-bit and 4-bit weights? Quantization stores each model weight in fewer bits, which shrinks the file. A 27B model at 16-bit needs roughly 54GB of weights, while 2-bit files run about 7.27GB.
  • Can llama.cpp offload experts to the CPU on this model? The expert-offload flag applies only to mixture-of-experts models. Qwen3 27B is dense, so that path is unavailable.
  • Why does KV cache matter more than weight size at long context? At 4-bit the cache stays small, about 4.8GB at 262K, so weights dominate the memory bill. At 16-bit the cache balloons past 17GB and becomes the constraint.

Turning long-form hardware tests into written guides

Hardware videos carry dense arithmetic and measured token rates that written readers often need more than viewers do. A 16-minute test of VRAM limits, quantization files, and bandwidth ceilings can become a reference page people check before buying a card.

That is the gap YouBlog fills: paste the video URL, let it transcribe, then turn the transcription into a structured article.

If you record benchmark walkthroughs, developer commentary, or infrastructure lessons on video, the same content can serve readers who will never press play. Transcription and drafting handle the formatting so you can focus on the claims.

YouBlog is built by the team at Crazystack, and the workflow pairs with tools like Crazystack TypeScript for developers who want the output inside their own stack. Dev doido covers similar ground in Portuguese for readers who prefer that language.

Source video

YouTube thumbnail: Is 12GB of VRAM Enough for Local AI Now?

Source video

Is 12GB of VRAM Enough for Local AI Now?

Create from this video

This article was created automatically from a new video.

Automate my channel

Turn your YouTube videos into articles

Built for creators with a backlog and no editor on staff. This page started as a video. YouBlog drafts from the transcript, you review every word, then publish on a first-party /p/{slug} page. Nothing goes live until you publish it.

Turn your videos into articles

Published with YouBlog