CheckerWhat fits my GPU?ModelsWhat to buyEmbeddingsData & methodSubmitAPISponsor

Models › Gemma 4 31B › Apple M4 Max (128 GB)

Can I run Gemma 4 31B on Apple M4 Max (128 GB)?

Yes

Yes. Gemma 4 31B fits fully on the Apple M4 Max (128 GB) at Q8_0 (about 37.7 GB of 96 GB usable, 8k context). ESTIMATE

Verdict by quantization (8k context, f16 KV, 32 GB RAM for offload)

QuantNeedsApple M4 Max (128 GB) (128 GB, ~96 GB GPU-usable)
Q3_K_M19.2 GB✅ Fits
IQ4_XS20.2 GB✅ Fits
Q4_K_M22.7 GB✅ Fits
MXFP421.8 GB✅ Fits
Q5_K_M26.1 GB✅ Fits
Q6_K29.7 GB✅ Fits
Q8_037.7 GB✅ Fits
F1667.7 GB✅ Fits

Speed ESTIMATE

About 14–17 tok/s generation at Q4_K_M, scaled from measured Llama 2 7B Q4_0 runs on this chip. Not measured for Gemma 4 31B; submit a benchmark.

Memory figures are estimates from the model's parameter count and config.json (Hugging Face). How we calculate. Last verified with data from 2026-10-20.

FAQ

Can I run Gemma 4 31B on the Apple M4 Max (128 GB)?

Yes. Gemma 4 31B fits fully on the Apple M4 Max (128 GB) at Q8_0 (about 37.7 GB of 96 GB usable, 8k context).

How much VRAM does Gemma 4 31B need?

About 22.7 GB at Q4_K_M and 37.7 GB at Q8_0 with 8k context (estimate).

Gemma 4 31B on other hardware: RTX 3060 12GB · RTX 3090 · RTX 5090 · Apple M4 Pro (48 GB)

Other models on Apple M4 Max (128 GB): gpt-oss 20B (MoE) · gpt oss 120b (MoE) · Qwen3.6 27B · Qwen3.6 35B A3B (MoE) · Qwen3.8 27B · Gemma 4 26B A4B (MoE) · Qwen3 Coder 30B A3B (MoE) · GLM 4.7 Flash · Llama 3.1 8B Instruct

Won't fit? Free hosted options: FreeAISwap.