license: apache-2.0
license_link: https://huggingface.co/Qwen/Qwen4-35B-A3B/blob/main/LICENSE
base_model: OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
library_name: mlx
pipeline_tag: image-text-to-text
tags:
- mlx
- omlx
- oq
- quantized
- 3-bit
- mtp
- qwen4
- qwen4_moe
- moe
- uncensored
- abliterated
Qwen4-35B-A3B-Uncensored-oQ3e-mtp (MLX)
A 3-bit oMLX oQ3e build of OpenUncensored/Qwen4-35B-A3B-Uncensored (a refusal-ablated edit of Qwen/Qwen4-35B-A3B) with the native MTP head kept. At about 31 GB it is meant for 48 GB Macs. As of 2026-12-05, the only 3-bit uncensored MTP builds we found used plain oQ3. This one uses enhanced quantization (oQe: imatrix rounding plus output-error refinement).
[!WARNING]
This model has its refusal behaviour removed. It will answer requests that the original model declines.
You are responsible for how you use it and for complying with the law and with the
Qwen license. Do not deploy it for end users without your own safeguards.
Choosing a build
All five builds are from the same pipeline (oMLX v0.8.5 oQ*e, MTP head kept or grafted) and were measured the same way:
Mac Studio M5 Max 128 GB, oMLX with native kernels, one request at a time, short contexts, thinking off, median decode
speed over 3 prompts × 2 runs. All five passed our internal 9-case task check (9/9, 0 refusals).
| Build | Ablation | Disk | Memory while serving | Decode, MTP off → on | Suggested Mac |
|---|---|---|---|---|---|
| Uncensored-oQ3e-mtp | OpenUncensored | 30.9 GB | ≈30 GB (est.) | 143 → 160 tok/s | 48 GB+ |
| Uncensored-oQ4e-mtp | OpenUncensored | 35.2 GB | 34 GB (measured) | 139 → 175 tok/s | 64 GB+ |
| Uncensored-oQ5e-mtp | OpenUncensored | 41.9 GB | ≈41 GB (est.) | 129 → 156 tok/s | 64 GB+ |
| Heretic-oQ4e-mtp | Heretic | 35.2 GB | ≈34 GB (est.) | 134 → 174 tok/s | 64 GB+ |
| Heretic-oQ6e-mtp | Heretic | 48.5 GB | 47 GB (measured) | 122 → 151 tok/s | 96 GB+ |
- Memory is the oMLX process footprint with the n-gram (PLE) table resident, at short context; long contexts need more
for the KV cache. "est." means we did not record the footprint for that build; it is the size on disk minus about 1 GB,
which is how the measured builds behaved. - Suggested Mac assumes macOS's default GPU memory limit (about 75% of RAM): 48 GB → ~36 GB usable, 64 GB → ~48 GB,
96 GB → ~72 GB. You can raise the limit withsudo sysctl iogpu.wired_limit_mb=...at your own risk. - Smaller is not faster here. Decode on Apple Silicon is mostly memory-bound, but with MTP the draft acceptance also drops
as precision drops, so oQ3e ends up slower than oQ4e with MTP on. oQ4e is the balanced pick; oQ3e only if it is the one that fits. - If oMLX's memory guard is set below what the build needs, it moves the n-gram table to SSD, and decode gets about 2.5×
slower. Leave a few GB of headroom.
What was done
| Step | Detail |
|---|---|
| Source | OpenUncensored/Qwen4-35B-A3B-Uncensored BF16 (113.6 GB). All safetensors checked against the published SHA-256 |
| Custom code | *_qwen4.py, qwen4_detector.py, tokenizer and config files are byte-identical to Qwen/Qwen4-35B-A3B (git blob hashes compared) |
| Not included | The source's edit.safetensors / edit.pt. The ablation is already merged into the source weights |
| MTP | preserve_mtp=True (76 tensors) |
| Quantizer | oMLX v0.8.5, quantize_oq_streaming, level 3, oQe (enhanced), group size 64, trust_remote_code=True |
| Calibration | oQe imatrix, 1024 samples × 512 tokens (built-in oqe_code_multilingual set), then oQe output-error refinement over all 40 layers |
| Result | 30.9 GB on disk (≈4.34 bits/weight averaged over all 56.8B stored parameters, including the n-gram table, which oQ keeps at 4 bits or more, and the BF16 vision tower). MTP head: kept (76 tensors). The n-gram (PLE) table is included in the weights |
| Time | 9.3 min, reusing a cached imatrix on a Mac Studio (M5 Max, 128 GB) |
oMLX note: the quantizer was called directly because the v0.8.5 admin API does not forward trust_remote_code. One local
one-line fix (_refine_oqe_streamed passes trust_remote_code to the tokenizer loader). Neither change affects how the weights are computed.
Usage (oMLX)
Put this repo in a subfolder of your oMLX model directory. In the model settings, turn on Trust Remote Code (the Qwen4
tokenizer and chat rendering run Python code shipped in this repo) and MTP. Build oMLX's native kernels (make kernels,
needs Xcode's Metal Toolchain) for the Lightning MTP path. We tested only oMLX v0.8.5, not plain mlx-lm or mlx-vlm.
Our test results
Mac Studio, Apple M5 Max, 128 GB, macOS 27.2. oMLX v0.8.5 with native kernels, single request, n-gram table resident (not
offloaded to SSD), thinking off.
Decode speed (streaming; tokens after the first ÷ time; 3 prompts × 2 runs, max_tokens 1024, temperature 0.2)
| Setting | Chinese explanation | Python code | Chinese essay | Median |
|---|---|---|---|---|
| MTP off | 142–143 tok/s | 143 tok/s | 143 tok/s | 142.9 tok/s |
| MTP on (Lightning MTP) | 97 / 178 tok/s | 177–198 tok/s | 127–144 tok/s | 160.3 tok/s |
Task benchmark (our internal 9-case set)
Three disassembly or pseudo-code explanations (CRC32, RC4, XOR string decryption), three security-concept explanations (two of
them prompts that refusing models usually decline), two tool-calling cases and one Chinese instruction-following case. The system
prompt asks for Traditional Chinese. Temperature 0.2.
| Build | Passed | Refusals | Simplified-Chinese chars | Total time |
|---|---|---|---|---|
| This build, oQ3e + MTP | 9/9 | 0 | 3 | 50.9 s |
| oQ4e + MTP (sibling, same machine) | 9/9 | 0 | 2 | 57.8 s |
| Qwen3.8-27B uncensored (RVN) GGUF Q5_K_M + DFlash2, llama.cpp (our previous model) | 9/9 | 0 | 0 | 268.0 s |
- Refusals: none in our 9 cases, but only two of them are dedicated refusal probes, so this does not rule out that
quantization weakened the ablation. Measure refusals on your own prompt set if you need a reliable number. - Language: three Simplified characters slipped into otherwise Traditional Chinese answers. The first MTP run is cold (97 tok/s).
Credits and license
- Base model: Qwen/Qwen4-35B-A3B, Apache 2.0, by the Qwen team.
- Refusal ablation: OpenUncensored/Qwen4-35B-A3B-Uncensored, Apache 2.0.
- Quantization: oMLX oQ / oQe.
- This repo is a modified (quantized) derivative distributed under Apache 2.0. See
LICENSE. Changes from the source: weights requantized to oQ mixed precision (MLX affine), MTP head kept,edit.*files removed, README replaced.