Run this model with HF Jobs

Run Xylolabs/Qwen3.8-27B-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/Qwen3.8-27B-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/Qwen3.8-27B-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/Qwen3.8-27B-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

Qwen3.8-27B MLX 4-bit

Qwen/Qwen3.8-27B converted to MLX for mlx-lm, text only: the vision tower and the MTP layer are left out.

How to run

pip install mlx-lm==0.32.2

mlx_lm.generate --model Xylolabs/Qwen3.8-27B-MLX-4bit --prompt "Explain how a heat pump works."
mlx_lm.chat     --model Xylolabs/Qwen3.8-27B-MLX-4bit

The model thinks by default; add --chat-template-config '{"enable_thinking": false}' to mlx_lm.generate to answer directly.

Accuracy

Each plot averages WikiText-2, chat, and held-out scores against the model's BF16 weights.

Quant Size WikiText-2 KL top-1 Chat KL top-1 Held-out KL top-1 Answer check
MLX 8-bit 28.580 GB 0.000384 99.186% 0.001776 99.294% 0.000244 99.078% 7/7
lmstudio-community MLX 8-bit 28.579 GB 0.001040 98.000% 0.001860 98.255% 0.000762 98.314% 7/7
MLX 4-bit 15.133 GB 0.024419 92.245% 0.033275 93.908% 0.044713 92.137% 7/7
lmstudio-community MLX 4-bit 15.133 GB 0.045966 90.010% 0.064137 91.235% 0.045938 88.569% 7/7
mlx-community MLX 4-bit 15.133 GB 0.045731 89.971% 0.060903 91.431% 0.046112 88.471% 7/7
BF16 55.563 GB 7/7
Mean KL divergence by file size Top-1 agreement with BF16 by file size

Which file for your hardware

Hardware Memory File Context
Mac Studio M5 Max, 32-core GPU 36 GB unified Xylolabs/Qwen3.8-27B-MLX-4bit (4-bit, 15.1 GB) 147K
Mac Studio M5 Max, 40-core GPU 48 GB unified Xylolabs/Qwen3.8-27B-MLX-8bit (8-bit, 28.6 GB) 80K
Mac Studio M5 Max, 40-core GPU 64 GB unified Xylolabs/Qwen3.8-27B-MLX-8bit (8-bit, 28.6 GB) 256K
Mac Studio M5 Ultra 96 GB unified Xylolabs/Qwen3.8-27B-MLX-8bit (8-bit, 28.6 GB) 256K
Mac Studio M5 Max, 40-core GPU 128 GB unified Xylolabs/Qwen3.8-27B-MLX-8bit (8-bit, 28.6 GB) 256K
Mac Studio M5 Ultra 256 GB unified Xylolabs/Qwen3.8-27B-MLX-8bit (8-bit, 28.6 GB) 256K
Mac Studio M5 Ultra, 80-core GPU 512 GB unified Xylolabs/Qwen3.8-27B-MLX-8bit (8-bit, 28.6 GB) 256K

License and notices

Apache License 2.0, copied in LICENSE. We converted the weights to MLX and quantized them; see NOTICE.

Updates

  • 2026-12-03: Rebuilt the accuracy table, CSV and charts.
  • 2026-12-02: Updated 15.13 GB 4-bit scores. KL (Wiki/chat/held-out) 0.045196→0.024419, 0.060599→0.033275, 0.045803→0.044713. Held-out top-1 88.90%→92.14%.
  • 2026-11-29: Charts redrawn in the dark theme with fewer point labels.
Downloads last month
478
Safetensors
Model size
27B 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/Qwen3.8-27B-MLX-4bit

Base model

Qwen/Qwen3.8-27B
Quantized
(2,069)
this model

Collections including Xylolabs/Qwen3.8-27B-MLX-4bit