Xylolabs

gpt-oss-20b MLX 8-bit

openai/gpt-oss-20b converted to MLX for mlx-lm. The MoE experts keep the original MXFP4 weights. Attention, router, token embedding and LM head: 8-bit affine, group size 64, scales and biases in float16. Norms, biases and attention sinks in float16.

How to run

pip install mlx-lm==0.32.2

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

Accuracy

KL and top-1 against 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
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-27: First release.
Downloads last month
20
Safetensors
Model size
21B params
Tensor type
U32
·
F16
·
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-8bit

Quantized
(271)
this model

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