The plain version
Unified memory is one pool of RAM that the CPU and GPU share. VRAM is memory on a discrete graphics card, reserved for that card's GPU. Apple silicon Macs, AMD's Ryzen AI Max+ 395 (Strix Halo) and NVIDIA's DGX Spark use unified memory. A used RTX 3090 carries its own 24 GB of GDDR6X (verified: NVIDIA RTX 3090 page, 2026-11-29).
Think of a large shared pitcher and a small private cup. The pitcher holds far more, but it pours slowly and two people draw from it. The cup holds little and refills fast.
Two things surprise buyers. First, the GPU never gets the whole pool: the operating system and CPU keep a share, and each platform sets its own cap. Second, more gigabytes do not add speed.
Decode, the step that writes each new token, reads the model's active weights from memory once per token. Its speed follows memory bandwidth, the rate memory delivers data in GB/s. Issue 001 drew the 24 GB line; unified memory is one way across it.
The rule of thumb. Capacity decides what fits; bandwidth decides how fast it runs. Plan on about three quarters of a unified pool for the model (estimate: Local Bench methodology, 2026-11-19).
Take gpt-oss-120b at MXFP4, a 4-bit format, with 8k tokens of context. Its 64.3 GB (estimate: datasheet, 2026-11-19) covers weights, the KV cache (memory that holds the conversation so far) and runtime overhead.
On a Ryzen AI Max+ 395 128 GB mini PC, 128 × 0.75 = 96 GB is usable, with a fit line of 86.4 GB (estimate: methodology, 2026-11-29). The model fits.
On a used RTX 3090, usable VRAM is 23.5 GB (estimate: methodology, 2026-11-29). The rest spills to system RAM, called offloading, and decode runs at about 17.3 tok/s (estimate: RTX 3090 datasheet, 2026-11-19).
Room for disagreement
The three-quarters default is a Local Bench assumption, and no vendor publishes it. One 64 GB M4 Max reported a Metal working-set cap of 55,662.79 MB, about 85% (sourced: llama.cpp discussion #16578, user spamshaker, 2025-11-16). Your Mac may sit higher or lower.
Stock Linux shrinks the pool further. On Strix Halo, the GTT limit (the RAM the GPU may map) defaults to about 50% of system RAM (verified: ROCm 7.2.0 docs, 2026-02-20). That is about 64 GB on 128 GB (estimate: derived from the ROCm 7.2.0 docs, 2026-11-29), so gpt-oss-120b does not fit until you raise it.
Dense models expose the bandwidth gap. Llama 3.3 70B, a dense model that reads every weight per token, decodes at about 2.5 tok/s on Strix Halo (estimate: datasheet, 2026-11-19). gpt-oss-120b is quicker because it is a mixture-of-experts model that reads only a few experts per token.
Prefill, the step that reads your prompt before the first token, is limited by compute. Long documents feel slower on these machines even when decode is fine. DGX Spark lists up to 1 PFLOP FP4 (verified: NVIDIA, 2026-11-17), a theoretical figure with sparsity; Local Bench prefill figures for these machines are not yet measured.
Other routes exist. Two used RTX 3090s add capacity, though one stream still passes through each card in turn (see the memory bandwidth explainer). A MacBook Pro M4 Max 128 GB lists 546 GB/s (verified: Apple Support specs, 2026-11-29) if the pool must travel.
What we do not know yet. Apple does not document the default GPU share of unified memory. NVIDIA documents no GPU-usable cap for DGX Spark. The η efficiency values are uncalibrated estimates, and The Local Bench has no owned-hardware measurements yet. The DGX Spark price has not been re-verified since 2026-10-12, and the RTX 3090 bandwidth comes from Wikipedia because NVIDIA's page lists no GB/s figure.
How much the GPU can actually use
PlatformDefault GPU shareHow to change itSourcemacOS (Apple silicon) Metal working-set cap, undocumented by Apple; llama.cpp prints it as recommendedMaxWorkingSetSizesudo sysctl iogpu.wired_limit_mb=<MB>, kept below total memoryverified: MLX set_wired_limit docs, 2026-11-29 Strix Halo, Windows Variable Graphics Memory up to 96 GB of 128 GB, subtracted from CPU RAM AMD Software: Adrenalin Edition verified: AMD VGM blog, 2025-07-29 Strix Halo, Linux GTT about 50% of RAM Raise TTM pages_limit; keep BIOS VRAM at 0.5 GBverified: ROCm 7.2.0 docs, 2026-02-20 DGX Spark 128 GB coherent unified; 2 GB display reserve by default (0.5 to 4 GB configurable); no documented GPU cap UEFI display setting; cudaMemGetInfomay under-reportverified: NVIDIA porting guide, 2026-11-16 With
raised=1, the configurator assumes 0.90 of the pool: 115.2 GB on 128 GB, fit line 103.7 GB (estimate: methodology, 2026-11-29).The formula
From the Local Bench methodology (estimate, 2026-11-19):
M = W + KV + O U = VRAM − 0.5 (discrete GPU) U = RAM × 0.75 (unified; 0.90 with raised=1) fit when M ≤ 0.9 × U tps ≈ η × BW / (W × active/total + KV) η = 0.60 discrete GPU, 0.45 unifiedW is the weight file in GB, KV the cache, O runtime overhead, M total memory and U usable memory. BW is bandwidth in GB/s. Read every speed result as an estimate with an uncalibrated band of plus or minus 25%, a Local Bench explainer convention.
gpt-oss-120b has a 63.39 GB MXFP4 file (verified: datasheet, 2026-11-19), with 116.83 B total parameters (verified) and 5.1 B active (sourced, same datasheet and date). Active bytes per token are 63.39 × 5.1 / 116.83 ≈ 2.77 GB (estimate: derived, 2026-11-29).
On Strix Halo, 256 / 2.77 gives a ceiling of about 92 tok/s before η (estimate: derived, 2026-11-29). The 37.5 tok/s datasheet figure applies η and adds KV reads.
Decode follows bandwidth because each token reads the active weights and the KV cache once. Memory moves a fixed number of bytes per second, so tokens per second is bandwidth divided by bytes per token.
Community llama-bench runs give a cross-check. User eugr reported 60.57 tok/s tg32 at depth 0 on DGX Spark (sourced: llama.cpp #16578, 2025-11-02; CUDA, build 6922, Fedora 43). The same user reported 47.49 tok/s on a GMKtec Evo X2 Strix Halo (sourced: same thread, 2025-10-22; HIP/ROCm, build 6816). At a 32,768-token depth, those runs fell to 40.55 and 35.39 tok/s (sourced: same thread and dates). They are one user's builds, so use them to sanity-check the estimates, not to rank.
Runtime flags
Flag names below are from llama.cpp current master (verified: server README and build.md, 2026-11-29).
llama-server -m model.gguf -ngl auto -fa on --load-mode auto GGML_CUDA_ENABLE_UNIFIED_MEMORY=1 llama-server -m model.gguf-nglsets how many layers go to the GPU; the default isauto.-faturns flash attentionon,offorauto.--load-modechooses mmap, mlock and related loading behaviour in current master.GGML_CUDA_ENABLE_UNIFIED_MEMORY=1on Linux CUDA lets a discrete GPU spill to system RAM instead of crashing. On HIP, the same variable shares memory with integrated GPUs and hurts performance on discrete GPUs.- The configurator's
raised=1switches the unified share from 0.75 to 0.90.
Pitfalls
- Out-of-memory errors arrive below the headline capacity, because each platform caps the GPU share.
- Stock Linux on Strix Halo stops near 64 GB until you raise the GTT limit.
- With
GGML_CUDA_ENABLE_UNIFIED_MEMORY=1, an oversized model on a discrete card runs at system-RAM speed rather than failing. - The KV cache grows with context and can push a fitting model over the line; see KV cache.
- On DGX Spark, buffer cache counts as used memory; NVIDIA gives
drop_cachesas a debugging workaround only. - The MLX docs do not say whether a raised wired limit persists, so check the value after a restart.