← Back to community benchmarks
gemma-4-31b-it
Performance
1k
tokens
643.2
PP tok/s
16.9
TG tok/s
1592
TTFT (ms)
26.0
Peak mem (GB)
Hardware
Chip
M5 Max (40c)
Memory
128 GB
GPU Cores
40
Software
oMLX
v0.3.2
macOS
macOS 26.4
Context
1,024
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 643.2 | 16.9 | 26.0 GB | current |
| 4k | 630.4 | 16.1 | 27.7 GB | view |
| 8k | 568.4 | 14.6 | 27.9 GB | view |
| 16k | 551.1 | 11.5 | 28.7 GB | view |
| 32k | 509.8 | 8.2 | 31.0 GB | view |
| 64k | 405.3 | 5.4 | 35.7 GB | view |
| 128k | 268.8 | 2.9 | 45.3 GB | view |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 16.9 | 1.00× |
| 2× | 19.3 | 1.14× |
| 4× | 21.1 | 1.25× |