What LLMs can an M5 Max Mac (128 GB) run?

An M5 Max Mac (128 GB) gives a model 96 GB usable of memory (about 75% of unified memory is usable by the GPU) and 614 GB/s of bandwidth. Of the 61 open models tracked here, 42 fit at Q4_K_M with an 8,192-token context, and 2 more at a lower precision, each leaving at least 0.5 GB free on the M5 Max Mac (128 GB).

Models that fit on one M5 Max Mac (128 GB)

The most precise weights that still fit with 8K tokens of context and one request, the memory that takes, the longest context at that precision and the writing speed. Bigger models come first. gpt-oss-120b (67.7 GB, 53–92 tokens/s on the M5 Max Mac (128 GB)) and gpt-oss-20b (14.8 GB, 64–112 tokens/s on the M5 Max Mac (128 GB)) are listed at MXFP4 only, as published.

Model Best precision Memory Longest context Tokens/s
Step 3.7 Flash 196B-A11B 201.4B, 11B active GGUF Q2_K 87.4 GB 164K 34–58
Qwen3.8 Flash Next 180.0B, 6B active GGUF Q3_K_M 90.8 GB 189K 54–93
Mistral Medium 3.5 128B 127.7B GGUF Q4_K_M 82.7 GB 41K 4.2–5.7
Qwen3.5 122B-A10B 125.1B, 10B active GGUF Q5_K_M 91.5 GB 161K 24–41
Nemotron 3 Super 120B-A12B 123.6B, 12B active GGUF Q5_K_M 90.3 GB 256K (full) 21–35
gpt-oss-120b 116.8B, 5.1B active As published (MXFP4) 67.7 GB 128K (full) 53–92
AliceAI Foundation 80B-A3B 81.3B, 3B active GGUF Q8_0 89.2 GB 252K 50–87
Qwen3-Coder-Next 79.7B, 3B active GGUF Q8_0 87.4 GB 256K (full) 50–87
Llama 3.1 70B 70.6B GGUF Q8_0 80.0 GB 52K 4.3–5.9
K2-Horizon MoVA 36B-A4B 37.4B, 4B active FP16 / BF16 78.9 GB 88K 19–31
Ornith 1.5 35B-A3B 36.0B, 3B active FP16 / BF16 74.3 GB 256K (full) 29–49
Qwen3.6 35B-A3B 36.0B, 3B active FP16 / BF16 74.3 GB 256K (full) 29–49
Ornith 1.0 35B 35.1B, 3B active FP16 / BF16 72.6 GB 256K (full) 29–49
LLM-jp-4.1 32B-A3B Thinking 32.1B, 3.8B active FP16 / BF16 66.9 GB 64K (full) 22–37
Nemotron 3 Nano 30B-A3B 31.6B, 3.5B active FP16 / BF16 65.3 GB 256K (full) 25–43
Gemma 4 31B 31.3B FP16 / BF16 66.6 GB 256K (full) 5.2–7.1
GLM-4.7 Flash 31.2B, 3B active FP16 / BF16 64.9 GB 198K (full) 27–47
Xing 4.0 29B-A4B 31.2B, 4B active FP16 / BF16 64.8 GB 256K (full) 21–36
Qwen3-Coder 30B-A3B 30.5B, 3.3B active FP16 / BF16 63.9 GB 256K (full) 24–41
Qwen3 30B-A3B 30.5B, 3.3B active FP16 / BF16 63.9 GB 40K (full) 24–41
Muse Glimmer 30B 29.8B FP16 / BF16 61.7 GB 128K (full) 5.6–7.7
Granite 4.2 30B 29.3B FP16 / BF16 62.7 GB 127K 5.5–7.6
Qwen3.6 27B 27.8B FP16 / BF16 58.0 GB 256K (full) 6.0–8.2
Qwen3.8 27B 27.8B FP16 / BF16 58.0 GB 256K (full) 6.0–8.2
Hemmingway-1 27B 27.3B FP16 / BF16 57.0 GB 256K (full) 6.1–8.3
Gemma 4 26B-A4B 25.8B, 4B active FP16 / BF16 53.9 GB 256K (full) 21–36
gpt-oss-20b 20.9B, 3.6B active As published (MXFP4) 14.8 GB 128K (full) 64–112
Gemma 4 12B 12.0B FP16 / BF16 25.7 GB 256K (full) 13–19
ZDTaichu 5.0 9B 9.8B FP16 / BF16 20.8 GB 128K (full) 17–23
Ornith 1.5 9B 9.7B FP16 / BF16 20.6 GB 256K (full) 17–23
Qwen3.5 9B 9.7B FP16 / BF16 20.6 GB 256K (full) 17–23
Ornith 1.0 9B 9.4B FP16 / BF16 20.1 GB 256K (full) 17–24
MiMo V2.6 Distill Qwen 9B 9.4B FP16 / BF16 20.1 GB 256K (full) 17–24
Granite 4.2 8B 8.8B FP16 / BF16 19.9 GB 128K (full) 17–24
LFM2.5 8B-A1B 8.5B, 1.5B active FP16 / BF16 18.0 GB 128,000 (full) 55–94
Qwen3 8B 8.2B FP16 / BF16 18.5 GB 40K (full) 19–26
Llama 3.1 8B 8.0B FP16 / BF16 18.1 GB 128K (full) 19–27
Gemma 4 E4B 8.0B FP16 / BF16 17.1 GB 128K (full) 20–28
Ling 3.0 Tiny 7.9B-A1.3B 7.9B, 1.3B active FP16 / BF16 16.7 GB 128K (full) 63–109
Spark-X2.5 4B 4.1B FP16 / BF16 9.35 GB 1M (full) 37–52
Nemotron 3 Nano 4B 4.0B FP16 / BF16 8.78 GB 256K (full) 39–55
Granite 4.2 3B 3.7B FP16 / BF16 8.69 GB 128K (full) 40–56
MiniCPM5 2B 2.5B FP16 / BF16 6.02 GB 128K (full) 57–82
Limite 1B Violetto 1.0B FP16 / BF16 2.79 GB 128K (full) 123–187

Raising the GPU memory limit on an M5 Max Mac (128 GB)

macOS lets the GPU wire about 96 GB of this Mac's 128 GB by default. Running sudo sysctl iogpu.wired_limit_mb=122880 raises that to 120 GB, leaving 8 GB to macOS and the apps next to it, until the next restart (macOS 14 or newer; iogpu.wired_limit_mb=0 restores the default). LM Studio and Ollama pick the new limit up after a restart of the app. At 120 GB, 43 of the 61 models fit at Q4_K_M with 8K context, against 42 by default : Qwen3.8 Flash Next (45–77 tokens/s) join the list. Mistral Medium 3.5 128B, the biggest model that fits already, goes from 41K to 105K of context. If macOS runs short of memory it swaps or kills apps, so close big apps first and raise the limit in steps.

Too big for M5 Max Mac (128 GB) at 8K context

How much memory each of these lacks at Q4_K_M with 8K context, one request and 0.5 GB kept free, out of the 96 GB usable here; a bigger machine or a smaller quant is the way in.

Best models for M5 Max Mac (128 GB) with room for long context

The biggest models that still fit at Q4_K_M with 32,768 tokens of context (or their whole window, if shorter), the memory left over, the longest context the Mac takes at that precision and the writing speed with that context in the cache, from 614 GB/s of bandwidth. gpt-oss-120b is at MXFP4, as published.

ModelContextMemoryLeft overLongest contextTokens/s
Mistral Medium 3.5 128B 127.7B 32K 91.8 GB 4.25 GB 41K 3.8–5.2
Qwen3.5 122B-A10B 125.1B 32K 78.9 GB 17.1 GB 256K (full) 26–44
Nemotron 3 Super 120B-A12B 123.6B 32K 77.4 GB 18.6 GB 256K (full) 24–40
gpt-oss-120b 116.8B, MXFP4 32K 68.6 GB 27.4 GB 128K (full) 42–72
AliceAI Foundation 80B-A3B 81.3B 32K 51.7 GB 44.3 GB 256K (full) 64–111

llama-server commands for an M5 Max Mac (128 GB)

GGUF repos checked 2026-09-29; -c is the longest context with 0.5 GB free on the M5 Max Mac (128 GB). No -ngl: llama.cpp’s -fit, on by default since b7440, places the layers.

Mistral Medium 3.5 128B, Q4_K_M with 41K tokens: 3.6–5.0 tokens/s on the M5 Max Mac (128 GB)

llama-server -hf unsloth/Mistral-Medium-3.5-128B-GGUF:Q4_K_M -c 41984

Q4_K_M/Mistral-Medium-3.5-128B-Q4_K_M-00001-of-00003.gguf, 74.9 GB: 95.2 GB used and 867 MB free of the M5 Max Mac (128 GB)'s 96 GB usable, 3.6–5.0 tokens/s once the 41K cache is full.

Qwen3.5 122B-A10B, Q4_K_M with 256K tokens: 14–24 tokens/s on the M5 Max Mac (128 GB)

llama-server -hf unsloth/Qwen3.5-122B-A10B-GGUF:Q4_K_M -c 262144

Q4_K_M/Qwen3.5-122B-A10B-Q4_K_M-00001-of-00003.gguf, 76.5 GB: 85.5 GB used and 10.5 GB free of the M5 Max Mac (128 GB)'s 96 GB usable, 14–24 tokens/s once the 256K cache is full.

How fast the M5 Max Mac (128 GB) writes as the context fills

Tokens per second at Q4_K_M (gpt-oss-120b at MXFP4) for the biggest models that fit with 32K tokens, with 8K and 32K tokens in the cache and at the longest context the Mac holds, and at Q8_0 with 8K where that fits. Each token reads the active weights and the whole cache once, so the speed follows the 614 GB/s of bandwidth and falls as the cache grows. The ceiling is that bandwidth divided by the bytes read per token, which no runtime reaches; the reply time is for 1,000 new tokens with 32K (or the longest context) in the cache, prompt processing aside. With the same memory, M3 Max Mac (128 GB), 400 GB/s, writes 34% slower on average; M4 Max Mac (128 GB), 546 GB/s, writes 11% slower on average.

Model8K32KLongestAt the longestQ8_0 at 8KBandwidth ceiling at 8K1,000-token reply at 32K
Mistral Medium 3.5 128B 4.2–5.7 3.8–5.2 41K 3.6–5.0 Does not fit 8 194–265 s
Qwen3.5 122B-A10B 28–48 26–44 256K 14–24 Does not fit 98 23–39 s
Nemotron 3 Super 120B-A12B 24–41 24–40 256K 19–32 Does not fit 84 25–42 s
gpt-oss-120b 53–92 42–72 128K 23–39 MXFP4 only 193 14–24 s
AliceAI Foundation 80B-A3B 80–141 64–111 256K 22–37 50–87 305 9–16 s
Qwen3-Coder-Next 80–141 64–111 256K 22–37 50–87 305 9–16 s
Llama 3.1 70B 7.4–10 6.3–8.6 128K 3.9–5.4 4.3–5.9 14 117–160 s
K2-Horizon MoVA 36B-A4B 43–73 20–34 348K 2.5–4.2 30–51 152 29–50 s
Ornith 1.5 35B-A3B 82–144 67–116 256K 25–42 51–87 310 9–15 s
Qwen3.6 35B-A3B 82–144 67–116 256K 25–42 51–87 310 9–15 s

M5 Max Mac (128 GB) against the other Macs with 96 GB usable

The same models fit on every Mac with 96 GB usable, so speed is what separates them. By bandwidth the M5 Max Mac (128 GB) is the fastest of the 3 Macs with 96 GB usable at 614 GB/s. Over the 12 biggest models that fit at Q4_K_M with 8K context, the M3 Max Mac (128 GB), at 400 GB/s, writes 34% slower and the M4 Max Mac (128 GB), at 546 GB/s, writes 11% slower than the M5 Max Mac (128 GB). Each cell below is the other Mac's tokens per second minus this one's, midpoints of the estimated ranges.

Model M5 Max Mac (128 GB) tokens/s M3 Max Mac (128 GB)M4 Max Mac (128 GB)
Mistral Medium 3.5 128B 4.2–5.7 −1.7−0.5
Qwen3.5 122B-A10B 28–48 −13−4.1
Nemotron 3 Super 120B-A12B 24–41 −11−3.5
gpt-oss-120b 53–92 −24−7.6
AliceAI Foundation 80B-A3B 80–141 −36−11
Qwen3-Coder-Next 80–141 −36−11
Llama 3.1 70B 7.4–10 −3.0−1.0
K2-Horizon MoVA 36B-A4B 43–73 −20−6.2
Ornith 1.5 35B-A3B 82–144 −37−11
Qwen3.6 35B-A3B 82–144 −37−11
Ornith 1.0 35B 82–144 −37−11
LLM-jp-4.1 32B-A3B Thinking 59–102 −27−8.4

Near misses on M5 Max Mac (128 GB)

Models that miss at Q4_K_M with 32,768 tokens of context (or their whole window), or leave under 0.5 GB free there, but fit with a shorter context or 3-bit weights, or are short by at most a quarter of the memory and fit with MoE offload. Smallest shortfall first.

ModelShort by at Q4_K_MFits instead
Qwen3.8 Flash Next 180.0B 16.9 GB GGUF Q3_K_M with 32K, 91.5 GB
Step 3.7 Flash 196B-A11B 201.4B 31.1 GB GGUF IQ3_XXS with 32K, 87.4 GB

Run locally or rent an M5 Max Mac (128 GB)?

getdeploying.com lists no on-demand rental of M5 Max Mac (128 GB) (checked ). Among the GPUs this site tracks, the cheapest to rent with at least 96 GB is the RTX PRO 6000 Blackwell at a median $2.19 an hour, which holds 42 of the 61 models at Q4_K_M with 8K context against 42 here; every $1,000 equals about 457 hours of it.

How these numbers are worked out

Memory is the weights at each precision plus the KV cache for 8,192 tokens in FP16 and runtime overhead (0.5 GB plus 10%), computed from each model's files on Hugging Face with the LLM VRAM Calculator. Speed is estimated from memory bandwidth and the parameters read per token with the LLM Speed Calculator. Both tools take any other model from Hugging Face.

Nearby GPUs and setups

How many of the tracked models each one holds at Q4_K_M with 8K context, against 42 here.

SetupHow it relatesMemoryBandwidthModels at Q4_K_M
M3 Max Mac (128 GB) Same memory 96 GB usable 400 GB/s 42 (same)
M4 Max Mac (128 GB) Same memory 96 GB usable 546 GB/s 42 (same)
M5 Max Mac (64 GB) Next size down 48 GB usable 614 GB/s 36 (−6)
M3 Ultra Mac Studio (512 GB) Next size up 384 GB usable 819 GB/s 51 (+9)

Model numbers read from Hugging Face on .