Can Mac mini M4 Pro (48 GB) run Gemma 4 31B?

Yes. Mac mini M4 Pro (48 GB) runs Gemma 4 31B at Q6_K with a 16K context, using 29.6 GB of 36.0 GB usable memory at an estimated 7.5–10.1 tok/s. The largest context that still fits at Q6_K is 64K.

Asking through an AI agent? Point it at llms.txt or the JSON API.

Open in calculator
Fits comfortablyQ6_K · 16K context
7.5–10.1 tok/s
29.6 GBof 36.0 GB usable memory
82% used
Weights25.6 GBKV cache2.0 GBOverhead1.9 GB
6.4 GB free

Every quantization on M4 Pro 48GB

Q4_K_M (4-bit)
gemma4:31b
19.0 GB
real file size
22.6 GBFits comfortably128K
10.0–13.5 tok/s
Calibrated
Q6_K (6-bit)
25.6 GB
estimate
29.6 GBFits comfortably64K
7.5–10.1 tok/s
Calibrated
Q8_0 (8-bit)
gemma4:31b-it-q8_0
31.5 GB
real file size
35.7 GBTight fit16K
5.8–7.9 tok/s
Calibrated
FP16 / BF16 (16-bit)
gemma4:31b-it-bf16
58.3 GB
real file size
63.7 GBToo large—
—

Mac mini M4 Pro (48 GB) has 36.0 GB usable for models out of 48 GB of unified memory. Max context is the longest window that still loads without spilling out of that memory. The label under each speed says whether it was measured, scaled from measurements on this hardware, or modelled.

Gemma 4 31B on M4 Pro 48GB by runtime

Command
Ollama
Q6_K
25.6 GB
estimate
29.6 GBFits comfortably7.5–10.1 tok/s
LM Studio
Q6_K
unsloth/gemma-4-31B-it-GGUF
25.6 GB
real file size
29.6 GBFits comfortably7.5–10.1 tok/s
llama.cpp
Q6_K
unsloth/gemma-4-31B-it-GGUF
25.6 GB
real file size
29.6 GBFits comfortably7.5–10.1 tok/s
MLX
6-bit
mlx-community/gemma-4-31b-it-6bit
24.3 GB
real file size
28.2 GBFits comfortably6.8–11.3 tok/s

Each runtime loads its own build, so sizes differ. Ollama, LM Studio and llama.cpp use GGUF files, MLX its own format. Numbers above this table are for Ollama.

Cost per 1M tokens at 1M tokens/day

Local on M4 Pro 48GB
$2.16

$3.12/mo power + $2,220 hardware over 36 months

Rented cloud GPU
$1.58

1x RTX A6000 (48 GB) on RunPod at $0.33/hr

OpenRouter API
$0.25

$0.20 in / $0.40 out per 1M

Counting the hardware, the API stays cheaper at every volume this machine can serve. Local still wins on privacy and offline use. Assumes 75% input and 25% output tokens, one request at a time. Rent on RunPod · Open on OpenRouter

Questions and answers

Can Mac mini M4 Pro (48 GB) run Gemma 4 31B?

Yes. Mac mini M4 Pro (48 GB) runs Gemma 4 31B at Q6_K with a 16K context, using 29.6 GB of 36.0 GB usable memory at an estimated 7.5–10.1 tok/s. The largest context that still fits at Q6_K is 64K.

How fast is Gemma 4 31B on Mac mini M4 Pro (48 GB)?

About 7.5–10.1 tok/s at Q6_K. Scaled from 6 published llama.cpp measurements on this chip.

How much context can Gemma 4 31B use on Mac mini M4 Pro (48 GB)?

At Q6_K the largest context that fits is 64K tokens. Q4_K_M: 128K, Q8_0: 16K.