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

KL and top-1 against BF16.

Quant Size WikiText-2 KL top-1 Chat KL top-1 Held-out KL top-1 7-question answer check
MLX 8-bit 28.58 GB 0.000384 99.19% 0.001776 99.29% 0.000244 99.08% 7/7 (BF16: 7/7)
lmstudio-community 8-bit 28.58 GB 0.001040 98.00% 0.001860 98.26% 0.000762 98.31%
MLX 4-bit 15.13 GB 0.045196 90.06% 0.060599 91.73% 0.045803 88.90% 7/7 (BF16: 7/7)
lmstudio-community 4-bit 15.13 GB 0.045966 90.01% 0.064137 91.24% 0.045938 88.57%
mlx-community 4-bit 15.13 GB 0.045731 89.97% 0.060903 91.43% 0.046112 88.47%
Mean KL divergence by size Top-1 agreement by 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-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
110
Safetensors
Model size
27B params
Tensor type
U32
·
F16
·
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
(1,995)
this model

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