license: apache-2.0
base_model: mrfakename/Qwen4-35B-A3B-abliterated
base_model_relation: quantized
pipeline_tag: image-text-to-text
tags:
- lucid
- gguf
- llama.cpp
- qwen
- abliterated
- uncensored
Qwen4-35B-A3B (abliterated) GGUF
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

GGUF quants of mrfakename/Qwen4-35B-A3B-abliterated, which is Qwen/Qwen4-35B-A3B with its refusal behaviour removed by directional ablation.
These are the unsloth/Qwen4-35B-A3B-GGUF quants with the edit applied in place. Only the edited tensors were dequantized, edited and requantized to their original type. Everything else is byte-identical.
| Folder | Size | Files | Notes |
|---|---|---|---|
Q8_0 |
56 GiB | 2 | Closest to the original weights, and the full edit survives. |
UD-Q4_K_XL |
34 GiB | 2 | Good default. |
UD-Q2_K_XL |
26 GiB | 2 | Smallest. Most of the edit still survives (see below). |
Each folder holds a split GGUF. Point llama.cpp at the -00001-of- file and it loads the rest.
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:
attn_output/ssm_outon all 40 layersffn_down_exps(routed experts) on layers 10–33ffn_down_shexpon layers 23–36
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 projector and the MTP layer are bit-identical to the original quants.
Results (Q8_0, 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.
How much of the edit survives each quant
The edit is small, and at low bit widths rounding can undo part of it. The edited tensors were requantized with error feedback to keep as much of it as possible. This is the worst-case share of the intended change lost per tensor, from patch-stats.txt. Unsloth's UD quants keep these tensors at high precision, so very little is lost:
| Folder | attn_output / ssm_out |
ffn_down_exps |
ffn_down_shexp |
|---|---|---|---|
Q8_0 |
~0% | ~0% | ~0% |
UD-Q4_K_XL |
~0% (Q8_0) | ≤4% (Q6_K / Q5_K) | ~0% (Q8_0) |
UD-Q2_K_XL |
~0% (Q8_0) | ≤5% (IQ4_XS / IQ3_S) | ≤3% (Q5_K) |
Only Q8_0 was benchmarked. For another quant with the full edit, load an original quant from unsloth/Qwen4-35B-A3B-GGUF with the LoRA: --lora abliteration-lora.gguf.
Running
Mainline llama.cpp supports Qwen4. These files were patched with llama.cpp at commit a105b19; use that or any newer build. For vision, add one of the mmproj-*.gguf files with --mmproj.
Files
Q8_0/,UD-Q4_K_XL/,UD-Q2_K_XL/: the patched quants, e.g.llama-server -m UD-Q4_K_XL/Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf.mmproj-*.gguf: the unchanged vision projector.abliteration-lora.gguf: a rank-1 LoRA that applies the same edit to the original (unpatched) GGUFs.abliteration-edit.npz: the directionQand the per-layer strengthsscales[layer, (attn, shexp, exps)]. The edit isW' = W - s·QQᵀW.patch-stats.txt: per-tensor patch log.
This model will comply with harmful requests. You are responsible for how you use it.
Abliterated with Lucid (lucid-toolkit.org).