llamaperf

Gemma 3 on the M5 Max 48GB

On the M5 Max 48GB, Gemma 3 4B at 4-bit generates a median 163.4 tokens per second, from 2 plain runs (context not stated).

Speed by size and quant on the M5 Max 48GB

Plain runs only: one card, one request, no speculative decoding, the whole model in memory. Each row is one model size at one bit class. Context length and build still differ between runs, and each row shows its own.

Gemma 3GenerationBy engine
4B 4-bit163.4 t/smedian of 2, context not statedprompt 5655.5 t/s (median of 2)
llama.cpp 150.5 t/s (1)
MLX 176.2 t/s (1)
12B 4-bit64.2 t/smedian of 2, context not statedprompt 1778.2 t/s (median of 2)
llama.cpp 61.5 t/s (1)
MLX 66.9 t/s (1)
1B 4-bit294.9 t/sone report, context not statedprompt 16750.2 t/s (one report)
llama.cpp 294.9 t/s (1)
27B 4-bit29.9 t/sone report, context not statedprompt 751.0 t/s (one report)
llama.cpp 29.9 t/s (1)

Memory Gemma 3 needs on the M5 Max 48GB

The M5 Max 48GB gives a model 36 GB. Each figure is the memory a size reported on this card needs at one quant with an 8k context, cache and buffers included, from the VRAM calculator. It is for one card holding the whole model. Gemma 3 memory on every card.

SizeQ8_0Q6_KQ5_K_MQ4_K_MQ3_K_M
1B3.9 GBfits3.7 GBfits3.6 GBfits3.4 GBfits3.3 GBfits
4B6.9 GBfits6.1 GBfits5.6 GBfits5.1 GBfits4.6 GBfits
12B15 GBfits13 GBfits11 GBfits9.6 GBfits8.1 GBfits
27B30 GBfits25 GBfits21 GBfits18 GBfits15 GBfits

8 reports of Gemma 3 on the M5 Max 48GB

Newest first. A run on several cards, with speculative decoding, with part of the model in system RAM or with batched requests says so, since each describes a different setup. Prompt processing is how fast the input is read, not how long you wait for the first word. How to measure time to first token.

Filter these reports on the homepage

Frequently asked

How fast is Gemma 3 on the M5 Max 48GB?

On the M5 Max 48GB, Gemma 3 4B at 4-bit generates a median 163.4 tokens per second, from 2 plain runs (context not stated).

Does Gemma 3 fit on the M5 Max 48GB?

The M5 Max 48GB gives a model 36 GB. With an 8k context, the 1B model fits at Q8_0 (about 3.9 GB), the 4B model fits at Q8_0 (about 6.9 GB), the 12B model fits at Q8_0 (about 15 GB), the 27B model fits at Q8_0 (about 30 GB). The figures are the VRAM calculator's, for one card with the whole model in its memory.

Which engine runs Gemma 3 fastest on the M5 Max 48GB?

Plain runs of the 4B model at 4-bit on this card: llama.cpp 150.5 t/s (1 run), MLX 176.2 t/s (1 run). Context length and engine build differ between the runs, so treat it as a lead, not a benchmark.