Xylolabs

gpt-oss-20b MLX 4-bit

openai/gpt-oss-20b is the source model. The MLX weights run with mlx-lm.

How to run

pip install mlx-lm==0.32.2

mlx_lm.generate --model Xylolabs/gpt-oss-20b-MLX-4bit --prompt "What is the capital of Australia?"

Accuracy

The reference for KL and top-1 is the original weights (MXFP4 experts, other weights BF16) on WikiText-2, chat and held-out text (40/20/20 chunks of 512).

Quant Size WikiText-2 KL top-1 Chat KL top-1 Held-out KL top-1 7-question answer check
MLX 4-bit 11.47 GB 0.354894 54.66% 0.704089 67.49% 0.452159 53.51% 7/7
MLX 8-bit 12.08 GB 0.069925 85.13% 0.103656 89.75% 0.074301 83.04% 7/7
mlx-community MXFP4-Q8 12.08 GB 0.088387 82.00% 0.226985 84.39% 0.096826 80.41%
mlx-community MXFP4-Q4 11.18 GB 0.641462 41.38% 3.073213 30.84% 1.003017 31.53%
BF16 13.76 GB 7/7
Mean KL divergence by file size Top-1 agreement by file size

License

Apache License 2.0. See LICENSE, USAGE_POLICY and NOTICE.

Updates

  • 2026-11-29: Charts redrawn in the dark theme with fewer point labels.
  • 2026-11-28: Card text trimmed; third-party rows added.
  • 2026-11-27: First release.
Downloads last month
163
Safetensors
Model size
21B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Xylolabs/gpt-oss-20b-MLX-4bit

Quantized
(272)
this model

Collections including Xylolabs/gpt-oss-20b-MLX-4bit