Can You Run gpt-oss-20b on M4 Max 64 GB?
MXFP4 · ollama · 16,384-token input · 32,768-token context window
Ran successfully
Measured Run recorded 2026-11-29 UTC with ollama 0.40.16. The estimated working allocation is 16.8 GB for gpt-oss-20b in MXFP4.
91.1 tok/s measured in ollama 0.40.16 on 2026-11-29 The GPU shares its 64 GB pool with macOS.
Adjust configuration- Estimated weights
- 13.8 GB
- Estimated FP16 cache
- 0.8 GB
- Estimated overhead
- 2.2 GB
- Estimated GPU budget
- 41.6–48.0 GB
Context sensitivity
Estimated| Context capacity | Cache | Total allocation |
|---|---|---|
| 4,096 tokens | 0.10 GB | 13.09 GB |
| 8,192 tokens | 0.20 GB | 13.20 GB |
| 16,384 tokens | 0.41 GB | 13.42 GB |
| 32,768 tokens | 0.81 GB | 13.86 GB |
Recorded tests
| Model / hardware | Runtime | Prompt / window | Decode | Source |
|---|---|---|---|---|
| gpt-oss-20bM4 Max 64 GB | ollama0.40.16MXFP4 | 16,384 / 32,768 | 91.1 tok/s | Measured2026-11-29 UTC |
| gpt-oss-20bM4 Max 64 GB | ollama0.40.16MXFP4 | 4,096 / 8,192 | 99.8 tok/s | Measured2026-11-29 UTC |
| gpt-oss-20bM4 Max 64 GB | ollama0.40.16MXFP4 | 512 / 8,192 | 102.8 tok/s | Measured2026-11-29 UTC |
Related profiles
Frequently asked questions
Does gpt-oss-20b fit on M4 Max?
Ran successfully for MXFP4 with 32,768 context tokens. The verdict comes from an observed run.
How fast is generation?
91.1 tok/s measured in ollama 0.40.16 on 2026-11-29
How much difference does context make?
At 32,768 tokens, the estimated FP16 attention cache is 0.81 GB. The weight allocation stays around 13.79 GB when only context changes.