← Back to community benchmarks
gemma-4-31b
Performance
4k
tokens
219.8
PP tok/s
7.3
TG tok/s
18637
TTFT (ms)
60.3
Peak mem (GB)
Hardware
Chip
M4 Max (40c)
Memory
128 GB
GPU Cores
40
Software
oMLX
v0.3.3
macOS
macOS 26.4
Context
4,096
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 209.8 | 7.7 | 58.9 GB | view |
| 4k | 219.8 | 7.3 | 60.3 GB | current |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 7.7 | 1.00× |
| 2× | 7.5 | 0.97× |
| 4× | 14.8 | 1.92× |