Blog / Guide

RAM vs VRAM vs GPU for Local AI: What You Actually Need

· 5 min read
Download Lekh AI

RAM vs VRAM vs GPU for local AI comes down to one rule: VRAM decides whether a model loads, RAM decides how much room it has to work with, and the GPU decides how fast it responds once it's running. Most buying guides tell you to chase VRAM and stop there, but that only tells half the story. A model can technically fit in memory and still run poorly if the GPU behind it is weak, or it can sit unused on a fast card because there was never enough memory to load it in the first place. Quantization changes all three numbers at once, since the same model can need 140GB at full precision or under 40GB compressed depending on the format you download. Getting this right means knowing which of the three your own setup actually depends on, not defaulting to whichever spec is easiest to compare on a box.

What Is the Difference Between RAM, VRAM, and GPU for Local AI?

Each plays a separate role, and a local AI setup needs all three working together rather than one standing in for the others.

Component

Where it lives

What it actually does

RAM

System memory

Holds the OS and apps; holds the model itself if there's no dedicated GPU

VRAM

On the graphics card

Holds model weights during inference on a discrete GPU setup

GPU

The card itself

Runs the math against whatever is sitting in VRAM

What RAM Does

RAM is your computer's main memory. It holds your operating system, your open apps, and, on a machine without a dedicated graphics card, the AI model itself. On Windows or Linux machines with a discrete GPU, RAM mostly stays out of the picture during inference, though it still buffers the model file as it loads from disk.

What VRAM Does

VRAM is memory built directly onto the graphics card. It is much faster than system RAM, and it is where a model's weights need to sit for inference to run at a normal speed. If a model is larger than the available VRAM, the extra layers spill onto system RAM, and generation speed drops sharply because the GPU has to pull data across a much slower connection for every token. RAM and VRAM look similar on a spec sheet, but they are physically separate pools with very different bandwidth.

What the GPU Itself Does

The GPU is the processor doing the math. Its compute cores read the weights sitting in VRAM and run the calculations that turn a prompt into a response. A powerful GPU with too little VRAM still can't load a large model, and a huge amount of VRAM sitting behind a weak GPU still produces slow output. RAM to VRAM to GPU is really a chain, and the weakest link decides what you experience.

Does Local AI Need More RAM or VRAM?

It depends entirely on whether your setup has a dedicated GPU or not. If you're running a discrete NVIDIA or AMD card, VRAM is the number that matters. The model has to fit inside it, and system RAM plays a supporting role at best. If you're on a machine without a separate graphics card, including most laptops and any Apple Silicon Mac, RAM becomes the whole story, since there's no separate VRAM pool to worry about.

This is where the confusion usually starts. On a traditional PC with a discrete GPU, RAM barely factors into whether a model runs, since the weights live in VRAM. Take that GPU away, like on a laptop or an Apple Silicon Mac, and RAM suddenly becomes the only number that matters, doing the job VRAM would otherwise do. Neither spec is more important in the abstract; it depends entirely on what hardware you're actually running. That's the core question local AI hardware requirements as a whole are built around: figuring out which components your specific setup depends on before worrying about CPU or storage speed, which only matter once memory is sorted.

How Much VRAM Do You Need for Local AI?

VRAM needs scale with two things: how many parameters a model has, and how heavily it's quantized. At full FP16 precision, each parameter takes about 2GB per billion parameters. Quantization compresses that. A common Q4 format brings the requirement down to roughly 0.5 to 0.6GB per billion parameters, which is why quantized models are the default for most local setups rather than the exception.

Model size

FP16 (full precision)

Q4 (quantized)

7B to 8B

14 to 16GB

4 to 5GB

13B to 14B

26 to 28GB

8GB

30B class

60 to 68GB

19 to 21GB

70B

140GB

40 to 45GB

These numbers cover weights only. Add 15 to 20 percent on top for the KV cache and runtime overhead, and more if you're planning to use a long context window, since the cache that stores conversation history grows the longer a session runs.

Is 24GB VRAM Enough for Local AI?

Yes, for most people. 24GB is the widely cited sweet spot because it comfortably fits 20B to 32B class models at Q4 with room for a decent context window. This is also why a used RTX 3090 has held its value so well among local AI users, since its 24GB of VRAM covers the models most people actually want to run day-to-day.

Is 16GB VRAM Enough for Local AI?

For 7B to 14B models at Q4, yes, and comfortably. Where 16GB gets tight is anything in the 20B class and above, since a 30B model at Q4 already needs close to 20GB before you add context, leaving very little headroom.

How Much RAM Do You Need Without a Dedicated GPU?

Without a discrete GPU, the model has to live in system memory instead of a graphics card, so how much RAM you need for local AI follows the same math as the VRAM table above. A 7B model at Q4 still needs roughly 4 to 5GB. It just runs on the CPU instead of a GPU, which is usable for chat, just slower. Push past that toward 30B or 70B class models, and you're no longer just running local AI casually; you're building a local AI server, typically with 64GB of RAM or more, purpose-built for those larger models rather than everyday use. 

Apple Silicon changes this picture in a genuinely useful way. Instead of separate RAM and VRAM pools, the CPU and GPU share one block of unified memory, so a Mac with 24GB effectively has 24GB available to a single model, no separate graphics card required. This is the same reason a 64GB Mac can load a 70B class model that would otherwise demand a multi-GPU rig on a Windows machine, and it's why the best local AI models for Apple Silicon are usually ranked by memory tier rather than by GPU class. The practical rule of thumb: keep a model file under 60 to 70 percent of total unified memory, since macOS and background apps need their own share.

Does GPU Compute Speed Matter as Much as Memory?

Less than most people assume, though it isn't irrelevant either. GPU compute mostly affects the prefill stage, which is how quickly a long prompt gets processed before the model starts responding. Once generation begins, token-by-token output speed is largely memory bandwidth bound rather than compute bound, especially at the single-user, low batch sizes typical of local AI chat.

That's why two cards with similar VRAM can feel noticeably different in daily use even when their raw compute numbers are close, and why a Mac with strong memory bandwidth can hold its own against a GPU with a much higher paper spec. Capacity decides if a model runs at all. Bandwidth and compute decide how pleasant it is to use once it does.

RAM vs VRAM vs GPU at a Glance

Component

What it controls

What happens when it's short

RAM

Model size on CPU-only or unified memory setups

Model won't load, or swaps to disk and stalls

VRAM

Model size on discrete GPU setups

Layers spill to system RAM, speed collapses

GPU compute

Prompt processing speed and overall throughput

Slower responses, longer wait before output starts

How to Choose Between RAM, VRAM, and GPU for Your Setup

Start with what you actually plan to do, not the biggest model you might someday want. Everyday chat and writing help run comfortably on 7B to 8B models, so 16GB of RAM or VRAM covers that use case with room to spare. Coding assistance and document-heavy work benefit from 14B to 32B models, which is where 24GB starts to matter. Image generation adds its own memory demands on top of whatever chat model you're already running, and the local AI models available in a given app usually span a wide range, from lightweight 3B chat picks up to 30B plus reasoning models, so matching hardware to a specific model matters more than eyeballing gigabytes.

The honest shortcut: if you're buying a discrete GPU, buy for VRAM first and treat raw compute as a secondary factor. If you're on a laptop or an Apple Silicon Mac, buy for total RAM, since running AI models locally on that kind of setup collapses what would otherwise be two separate purchase decisions into one number.

Frequently Asked Questions

Does local AI need RAM or VRAM? 

It needs whichever one is doing the job of holding the model. On a PC with a discrete GPU, that's VRAM. On a laptop or Apple Silicon Mac without a separate graphics card, that's RAM, since there's no separate VRAM pool at all.

Is 24GB VRAM enough for a local LLM? 

Yes, for the vast majority of local AI users. 24GB comfortably fits 20B to 32B class models at Q4 quantization with a workable context window, which covers most everyday chat and coding use cases.

Is 16GB VRAM enough for AI? 

Yes, for 7B to 14B models at Q4, which handle chat, writing, and general assistance well. It gets tight once you move into 20B and larger models, where memory headroom for context runs out quickly.

Is 32GB of VRAM overkill? 

Not necessarily. It's more than most 7B to 14B users need, but it's genuinely useful for 30B-class models with longer context windows or slightly higher-precision quantization, so it depends on the model size you're targeting rather than being a flat yes or no.

Does GPU speed matter more than VRAM? 

No. VRAM capacity decides whether a model loads at all, which makes it the harder constraint. GPU compute mainly affects how fast a prompt gets processed before generation starts, and token generation itself leans more on memory bandwidth than raw compute power.

Is unified memory the same as VRAM?

Not exactly. Unified memory is a shared pool that both the CPU and GPU draw from, most commonly on Apple Silicon Macs, while VRAM is memory dedicated solely to a discrete graphics card. 

The Real RAM vs VRAM vs GPU Takeaway

None of these three specs work in isolation. VRAM decides what a discrete GPU can load, RAM takes over that job entirely on unified memory machines, and GPU compute shapes how responsive a model feels once it's already running. The question worth asking isn't which spec is biggest; it's which one your specific setup actually depends on, and sizing that one correctly first.

That's the exact decision Apple Silicon removes. With unified memory, there's no separate VRAM figure to shop for and no spillover penalty when a model gets close to your ceiling, just one number to size against. Lekh AI for Mac and Lekh AI for iPhone run MLX and GGUF models natively on that architecture, covering chat, document search, and image generation entirely on device.

Download Lekh AI and see what your own hardware can run. 3-day free trial, no account required.

Ready to try local AI?

Download Lekh AI and run powerful AI models on your device. 3-day free trial.

Download Lekh AI