← Back to community benchmarks
gemma-4-31b-it
Performance
4k
tokens
200.7
PP tok/s
23.5
TG tok/s
20410
TTFT (ms)
20.2
Peak mem (GB)
Hardware
Chip
M4 Max (40c)
Memory
64 GB
GPU Cores
40
Software
oMLX
v0.3.9.dev2
macOS
macOS 26.4.1
Context
4,096
Performance by Context Length
| Context | PP tok/s | TG tok/s | Peak Mem | |
|---|---|---|---|---|
| 1k | 201.4 | 24.1 | 17.6 GB | view |
| 4k | 200.7 | 23.5 | 20.2 GB | current |
| 8k | 198.4 | 22.7 | 20.7 GB | view |
| 16k | 191.0 | 21.1 | 21.9 GB | view |
| 32k | 178.3 | 18.8 | 24.9 GB | view |
| 64k | 157.6 | 15.3 | 30.9 GB | view |
Batching Results
| Batch Size | TG tok/s | Speedup |
|---|---|---|
| 1× | 24.1 | 1.00× |
| 2× | 41.0 | 1.70× |
| 4× | 45.8 | 1.90× |