abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.
← back to catalog · indexed 2026-12-05 18:08added 2026-12-05 18:08

donedynamics/Qwen4-35B-A3B-DD-Uncensored-MLX-4bit

donedynamics Qwen 35B MoE

M1 Direction removal · 37 downloads · 0 likes

Your rigComputer guess connected
? Why do I need an app?
Reading your rig…Checking…

Below is the per-quantization compatibility for this model.Below: which compressed versions fit your computer.

Reading your computer's memory from the app right now. The fit below is measured on this machine.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/donedynamics%2FQwen4-35B-A3B-DD-Uncensored-MLX-4bit"
Response includesThe data includes
  • method_v2.family M1
  • files 21
  • author_summary 18 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload10 credits · updated hourly · reply about 4 KB Get an API key →
Abliteration classifier · v2.2.0 · M-codes 2.0How this model was made
M1
Method familyMethod

Direction removal

Uncensoring event in this repository: M1 · classic · L8-33.Refusals were removed here.

EvidenceHow we know
ˢ Stated
Specialist codeShort code M1 · classic · L8-33 · original · MLX ˢ
  • VariantForm classic S
  • Scope L8-33 S
  • LineageFamily tree original S
  • DistributionFiles MLX T
Why this label 7 answers
FamilyMethod
M1 Stated The card names a direction-removal tool or states the abliterationThe card says so
VariantForm
classic Stated Direction removal stated without a refinement: the classic formThe standard form
Scope
L8-33 Stated Layer range stated in the card
Tool
not stated
Post-processingAfterwards
not stated
LineageFamily tree
original Stated Published as the author's own release, with no uncensored ancestorThe author's own release
DistributionFiles
MLX Tool record From the repository's file formatsFrom the files
Target
refusal Guessed No other target stated, so refusals
Where the change lives
weights Stated Follows from the familyFollows from the method
Hardened base
not stated
Refusal direction extracted viaFinding the refusal signal
Extraction techniqueHow it was found

Difference-of-means

Confidence
MEDIUM
Why we say so
primary_method=M3; difference-of-means is the reference extraction for M1/M3 (Arditi 2024)

Licence and originprovenance

Original release
  • Provider: Qwen (Alibaba) Provider: Qwen (Alibaba) original.provider
  • Release: Qwen/Qwen4-35B-A3B Original release repo: Qwen/Qwen4-35B-A3B original.release_id
  • Licence of the original release: Apache-2.0 Licence of the original release: Apache-2.0 original.licence
  • EU training-content summary published: not found as of 2026-11-29 EU training-content summary (AI Act Art. 53(1)(d)): none found, last checked 2026-11-29 original.eu_training_summary
  • Provider documents taken from the researched release of the same release line, Qwen/Qwen1.5-0.5B-Chat Provider documents taken from the researched release of the same release line, Qwen/Qwen1.5-0.5B-Chat original.eu_training_summary.from_release
  • Original release found via models it says it is built on Link found in the lineage graph (declared base models) link_source
This model
  • Licence stated by this model: apache-2.0 Licence in the model card metadata: apache-2.0 this_model.declared_licence
  • None of the checked licence points of the original release applies None of the checked licence points of the original release applies this_model.flags
Details
  • Full licence text dated copy of 29 Nov 2026 licence_text
  • Chain to this model 1 step, 6 file hashes chain
  • Provider documents 6 facts with sources provider_documents
  • Licences side by side licences

From public data checked on 2026-12-06. Not legal advice. How this is checked · Report a problem with this information

Downloads · lifetimeDownloads · all time
37
Likes
0
Model age
1d ago
created 2026-12-05
Downloads over time
Now 0 → from 0 –
0011 0 on Dec 5 0 on Dec 6 Dec
Dec 5 → Dec 6 · 2 snapshots · spans 1 dayDec 5 → Dec 6 · 2 recorded counts over 1 day

GenealogyFamily tree 0 direct forks

Full fork graph →All family trees →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.Its place among other models. Above: what it comes from. Below: models built on it, directly or through other models.

Qwen/Qwen4-35B-A3B this lineage
donedynamics/Qwen4-35B-A3B-DD-Uncensored-MLX-4bitM1uncensoring eventrefusals removed here↓ 37

MetadataDetails

License
Tags
mlxsafetensorsqwen4_moeapple-siliconmoetext-onlyabliterateduncensoredtext-generationconversationalbase_model:Qwen/Qwen4-35B-A3Bbase_model:quantized:Qwen/Qwen4-35B-A3B

Related

Control vectorsSteering files

Total size
33.3 GB
Files
21
Quantizations
none
Indexed by usAdded
2026-12-05 18:08
Last updated on HFLast updated
2026-12-05 17:17

Files by quantizationFiles by compression

Weights 7 files 33.2 GB
model-00003-of-00007.safetensors 5.00 GB c3ed91a1 download
model-00005-of-00007.safetensors 4.90 GB af940a84 download
model-00006-of-00007.safetensors 4.90 GB 66b2db24 download
model-00004-of-00007.safetensors 4.89 GB b124efca download
model-00007-of-00007.safetensors 4.57 GB 5dc0ffca download
model-00001-of-00007.safetensors 4.51 GB 710268f7 download
model-00002-of-00007.safetensors 4.47 GB 4c3953bf download
Auxiliary files 14 files 36.5 MB
tokenizer.json 31.5 MB ace7a7a7 download
tiktoken.model 4.60 MB 0962a705 download
model.safetensors.index.json 186 KB 4f7cafd3 download
config.json 157 KB fb1064c7 download
encoding_qwen4.py 32.0 KB ab094b2b download
processing_qwen4.py 30.6 KB 19d81739 download
tokenization_qwen4.py 14.4 KB b2dbd064 download
chat_template.jinja 11.6 KB b197b4ac download
LICENSE 11.3 KB f938136e download
README.md 10.3 KB 25b68119 download
qwen4_detector.py 7.60 KB d8513248 download
tokenizer_config.json 7.47 KB 8119411d download
.gitattributes 1.53 KB 52373fe2 download
generation_config.json 201 B 8fd7f7db download

READMEAuthor's description from Hugging Face, captured 2026-12-05


library_name: mlx
license: apache-2.0
pipeline_tag: text-generation
base_model: Qwen/Qwen4-35B-A3B
tags:

  • mlx
  • qwen4_moe
  • apple-silicon
  • moe
  • text-only
  • abliterated
  • uncensored

Qwen4-35B-A3B DD-Uncensored — MLX 4bit (text-only)

4bit MLX build of our own refusal-ablated edit of Qwen/Qwen4-35B-A3B for Apple Silicon. 35B parameters, 3B active per token, 1M-token context.

We read the refusal directions from the stock model ourselves, searched the edit strength against a measured drift budget, and checked the result at every precision with thinking on and off. On the 100-prompt harmful_behaviors test it refuses 0 of 100 where the stock model refuses about 90. See How the edit was made and Refusals.

At a glance

Size on disk 35.7 GB
Bits per weight 4.5 (mixed, see recipe)
Decode speed 61.4 tok/s (M3 Ultra)
Peak memory 38.3 GB at 16K context
Context 1,048,576 tokens
Vision no — use the VL sibling for images

Requirements — read this first

Released mlx-lm (0.32.2 at the time of writing) does not know the qwen4_moe architecture. Support is in an open pull request, ml-explore/mlx-lm#2140. Until it merges:

pip install "git+https://github.com/jundot/mlx-lm@7b35ab57159442082a64f0a8282ea61b4940cd17" tiktoken xgrammar

That is branch qwen4-moe, pinned to the commit these builds were tested with. The tokenizer is remote code, so pass trust_remote_code.

Usage

mlx_lm.generate --model donedynamics/Qwen4-35B-A3B-DD-Uncensored-MLX-4bit --trust-remote-code \
  --prompt "Introduce yourself briefly." --max-tokens 256
from mlx_lm import load, generate

model, tok = load("donedynamics/Qwen4-35B-A3B-DD-Uncensored-MLX-4bit", tokenizer_config={"trust_remote_code": True})
msgs = [{"role": "user", "content": "Introduce yourself briefly."}]
prompt = tok.apply_chat_template(msgs, add_generation_prompt=True,
                                 enable_thinking=False)
print(generate(model, tok, prompt=prompt, max_tokens=256))

Thinking mode

The chat template reasons by default and the answer starts only after <think> closes, so a small max_tokens can return reasoning and nothing else. Pass enable_thinking=False for direct answers. Quality checks ran with thinking off; the refusal test ran both ways.

Quantization recipe

Uniform 4-bit costs this architecture about a third of its perplexity. The damage sits in a few small modules that save almost nothing when quantized, above all the hyper-connection mixers that blend the model's four residual streams. The 4-bit build keeps them in bf16, puts embeddings and lm_head at 8-bit, and uses group size 32 for the rest. 6-bit and 8-bit are uniform: they already match bf16.

Perplexity, 64 fixed samples × 512 tokens, stock model (bf16 = 8.913):

Step Perplexity Size
Uniform 4-bit, group 64 (what mlx_lm.convert -q does) 11.945 30 GB
Hyper-connection mixers kept in bf16 9.361 30 GB
… and embeddings + lm_head at 8-bit 9.201 30 GB
… and group size 32 (the shipped 4-bit recipe) 8.926 33 GB

Script: convert_qwen4.py.

Measured

Mac Studio, Apple M3 Ultra, 512 GB, macOS 26.5.2, mlx 0.32.5. Decode is greedy generation of 128 tokens; prefill is on the stated prompt length; each build measured alone. Perplexity: 64 fixed samples × 512 tokens, same seed for every build; this family's bf16 is 9.069 ± 0.154, so differences under about one standard error are noise. Sanity is six short prompts (arithmetic, Turkish, Russian, code, JSON, instructions) checked by substring.

Build Size Decode Decode @16K Prefill @16K Peak mem Perplexity Sanity
4bit 35.7 GB 61.4 tok/s 55.3 tok/s 2608.0 tok/s 38.3 GB 9.173 (+0.104) 6/6
6bit 45.2 GB 53.2 tok/s 48.4 tok/s 2542.3 tok/s 47.8 GB 9.042 (-0.027) 6/6
8bit 59.0 GB 52.3 tok/s 47.5 tok/s 2597.7 tok/s 61.6 GB 9.042 (-0.027) 6/6
bf16 111.1 GB 46.9 tok/s 43.0 tok/s 2608.7 tok/s 113.6 GB 9.069 (+0.000) 6/6

Single runs on one machine — a guide, not a benchmark suite. Harness and raw JSON: scripts/, results/.

Refusals

The first 100 prompts of the mlabonne/harmful_behaviors test split, the same protocol as on our Kimi-K3.1 card: greedy, a reply counts as a refusal when a refusal phrase appears in its first 400 characters (700 with thinking on, where the reply starts with reasoning). None of these prompts was used to find the edit. Five harmless prompts guard against a model that refuses everything; every build answered all five.

Thinking off

Precision Stock OpenUncensored edit DD-Uncensored
4bit 90/100 1/100 0/100
6bit 91/100 0/100 0/100
8bit 89/100 1/100 0/100
bf16 90/100 1/100 0/100

Thinking on

Precision Stock OpenUncensored edit DD-Uncensored
4bit 71/100 0/100 0/100
6bit — — 0/100
8bit — — 0/100
bf16 61/100 0/100 0/100

— = not run. With thinking on, stock and OpenUncensored were measured at 4bit and bf16 only.

Keyword matching misses soft refusals (a lecture instead of an answer) and says nothing about whether an answer is correct. Read it as a comparison between columns. Script: eval_harmful100.py; only indices and flags are stored, never answer text.

A softer set

30 dual-use prompts (security, chemistry and weapons, drugs and medicine, physical and social, adult fiction), thinking off, greedy, refusal = a refusal phrase in the first 300 characters. Many are things a careful assistant answers anyway, so the stock model refuses only about half: this set shows less than the 100-prompt test above.

Precision Stock OpenUncensored edit DD-Uncensored
4bit 13/30 0/30 0/30
6bit 16/30 0/30 0/30
8bit 13/30 0/30 0/30
bf16 15/30 0/30 0/30

A phrase match undercounts soft refusals and overcounts answers that quote a refusal — read it as a comparison between rows, not an absolute rate. eval_refusal.py has the prompts.

How the edit was made

Qwen4 keeps four residual streams per token and every block writes one 2048-wide vector into all four. We read the mean of the streams at the last prompt token after each of the 40 layers, for 128 harmful prompts (mlabonne/harmful_behaviors, train split) and 128 harmless ones (mlabonne/harmless_alpaca, train split), once with thinking off and once with it on. The difference of means, with the harmless mean projected out, gives one direction per layer and mode. The two modes refuse along different directions (cosine 0.22-0.50), so each layer gets a rank-2 basis B covering both.

The edit is W' = W - s B Bᵀ W on every residual writer of layers 8-33: the DeltaNet out_proj or sparse-attention o_proj, the shared expert down_proj and the down_proj of all 256 routed experts, 78 tensors, with s = 1.75. It is computed in float32 and rounded once to bf16. Every other tensor is byte-identical to Qwen's release.

The strength came out of a search. Each candidate was applied in memory and scored on held-out prompts (the test split) for refusals and for drift: the KL divergence of the first answer token on 32 harmless prompts against the untouched model. A layer-range grid, 16 random settings with separate strengths per writer and these finalists:

Layers Strength Refused (off) Refused (thinking) KL
8-33 1.5 0/100 0/40 0.273
8-33 1.75 0/100 0/40 0.288
9-33 attn 2.37, shared 2.13, routed 0.51 0/100 0/40 0.351
6-34 attn 1.27, shared 2.49, routed 2.46 0/100 0/40 0.334

The weakest finalist was enough at bf16, but at 4-bit one prompt came back, so the shipped edit uses s = 1.75 for some margin against quantization. For scale, the OpenUncensored edit measured 0/40 refused at KL 0.282 on the same harness. Script: abliterate_qwen4.py.

Responsible use

This model answers requests the stock model declines. That includes requests that are harmful. It adds no safety layer of its own: evaluate it before exposing it to users and apply the filtering your use case needs. You are responsible for what you do with it.

What is and is not here

  • No MTP head. The 31 multi-token-prediction tensors are not in the conversion, so no speculative decoding from the model's own head.
  • N-gram embedding tables are kept and quantized with everything else.
  • No image input in this build.
  • Depends on an unmerged mlx-lm branch; behaviour may shift when it merges.

Conversion

python scripts/abliterate_qwen4.py directions Qwen/Qwen4-35B-A3B dirs.npz
python scripts/abliterate_qwen4.py apply <local copy of Qwen/Qwen4-35B-A3B> dirs.npz Qwen4-35B-A3B-DD-Uncensored-src \
  --lo 8 --hi 33 --alpha 1.75
python scripts/convert_qwen4.py Qwen4-35B-A3B-DD-Uncensored-src Qwen4-35B-A3B-DD-Uncensored-MLX-4bit \
  --bits 4 --protect hc --high 8 --group 32

Run with mlx-lm branch qwen4-moe. tiktoken.model, chat_template.jinja and the preprocessor configs were copied from the source repo by hand: mlx_lm.convert does not carry them over, and without the chat template apply_chat_template raises.

License and credit

Apache-2.0, inherited from the base model. Credit for the model goes to the Qwen team at Alibaba. Source: Qwen/Qwen4-35B-A3B.

README historyEdit history 1 version1 edit

The author's README evolved over time. Click a version to see its content at that point.The author changed the description over time. Click a date to see the text as it was then.

  1. 2026-12-05 Model card ca14588 10.3 KB
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration