How much memory can the GPU use on an Apple Silicon Mac?
Less than all of it: macOS sets a GPU memory (VRAM) limit below the Mac's total unified memory, and that limit changes with the Mac and the macOS version.
Last updated
Why isn't it all of the memory?
An Apple Silicon Mac has one pool of memory that the CPU and GPU share. macOS keeps part of it for itself and your apps, and lets the GPU hold the rest. For a local model, that limit is the number that counts: the model and its context cache have to fit under it to run fully on the GPU.
What do real Macs get?
There is no single percentage. These are the figures we could check:
| Mac | macOS | GPU limit | Where it was measured |
|---|---|---|---|
| M3, 16 GB | Not recorded | 11.84 GB | llmfit pull request 754, read from Metal |
| M5 Pro, 48 GB | 27.2 | 38,338 MB (about 37.4 GB) | IOSpec's own test, read from Metal |
| 64 GB Mac | 15 | 48 GB | llmcheck.net's method page (an index, not its own test) |
| 64 GB Mac | 26 | About 52 GB | The same page |
So the same Mac can get a different limit after a macOS update. Check your own Mac rather than trust a rule of thumb.
How do I read the limit on my Mac?
- Open Terminal and run
sysctl iogpu.wired_limit_mb. A result of 0 means nobody has changed it and macOS uses its default. Any other number is a limit someone set, in megabytes. - To see the default itself, ask Metal, Apple's graphics framework. Its
recommendedMaxWorkingSetSizeis the most memory it suggests the GPU use, and it is what IOSpec reads. With Apple's command line tools installed, this prints it in megabytes:echo 'import Metal; print(MTLCreateSystemDefaultDevice()!.recommendedMaxWorkingSetSize / 1048576)' | swift -
How do people raise it?
With sudo sysctl iogpu.wired_limit_mb= and a number of megabytes below your total memory. The change lasts until you restart. To undo it sooner, run sudo sysctl iogpu.wired_limit_mb=0.
Leave room for macOS and your apps: IOSpec suggests keeping at least 8 GB for them. Set it too high and the rest of the Mac runs short of memory when a big model loads.
IOSpec reads Metal's number and the sysctl every minute and uses the higher of the two, so a raised limit shows without a restart. To see how a model and its context compare with a limit, try the fit check, or download IOSpec to read your own Mac's.