language:
- en
- zh
- es
- fr
- ja
- ko
- de
- ru
license: other
license_name: dealignai-community-model-license-v0.3
license_link: https://huggingface.co/dealign/Qwen4-35B-A3B-UNCENSORED-MLX-6bit/blob/main/LICENSE
base_model: Qwen/Qwen4-35B-A3B
base_model_relation: quantized
library_name: mlx
pipeline_tag: image-text-to-text
thumbnail: dealign_mascot.png
tags: - qwen4
- qwen4-moe
- mlx
- apple-silicon
- vmlx
- uncensored
- abliterated
- reasoning
- tool-calling
- vision-language
- mtp
- moe
![]() |
Qwen4-35B-A3B-UNCENSORED-MLX-6bit
Abliteration, MLX conversion and release by Andrew Hornsby
Hugging Face · X · [email protected]
An uncensored 56.8B-total (3B-active) Qwen4 MoE VLM built for Apple Silicon. I packed the abliterated Qwen/Qwen4-35B-A3B text decoder, lossless BF16 vision/video tower, native MTP head, and SSD-backed 6-bit PLE/Engram table into 46.94 GiB on disk (32.46 GiB active GPU RAM — fits comfortably on 48 GiB+ Macs), 2.26× smaller than the 105.87 GiB BF16 parent. On a 512 GiB M5 Ultra, it loads natively in vMLX in 6.73 s, decodes at 81.0 tokens/s, and prefills 2K context at 6,073 tokens/s.
I built this Apple Silicon edition directly from Qwen/Qwen4-35B-A3B using exact simultaneous QR norm-preserving dense abliteration (leaving 100% of all 30,720 routed MoE experts, all vision/video tensors, all MTP tensors, and layers 0–9 untouched), followed by mixed-precision MLX affine quantization (6-bit gs=64 mid-layer MoE experts, 8-bit gs=64 edge MoE layers L0–L3/L36–L39 and dense projections, 6-bit gs=64 SSD-backed PLE, lossless BF16 vision/MTP/routers/hyper-connections).
Thank you to Lyber AI for donating the machine I used for this project. Eric at DealignAI, thank you for everything you’ve taught me and for your friendship.
Benchmarks
| Qwen4-35B-A3B-UNCENSORED-MLX-6bit on M5 Ultra | Base BF16 | Uncensored BF16 | MLX-6bit Release |
|---|---|---|---|
| Active GPU RAM / On-disk bundle | 67.69 / 105.87 GiB | 67.69 / 105.87 GiB | 32.46 / 46.94 GiB |
| Native vMLX load time | 24.39 s | 24.6 s | 6.73 s |
Decode speed (ctx=256) |
55.0 tok/s | 55.0 tok/s | 81.0 tok/s |
Prefill speed (L=2048) |
4,334 tok/s | 4,334 tok/s | 6,073 tok/s |
Held-out KL vs Base BF16 (Top-1 / Top-5) |
0.00000 | 0.01259 (98.8% / 100%) |
0.01686 (98.83% / 100.0%) |
| 5-shot MMLU-1140 (logit, all 57 subjects) | 82.81% | 82.63% | 81.67% (cKL = 0.0557) |
Uncapped MMLU-570 high (114 q, all 57 subj) |
87.72% (STEM 89.47%) |
91.23% (STEM 92.11%) |
— (+0.004 KL quant delta) |
MMLU-Pro thinking=ON (70 q, all 14 cats) |
78.57% | 84.29% (+5.72 pp) |
11/14 (effort=low, temp=0.7) |
GSM8K thinking=ON |
95.00% (38/40) |
97.50% (39/40) |
100.0% (12/12 across all temps) |
| HarmBench-240 ex-copyright (96-tok deep audit) | 234/240 refused | 239/240 clean (0 loops) |
239/240 clean (99.58%, 0 soft/loops) |
| HarmBench-320 incl. copyright (32-tok) | 314/320 refused | 320/320 clean (0/320 ref) |
— |
| Lyber utility false refusals | — | 0/18 | 0/18 |
| Degenerate loop audit (228 runs across temps & efforts) | — | 0 loops | 0 / 228 loops |
Release checks, sampling sweep and serving measurements
Recommended sampling and reasoning modes
Bundled defaults in generation_config.json:
temperature = 0.7,top_p = 0.95,top_k = 20,presence_penalty = 0.3— tied highest reasoning accuracy (88.5%combined MMLU-Pro + GSM8K), shortest final answers (69.5mean tokens),24%leaner<think>traces thantemp=0.6, and 0 degenerate loops. Avoidpresence_penalty >= 0.5.chat_template_kwargs.reasoning_effort: supportsoff,low,high, andxhigh.lowis the recommended everyday default (100%clean EOS, ~185-token concise<think>, strong math/code accuracy).highprovides deeper multi-step reasoning (usemax_tokens >= 4096so<think>never truncates).offgives instant direct answers for JSON, formatting, and short utility tasks.
How to serve
Install vMLX on Apple Silicon, download the files, verify checksums, and serve natively with vMLX (no custom Python tokenizer or xgrammar required):
hf download dealign/Qwen4-35B-A3B-UNCENSORED-MLX-6bit --local-dir ./qwen4-35b-mlx-6bit
cd ./qwen4-35b-mlx-6bit
shasum -a 256 -c SHA256SUMS
/Applications/vMLX.app/Contents/Resources/bundled-python/python/bin/python3 -m vmlx_engine.cli serve "$PWD" \
--host 127.0.0.1 --port 8000 --served-model-name qwen4-35b-uncensored
Send requests to /v1/chat/completions using model qwen4-35b-uncensored. Set chat_template_kwargs.reasoning_effort to off, low, high, or xhigh.
License
Andrew’s abliteration and MLX conversion contributions use the DealignAI Community Model License v0.3. Third-party hosted inference and cloud API resale require separate written permission. Personal and internal business use, including on rented hardware, is permitted under the license. Qwen’s upstream license applies to upstream materials. Release license
Use the model lawfully. You are responsible for its outputs. Do not use it to harm, deceive or exploit people, or to generate child sexual abuse material or non-consensual intimate content.
