← Back to community benchmarks
gemma-4-31b-it
Performance
4k
tokens
194.8
PP tok/s
11.6
TG tok/s
21023
TTFT (ms)
34.8
Peak mem (GB)
Hardware
Chip
M4 Max (40c)
Memory
128 GB
GPU Cores
40
Software
oMLX
v0.3.2
macOS
macOS 26.4
Context
4,096
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 196.1 | 12.4 | 33.1 GB | view |
| 4k | 194.8 | 11.6 | 34.8 GB | current |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 12.4 | 1.00× |
| 2× | 22.4 | 1.81× |
| 4× | 31.6 | 2.55× |