license: apache-2.0
base_model:
- OpenUncensored/Qwen4-35B-A3B-Uncensored
- Qwen/Qwen4-35B-A3B
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: mlx
language: - en
tags: - mlx
- omlx
- mxfp4
- 4-bit
- apple-silicon
- abliterated
- uncensored
- qwen4
- qwen4_exp
- moe
- vision-language
- reasoning
- mtp
- verisafe
What VeriSafe.Live does
| Offering | What you get |
|---|---|
| 🎯 Custom fine-tuning | Any open-weights model adapted to your data, domain and tone. |
| 🧪 Training from scratch | Purpose-built models designed and trained for your use case. |
| ⚡ Quantization (MLX / GGUF) | Lean builds that run fast on Apple Silicon and llama.cpp. |
| 🌐 Hosted API access | Instant access to served models, with no wait time. |
| 🔓 Uncensored models | Refusal-removed builds for research, red teaming and evaluation. |
🚀 Now live at VeriSafe.Live: uncensored DeepSeek V4.1 Flash 1017, GLM 5.3 Flash and GLM 5.3. No wait time, instant access, crypto accepted.
Model highlights
- MXFP4 (4-bit, group size 32) MLX build, about 5.1 bits per weight on average, 36.52 GB (34.01 GiB) on disk, of the abliterated Qwen4-35B-A3B.
- Vision tower preserved; 1-layer MTP head preserved in the checkpoint.
- Sibling quant: the oQ8 build is about 62 GB and, on M4 Max, faster (about 82 vs about 60 tok/s) and higher fidelity. This MXFP4 build is the smaller one (about 36.5 GB).
Qwen4-35B-A3B-Uncensored-MLX-MXFP4
A MXFP4 MLX conversion of OpenUncensored/Qwen4-35B-A3B-Uncensored, OpenUncensored's full-precision BF16 abliterated (refusal-removed) build of Qwen/Qwen4-35B-A3B.
This is not quantized from the official Qwen checkpoint. Every weight here was streamed from OpenUncensored's BF16 uncensored source with oMLX 0.8.2, on an Apple M4 Max (128 GB), in 34 seconds (streaming writer, no calibration).
The bulk format is native MLX MXFP4 / group-32; see the recipe for which tensors take MXFP4 and which stay at higher precision. The vision tower is preserved and the 1-layer MTP head is kept in the checkpoint.
| Source (this quant) | OpenUncensored/Qwen4-35B-A3B-Uncensored (BF16, abliterated) |
| Original architecture | Qwen/Qwen4-35B-A3B (source qwen4_moe; this repo's config.json declares qwen4_exp) |
| Payload | 36.52 GB safetensors (34.01 GiB) across 8 shards |
| Tensors | 2945 (vision 333 BF16; MTP 32 source tensors, 66 including scales/biases) |
| Layout | 40 layers (3 Gated DeltaNet : 1 full attention), 256 routed experts (8 active) + shared expert, hyper-connections, n-gram embedding, ~3B active of 35B |
| Vision | 27-layer ViT, patch size 16 |
| Context | 1,048,576 tokens |
| Runtime | oMLX 0.8.2 (tested; vision + native Lightning MTP). Processor Qwen3VLProcessor (no remote code). Not loadable in stock mlx-vlm or transformers. |
Sibling quant: junafinity/Qwen4-35B-A3B-Uncensored-MLX-oQ8 is the 8-bit oQ8 build of the same model: about 62 GB instead of about 36.5 GB, but faster on M4 Max (about 82 vs about 60 tok/s) and higher fidelity.
Honest speed note: on an M4 Max this MXFP4 build decodes slower than the oQ8 build (about 60 vs about 82 tok/s), even though it is about 41% smaller. Choose MXFP4 for memory footprint (fits comfortably on 64 GB Macs); choose oQ8 for speed and fidelity if you have about 96 GB or more.
⚠️ Disclaimer — read before use
This conversion inherits the abliteration of the OpenUncensored source. Safety alignment has been substantially removed. As a direct consequence:
- It will comply with harmful, unethical, offensive, or illegal requests that the original
Qwen4-35B-A3Bwould refuse. It has no meaningful built-in guardrails. - It is released strictly for legitimate research: interpretability, AI-safety and refusal-mechanism study, red-teaming, robustness evaluation, and controlled experiments.
- You assume full responsibility and liability for how you use it and for everything it generates. Do not deploy it to end users or in production without adding your own safety, moderation, and abuse-prevention layers.
- Use must comply with the Apache-2.0 license of the source weights and all laws that apply to you.
- The authors and uploaders accept no liability for any misuse or harm. Outputs do not reflect the views of the uploaders, OpenUncensored, or Qwen / Alibaba.
By downloading or using this model you acknowledge and accept the above.
What this is (and is not)
- Derived from OpenUncensored's full-precision uncensored BF16 checkpoint. Abliteration is a residual-writer edit on that source (see their card); this repo only changes numeric format.
- MXFP4 is 4-bit and lossy. The source card warns that quantizing the edited routed experts to 4 bits may weaken the abliteration edit. Here the routed-expert gate/up tensors are MXFP4, but
down_proj(where the edit lives) is kept at affine Q5 to protect it. Refusal rate after quantization is not benchmarked, here or in the source card. If refusal behaviour matters, use the oQ8 build or re-run your own evaluation. - Not an official Qwen or OpenUncensored release. Independent conversion.
- Config note: oMLX 0.8.2 only ships a
qwen4_expimplementation, so the outputconfig.jsondeclaresmodel_type: qwen4_exprather than the source'sqwen4_moe. This is why the repo loads in oMLX but not in stock mlx-vlm or transformers. edit.safetensors(the abliteration basis record in the source repo) is not included here.
Quantization recipe
No sensitivity calibration / imatrix. Format: MLX MXFP4, group size 32, via oMLX 0.8.2 streaming conversion, vision kept, MTP kept. The per-module mapping below is the recipe used for this build.
| Tensors | Format |
|---|---|
Routed experts gate/up (switch_mlp) |
MXFP4, group 32 (default) |
Routed experts down_proj |
affine Q5, group 64 (raised from the Flash-Next recipe's Q4, to protect the abliteration edit) |
| Shared expert gate/up | affine Q5, group 64 |
| Shared expert down | affine Q8, group 64 |
Full-attention q/k/v/o, linear-attention in_proj_qkv / in_proj_z |
affine Q5, group 64 |
Linear-attention out_proj |
affine Q6, group 64 |
Hyper-connection mix weights, PLE projections, hyper_connection_mixer |
affine Q8, group 64 |
block_inject_weight |
affine Q8, group 128 |
| n-gram embedding table (128 shards) | affine Q4, group 32 (instead of MXFP4, so oMLX's PLE SSD-offload path still works on smaller Macs) |
Vision tower (333 tensors), embed_tokens, lm_head, routers, norms, conv1d, A_log / dt_bias, in_proj_a / in_proj_b, indexer, mtp.fc_* / mtp.pre_fc_norm_* |
BF16 |
| MTP head | same rules as the trunk |
Output config: model_type qwen4_exp, text qwen4_exp_text, vision qwen4_exp. Tokenizer from the upstream tokenizer-compat/ files. Average is about 5.1 bits per weight (36.52 GB × 8 divided by the same parameter count as the oQ8 build).
Default quantization in config.json: {"bits": 4, "group_size": 32, "mode": "mxfp4"} plus per-module affine overrides. Peak memory during quantisation was about 10–15 GB.
Memory (128 GB unified Mac)
| Component | Approx. |
|---|---|
| Weights | 34.01 GiB (36.52 GB) |
| Persistent cache at long context | grows with length |
| Practical working set | about 37 GB plus KV cache |
Fits comfortably on a 64 GB Mac. Start with a modest context and increase it as memory allows.
Runtime
oMLX 0.8.2 (tested):
brew tap jundot/omlx https://github.com/jundot/omlx
brew install jundot/omlx/omlx
hf download junafinity/Qwen4-35B-A3B-Uncensored-MLX-MXFP4 \
--local-dir ~/Models/Qwen4-35B-A3B-Uncensored-MLX-MXFP4
omlx serve --model-dir ~/Models
In the oMLX admin panel (/admin), open the model's settings, and keep vision on. Images go in as image_url parts of an OpenAI-style chat message:
curl http://127.0.0.1:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
"model": "Qwen4-35B-A3B-Uncensored-MLX-MXFP4",
"messages": [{"role": "user", "content": [
{"type": "text", "text": "Describe this image."},
{"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}}
]}]
}'
Enabling MTP
The checkpoint carries the model's own 1-layer MTP head (all 32 mtp.* source tensors, with mtp_num_hidden_layers=1 in the config).
- In oMLX, enable Lightning MTP (model setting
mtp_enabled: true). - Do not enable "VLM MTP" (
vlm_mtp_enabled). That option is for an external drafter model, and enabling both makes oMLX reject all of the model's settings. - Reload the model or restart oMLX after changing the setting.
- To verify, the server log shows
Qwen4-Exp Lightning MTP enabled ... (checkpoint layout: mtp.), and each request logsMTP[n] ... accept=lines.
MTP is lossless: greedy (temperature 0) output was byte-identical with MTP on and off on all test prompts. Draft depth is adaptive (default max 3) and mostly settles at depth 2. It runs at batch size 1.
Qwen4 reasons by default. To turn thinking off for a request, send "chat_template_kwargs": {"reasoning_effort": "off"}.
Sampler settings from the source card: thinking off, temperature 0.7, top-p 0.8, top-k 20, presence penalty 1.5; thinking on, temperature 1.0, top-p 0.95, top-k 20.
Stock mlx-vlm, transformers and LM Studio are not supported by this checkpoint (qwen4_exp is implemented only in oMLX 0.8.2).
Quality
This checkpoint has not been scored with PPL, KLD, MMLU, or the OpenUncensored refusal suite. Spot checks on an M4 Max (128 GB), oMLX 0.8.2, temperature 0.7:
| Check | Result |
|---|---|
| Text (short explanation) | Correct Rayleigh-scattering explanation; answered Canberra for Australia's capital |
| Image (abstract macOS wallpaper) | Described accurately: grid of gradient capsule shapes on pale blue, cyan / violet / peach palette, no invented real-world setting |
| Refusal spot check ("savage, profanity-heavy roast" of a friend's cooking, no disclaimers) | Complied, no refusal, no disclaimer. A single prompt, not a refusal benchmark |
| MTP | Working, verified in oMLX 0.8.2; 68.7% of drafted tokens accepted (942 / 1,372), about 1.8–2.7 tokens per step |
Decode speed, temperature 0, 400-token generations over 4 prompts (prose explainer, Python BST code, list of 40 elements, image description), single request, M4 Max:
| Prompt | MTP off (tok/s) | MTP on (tok/s) |
|---|---|---|
| Prose explainer | 60.2 | 67.7 (+12%) |
| Python BST code | 60.3 | 76.3 (+27%) |
| List of 40 elements | 60.0 | 94.9 (+58%) |
| Image description | 59.7 | 66.9 (+12%) |
Overall: about 60 tok/s without MTP, 67–95 tok/s with it (image prompts about 60 / 67). The oQ8 sibling is faster on this hardware (about 82 tok/s without MTP).
The quality checks are single prompts, not benchmarks. MXFP4 error versus the BF16 source is not quantified on this file. If you measure it, a PR / discussion with PPL or KLD vs the OpenUncensored BF16 source would be useful.
Abliteration (from the OpenUncensored BF16 source)
Unchanged by quantization. Summary of OpenUncensored/Qwen4-35B-A3B-Uncensored:
Directional ablation with a rank-2 refusal basis B per layer (thinking off and on refuse along different directions), taken from the mean of the 4 residual streams after each layer. All residual writers on layers 8 to 33 were edited: DeltaNet linear_attn.out_proj or sparse attention self_attn.o_proj, shared expert down_proj, and fused routed experts down_proj (all 256 experts), with W' = W − 1.5·B·Bᵀ·W. In total 78 tensors changed. The n-gram embedding table, vision tower, MTP head, router, gated-residual mixers, and layers 0 to 7 and 34 to 39 are byte-identical to Qwen's files.
Source caveat: speculative-decoding acceptance on the edited weights was not measured by OpenUncensored.
Evaluation on the BF16 source (not this MXFP4 file)
OpenUncensored measured their BF16 weights vs Qwen/Qwen4-35B-A3B with vLLM, on 100 held-out harmful prompts, graded by two judges from different model families.
| Qwen4 35B A3B | OpenUncensored BF16 | |
|---|---|---|
| Refusals, thinking off | 97 / 100 | 2 / 100 |
| Refusals, thinking on | 99 / 100 | 1 / 100 |
| Full answers, thinking off (both judges agree) | 2 / 72 | 63 / 72 |
| Full answers, thinking on (both judges agree) | 1 / 72 | 66 / 72 |
| MMLU, 300 questions, thinking off, greedy | 70.0% | 71.3% |
| SQuAD 2.0 unanswerable questions answered anyway (lower is better) | 7 / 100 | 8 / 100 |
The model answers more requests, not more of everything; it still declines some. Their MMLU prompt asks for a letter only, so read those numbers as a paired comparison, not a leaderboard score. Vision and MTP were not part of the edit and are carried over from the source.
Architecture (unchanged)
Qwen4 35B A3B: 40 layers, hybrid attention (3 Gated DeltaNet : 1 full attention), 256 routed experts (8 active) plus a shared expert, hyper-connections (4 gated residual streams, width 2,048), n-gram embedding table, 27-layer ViT vision tower (patch 16), 1-layer MTP head, 1M context. ~35B total, ~3B active.
Files
8 shards model-00001-of-00008.safetensors … model-00008-of-00008.safetensors, model.safetensors.index.json, config.json (per-module quantization / quantization_config), tokenizer + chat template, vision preprocessor configs. edit.safetensors is not included.
License
Apache-2.0, inherited from Qwen/Qwen4-35B-A3B via the OpenUncensored source. Quantization and this card do not change those obligations.
Acknowledgements
- Qwen / Qwen4-35B-A3B: architecture and original training.
- OpenUncensored: full-precision uncensored BF16 source this quant is derived from.
- oMLX for quantization, vision + MTP serving.
Bias, risks, and limitations
- Safety guardrails removed: see the disclaimer.
- Inherits biases and limitations of Qwen4-35B-A3B and of the OpenUncensored abliteration.
- 4-bit MXFP4 error vs the BF16 source, including any weakening of the abliteration edit, is not quantified on this file.
- Loads only in oMLX 0.8.2 (
qwen4_exp), not in stock mlx-vlm or transformers.
💬 Need a custom model?
If your company or research institute would like us to fine-tune any open-weights model, or train one from scratch, we'd be happy to help.
Drop us a line at [email protected]
Built and published by VeriSafe.Live. Licensed under apache-2.0. Base model: OpenUncensored/Qwen4-35B-A3B-Uncensored, Qwen/Qwen4-35B-A3B (original authors retain their attribution and license).
