← Back to community benchmarks
gemma-4-31b-it
Performance
195k
tokens
145.9
PP tok/s
4.8
TG tok/s
1371243
TTFT (ms)
57.9
Peak mem (GB)
Hardware
Chip
M5 Max (40c)
Memory
128 GB
GPU Cores
40
Software
oMLX
v0.3.9rc1
macOS
macOS 26.5
Context
200,000
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 661.9 | 26.4 | 17.6 GB | view |
| 4k | 598.8 | 24.4 | 20.2 GB | view |
| 8k | 552.3 | 21.9 | 20.7 GB | view |
| 16k | 506.0 | 21.2 | 21.9 GB | view |
| 32k | 455.3 | 14.9 | 24.9 GB | view |
| 64k | 243.2 | 8.8 | 30.9 GB | view |
| 128k | 194.3 | 6.8 | 42.8 GB | view |
| 195k | 145.9 | 4.8 | 57.9 GB | current |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 26.4 | 1.00× |
| 2× | 20.8 | 0.79× |
| 4× | 25.7 | 0.97× |
| 8× | 29.3 | 1.11× |