← Back to community benchmarks
gemma-4-31b-it
Performance
4k
tokens
200.1
PP tok/s
19.5
TG tok/s
20472
TTFT (ms)
19.5
Peak mem (GB)
Hardware
Chip
M4 Max (40c)
Memory
128 GB
GPU Cores
40
Software
oMLX
v0.3.6
macOS
macOS 26.4.1
Context
4,096
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 200.5 | 23.4 | 17.6 GB | view |
| 4k | 200.1 | 19.5 | 19.5 GB | current |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 23.4 | 1.00× |
| 2× | 38.7 | 1.65× |
| 4× | 43.4 | 1.85× |