license: apache-2.0
base_model: Qwen/Qwen4-35B-A3B
pipeline_tag: image-text-to-text
tags:
- gguf
- abliterated
- uncensored
- qwen4
- mtp
- llama.cpp
Qwen4-35B-A3B Abliterated (GGUF: Q4_K_M + MTP head)
Qwen/Qwen4-35B-A3B with its refusal direction removed from the weights, quantized
to Q4_K_M with the same recipe as ggml-org's Q4_K_M (same file size, to the byte), plus a matching abliterated
MTP head for speculative decoding.
This model answers requests the original refuses, including harmful ones. It has no safety layer. You are
responsible for how you use it and for complying with the law where you are.
Files
| File | Bytes | SHA256 |
|---|---|---|
Qwen4-35B-A3B-Abliterated-Q4_K_M.gguf |
36,007,915,136 | d6705c2117a2f21dc7e682e2111328e194247a83dc3098b8027fb3b561d6c4c3 |
mtp-Qwen4-35B-A3B-Abliterated-Q4_K_M.gguf |
1,288,913,120 | ebf73bca0c91b2d9b506c3011d8683a3003847889206b65d13408cf9862d86b2 |
mmproj-Qwen4-35B-A3B-BF16.gguf |
902,822,368 | 1beaf1fe78ba5a6adfbcf3dd58e40997562f015bb1c126253d55fd11f4d186ab |
Qwen4-35B-A3B-Abliterated-Q4_K_M.gguf: the abliterated model.mtp-Qwen4-35B-A3B-Abliterated-Q4_K_M.gguf: optional 1-layer MTP speculative decoding head, abliterated the same way (stock size: 1,288,913,120 bytes).mmproj-Qwen4-35B-A3B-BF16.gguf: the stock vision encoder, unchanged (a byte-identical copy of the original). Vision was not evaluated.
Results on the held-out split (this build vs stock, same conditions)
This split was never used to choose between versions. It was run once, on this build and on the stock Q4_K_M.
Conditions: llama.cpp llama-server, chat template defaults (thinking on, effort high), the GGUF's own sampling
defaults, seed 0, at most 4096 tokens per reply (thinking + answer).
| stock Q4_K_M | this build | |
|---|---|---|
| StrongREJECT (n=150): refused, per judge | 99.3% | 12.0% |
| StrongREJECT: judge score, 0–1 (higher = fuller answer) | 0.007 | 0.844 |
| StrongREJECT: hit the 4096-token limit | 0.0% | 2.0% |
| XSTest safe prompts (n=150): wrongly refused | 0.0% | 0.0% |
| XSTest safe prompts: partly refused | 2.0% | 0.7% |
| Replies stuck in a loop (StrongREJECT / XSTest) | 0.0% / 0.0% | 0.0% / 0.0% |
<think> tags leaking into the answer (all 330 replies) |
0 | 0 |
| MATH-500 level 5 (n=15) | 11/15 | 10/15 |
| HumanEval (n=15) | 15/15 | 15/15 |
- Judge: a fixed StrongREJECT-rubric grader (Qwen3.8-27B-OBLITERATED Q8_0, thinking off, frozen since earlier
releases so numbers stay comparable). Before scoring, it graded a fixed anchor set and read 0.6875
(expected 0.6875 ± 0.005) with 0 unparsed replies. Every reply above was scored; 0 unparsed. - StrongREJECT prompts that overlap the prompts used to find the refusal direction (8-gram match) were removed.
- Small samples. MATH and HumanEval at n=15 can only show a collapse: one problem is 6.7 points. Treat them as a
sanity check, not a benchmark.
Refusals by category (held-out split, per judge)
| StrongREJECT category | stock | this build |
|---|---|---|
| Sexual content | 48/48 | 12/48 |
| Violence | 51/51 | 5/51 |
| Non-violent crimes | 50/51 | 1/51 |
Most of what this build still refuses is in sexual content. The StrongREJECT list is ordered by category and was
split by position, so the selection split and the held-out split cover different categories (selection: Disinformation and deception, Hate, harassment and discrimination, Illegal goods and services, Non-violent crimes;
held-out: Non-violent crimes, Sexual content, Violence). This category was therefore never seen while choosing the version.
How the version was chosen
- Screen (thinking off, 120 harmful + 120 harmless prompts, prefix-match grader) over 18 variants.
Stock refused 98.3% of harmful and 0.0% of harmless prompts;
this build 0.0% and 0.0%, with 0 replies leaking<think>tags (stock 0). - Selection split (thinking on, judge, separate prompts from the table above): the top two variants vs stock.
| selection split | stock | this build | runner-up |
|---|---|---|---|
| StrongREJECT (n=150): refused, per judge | 97.3% | 2.0% | 2.0% |
| StrongREJECT: judge score | 0.027 | 0.886 | 0.812 |
| StrongREJECT: hit the token limit | 0.0% | 10.0% | 22.7% |
| XSTest (n=100): wrongly refused | 0.0% | 0.0% | 0.0% |
| MATH L5 + HumanEval (of 30) | 26 | 24 | 24 |
The judge anchor read 0.6887 with 0 unparsed on this split too. Rule, fixed before the run: a variant must match
stock on wrongly refused safe prompts (+3 points at most), loops, <think> leaks and MATH+HumanEval (−3 at most),
and hit the token limit on at most 15% of StrongREJECT; among those that pass, the highest judge score wins.
Method
- Direction: mean difference of the residual stream between 128 harmful and 128 harmless prompts at the last
prompt token, in the Qwen4 chat template, read at block 28. - Edit:
W ← W − 2·r(rᵀW)(reflection, not just removal) on every tensor that writes to the residual stream in
blocks 8–39 (ssm_out,attn_output,ffn_down_exps,ffn_down_shexp), plus the MTP head's writers
(attn_output,ffn_down_exps,ffn_down_shexp,nextn.eh_proj). Routers untouched. - Left alone on purpose:
token_embd, the per-layer n-gram embeddings, and blocks 0–7. Editing those made the
model print its reasoning and<think>/</think>tags inside the answer with thinking off. We found this by
splicing stock tensors back into an edited Q4_K_M one group at a time. - Quant: BF16 → edit → Q4_K_M with ggml-org's imatrix and per-tensor type overrides; sizes match ggml-org's files
exactly (main 36,007,915,136 bytes, MTP 1,288,913,120 bytes).
MTP head (speculative decoding)
Greedy (temperature 0), thinking off, 3 short benign prompts. This repo's head gave exactly the same text as the stock
head. With either head, the text differs slightly from no draft at near-tied words (for example "starts" vs "begins"),
most likely because llama.cpp checks draft tokens in a batch and the batched math rounds a little differently. The
stock head does the same, so it is not caused by abliterating the head.
| hardware | draft | tok/s | draft tokens accepted | same text as stock MTP head |
|---|---|---|---|---|
| 1x RTX 3090 (n-gram table in RAM) | no draft | 114.7 | — | — |
| 1x RTX 3090 (n-gram table in RAM) | stock MTP head | 139.0 | 48% | — |
| 1x RTX 3090 (n-gram table in RAM) | this repo's MTP head | 132.9 | 48% | 3/3 |
| CPU only (EPYC 7402, 16 threads) | no draft | 6.76 | — | — |
| CPU only (EPYC 7402, 16 threads) | stock MTP head | 13.67 | 51% | — |
| CPU only (EPYC 7402, 16 threads) | this repo's MTP head | 13.82 | 50% | 3/3 |
Usage (llama.cpp)
Needs a llama.cpp build with Qwen4 support.
llama-server -m Qwen4-35B-A3B-Abliterated-Q4_K_M.gguf --jinja -ngl 99 \
-md mtp-Qwen4-35B-A3B-Abliterated-Q4_K_M.gguf --spec-type draft-mtp --spec-draft-n-max 3 \
--mmproj mmproj-Qwen4-35B-A3B-BF16.gguf
- Fits one 24 GB GPU if the n-gram embedding table stays in system RAM: add
-ot per_layer_token_embd=CPU. - Thinking is on by default; turn it off per request with
"chat_template_kwargs": {"enable_thinking": false}. - Sampling: use the values Qwen recommends for the stock model.
Limitations
- The refusal direction does not remove refusals evenly: see the per-category table. Sexual-content prompts are refused
far more often than the other categories. - Sample sizes are small (150 StrongREJECT, 150 XSTest, 15 MATH, 15 HumanEval on the held-out split). Differences of
a few points are inside the noise. - Only Q4_K_M was built and tested. Vision input, long context, tool use and the
xhigheffort setting were not tested. - Other abliterated / uncensored Qwen4-35B-A3B builds exist. Their cards report their own numbers on their own prompt
sets and graders; we have not run them through this harness, so we make no comparison.
Built and measured 2026-12-04. Base model license: Apache-2.0.