Run this model with HF Jobs

Run Xylolabs/gpt-oss-20b-MLX-4bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Xylolabs/gpt-oss-20b-MLX-4bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Xylolabs/gpt-oss-20b-MLX-4bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Xylolabs/gpt-oss-20b-MLX-4bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
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
MLX 4-bit 11.47 GB 0.114787 78.07% 0.145192 77.14% 0.115458 77.76%
MLX 8-bit 12.08 GB 0.069925 85.13% 0.103656 89.75% 0.074301 83.04%
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
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-12-02: Refit affine attention and output head weights with Hessian-weighted OBS (WikiText-2 KL 0.354894 -> 0.114787, Chat KL 0.704089 -> 0.145192, Held-out KL 0.452159 -> 0.115458); charts redrawn.
  • 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
342
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
(271)
this model

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