Local AI Bench

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 capacityCacheTotal allocation
4,096 tokens0.10 GB13.09 GB
8,192 tokens0.20 GB13.20 GB
16,384 tokens0.41 GB13.42 GB
32,768 tokens0.81 GB13.86 GB

Recorded tests

Model / hardwareRuntimePrompt / windowDecodeSource
gpt-oss-20bM4 Max 64 GBollama0.40.16MXFP416,384 / 32,76891.1 tok/sMeasured2026-11-29 UTC
gpt-oss-20bM4 Max 64 GBollama0.40.16MXFP44,096 / 8,19299.8 tok/sMeasured2026-11-29 UTC
gpt-oss-20bM4 Max 64 GBollama0.40.16MXFP4512 / 8,192102.8 tok/sMeasured2026-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.