license: apache-2.0
base_model:
- Qwen/Qwen3.8-27B
base_model_relation: finetune
library_name: mlx
pipeline_tag: text-generation
tags: - mlx
- quantized
- abliterated
- uncensored
- qwen38
Qwen3.8-27B Uncensored MLX 8-bit
Qwen/Qwen3.8-27B with its refusal direction removed from the weights, converted to MLX for mlx-lm, text only: the vision tower and the MTP layer are left out. Affine quantization, group size 64, scales and biases in float16. 8-bit: every linear layer, the token embedding and the LM head. Norms and the other unquantized tensors in float16, except A_log in bfloat16.
The weights are the published Qwen3.8-27B Uncensored edit (Xylolabs/Qwen3.8-27B-Uncensored-GGUF) re-applied to Qwen/Qwen3.8-27B, then quantized. Against that edit's BF16 weights, the 10 tensors checked (token embedding, LM head, and output projections in layers 0, 3, 38 and 63) are bit-identical, the unquantized MLX model's KL is 0.000478 on WikiText-2 (4 x 512), and it answers 7/7 on the 7-question check.
Refusals are reduced: this model answers many requests the original declines.
How to run
pip install mlx-lm==0.32.2
mlx_lm.generate --model Xylolabs/Qwen3.8-27B-Uncensored-MLX-8bit --prompt "Explain how a heat pump works."
mlx_lm.chat --model Xylolabs/Qwen3.8-27B-Uncensored-MLX-8bit
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 this model's BF16 weights.
| 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.000354 | 99.26% | 0.000327 | 99.31% | 0.000250 | 99.06% | 7/7 (BF16: 7/7) |
| MLX 4-bit | 16.81 GB | 0.039687 | 90.82% | 0.045670 | 91.76% | 0.040544 | 89.25% | 7/7 (BF16: 7/7) |
Which file for your hardware
| Hardware | Memory | File | Context |
|---|---|---|---|
| Mac Studio M5 Max, 32-core GPU | 36 GB unified | Xylolabs/Qwen3.8-27B-Uncensored-MLX-4bit (4-bit, 16.81 GB) |
121K |
| Mac Studio M5 Max, 40-core GPU | 48 GB unified | Xylolabs/Qwen3.8-27B-Uncensored-MLX-8bit (8-bit, 28.58 GB) |
80K |
| Mac Studio M5 Max, 40-core GPU | 64 GB unified | Xylolabs/Qwen3.8-27B-Uncensored-MLX-8bit (8-bit, 28.58 GB) |
256K |
| Mac Studio M5 Ultra | 96 GB unified | Xylolabs/Qwen3.8-27B-Uncensored-MLX-8bit (8-bit, 28.58 GB) |
256K |
| Mac Studio M5 Max, 40-core GPU | 128 GB unified | Xylolabs/Qwen3.8-27B-Uncensored-MLX-8bit (8-bit, 28.58 GB) |
256K |
| Mac Studio M5 Ultra | 256 GB unified | Xylolabs/Qwen3.8-27B-Uncensored-MLX-8bit (8-bit, 28.58 GB) |
256K |
| Mac Studio M5 Ultra, 80-core GPU | 512 GB unified | Xylolabs/Qwen3.8-27B-Uncensored-MLX-8bit (8-bit, 28.58 GB) |
256K |
License and notices
Apache License 2.0 (LICENSE). We modified the weights (refusal direction removed), converted them to MLX and quantized them; see NOTICE.
Updates
- 2026-11-27: First release.