license: apache-2.0
base_model: Qwen/Qwen4-35B-A3B
pipeline_tag: image-text-to-text
tags:
- lucid
- abliterated
- uncensored
Qwen4-35B-A3B (abliterated)
Huge thanks to Hugging Face for generously sponsoring the compute used to abliterate these models! This was done on HF Jobs, which makes it incredibly easy to run tasks such as these :)
Join the Discord: https://discord.com/invite/foss

This is Qwen/Qwen4-35B-A3B with its refusal behaviour removed by directional ablation. It keeps the same files, format and BF16 layout as the original, so it loads anywhere the original loads.
GGUF quants: mrfakename/Qwen4-35B-A3B-abliterated-GGUF.
What changed
Chat mode and think mode refuse along somewhat different directions, but here a single (rank-1) direction built from both was enough to remove both:
- Refusal directions were measured separately for chat and think prompts at every layer, on the Q8_0 GGUF.
- The direction is the top singular vector of all of those directions together.
- It was projected out of the residual-stream writes, with a separate strength for each layer and each kind of writer. That is 78 tensors:
- the attention output of all 40 layers:
self_attn.o_projon the full-attention layers,linear_attn.out_projon the linear-attention layers - the routed experts'
mlp.experts.down_projon layers 10–33 (all 256 experts) - the shared expert's
mlp.shared_expert.down_projon layers 23–36
- the attention output of all 40 layers:
The routed experts had to be edited too. Qwen4's shared expert is tiny, so most of what the MoE writes into the residual stream comes from the routed experts. Editing only attention and the shared expert left refusals at 98/100.
The strengths per layer came from a multi-objective search: minimise refusals and keep the first-token KL on harmless prompts low.
Nothing else was touched: embeddings, the router, the per-layer n-gram embeddings, the vision tower and the MTP layer are bit-identical to the original. The edited BF16 tensors were rounded with error diffusion along the removed direction, so the removal is not undone by rounding.
Results (Q8_0 GGUF, greedy)
| refusals, chat (/100) | think mode, reasoning heads for refusal (/100) | KL, harmless first token | |
|---|---|---|---|
| original | 98 | 96 | 0 |
| abliterated | 2 | 2 | 0.29 |
The 100 prompts are held-out harmful requests:
- Chat replies got 384 generated tokens.
- Think mode ran at the default "high" reasoning effort and got 2048 tokens. The reasoning had not finished by then on these prompts, so the reasoning text itself was judged, for the original too.
The KL figure includes a noise floor of about 0.07 that comes from batched inference: two runs of the unedited model already differ by that much. KL is higher here than on our other releases. Across the 70 search trials, no setting that removed most refusals got below about 0.2, so expect some small changes in wording on ordinary prompts.
Files
model-*.safetensors: the patched BF16 checkpoint (same index as the original).abliteration-lora.gguf: a rank-1 LoRA that applies the same edit to the original GGUFs. Use it withllama-server -m Qwen4-35B-A3B-Q8_0-00001-of-00002.gguf --lora abliteration-lora.gguf.abliteration-edit.npz: the directionQand the per-layer strengthsscales[layer, (attn, shexp, exps)]. The edit isW' = W - s·QQᵀW.bake-stats.txt: per-tensor check of how much of the direction is left after the edit.
This model will comply with harmful requests. You are responsible for how you use it.
Abliterated with Lucid (lucid-toolkit.org).