Skip to content
E
Educatum
Daily

Cloud Progress Sync

Sign in to Educatum

Sync your Daily AI/ML streaks, Stanford CS329Z progress, and study bookmarks across devices. Your existing browser progress will merge automatically.

🦙
Guest Alias
Apple Silicon Unified Memory96.0 GiB Usable (128 GiB Nominal) · 546 GB/s Bandwidth · Updated

Best LLMs for M4 Max 128 GiB: Compatibility & tok/s

Quick Verdict (8K Context, Batch=1, 1× M4 Max 128 GiB)

Out of 37 open-weight models, 1× M4 Max 128 GiB (96.0 GiB usable) fits 31 in GGUF Q4_K_M (up to Mixtral 8x22B at ~15 tok/s), 28 in FP8, and 24 in FP16 (up to Qwen4-35B-A3B).

All 37 Models on 1× M4 Max 128 GiB (96.0 GiB Usable)

Binary GiB totals include weights, 8K FP16/FP8 KV-cache, activations, and CUDA/runtime workspace buffers. Click any model to simulate multi-GPU tensor parallelism or longer context.

ModelArchitectureQ4_K_M (8K)FP8 (8K)FP16 (8K)
Mixtral 8x22BGQA · 39B/141B MoEFIT (83.3 GiB) · ~15 tok/sOOM (133.7 GiB)OOM (265.9 GiB)
Mistral Large 2 (123B)GQA · 123BFIT (74.2 GiB) · ~5 tok/sOOM (117.5 GiB)OOM (233.4 GiB)
Llama 4 Scout (109B/17B)GQA · 17B/109B MoEFIT (64.9 GiB) · ~31 tok/sOOM (103.7 GiB)OOM (206.0 GiB)
Qwen2.5-72BGQA · 72.7BFIT (45.3 GiB) · ~8 tok/sFIT (70.5 GiB) · ~5 tok/sOOM (139.4 GiB)
Llama 3.1 70BGQA · 70.6BFIT (44.1 GiB) · ~8 tok/sFIT (68.5 GiB) · ~5 tok/sOOM (135.5 GiB)
Llama 3.3 70BGQA · 70.6BFIT (44.1 GiB) · ~8 tok/sFIT (68.5 GiB) · ~5 tok/sOOM (135.5 GiB)
DeepSeek-R1-Distill-Llama-70BGQA · 70.6BFIT (44.1 GiB) · ~8 tok/sFIT (68.5 GiB) · ~5 tok/sOOM (135.5 GiB)
Qwen4-35B-A3BGQA · 3B/56.82B MoEFIT (22.3 GiB) · ~145 tok/sFIT (35.4 GiB) · ~102 tok/sFIT (69.3 GiB) · ~57 tok/s
Mixtral 8x7BGQA · 12.9B/46.7B MoEFIT (29.0 GiB) · ~41 tok/sFIT (45.5 GiB) · ~28 tok/sFIT (89.4 GiB) · ~14 tok/s
Qwen3-32BGQA · 32.8BFIT (22.1 GiB) · ~17 tok/sFIT (33.0 GiB) · ~11 tok/sFIT (64.6 GiB) · ~6 tok/s
DeepSeek-R1-Distill-Qwen-32BGQA · 32.8BFIT (22.1 GiB) · ~17 tok/sFIT (33.0 GiB) · ~11 tok/sFIT (64.6 GiB) · ~6 tok/s
Qwen2.5-Coder-32BGQA · 32.8BFIT (22.1 GiB) · ~17 tok/sFIT (33.0 GiB) · ~11 tok/sFIT (64.6 GiB) · ~6 tok/s
Qwen3-30B-A3B (MoE)GQA · 3.3B/30.5B MoEFIT (19.5 GiB) · ~108 tok/sFIT (30.2 GiB) · ~87 tok/sFIT (59.0 GiB) · ~48 tok/s
Qwen3.8-27BGQA · 27.78BFIT (17.9 GiB) · ~21 tok/sFIT (27.7 GiB) · ~14 tok/sFIT (53.9 GiB) · ~7 tok/s
Gemma 3 27BGQA · 27.4BFIT (18.1 GiB) · ~21 tok/sFIT (27.5 GiB) · ~14 tok/sFIT (53.5 GiB) · ~7 tok/s
Inkling-2-MiniGQA · 3.4B/26.39B MoEFIT (16.6 GiB) · ~91 tok/sFIT (26.1 GiB) · ~62 tok/sFIT (50.8 GiB) · ~33 tok/s
Mistral Small 3 24BGQA · 24BFIT (16.4 GiB) · ~24 tok/sFIT (24.5 GiB) · ~16 tok/sFIT (47.4 GiB) · ~8 tok/s
GPT-OSS 20BGQA · 3.6B/20.91B MoEFIT (13.5 GiB) · ~136 tok/sFIT (21.0 GiB) · ~94 tok/sFIT (40.6 GiB) · ~50 tok/s
MiniCPM5-15B-A2.5BGQA · 2.5B/15B MoEFIT (10.2 GiB) · ~171 tok/sFIT (15.5 GiB) · ~124 tok/sFIT (29.6 GiB) · ~68 tok/s
DeepSeek-R1-Distill-Qwen-14BGQA · 14.8BFIT (11.4 GiB) · ~35 tok/sFIT (16.0 GiB) · ~24 tok/sFIT (30.5 GiB) · ~12 tok/s
Qwen3-14BGQA · 14.8BFIT (11.1 GiB) · ~36 tok/sFIT (15.9 GiB) · ~25 tok/sFIT (30.3 GiB) · ~13 tok/s
Qwen2.5-14BGQA · 14.8BFIT (11.4 GiB) · ~35 tok/sFIT (16.0 GiB) · ~24 tok/sFIT (30.5 GiB) · ~12 tok/s
Phi-4 14BGQA · 14.7BFIT (11.4 GiB) · ~36 tok/sFIT (15.9 GiB) · ~25 tok/sFIT (30.4 GiB) · ~12 tok/s
Gemma 3 12BGQA · 12.2BFIT (9.2 GiB) · ~45 tok/sFIT (13.2 GiB) · ~30 tok/sFIT (25.0 GiB) · ~15 tok/s
Mistral NeMo 12BGQA · 12.2BFIT (9.7 GiB) · ~43 tok/sFIT (13.5 GiB) · ~30 tok/sFIT (25.5 GiB) · ~15 tok/s
Qwen3-8BGQA · 8.2BFIT (7.2 GiB) · ~60 tok/sFIT (9.7 GiB) · ~43 tok/sFIT (17.9 GiB) · ~22 tok/s
Llama 3.1 8BGQA · 8.03BFIT (7.0 GiB) · ~62 tok/sFIT (9.4 GiB) · ~44 tok/sFIT (17.4 GiB) · ~22 tok/s
DeepSeek-R1-Distill-Llama-8BGQA · 8.03BFIT (7.0 GiB) · ~62 tok/sFIT (9.4 GiB) · ~44 tok/sFIT (17.4 GiB) · ~22 tok/s
Qwen2.5-7BGQA · 7.6BFIT (6.2 GiB) · ~72 tok/sFIT (8.8 GiB) · ~48 tok/sFIT (16.0 GiB) · ~25 tok/s
Gemma 3 4BGQA · 4.3BFIT (4.2 GiB) · ~120 tok/sFIT (5.6 GiB) · ~82 tok/sFIT (9.7 GiB) · ~42 tok/s
Qwen3-4BGQA · 4BFIT (4.8 GiB) · ~98 tok/sFIT (5.7 GiB) · ~79 tok/sFIT (10.0 GiB) · ~41 tok/s
ErgoGQA · 55B/1105.55B MoEOOM (630.2 GiB, -534 GiB)OOM (1031.4 GiB)OOM (2061.4 GiB)
DeepSeek-V4.1-Flash-1017GQA · 16B/763.21B MoEOOM (323.4 GiB, -227 GiB)OOM (529.2 GiB)OOM (1056.9 GiB)
DeepSeek-V3 / R1 (671B)MLA · 37B/671B MoEOOM (383.2 GiB, -287 GiB)OOM (626.7 GiB)OOM (1251.9 GiB)
Llama 3.1 405BGQA · 405.9BOOM (236.2 GiB, -140 GiB)OOM (381.6 GiB)OOM (761.6 GiB)
Llama 4 Maverick (400B/17B)GQA · 17B/400B MoEOOM (230.2 GiB, -134 GiB)OOM (374.8 GiB)OOM (748.0 GiB)
Qwen3-235B-A22BGQA · 22B/235B MoEOOM (136.4 GiB, -40 GiB)OOM (221.1 GiB)OOM (440.7 GiB)

Interactive M4 Max 128 GiB Cluster & Context Simulator

1. Model & Workload

GQA · 141B/39B MoE

56 layers · MoE (141B total / 39B active) · GQA (48Q / 8KV)

Execution Mode
Weight Precision (Datacenter & GGUF)
KV:
8,192 tok
1 reqs

2. Target GPU / Mac Silicon

96.0 GiB Usable · 0.55 TB/s eff.
GPU Count (Tensor Parallel)Single Apple Silicon unified-memory machine
FITS IN VRAM (+12.7 GiB headroom)
83.3 / 96.0 GiB usable (87%)

Fits cleanly across 1× M4 Max 128 GiB with headroom.

Total VRAM
83.3 GiB
Weights 80.1 GiB (Q4_K_M)
KV-Cache
1.8 GiB
6.0× vs MHA
Decode / User
~14.8 tok/s
Unified BW Bound
Cluster Output
~15 tok/s
AI 3.5 FLOP/B

VRAM Allocation vs. Hardware Capacity

Binary GiB (1 GiB = 2³⁰ B) · Usable VRAM excludes ECC/OS & per-GPU CUDA/NCCL buffers

Dashed line = Usable VRAM
Used: 83.3 GiB · Usable: 96.0 GiB (87%) 96.0 GiB Usable Weights: 80.1 GiBKV-Cache: 1.8 GiBAct + CUDA: 1.5 GiB educatum.com/kv-cache

Decode Arithmetic Intensity Roofline

AI 3.5 vs Ridge 66 FLOPs/B
1416642561024 Ridge: 66 FLOPs/B · 36 TFLOPS Memory-Bandwidth Bound (3.5 FLOP/B) Arithmetic Intensity (FLOPs / Byte, log scale) educatum.com/kv-cache
Canonical URL stays clean; click Copy Shareable Link to share your exact slider config.
Mixtral 8×22B MoE · KV_tok = 2 × 56L × 8 KV heads × 128d × 2B = 224.0 KiB/tok (6.0× vs MHA)
Decode Step Read: 22.2 GiB active weights + 1.75 GiB KV → AI = 3.48 FLOPs/Byte (Memory-Bandwidth Bound; BW in decimal GB/s)

Compare Other GPUs & Apple Silicon Macs

All 12 Profiles →

Frequently Asked Questions

What is the largest LLM M4 Max 128 GiB can run in GGUF Q4_K_M at 8K context?

With 96.0 GiB usable VRAM (128 GiB nominal minus ECC/OS reservation), the largest preset fitting cleanly on a single M4 Max 128 GiB at 8K context (batch=1) is Mixtral 8x22B, using 83.3 GiB total (12.7 GiB spare) at ~15 tok/s.

Why does Educatum count 96.0 GiB usable VRAM instead of 128 GiB for M4 Max 128 GiB?

macOS wires ~75% of 128 GiB Unified Memory (96.0 GiB default GPU wired limit) unless sysctl wired-memory overrides are raised, plus 1.0 GiB runtime workspace overhead.

How fast is decode generation on M4 Max 128 GiB?

M4 Max 128 GiB delivers 546 GB/s peak memory bandwidth. Because B=1 autoregressive decode streams active weights once per token, Mixtral 8x22B Q4_K_M runs at ~14.8 tok/s, while smaller active-parameter MoE or 4B–8B dense models run proportionally faster.

Try keywords like RoPE, FlashAttention, DPO, or Blind 75.