← Back to community benchmarks
gemma-4-31b-it
Performance
4k
tokens
127.5
PP tok/s
17.5
TG tok/s
32123
TTFT (ms)
19.3
Peak mem (GB)
Hardware
Chip
M4 Max (32c)
Memory
36 GB
GPU Cores
32
Software
oMLX
v0.4.1
macOS
macOS 15.7.7
Context
4,096
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 160.8 | 18.3 | 17.6 GB | view |
| 4k | 127.5 | 17.5 | 19.3 GB | current |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 18.3 | 1.00× |
| 2× | 33.2 | 1.81× |
| 4× | 37.1 | 2.03× |