Which LLMs Fit in 128 GB of Unified Memory?
By TechCompare · Updated · How we check
68 of the 108 models in the calculator fit in the 120 GB it gives these machines for models, at Q4_K_M with 8K context. Mistral Medium 3.5 128B ranks first at 89.2 GB. The 120B mixture of experts models fit with room, even at 32K.
128 GB is where three kinds of machine meet: a Mac with an M5 Max, Nvidia's DGX Spark and PCs built on AMD's Ryzen AI Max+ 395. Each one shares a single pool of memory between the CPU and GPU, so the system needs some of it too. This page checks every model in the LLM VRAM Calculator against 120 GB, at Q4_K_M and Q8_0 with 8K and 32K tokens of context.
The calculator gives the M5 Max Mac and the DGX Spark 120 GB each and keeps 8 GB for the system. On a Mac that's a planning estimate, not a limit Apple sets. Each total counts the weights, the KV cache and a 10% allowance for the runtime.
Models that fit in 128 GB of unified memory
Best pick first, by size and release date. Each cell is the total memory the model needs. Tight means under 10% of the memory is left. Pick a number to open it in the calculator.
Just too big at Q4_K_M with 8K context
- Qwen3.8-Flash-Next 180B (MoE)121.2 GB (short 1.2 GB)
- MiniMax-M2.7 230B (MoE)156.7 GB (short 36.7 GB)
- Qwen3 235B (MoE A22B)159.5 GB (short 39.5 GB)
Totals include the weights, the KV cache at FP16 with a batch size of 1, and a 10% allowance for the runtime.
What fits at Q4_K_M
Mistral Medium 3.5 128B ranks first at 89.2 GB, with room to spare. It's dense, so every token reads all 128B parameters, and on these machines it writes text slowly.
The 120B mixture of experts models suit this memory best. gpt-oss 120B needs 80.9 GB, Nemotron 3 Super 120B 80.8 GB and Qwen3.5 122B 82.3 GB, and all three still fit at 32K. They run 5B to 12B parameters per token, so they stay quick on the slower memory these machines use.
The table's order comes from the model finder's best pick, which weighs size against release date. Use it to pick a few to try.
Long context
Mistral Medium 3.5 128B still fits at 32K, at 98.9 GB. That's past what a 96 GB card holds.
The MoE models leave even more spare. gpt-oss 120B's KV cache takes 1.3 GB at 32K, against 11.9 GB for Mistral Medium 3.5, because half its layers only cache the most recent tokens. For 64K or 128K, open the model finder from the card below the table and change the context there.
Q8_0 on 128 GB
At Q8_0, the 70B class fits with room, even at 32K. Llama 3.3 70B needs 93.5 GB there and Qwen 2.5 72B 95.8 GB. The 120B MoE models don't fit at Q8_0. Nemotron 3 Super 120B needs 140.2 GB.
So the choice here is a 120B MoE model at Q4_K_M or a 70B dense model at Q8_0. The MoE models are newer and much faster on this kind of memory, which makes them the usual pick.
Just over the line
Qwen3.8-Flash-Next 180B (MoE) needs 121.2 GB at Q4_K_M and misses by 1.2 GB. At Q3_K_M it needs 97.4 GB and fits, so it's worth trying at the smaller quant.
The 230B class stays out of reach. Qwen3 235B (MoE A22B) needs 128.4 GB even at Q3_K_M. For those, see the 256 GB Mac list.
Three machines with 128 GB
The calculator gives an M5 Max Mac and the DGX Spark 120 GB each for models. A Ryzen AI Max+ 395 machine gets 112 GB on Windows, where AMD's Variable Graphics Memory setting sets the GPU's share, and Linux can give it more with a kernel setting. Every row here with a total under 112 GB fits the AMD machine too. That includes Mistral Medium 3.5 128B at 32K.
On the Mac, macOS keeps part of the memory away from the GPU by default. On macOS Sonoma and later, this command lets the GPU use 120 GB until the next restart:
sudo sysctl iogpu.wired_limit_mb=122880All three have much less memory bandwidth than a high end graphics card, so the same model writes tokens more slowly on them. That's why the MoE models suit them: they read only a small part of their weights for each token.
Other memory sizes
Graphics cards
Macs and unified memory
Frequently asked questions
What's the best LLM for 128 GB of unified memory?
Can 128 GB of unified memory run gpt-oss 120B?
Can a 128 GB Mac run Qwen3 235B?
Do the DGX Spark, M5 Max and Ryzen AI Max+ 395 fit the same models?
Why doesn't this page use all 128 GB?
Related tools
LLM VRAM Calculator
Calculate the VRAM needed to run or fine-tune any LLM at any quantization.
Use toolLLM API Pricing Calculator
Compare API costs across major models (OpenAI, Anthropic, Google) with prompt caching.
Use toolLLM Token Counter
Count tokens in any prompt for GPT, Claude, Gemini, and Llama with exact OpenAI tokenization.
Use toolPower Cost Estimator
Estimate annual electricity costs for your PC, Server, or TV.
Use tool