← Back to community benchmarks
gemma-4-31B-it-OptiQ
Performance
4k
tokens
587.1
PP tok/s
19.7
TG tok/s
6976
TTFT (ms)
24.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
4,096
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 644.7 | 21.3 | 22.3 GB | view |
| 4k | 587.1 | 19.7 | 24.9 GB | current |
| 8k | 538.8 | 17.9 | 25.5 GB | view |
| 16k | 485.5 | 16.4 | 26.6 GB | view |
| 32k | 395.8 | 8.1 | 29.6 GB | view |
| 64k | 204.3 | 7.0 | 35.6 GB | view |
| 128k | 169.1 | 5.4 | 47.6 GB | view |
| 195k | 130.0 | 4.2 | 62.6 GB | view |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 21.3 | 1.00× |
| 2× | 16.5 | 0.77× |
| 4× | 22.0 | 1.03× |
| 8× | 25.4 | 1.19× |