Windows AI · Hardware

How Much VRAM Do You Need for Local AI?

By , Editor · · Windows AI
The short answer

It depends on the model's size and how heavily it's quantized — but as a rough guide, a small 7–8B chat model runs in about 6–8 GB, a mid-size 13B model wants around 10–12 GB, and a 70B model needs roughly 40–48 GB. Those figures are for 4-bit quantization, the format most people run locally. Full-precision versions of the same models need several times more. Memory — whether that's dedicated GPU VRAM, shared system RAM, or unified memory — is almost always the thing that decides which models your PC can run at all.

This guide explains why memory matters so much for local AI, gives ballpark figures by model size, and untangles the difference between VRAM, RAM and unified memory. All the numbers here are approximate and depend heavily on quantization, context length and the specific runtime you use — treat them as sizing guidance, not exact specifications.

The one-line version

To run a local LLM smoothly you need enough fast memory to hold the whole model. Quantization is your biggest lever: a 4-bit model needs roughly half a gigabyte of memory per billion parameters, plus overhead for context. Fit the model in GPU VRAM for speed; spill into system RAM if you must, at the cost of pace.

Why memory is the bottleneck

A large language model is, at its core, a huge grid of numbers called weights. To generate even a single token of text, the computer has to read essentially the entire set of weights out of memory. Do that for every token, hundreds of times per reply, and you see why the job is punishing on memory rather than on raw arithmetic. This is why people who run models locally talk constantly about memory bandwidth — how fast weights can be streamed to the processor — and why fitting a model into the fastest available memory matters more than almost anything else.

There are two separate memory questions. The first is capacity: is there simply enough room to hold the model at all? If a model doesn't fit, it either won't load or it spills onto slower memory and crawls. The second is bandwidth: how quickly can those weights be read? A discrete graphics card wins on both counts for the models it can hold, which is why a GPU with enough VRAM is the gold standard for local inference.

The rough formula: parameters and quantization

Two numbers set a model's memory footprint: how many parameters it has (7B means seven billion, 70B means seventy billion) and the precision each parameter is stored at. Precision is where quantization comes in — the process of squeezing each weight into fewer bits to save space.

  • FP16 / 16-bit stores each parameter in two bytes, so the weights alone take roughly 2 GB per billion parameters. A 7B model is about 14 GB of weights; a 70B model about 140 GB.
  • 8-bit (INT8) roughly halves that to about 1 GB per billion.
  • 4-bit (Q4 and similar) — the most common local format — lands near 0.5 GB per billion parameters for the weights, give or take, depending on the exact quantization scheme.

On top of the weights you need headroom for the KV cache (the running memory of your conversation, which grows with context length) plus general runtime overhead. A common practical allowance is to add roughly 10–20% on top of the weight size, more if you use very long contexts. So a 4-bit 7B model with a few thousand tokens of context tends to want somewhere in the 6–8 GB range in total rather than the bare ~3.5 GB the weights suggest.

These are estimates, not guarantees

Exact memory use varies with the quantization method, the runtime, the context window you set, batch size and whether features like flash attention are enabled. Always leave a comfortable margin, and check the figures your own tool reports when it loads a model rather than trusting any single number to the last gigabyte.

Memory by model size (a rough guide)

The table below gives ballpark total memory for popular model sizes at 4-bit quantization, including weights plus a modest allowance for context and overhead. The FP16 column shows how much the same model needs at full 16-bit precision, to illustrate just how much quantization saves. All figures are approximate and depend on quantization and context length.

Model size ~4-bit (Q4) total ~FP16 (16-bit) weights Typical home
~3–4B ~3–4 GB ~6–8 GB Entry GPU, integrated graphics, or CPU
~7–8B ~6–8 GB ~14–16 GB 8 GB GPU, or 16 GB+ system RAM
~13–14B ~10–12 GB ~26–28 GB 12 GB GPU, or plentiful RAM
~30–34B ~20–24 GB ~60–68 GB 24 GB GPU, or split GPU + RAM
~70B ~40–48 GB ~140 GB Multi-GPU, workstation, or big unified memory

The pattern is clear: model size is the dominant factor, and quantization roughly cuts the requirement in half at each step down from 16-bit. That's why the standard advice for a memory-limited PC is to run the largest model you can fit at 4-bit rather than a smaller model at full precision — the extra parameters usually help more than the extra precision does.

GPU VRAM vs system RAM vs unified memory

Not all memory is equal, and the kind you have shapes what's realistic.

  • GPU VRAM is the dedicated memory soldered onto a discrete graphics card. It's the fastest option by a wide margin and the one runtimes prefer. Its downside is that you get a fixed amount — 8, 12, 16 or 24 GB on typical consumer cards — and you can't add more.
  • System RAM is your PC's main memory, used by the CPU. There's usually far more of it, and it's often upgradeable, but it has much lower bandwidth than discrete VRAM, so running a model here is slower.
  • Unified memory is a single pool shared by CPU, GPU and, on newer machines, the NPU — the arrangement on Apple Silicon Macs and on many Windows laptops with integrated graphics. It lets you dedicate a large chunk to a model without a separate graphics card, but its bandwidth is typically well below that of high-end discrete VRAM, so a big unified-memory figure doesn't automatically mean fast inference.

This is the crucial nuance behind AI laptops: a machine can advertise a large shared memory pool yet still generate text slowly, because capacity and bandwidth are different things. For more on how the processors in these machines divide the work, see our explainer on GPU vs NPU for AI and what an NPU is.

CPU-only and offloading

You don't strictly need a GPU at all. Popular local runtimes — Ollama, llama.cpp and LM Studio — can run a model entirely on the CPU using ordinary system RAM. Ollama makes the split visible: as the Ollama FAQ explains, ollama ps reports "100% GPU" when a model is loaded entirely into the GPU, "100% CPU" when it sits entirely in system memory, and a percentage split when it is spread across both. This is a genuinely useful path for trying models bigger than your GPU could hold: an ordinary desktop with 32 GB of RAM can load a 13B model that would never fit in an 8 GB graphics card. The catch is speed. Because system RAM has far less bandwidth than dedicated VRAM, CPU-only inference is markedly slower, and larger models can drop to a token or two per second — usable for a considered task, frustrating for quick back-and-forth.

The middle ground is offloading, where a runtime keeps as many of the model's layers as fit in VRAM and puts the rest in system RAM. This lets you run a model that's slightly too big for your card at a speed between "all GPU" and "all CPU." It's a practical way to stretch an 8 or 12 GB GPU onto a somewhat larger model, and most tools handle the split automatically once you tell them how much VRAM to use. LM Studio, for one, documents that it will automatically reduce the GPU offload size to fit the weights in dedicated GPU memory and put the rest in system RAM — and reports that this beats falling back on shared GPU memory.

Context length costs memory too

The longer the conversation or document you feed a model, the more memory its KV cache consumes on top of the weights. If you're loading a big model right up to the edge of your memory, a long context can tip it over. Shortening the context window is one of the easiest ways to make a borderline model fit.

Examples by GPU tier

To make the table concrete, here's roughly what different amounts of memory unlock, keeping to 4-bit models. These are general guides, not promises — driver, runtime and context all move the line.

  • 8 GB (entry discrete GPU or capable integrated graphics): comfortable for 7–8B models, the sweet spot for a first local assistant. Larger models need offloading or a drop in quantization.
  • 12 GB: handles 13–14B models nicely and gives 7–8B models generous context headroom.
  • 16 GB: a comfortable all-rounder — larger 13–14B models with long context, or smaller models running fast with room to spare.
  • 24 GB (high-end consumer card): opens up 30–34B-class models and lets you run mid-size models with very long contexts.
  • 48 GB and up (dual cards, workstation GPUs, or large unified memory): the territory where 70B models become practical to hold entirely in fast memory.

How much do you actually need?

For most people getting started, a machine that can run a good 7–8B model well is enough to be genuinely useful for drafting, summarising and coding help — and that means roughly 8 GB of VRAM, or a system with 16 GB or more of RAM if you're going CPU-only — which lines up with LM Studio's own system requirements, which recommend at least 16 GB of RAM and at least 4 GB of dedicated VRAM. Stepping up to 12–16 GB of VRAM is the difference-maker if you want the noticeably sharper 13–14B models. Chasing 70B models locally is a real commitment in hardware and cost, and for many people cloud access to a large model is the more sensible route than buying a workstation.

If you're choosing which model to install rather than which hardware to buy, our guide to the best local LLM for your PC walks through matching a model to your memory, and our overview of running local AI LLMs on Windows covers the tools that make it painless. You can also browse everything we've written on the subject in the Windows AI hub.

Bottom line

Memory decides which models run and how fast. Estimate a 4-bit model at roughly half a gigabyte per billion parameters plus overhead, fit it in GPU VRAM for speed, and lean on system RAM or offloading when you want to reach beyond your card. When in doubt, pick the biggest model that fits comfortably — with a little headroom to spare.

Frequently asked

How much VRAM do I need to run a local LLM?

It depends almost entirely on the model's size and how heavily it is quantized. As a rough rule of thumb in 4-bit quantization, a small 7–8B model fits comfortably in about 6–8 GB, a mid-size 13–14B model wants roughly 10–12 GB, and a large 70B model needs on the order of 40–48 GB once you include the weights, the context cache and some overhead. Higher-precision formats such as FP16 need roughly two to four times as much, so quantization is the single biggest lever you control.

Can I run a local model without a dedicated GPU?

Yes. Runtimes such as Ollama, llama.cpp and LM Studio can run a model entirely on the CPU using ordinary system RAM, and they can also split a model so part sits in GPU VRAM and the rest in RAM. It works and it is a great way to try larger models than your GPU alone could hold, but it is much slower, because system memory has far less bandwidth than a discrete GPU's dedicated VRAM and token generation is bound by memory bandwidth.

Does quantization hurt the quality of a model?

Quantization lowers the numerical precision of a model's weights to shrink its memory footprint, and there is some quality trade-off, but for the popular 4-bit and larger formats it is usually modest and hard to notice in everyday use. Very aggressive low-bit quantization degrades output more visibly. The common advice is to pick the largest model that fits at a 4-bit-or-better quantization rather than a smaller model at full precision, because more parameters generally help more than extra precision does.

What is the difference between VRAM and unified memory for AI?

On a traditional PC, a discrete GPU has its own dedicated VRAM that is separate and much faster than the system RAM the CPU uses. Unified memory, as on Apple Silicon and on many laptops with integrated graphics or an NPU, is a single pool of RAM shared by the CPU, GPU and other blocks. Unified memory lets you devote a large slice to a model without a separate graphics card, but it typically has lower bandwidth than high-end discrete VRAM, so capacity and speed do not always go together.

Is more system RAM or more GPU VRAM better for local AI?

For fast inference, GPU VRAM matters most, because keeping the whole model in fast graphics memory avoids the slow path through system RAM. But system RAM still matters: it lets you load and offload larger models than your VRAM can hold, and it keeps the rest of Windows responsive while a model runs. A balanced machine has enough VRAM to hold the models you use most and enough RAM to comfortably handle overflow and everything else you have open.

More Windows help

Browse all how-to guides for more practical, jargon-free Windows walkthroughs, or dig into the windows-now.com archive of restored community posts. You might also like our companion explainers on GPU vs NPU for AI and the best local LLM for your PC.