← Back to community benchmarks
gemma-4-31b-it
Performance
64k
tokens
107.6
PP tok/s
8.8
TG tok/s
609244
TTFT (ms)
30.9
Peak mem (GB)
Hardware
Chip
M3 Max (40c)
Memory
128 GB
GPU Cores
40
Software
oMLX
v0.3.8
macOS
macOS 26.4
Context
65,536
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 170.0 | 18.4 | 17.6 GB | view |
| 4k | 163.0 | 16.5 | 20.2 GB | view |
| 8k | 153.3 | 16.4 | 19.6 GB | view |
| 16k | 131.9 | 9.2 | 21.9 GB | view |
| 32k | 116.5 | 9.8 | 24.9 GB | view |
| 64k | 107.6 | 8.8 | 30.9 GB | current |
| 128k | 86.2 | 3.7 | 42.8 GB | view |
| 195k | 75.0 | 2.0 | 47.1 GB | view |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 18.4 | 1.00× |
| 2× | 26.8 | 1.46× |
| 4× | 33.2 | 1.80× |
| 8× | 34.6 | 1.88× |