← Back to community benchmarks
gemma-4-31b-it
Performance
32k
tokens
174.4
PP tok/s
0.7
TG tok/s
187938
TTFT (ms)
38.9
Peak mem (GB)
Hardware
Chip
M4 Max (40c)
Memory
128 GB
GPU Cores
40
Software
oMLX
v0.3.1
macOS
macOS 15.7.5
Context
32,768
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 196.2 | 11.3 | 33.1 GB | view |
| 4k | 195.0 | 7.9 | 34.8 GB | view |
| 8k | 192.8 | 9.1 | 35.4 GB | view |
| 16k | 186.4 | 1.8 | 36.5 GB | view |
| 32k | 174.4 | 0.7 | 38.9 GB | current |
| 64k | 153.4 | 0.4 | 43.7 GB | view |
| 128k | 120.0 | 0.6 | 53.1 GB | view |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 11.3 | 1.00× |
| 2× | 19.8 | 1.75× |