OpenAI · First MLX build 29 Aug 2025 · In Core AI since 8 Jun 2026

gpt-oss-20b

MLXCore AI Text apache-2.0 Trending

A 21B parameter text generation model from OpenAI, with 4 MLX builds, from MXFP4 to 4-bit and Apple Core AI export recipes for macOS.

Show details for
Hugging Face Apple recipe
Parameters
21B
From Hugging Face
Quantisation
MXFP4
gpt-oss-20b-MXFP4-Q8
Memory needed
16 GB
Estimate, unified memory
Download
11.8 GB
Weights, estimated
Downloads
173K
This build, last 30 days
Task
Text generation
Text
MLX builds
4
On mlx-community
Devices
Mac
Apple silicon

Memory

Estimated from the size of the weights, plus a fifth for context and working memory and 2 GB for macOS and your apps. Long contexts need more.

Run it

Terminal · mlx-lm
$ pip install -U mlx-lm
$ mlx_lm.generate --model mlx-community/gpt-oss-20b-MXFP4-Q8 --prompt "Hello"

MLX builds

4 on mlx-community
Click a column to sort. Smallest size and most downloads are highlighted.
gpt-oss-20b-MXFP4-Q8 MXFP4 11.8 GB 16 GB 173K
gpt-oss-20b-MXFP4-Q4 MXFP4 11.8 GB 16 GB 2.4K
gpt-oss-20b-OptiQ-4bit 4-bit 11.8 GB 16 GB 1.8K
gpt-oss-20b-mxfp4-bf16 MXFP4 14.4 GB 19 GB 454

Sizes are estimated from Hugging Face’s parameter counts and the quantisation. Downloads are for the last 30 days.