LLM VRAM
Apple Silicon unified memory · measured per build · totals at 32K · Q4-first picks

LLMs on a Mac — what runs at every memory tier

Every Apple Silicon Mac runs something local — the unified-memory tier decides how much. This page measures each tier's ceiling across every build we track (file sizes at pinned revisions, context overhead counted, floor-caliber rows marked), and picks the comfortable Q4 sweet spot for each.

The short answer, at the default GPU working set: 16 GB runs 4B-class models at Q4 with room · 24 GB runs the 30B-A3B MoE · 48 GB runs 30B-class at Q8 · 128 GB runs the whole tracked 27B-class ladder · 512 GB runs every tracked model except Kimi K3 — linear-state models at floor caliber (weights + overhead, KV unsized). Raise the wired limit and 64 GB reaches 27B at BF16 and 512 GB reaches Kimi K3 at 1-bit, with every tier's ceiling one step higher (see the ladder).

Data verified · sources pinned in Sources

Recent updates

2026-11-17 — Runtime routes section added below: oMLX, Slotstream, Ollama + MLX, and the experimental MLXse route for K3.1 Pro. The Qwen3.8-Flash-Next and Kimi K3.1 Pro pages now link their streaming routes back to this hub.

The unified-memory ladder

One row per memory tier, with two usable figures: default — what macOS hands the GPU out of the box (about 75% of installed RAM) — and max, the sysctl-raised wired limit. The pick column is the comfortable Q4-first build — Q4 where it fits comfortably, the nearest quality class where it doesn't (site-wide tight threshold: under 2.5 GiB spare at 32K = tight); a pick that only fits after raising the limit is labelled. The ceiling column is the largest tracked build that fits at the default, with the raised-limit ceiling noted where it is a step higher — a display fact, not a recommendation.

Default = the GPU working set macOS allows without tuning (≈75% of installed RAM, capped by the tier's reserve value: 16–64 GB tiers reserve 5 GiB, so 24 GB → 18 GiB and not 19). Max = the sysctl-raised wired limit (128/512 GB: 120/480 GiB; 16–64 GB: label − 5 GiB). Spare and the fits/tight badge are quoted against default; the ceiling's raised-limit value is in parentheses. Totals at 32K context. floor caliber rows compare usable to file sizes without the KV bound — their ceilings may drop a step when KV is counted.
Mac memoryTypical chipsThe Q4-first pickTight-max ceiling
16 GB
default 11 · max 11 GiB
MacBook Air / Mac mini / iMac base Qwen3-4B Q4_K_M · 7.3 GiB (spare 3.7 at max · +3.7 at default) Qwen3-Coder-30B UD-TQ1_0 · 10.9 GiB — spare 0.1 tight
24 GB
default 18 · max 19 GiB
Mac mini / MacBook Pro mid tiers Qwen3-30B-A3B UD-Q3_K_XL · 16.4 GiB (spare 2.6 at max · +1.6 at default) tight at default Qwen3.8-27B UD-Q4_K_M · 18.0 GiB — spare 0.0 tight · at 18→19 GiB: Mistral-Small-3.1 UD-Q4_K_XL 19.0
32 GB
default 24 · max 27 GiB
Mac mini / MacBook Pro top tiers Qwen3.8-27B NVFP4 (Ollama MLX) · 24.4 GiB (spare 2.6 at max · -0.4 at default) needs sysctl (+0.4) Qwen3.8-27B Q6_K_S · 23.9 GiB — spare 0.1 tight · at 24→27 GiB: Flint Q4_K_L 26.9
48 GB
default 36 · max 43 GiB
MacBook Pro / Mac Studio Pro-class Qwen3-Coder-30B-A3B UD-Q8_K_XL · 37.0 GiB (spare 6.0 at max · -1.0 at default) needs sysctl (+1.0) Flint Q6_K_L · 35.9 GiB — spare 0.1 tight · at 36→43 GiB: Recursive Flint Q8_0 40.9
64 GB
default 48 · max 59 GiB
MacBook Pro / Mac Studio Max-class Qwen3.5-27B BF16 · 52.8 GiB (spare 6.2 at max · -4.8 at default) needs sysctl (+4.8) Nemotron 3.5 Bolt 74B UD-Q4_K_XL · 47.7 GiB — spare 0.3 tight · at 48→59 GiB: Gemma-4-31B BF16 (Unsloth) 58.7
128 GB
default 96 · max 120 GiB
MacBook Pro Max / Mac Studio Llama 4 Scout Q4_K_M · 61.4 GiB (spare 58.6 at max · +34.6 at default) floor caliber GLM-5.3-Flash UD-IQ2_XXS · 95.3 GiB — spare 0.7 floor caliber · at 96→120 GiB: Llama 4 Scout Q8 119.9
512 GB
default 384 · max 480 GiB
Mac Studio M3 Ultra GLM-5.3-Flash UD-Q4_K_XL · 186.5 GiB (at the sysctl-raised 480 GiB every tracked model fits, K3 only at 1-bit; at the default 384 GiB everything but Kimi K3 fits) floor caliber GLM-5.3-Flash Q8_0 · 318.1 GiB — spare 65.9 floor caliber · at 384→480 GiB: Kimi K3 1-bit 475.5
2 GiB 5 GiB 10 GiB 20 GiB 50 GiB 100 GiB 200 GiB 500 GiB 16 GB 11 / 11 GiB Qwen3-4B Q4_K_M · 7.3 fits ≤ Coder-30B TQ1_0 · 10.9 24 GB 18 / 19 GiB 30B-A3B UD-Q3 · 16.4 fits ≤ Qwen3.8 Q4_K_M · 18.0 (max 24B UD-Q4_XL · 19.0) 32 GB 24 / 27 GiB Qwen3.8 NVFP4 MLX · 24.4 fits ≤ Qwen3.8 Q6_K_S · 23.9 (max Flint Q4_L · 26.9) 48 GB 36 / 43 GiB Coder-30B UD-Q8 · 37.0 fits ≤ Flint Q6_L · 35.9 (max Flint Q8_0 · 40.9) 64 GB 48 / 59 GiB Qwen3.5 BF16 · 52.8 fits ≤ Bolt-74B UD-Q4_XL · 47.7 (max 31B BF16(Unsloth) · 58.7) 128 GB 96 / 120 GiB Scout Q4_K_M · 61.4 fits ≤ GLM UD-IQ2 · 95.3 (max Scout Q8 · 119.9) 512 GB 384 / 480 GiB GLM UD-Q4_K_XL · 186.5 fits ≤ GLM Q8_0 · 318.1 (max K3 1-bit · 475.5)
The same seven tiers on one log scale of build size — a filled blue dot is the default GPU working set, a hollow blue circle the sysctl-raised ceiling, the green dot the Q4-first pick, and the amber/green ceiling dot the largest build that fits at the default (amber = tight or floor-caliber). Generated from the same derivation as the table above (one calculation, two renderings).

Which Mac has which memory

Find your machine in the chip column, read its tier's row above. The ladder is generation-independent: a memory tier fits the same builds whether the chip is M1 or M5 — the generation changes speed, not what fits.

Current Apple lineup (August 2026: Mac mini moved to M6 / M5 Pro; MacBook Air 13-inch M5; MacBook Pro 14-inch M5 / M5 Pro; Mac Studio M5 Max / M5 Ultra). Config availability changes with every generation — this table is the machine-word entry point, and the tier column is what actually decides fit.
Memory tierMachines offered at this tier
16 GBMacBook Air (M4/M5 base) · Mac mini base · iMac · MacBook Pro base
24 GBMacBook Air / Mac mini / MacBook Pro mid configs
32 GBMac mini / MacBook Air / MacBook Pro top configs (mini standard-cap on M6 generation)
48 GBMacBook Pro Pro-class · Mac Studio M5 Max
64 GBMacBook Pro Max · Mac Studio M5 Max · Mac mini Pro (prior gen)
128 GBMacBook Pro M4/M5 Max · Mac Studio M5 Max · M4 Max prior gens
512 GBMac Studio M5 Ultra (96 GB / 256 GB configs sit between the 128 GB and 512 GB rows)

Running it: apps, and the two traps

The apps. Ollama is the one-command default (brew install ollama, then ollama run) and ships Metal acceleration for Apple Silicon. LM Studio wraps the same GGUF builds in a GUI with per-build download sizes shown before you commit — the fastest way to see this page's numbers reflected in an app. llama.cpp is the floor: the same engine under both, buildable from source, and the tool whose --n-cpu-ffn for dense FFN tensors and --n-cpu-moe only for MoE expert tensors — a dense model gets no MoE offload flag (see the llama.cpp parameter reference). All three read the same GGUF files this page measures.

Trap one: context eats your tier. The KV cache grows with context out of the same unified pool as the weights — at 32K it adds 1–6 GiB on typical tracked models. A build that fits at 8K can swap at 32K. Every ceiling above is quoted at 32K for exactly this reason; shorter context raises every row a step.

Trap two: swap is a soft cliff, not a wall. macOS will happily load a build bigger than your tier by swapping to the SSD — it runs, crawling, and sustained use wears the drive. Unlike a phone (where an oversized model simply refuses to load), a Mac always says yes and then gets slowly worse. Treat the ceiling column as the no-swap line.

Runtime routes: batching, tiering, streaming

The apps above run builds that fit. Four runtime routes push past that line — everything in this section is reported by the projects themselves or measured from their pinned listings, accessed 2026-11-17, and linked below.

oMLX — batching plus KV-cache tiering

oMLX (23,682 GitHub stars, snapshot 2026-11-17) adds continuous batching and a two-tier KV cache: hot blocks in memory, cold blocks spilled to SSD and restored on a matching prefix — block-based, vLLM-inspired (reported). The tiering moves cache, not weights: model weights stay pinned in memory, so the weights side of every ladder verdict above still gates a build, while the KV share of our 32K ceilings is the part oMLX can offload — its effective reach can exceed the numbers here (reported). OpenAI- and Anthropic-compatible endpoints serve coding agents, managed from a native Swift menu-bar app. Built for one Mac running agents all day, not for serving many users. Getting started is one Homebrew tap and a service start (a native-kernel build variant exists but needs full Xcode; the Releases page ships a .dmg menu-bar app):

brew tap jundot/omlx https://github.com/jundot/omlx
brew install jundot/omlx/omlx
omlx start

Slotstream — streaming experts from SSD

Slotstream keeps one model — Qwen3.8-Flash-Next 4-bit — on SSD and streams expert tensors in on demand: 88.3 GB download, 105.3 GB restored, built for 16–64 GB Macs where the model cannot fit in memory (reported). The repo's own numbers: 20.91–23.69 tok/s on a 48 GB M5 Pro at a 33 GB memory budget (development tests, 2026-10-05, reported; the Show HN thread title carried an earlier ~12 tok/s figure). One maintained model, one generation at a time, about 110 GB of SSD required. Three commands, in the usual curl-pipe-to-sh style — install, then a hardware check, then the first reply (if the CLI isn't found afterwards, open a new Terminal window; first use confirms the download size and destination):

curl -fsSL https://raw.githubusercontent.com/carloslfu/slotstream/main/install.sh | sh
slotstream doctor
slotstream run --prompt "Why is the sky blue?"

Don't look for a model picker — there isn't one, or at most a reserved placeholder — and that is by design, not an omission: the project maintains exactly this one model and refuses arbitrary imports (reported). The parameters are what make the streaming tolerable here: each word touches only 10 of each layer's 512 experts, so a token reads a sliver of the 105 GB store rather than the file (reported; the parameter facts are pinned on our Qwen3.8-Flash-Next page, linked above). This is weight streaming, so the ladder's full-residency verdict for this model is exactly what the route rewrites. Same oversize-MoE story from the fit side: Strata runs the same model in 12 GB plus RAM, and our Qwen3.8-Flash-Next page tracks its builds.

Ollama + MLX — the default route, faster

From v0.40.0 (released 2026-09-25, reported), Ollama automatically runs supported model architectures on its MLX runtime on Apple Silicon. Same one-command workflow as above — the difference is invisible until you check whether your model's architecture is MLX-routed. The commands do not change — the install-and-run pair in the section above is all it needs.

MLXse — K3.1 Pro with streamed experts, experimental

MLXse runs Kimi K3.1 Pro on a 512 GB Mac by keeping non-expert weights resident and streaming the expert store from SSD. The repacked weights we measured list 106.9 GiB resident non-expert weights and 1,347.2 GiB of experts (measured from the pinned model listing, 2026-11-17) — not the "~220 GB resident" figure that circulates in third-party posts — and the packing is a 0.003% delta on the original we pinned (1,561,293,160,568 bytes across 96 shards). The runtime itself (Inferencer) is closed, and there is no public install path — the repository ships weights and documentation only. The only tok/s figure in the repo or model card is the card's own ~0.37 tokens/s at 10,000 tokens on the M3 Ultra 512GB — publisher-reported with no method given (accessed 2026-11-17) — treat the route as a research demo, not a purchase argument. The same parameter arithmetic explains both the ambition and the number: only about 104B of this model's 2.8T total parameters are active on any given token, so roughly 96% of the file sits dormant per step — that is the only reason streaming 1.3 TiB of experts from SSD is even thinkable, and the card's 0.37 tok/s is what the I/O tax still costs (reported). The measured weights and the full-residency verdict live on our K3.1 Pro page; streaming rewrites the residency side, not the weights math.

How the numbers are made

Unified memory ≈ VRAM for fit math. The GPU reads weights and KV cache from the same pool, so the same per-build totals decide what fits — a build's 32K total is identical whether the pool is a graphics card or a Mac (the 24 GB tier row above is one such build). Two Mac-specific corrections: the GPU working set (macOS grants ≈75% of RAM by default; raising the wired limit lifts it to this page's max values), and bandwidth — a fit verdict means it runs, not that it runs at desktop-GPU speed.

Totals are measured, not estimated. Every build size is the sum of the actual build's files at a pinned repository revision — GGUF shards for the GGUF builds, the vendor/MLX checkpoint where that is the Mac runtime path (the NVFP4 pick runs via Ollama's MLX backend on Apple silicon; there is no validated GGUF-NVFP4 load path on Metal) — measured where we read the file listing, reported with a link where the community did, plus the context overhead at 32K. Same builds, same thresholds as every model page on this site — the tight line is 2.5 GiB of spare memory, site-wide.

Sources

Every build the ladder references, one row each — totals at 32K context: measured file + runtime reserve + KV, except floor-caliber rows, which are file + reserve only (KV unsized, flagged on the row). Where the linked model page lists the same build, its file size is the weights part and the difference is the KV + reserve add-on; the coder UD-TQ1_0 / UD-Q8_K_XL picks and the Qwen3.8 NVFP4 build are tracked only on this page — their pinned source links are the reference. Every file at a pinned revision, clickable.
Model pageBuildTotal @32KPinned source
qwen3-4bQ4_K_M7.3 GiBHF @2f3b082b accessed 2026-09-14
qwen3-coder-30b-a3bUD_TQ1_010.9 GiBHF @b17cb02d accessed 2026-09-14
qwen3-30b-a3bUD_Q3_K_XL16.4 GiBHF @d5b1d57b accessed 2026-08-31
qwen38-27bUD_Q4_K_M18.0 GiBHF @4ca72078 accessed 2026-08-31
mistral-small-3-1UD_Q4_K_XL19.0 GiBHF @d63ca941 accessed 2026-09-21
qwen38-27bQ6_K_S23.9 GiBHF @0c92138c accessed 2026-09-21
qwen38-27bNVFP424.4 GiBHF @f0b7c9e7 accessed 2026-09-21
flintQ4_K_L26.9 GiBHF @a04b26fb accessed 2026-10-27
flintQ6_K_L35.9 GiBHF @a04b26fb accessed 2026-10-27
qwen3-coder-30b-a3bUD_Q8_K_XL37.0 GiBHF @b17cb02d accessed 2026-09-14
flintQ8_040.9 GiBHF @468307a1 accessed 2026-10-27
nemotron-3-5-bolt-74bUD_Q4_K_XL47.7 GiBHF @34841e36 accessed 2026-10-20
qwen35-27bBF16 (unsloth)52.8 GiBHF @3221f178 accessed 2026-08-31
gemma-4-31bBF16 (unsloth)58.7 GiBHF @c1ac76e9 accessed 2026-08-31
llama-4-scoutQ4-K-M61.4 GiB floor caliberHF @72a6853f accessed 2026-09-14
glm-53-flashUD-IQ2-XXS95.3 GiB floor caliberHF @621d456e accessed 2026-09-21
llama-4-scoutUD-Q8-K-XL119.9 GiB floor caliberHF @72a6853f accessed 2026-09-14
glm-53-flashUD-Q4-K-XL186.5 GiB floor caliberHF @621d456e accessed 2026-09-21
glm-53-flashQ8-0318.1 GiB floor caliberHF @621d456e accessed 2026-09-21
kimi-k3UD-TQ1-0475.5 GiBHF @a0836360 accessed 2026-09-01
What each badge means on this page: measured = we read the file listing at a pinned revision · reported = community number, linked · provisional = simple addition or a caliber pending unification (floor-caliber rows).
Claim on this pageSource
Per-build GGUF file sizes (all tiers' picks and ceilings)unsloth / bartowski / ggml-org GGUF repos (revision-pinned per build)
macOS reserve practice (16–64 GB tiers usable = total − 5 GiB)jola.dev — a 24GB M4 running a 9B Q4 alongside everyday apps (May 2026) · dev.to — 2026 macOS comparison with a per-config model table
128 GB → 120 usable · 512 GB → 480 usableSite convention established on the cliff-exit pages, cross-checked 2026-10-11 against community sysctl practice and Apple's Metal documentation: QuelLLM — Mac Studio 512 Go setup (iogpu.wired_limit_mb=491520 = 480 GiB) · pinggy — the 512GB default wired ceiling (~75%) and raising it · AIMultiple — Apple Silicon GPU default ≈75% of RAM, raisable leaving 8–16 GB · Apple Metal docs — recommendedMaxWorkingSetSize(the official GPU working-set ceiling these sysctls tune)
Chip lineup and config availability (August 2026)Apple Newsroom — Mac mini M6/M5 Pro · Apple Newsroom — Mac Studio M5 Max/M5 Ultra (to 512GB) · official spec pages: Mac Studio / MacBook Pro / Mac mini / MacBook Air

FAQ

How much unified memory do I need to run a 70B LLM?

Around 40 GiB of unified memory at 4-bit (Q4_K_M-class) for the weights alone, plus context overhead — a 64 GB Mac runs a 70B-class model comfortably at Q4 even at the default working set; a 48 GB Mac fits it only after raising the wired limit (default 36 GiB, max 43 GiB). macOS also needs roughly 4–6 GB you cannot give to the model, which every tier on this page already accounts for.

Is unified memory the same as VRAM for running LLMs?

Functionally yes for fit math: the GPU reads weights and KV cache from the same unified pool a dedicated card would use as VRAM, so the same per-build totals decide what fits. The differences are practical, not mathematical: macOS keeps a 4–6 GB reserve out of the pool, and memory bandwidth is lower than a desktop GPU's, so a fit verdict means it runs, not that it runs fast.

How much of macOS unified memory is actually usable for an LLM?

Two numbers decide it, and they differ. Out of the box macOS gives the GPU about 75% of installed RAM — on a 24 GB Mac that is ≈18 GiB, on a 512 GB Mac ≈384 GiB. Raising iogpu.wired_limit_mb (or iogpu.wired_limit_gib) lifts that to this page's max values (120 GiB on 128 GB, 480 GiB on 512 GB; on the 16–64 GB tiers the site's 5 GiB reserve is the tighter constraint either way). This page quotes spare against the default and shows the raised-limit ceiling next to it, so you can see what a stock machine does before you touch sysctl.

Why does context length matter more on a Mac than the spec sheet suggests?

Because the KV cache grows with context and comes out of the same unified pool as the weights. At 32K context the KV cache adds 1–6 GiB on typical tracked models — often the difference between a fit and a swap. Every ceiling on this page is quoted at 32K so the numbers already include that cost.

What happens if the model is bigger than unified memory?

macOS does not refuse — it swaps to the SSD, so the model still loads and answers, but token generation slows to a crawl and sustained use wears the SSD. Treat the ceilings on this page as the no-swap line: a build above its tier's ceiling is a demonstration, not a daily driver.

Are these ceilings the absolute limit?

No — the ceilings are the no-drama line, not the theoretical limit. Community practice pushes past them with RAM offload, speculative decoding (especially for MoE models), 1–2-bit frontier quants, and custom runtimes — trades that cost tokens per second, sometimes heavily (a 24 GB card plus 96 GB of system RAM has a reported community path running a 1-bit frontier model; this site's Bonsai-27B page tracks a true 1-bit 27B that fits in 6.2 GiB). We know those paths exist; the ladder still quotes the comfortable line, because that is the answer for anyone who just wants the model to run.

I did the math myself and the numbers don't add up — is something wrong?

Probably not — every size on this page is the full 32K-context load, not just the weights. Take the 48 GB pick: Qwen3-Coder-30B-A3B UD-Q8_K_XL is 33.5 GiB of weights (the exact size of the pinned Hugging Face build) + 3.0 GiB of KV cache at 32K + ~0.5 GiB of runtime overhead = 37.0 GiB total. The model's own page quotes the smaller Q8_0 build (33.7 GiB all-in) — both are real; they're different files from the same repo. Every figure links back to a pinned source, so you can recompute it the same way.