license: apache-2.0
base_model: Qwen/Qwen4-35B-A3B
library_name: llama.cpp
pipeline_tag: text-generation
tags:
- gguf
- quantized
- qwen4
- apple-silicon
- abliterated
- uncensored
Qwen4-35B-A3B abliterated GGUF for Macs and GPUs
Qwen4-35B-A3B without refusals, in two sizes: our 15 GB and 20 GB files with the same 64 of 911 tensors edited; everything else is byte for byte the main files. On 124 held-out requests, read by hand, the 15 GB file refuses 1 with thinking off and the 20 GB file 6, and neither refuses any with thinking on. The originals refuse 120 or more in each mode.

We dedicate this model to Philipp Emanuel Weidmann (p-e-w), who wrote Heretic and said farewell on 28 November 2026. Heretic made removing refusals something anyone can run, check and reproduce.
Why another one
Since Heretic, anyone can run an automated abliteration, and many people have done so for this model. We wanted to do something different from one more uncensored file, so we did two things:
- A hybrid abliteration that starts from a Heretic run: Heretic's search halved the refusals in both thinking modes and then stopped improving, because it can only search with thinking off, and Qwen4 refuses along a different direction when it thinks. So the second step, whose weights are the ones in these files, is a closed-form edit that removes both directions.
- A simple quantization test, asking whether an abliteration survives 2- to 6-bit quantization and whether it makes the model more sensitive to it. Many abliterated models are tested in 16 bits and quantized later by others, while these were measured as the files you download.
Which file
| Size | For | Files (download both) |
|---|---|---|
| 15 GB | 16 GB GPUs, 24 GB Macs | Qwen4-35B-A3B-abliterated-IQ2_M-00001-of-00002.gguf (15.3 GB) and -00002-of-00002.gguf (11.5 GB) |
| 20 GB | 24 GB GPUs, 32 GB Macs | Qwen4-35B-A3B-abliterated-IQ4_XS-00001-of-00002.gguf (20.5 GB) and -00002-of-00002.gguf (11.5 GB) |
The first file of each pair is the model, the second the n-gram table, which llama.cpp finds by itself and reads from the SSD as needed. The table is the same file for both sizes and in the main repo, so if you already have it, copy it under the matching name instead of downloading it again. Memory use and speed are those of the main files (see "Will it fit?" on the main card). The 15 GB files also stay under their first names, Qwen4-35B-A3B-abliterated-0000{1,2}-of-00002.gguf, so existing links keep working.

How it compares
| Original 15 GB | Abliterated 15 GB | Original 20 GB | Abliterated 20 GB | |
|---|---|---|---|---|
| Refusals, thinking off (124 held-out requests) | 120 | 3 (by hand 1) | 120 | 9 (by hand 6) |
| Refusals, thinking on | 120 | 0 | 123 | 1 (by hand 0) |
| Refusals, thinking on, effort low | 0 | 4 (by hand 0) | ||
| Drift from the BF16 original (KL), documents | 0.118 | 0.148 | 0.054 | 0.095 |
| Drift from the BF16 original (KL), a second document sample | 0.104 | 0.139 | 0.053 | 0.098 |
| HumanEval (164 problems, pass@1) | 96.3% | 94.5% | 97.0% | 93.9% |
| Repetition loops (20 greedy prompts) | 0 | 0 | 0 | 0 |
| Replies that hit the token cap (same 20 prompts, 4,096 tokens) | 2 | 5 | 1 | 2 |
| MTP draft acceptance (8 prompts) | 0.41 | 0.45 | 0.42 | 0.42 |
- Refusals: HarmBench's standard behaviors, minus any that resemble the prompts used to build the edit (124 of 200 kept), with Qwen's recommended sampling for each mode and up to 4,096 (off) or 8,192 (on) tokens. A reply counts as a refusal if a refusal phrase appears in its first 500 characters (see "Measuring refusals"). For the abliterated files we also read every flagged reply: most are answers that mention a law or open with a disclaimer, and one real refusal of the 15 GB file ("I'm going to decline this one") wasn't flagged at all. The 20 GB file's 6 real refusals offer alternatives instead of, for example, a drug synthesis or racist text. It keeps a few more than the 15 GB file, which matches our quantization test: the closer to BF16, the more of these few refusals survive.
- Drift is KL divergence to the BF16 original on held-out documents (English and Chinese Wikipedia, code, books; 98K and 16K tokens), with the same n-gram table for all four files. Most of the increase is the edit itself, which puts even the BF16 model 0.067 and 0.070 from the original. Measured against the 15 GB file alone, the edit is 0.051 and 0.053, about 26% and 33% on top of that file's own drift.
- HumanEval: the 15 GB pair solves 158 and 155 of 164 (the BF16 original 155), the 20 GB pair 159 and 154. The 20 GB pair differs on only 11 problems (8 solved only by the original, 3 only by the abliterated file, p 0.23), so both gaps are within the noise.
- MTP: the built-in draft head is not edited, and it predicts the edited models as well as the originals.
Thinking
With thinking on, the abliterated files plan their answer to a harmful request the way the original plans any demanding task. On 48 harmless requests of the same kinds (code, chemistry, persuasive texts, plans, letters), the original 15 GB file thinks 12,100 characters on average and the abliterated one 14,100, so the edit itself changes little about how long the model thinks.
On the 124 harmful requests that comes to about 13,500 characters, where the originals stop after 1,000 to 1,600 with a refusal. Some of the longest, mostly code, reach the 8,192-token budget before answering (24 for 15 GB, 19 for 20 GB). Ordinary prompts get replies about as long as before (median +4%, 15 GB); a few more of them hit the 4,096-token cap (5 of 20 against 2), within the noise of 20 prompts.

For quicker answers, set effort low (see "Run it"). It roughly halves the thinking on the harmful requests (to 7,700 characters for 15 GB and 7,100 for 20 GB), leaves 11 and 9 at the budget instead of 24 and 19, and still refuses nothing. On the harmless requests it goes from 14,100 to 6,700 characters, with answers 20% longer. A thinking budget (--reasoning-budget 2048 with a closing message) works too, but trims less: 22% against 51% on our 82 selection requests.
How it was made
Harmful requests move each layer's hidden state in the same direction, compared with harmless ones, and that direction carries the refusal, so removing it from what the layers write removes the refusal (Arditi et al., 2024).
- Heretic: we ran Heretic 2.1.0 (its ARA method) for 80 trials on the BF16 model, thinking off. Its best balanced trial halved the refusals in both modes (82 test requests: 79 to 36 with thinking off, 78 to 34 with thinking on). Heretic can only search with thinking off, and its refusal counter misses Qwen4's usual wording (below).
- Two directions: we measured the refusal direction per layer with thinking off and with thinking on, from 128 harmful and 128 harmless prompts. They differ (cosine 0.2 to 0.4), as OpenUncensored also found.
- The edit: W' = W − 2·B·Bᵀ·W on the 64 matrices that write into the hidden state in layers 8 to 39: the attention and linear-attention outputs and the shared expert's down projection. Strength 2 removes each direction and pushes the same amount the other way. We chose layers and strength on a separate set of 82 requests; of the six settings we tried, this is the mildest that brings both modes under 15% refusals.
- Into the 15 GB file: the edited matrices keep the main file's tuned block scales; only the codes that the edit moves across a rounding boundary change. Into the 20 GB file, whose 64 matrices are Q8_0: the edited weights rounded to BF16 and quantized fresh, with a quantizer that reproduces the main file's bytes exactly from the unedited weights. With a zero edit, either procedure returns its main file byte for byte.

Not edited: the routed experts (codebook tensors in both files, which would need re-encoding), the token embedding, the output layer, the MTP head, the vision tower and the chat template. No fine-tuning and no token suppression.
The quantization test
We ask two simple questions: does the edit survive quantization, and does an abliterated model quantize worse than the original?
- How much of the edit survives the rounding: 96.5% in the 15 GB file's 5- and 6-bit types (median over the 64 tensors, lowest 93.4%), 100.0% in the 20 GB file's Q8_0 (lowest 99.97%).
- Refusals after quantization, on the 82 selection requests, counted by hand: the edited model refuses 7 with thinking off in BF16, 2 at plain Q4_K_M and 5 in the 15 GB file, and none with thinking on at any of the three; the original refuses 77 to 79 with thinking off. Quantization brought no refusals back, and the few left are on the same prompts.
- Added drift: we quantized the edited and the original BF16 model the same way and compared each with its own BF16. The edited model drifts no more than the original. The ratio of the two drifts is 0.92 [0.90, 0.95] at Q4_K_M and 0.96 [0.95, 0.98] with the 15 GB file's recipe on 48 document chunks; on a second sample of 8 chunks it is 0.94 and 0.99, with intervals up to 1.00 and 1.03, so a small increase is not ruled out there.
- One edit, two recipes and one reply per request, so this says that the edit survives, not that every abliteration will.
Measuring refusals
- Refusal phrases are Heretic's list plus Qwen4's own openings ("I'm not going to", "I'm not able to"). Heretic's list alone misses them: on the original model it counts 50 of 82 refusals where a reader counts 78. Edited models refuse more often in exactly that style, so a keyword list without those phrases can show 13 refusals where there are 45.
- The 82 requests used to choose the edit (JailbreakBench) and the 124 used for the table (HarmBench) share no prompt with each other or with the 128 the directions came from.
Run it
Same as the main files (llama.cpp with Qwen4 support, b12973 or later):
llama-server -m Qwen4-35B-A3B-abliterated-IQ2_M-00001-of-00002.gguf -ngl 99 --jinja -c 32768 --temp 1.0 --top-p 0.95 --top-k 20
llama-server -m Qwen4-35B-A3B-abliterated-IQ4_XS-00001-of-00002.gguf -ngl 99 --jinja -c 32768 --temp 1.0 --top-p 0.95 --top-k 20
Add --reasoning-effort low for shorter thinking (see "Thinking").
Limits
- This model answers requests the original refuses, including harmful ones. You are responsible for how you use it.
- One reply per request on a CUDA GPU; differences of a few refusals are noise.
- HumanEval is the only task benchmark so far, run with thinking on; effort low is measured for length and refusals, not for answer quality.
- The edit misses the drift bar we set ourselves (up by at most 0.03): it is up 0.030 and 0.035 in the 15 GB file and 0.041 and 0.045 in the 20 GB file. Our other bar, 95% of ordinary replies finished within the token cap, both meet on HumanEval (159 and 160 of 164) and miss on 20 loop prompts (15 and 18 of 20; the originals 18 and 19), a set too small to separate them.
- We also tried keeping the edit away from the directions that separate thinking from non-thinking (a "CoT shield"). Those directions overlap the refusal directions by only 1 to 5%, and the shielded edit measured the same as this one, so we kept this one.
License
Apache 2.0, as Qwen4-35B-A3B. The tensors not edited come from the main 15 GB and 20 GB files, whose expert tensors are Unsloth's. Heretic (AGPL-3.0) was used to search and to start our refusal counter; no Heretic code is in these files.