Which LLMs Fit on a 512 GB Mac?
By TechCompare · Updated · How we check
The calculator gives a 512 GB Mac 504 GB for models, after 8 GB for macOS and your apps. 89 of the 108 models fit there at Q4_K_M with 8K context. Step-5-Preview 604B (MoE) ranks first, and DeepSeek R1 671B is the largest that fits, at 450.9 GB.
512 GB is the most memory a Mac Studio with an M5 Ultra can have, and the biggest size on these pages. It holds the 550B to 671B mixture of experts models on one desk, which otherwise takes a server full of data center GPUs. This page checks every model in the LLM VRAM Calculator against it at Q4_K_M and Q8_0, with 8K and 32K tokens of context.
macOS and your apps share that memory, so the calculator keeps 8 GB for them and checks each model against 504 GB. 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 on a 512 GB Mac
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
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
Step-5-Preview 604B (MoE) ranks first at 406.1 GB, with room to spare. The rest of the 550B to 600B class fits too: Nemotron 3 Ultra 550B needs 369.6 GB, Ling-3.1-flash 560B 376.2 GB and Inkling 2 Small 594B 399.1 GB.
The largest model that fits is DeepSeek R1 671B, at 450.9 GB, and DeepSeek V3 671B needs the same. The largest dense model is Llama 3.1 405B, at 276.5 GB.
The order follows the model finder's best pick, which weighs size against release date, so newer models rank above older ones of a similar size.
Long context
Most of the big MoE models here barely grow at 32K. DeepSeek R1 compresses its KV cache, which takes 2.4 GB at 32K, so it needs 452.8 GB there. Llama 3.1 405B keeps a full cache on all 126 of its layers, so its cache is 17.0 GB at 32K. It still fits, at 290.4 GB.
For 64K or 128K, open the model finder from the card below the table and change the context there. Long prompts take a while to read on a Mac, even when the model fits.
Q8_0 on 512 GB
At Q8_0, Llama 3.1 405B fits, with 476.9 GB at 8K and 490.9 GB at 32K, which is tight. MiniMax-M3 428B (MoE) fits at Q8_0 with 8K, at 500.3 GB, also tight.
The 600B and 671B models only fit at Q4_K_M. DeepSeek R1 needs 783.1 GB at Q8_0. In all, 82 models fit at Q8_0 with 8K, against 89 at Q4_K_M.
Just out of reach
GLM-5.3 755B (MoE) misses by 3.5 GB at Q4_K_M, with 507.5 GB, and GLM-5.1 and GLM-5.2 miss too. At Q3_K_M, GLM-5.3 needs 407.9 GB and fits with room.
The 1T models are out of reach even at Q3_K_M. Kimi K2.6 1T (MoE) needs 554.2 GB there. Those take more than one machine, like two Macs with a runner that splits a model across them, or a server with several data center GPUs.
The Mac Studio with 512 GB
Apple sells 512 GB with the M5 Ultra in the Mac Studio. The Ultra has the most memory bandwidth of any Mac. Even so, the 550B to 671B MoE models read 17B to 55B parameters for each token, so they write text more slowly than a small model, and loading one from disk takes a while.
macOS keeps part of the memory away from the GPU by default. On macOS Sonoma and later, this command lets the GPU use 504 GB until the next restart:
sudo sysctl iogpu.wired_limit_mb=516096Keep an eye on memory pressure in Activity Monitor. If the Mac starts swapping to disk, lower the limit or pick a smaller model.
Other memory sizes
Graphics cards
Macs and unified memory
Frequently asked questions
What's the best LLM for a 512 GB Mac?
Can a 512 GB Mac run DeepSeek R1 671B?
Can a 512 GB Mac run Kimi K2.6?
Can a 512 GB Mac run Llama 3.1 405B at Q8_0?
How much memory does macOS keep on a 512 GB Mac?
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