← Back to community benchmarks
gemma-4-31b-it
Performance
4k
tokens
150.8
PP tok/s
22.4
TG tok/s
27163
TTFT (ms)
19.3
Peak mem (GB)
Hardware
Chip
M2 Ultra (60c)
Memory
128 GB
GPU Cores
60
Software
oMLX
v0.5.1
macOS
macOS 26.5
Context
4,096
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 154.6 | 23.2 | 17.6 GB | view |
| 4k | 150.8 | 22.4 | 19.3 GB | current |
| 8k | 147.3 | 21.3 | 21.6 GB | view |
| 16k | 143.1 | 19.6 | 24.5 GB | view |
| 32k | 136.0 | 16.8 | 27.4 GB | view |
| 64k | 120.8 | 13.0 | 30.9 GB | view |
| 128k | 93.4 | 8.9 | 43.7 GB | view |
| 195k | 75.6 | 6.7 | 61.3 GB | view |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 23.2 | 1.00× |
| 2× | 37.6 | 1.62× |
| 4× | 51.7 | 2.23× |
| 8× | 57.2 | 2.47× |