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 24 GB Macs and GPUs, 15 GB
Qwen4-35B-A3B without refusals: our 15 GB file for 24 GB Macs and GPUs, with 64 of its 911 tensors edited and the rest byte for byte the same. Of 124 held-out requests it refuses 3 with thinking off and none with thinking on, while the original refuses 120 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 this file, 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 this one was measured as the file you download.
Which file
| File | Size | What |
|---|---|---|
Qwen4-35B-A3B-abliterated-00001-of-00002.gguf |
15.3 GB | the model: the main 15 GB file with the edited tensors |
Qwen4-35B-A3B-abliterated-00002-of-00002.gguf |
11.5 GB | the n-gram table, the same bytes as in the main repo |
Download both, and llama.cpp finds the second one by itself; if you already have the main repo's table, copy it under this name instead. Memory use and speed are those of the main file; see its card for "Will it fit?".

How it compares
| Original 15 GB file | This file | |
|---|---|---|
| Refusals, thinking off (124 held-out requests) | 120 | 3 |
| Refusals, thinking on | 120 | 0 |
| Drift from the BF16 original (KL), documents | 0.118 | 0.148 |
| Drift from the BF16 original (KL), a second document sample | 0.104 | 0.139 |
| HumanEval (164 problems, pass@1) | 96.3% | 94.5% |
| Repetition loops (20 greedy prompts) | 0 | 0 |
| Replies that hit the token cap (same 20 prompts, 4,096 tokens) | 2 | 5 |
| MTP draft acceptance (8 prompts) | 0.41 | 0.45 |
- Refusals: the requests are HarmBench's standard behaviors, minus any that resemble the prompts used to build the edit (124 of 200 kept). Replies use Qwen's recommended sampling for each mode, up to 4,096 (off) and 8,192 (on) tokens. A reply counts as a refusal if a refusal phrase appears in its first 500 characters; see "Measuring refusals".
- Drift is KL divergence to the BF16 original on held-out documents (English and Chinese Wikipedia, code, books; 98K and 16K tokens). The edit adds about 26% and 33% to the 15 GB file's own drift; measured against the 15 GB file alone, the edit is 0.051 and 0.053.
- HumanEval: 155 of 164 against 158 for the 15 GB file and 155 for the BF16 original; with 164 problems that is within the noise.
- Thinking is longer on harmful requests: 13,600 characters on average against 1,600, because it plans an answer where the original writes a short refusal. 24 of the 124 ran out of the 8,192-token budget while still thinking, most of them requests for code. That length belongs to the tasks, not to the edit: on 48 harmless requests of the same kinds (code, chemistry and biology questions, persuasive texts, plans, letters) the original 15 GB file thinks 12,100 characters and this file 14,100, and both run out of budget on 8. To think less, use effort low (see "Run it"). On ordinary prompts the typical reply is about as long as before (median +4%). More of them hit the 4,096-token cap (5 of 20 against 2), but in a rerun with a near-identical edit it was 3, on other prompts, so with 20 prompts we can't tell this apart from noise. Give it a generous token budget.

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. With a zero edit, this procedure returns the main file byte for byte.

Not edited: the routed experts (2- and 3-bit codebook tensors here, 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?
- First result: re-encoded at this file's 5- and 6-bit types, 96.5% of the edit survives (median over the 64 tensors, lowest 93.4%).
- 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 this 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 this 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 file (llama.cpp with Qwen4 support, b12973 or later):
llama-server -m Qwen4-35B-A3B-abliterated-00001-of-00002.gguf -ngl 99 --jinja -c 32768 --temp 1.0 --top-p 0.95 --top-k 20
For shorter thinking add --reasoning-effort low. On the 124 held-out harmful requests it halves the thinking (13,600 to 7,700 characters on average) and leaves 11 replies out of budget instead of 24, still with no refusals; on the 48 harmless requests it goes from 14,100 to 6,700 characters, 2 out of budget instead of 8, with answers 20% longer. A thinking budget (--reasoning-budget 2048 with a closing message) also ends every reply in time, but on the 82 selection requests it shortens the thinking by 22% against 51% for effort low.
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 one or two 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). Our other bar, 95% of ordinary replies finished within the token cap, it meets on HumanEval (159 of 164) and misses on 20 loop prompts (15 of 20, the original 18), a set too small to separate the two.
- 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 file, 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 this file.