Unified memory vs VRAM: who shares the pool with your model

By Christophe Paka · Facts checked on 7 November 2026

You are pricing a machine for local AI. One option is a graphics card with 24 GB. The other is a Mac with 64 GB. Readers put it plainly: "Unified ram or vram for llm?" The answer to unified memory vs VRAM is not the bigger number on the box.

Get it wrong and a model that should fit leaves no room to work, or crashes in the middle of a long chat. The figure below shows who else lives in each pool, so you can count what the model really gets.

Two memory pools side by side: a graphics card's 24 GB of VRAM holds only model weights, context memory and activation memory; a Mac's 64 GB of unified memory holds the same three plus the operating system and background apps.
Figure 7.2 A graphics card's VRAM serves only the model; a Mac's unified memory is shared, so less of it is free than the spec sheet says.
Use this diagram on your site

Free to share in your blog post, docs, course or slides, as long as the credit link stays. Paste the code below where the figure should go.

How to read this figure

  1. Start with the graphics card. On the left is a graphics card: a computer part with its own processor and memory, built for fast math. Its memory is VRAM. A model must fit in VRAM to run fast on the card.

  2. Read what fills the card. Three things use the card's memory: the model weights, the context memory that holds your conversation, and activation memory, the working space for the math. The figure gives context memory its technical name, the KV cache. Nothing else competes for the card. A 24 GB card gives a model nearly all 24 GB; only the screen, if the card drives it, takes a little.

  3. Cross to the Mac. On the right is an Apple Silicon Mac. Its unified memory is one pool shared by the processor, the graphics and every app you run. The same three model parts sit at the top of the pool.

  4. Count the two boxes below. Under the model sit the operating system and your background apps. They take their share first. So a 64 GB Mac does not give a model 64 GB. Apple publishes no fixed share, and the book found no rule of thumb, so measure yours with the steps below. Then check the memory sizing table.

Key takeaways

  • Count the system and your open apps against a Mac's memory before you size a model.
  • Measure free memory with the model loaded, not from the spec sheet.
  • Pick a graphics card for speed on models that fit, and a Mac for large models in one box.

Try this: measure what is really free

No terminal needed on a Mac or Windows. Use Activity Monitor on a Mac, or Task Manager on Windows. On an Nvidia machine, run nvidia-smi, Nvidia's tool that reports the card's memory, in a terminal instead.

  1. Close the apps you will not use beside the model.
  2. Read the memory in use in Activity Monitor, Task Manager or nvidia-smi.
  3. Load the model and give it one long question, for example with ollama run llama3.1.
  4. Read the memory in use again. The difference is what the model really takes.
  5. Write down the free memory with the model loaded.

Expected result: One number: the memory that is free as measured, not the number on the box. If it is close to zero, pick a smaller level, a smaller model or a shorter context before long chats.

Questions readers ask

Unified ram or vram for llm?

It depends on the models you need. A 24 GB card runs Llama 3.1 8B even at its full context, but not a 70B on the card alone. A 64 GB Mac runs Llama 3.3 70B at 4 bits. Pick a card for speed on models that fit, since cards answer fast, and a Mac for large models in one box. The book found no source that times one against the other.

Can a 64 GB Mac run Llama 3.3 70B?

Yes. Its 4 bit file is 43 GB, which leaves about 21 GB. A context of 16,000 tokens takes 4.88 GB of that, and about 16 GB stays free for macOS and the apps. At the full 128K context it no longer fits.

What if my model is bigger than my VRAM?

You can offload: keep part of the model in system RAM instead of VRAM. llama.cpp supports this split. The model then fits, but it answers more slowly. Try a smaller level or a smaller model first if either does your job.

Sources: Apple: new Mac Studio; Nvidia System Management Interface; llama.cpp repository.

This figure is from Llama Made Crystal Clear, chapter 7.

The chapter builds the idea step by step, with recipes you can follow, a Try it to check yourself, and every source.

Get the book

All diagrams