license: apache-2.0
library_name: mlx
pipeline_tag: image-text-to-text
base_model: OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
tags:
- mlx
- omlx
- oq
- qwen4
- uncensored
- abliterated
- mtp
Qwen4-35B-A3B-Uncensored-oQ8e-mtp (MLX)
An 8-bit mixed-precision MLX build of
OpenUncensored/Qwen4-35B-A3B-Uncensored
(a refusal-ablated edit of Qwen/Qwen4-35B-A3B),
quantized with oMLX oQ8e. The native MTP head and the vision tower are kept.
This model has its refusal behaviour removed. It answers requests the original model declines.
You are responsible for how you use it.
Read this first: turn on trust_remote_code
Qwen4 has no Jinja chat template. Its chat encoding lives in tokenization_qwen4.py andencoding_qwen4.py. oMLX loads models with trust_remote_code off by default, and with it off
this model still loads and writes fluent text, but:
- tool calls come back as prose, never as
tool_calls - image input gives garbage
reasoning_effortis ignored and reasoning leaks intocontent- generation is about 2.6 times slower
Turn it on for this model in the oMLX model settings, or:
curl -X PUT http://127.0.0.1:<omlx-port>/admin/api/models/Qwen4-35B-A3B-Uncensored-oQ8e-mtp/settings \
-H "Authorization: Bearer $OMLX_API_KEY" -H "Content-Type: application/json" \
-d '{"trust_remote_code": true}'
The four .py files here are byte-identical to the ones in Qwen/Qwen4-35B-A3B
(git blob ids ab094b2bfaa3, 19d817396734, d8513248d12a, b2dbd06411f0). Check them yourself before
you enable the setting.
Measured on a MacBook Pro M5 Max, 128 GB (oMLX 0.8.5)
Same fixed tasks, temperature 0, one model loaded, 2026-12-05.
| Metric | trust_remote_code off |
on |
|---|---|---|
| Tokens per second (400-token answer) | 50.2 | 130.2 |
| Time to first token | 1.38 s | 0.16 s |
| Load time | 7.9 s | 6.4 s |
| Tool call (one function) | fail | pass |
| Vision (name the colour of 4 solid images) | 0/4 | 4/4 |
| Exact answers (3 short tasks) | 2/3 | 2/3 |
| Recall of one fact in a 60.5K-token prompt | pass, 17.3 s | pass, 12.0 s |
| Benign questions refused (of 3) | 0 | 0 |
| Memory with model loaded | 65.2 GB | 65.2 GB |
The one exact-answer miss is reversing a string, a known weak spot of token-based models.
A further six-prompt check after quantization found no refusals. That is a small sample, not a refusal-rate measurement.
Thinking is on by default. Turn it off per request with"chat_template_kwargs": {"reasoning_effort": "off"}. Recommended sampling from the base model:
temperature 1.0, top_p 0.95, top_k 20.
How it was built
| Source | OpenUncensored/Qwen4-35B-A3B-Uncensored at revision 0b86787a3396095bc19ab2746ac58040ee53cc01, BF16, 113.7 GB. All 56 files checked against the published SHA-256 |
| Not included | The source's edit.safetensors (the ablation basis). The edit is already merged into the weights. oQ fails if that file is in the input folder, so quantize from a copy or symlink view without it |
| Quantizer | oMLX 0.8.5 oQ, level 8, enhanced (oQe), group size 64, preserve_mtp on |
| Importance matrix | 1024 samples of 512 tokens |
| Result | 62.1 GB (57.8 GiB), 13 shards, model_type: qwen4_moe |
| Time | 31 minutes on an M5 Max with 128 GB, no swap used |
The file layout matches mlx-community/Qwen4-35B-A3B-oQ8e-mtp,
the same recipe applied to the stock model.
Requirements
- Apple Silicon and oMLX 0.8.5 or later. It does not load in stock mlx-lm or mlx-vlm.
- About 65 GB of memory. With oMLX's SSD N-gram Offload setting (
qwen4_ple_ssd_offload) the
20B n-gram table stays on disk and memory drops to about 39 GB. That mode was not benchmarked here.
Licence
Apache 2.0, following the base model and the source.