What We Learned Abliterating a 235B Open Source Model
We uncensored a 235-billion-parameter model with a targeted edit: attention only, late layers only, all 128 experts untouched. Then we measured what it cost in coding and reasoning.
Models: Qwen3-235B-A22B and Qwen3.8-27B, our first two abliterated models as open weights.
Most open models refuse too much. Ask for a summary of the DMCA, a shell one-liner, or an explanation of a hack, and you get “Certainly! … however, note that …” before anything useful. For software work that prevarication is pure latency. We see this increasingly in software reverse engineering, where AI can help reconstruct how a system works. As those capabilities improve, the boundary between legitimate analysis and misuse becomes harder to judge from a prompt alone.
Abliteration is the established fix: find the direction in activation space that corresponds to refusing, and subtract it from the weights. Hugging Face already hosts thousands of “uncensored” checkpoints. Many apply the same edit to every layer, ship as 4-bit consumer quants and come without tests on software benchmarks. An edit that blunt can make a model freer and noticeably dumber, because perturbing early layers and routed MoE experts can strip away coding precision alongside the refusal. The mechanism is explained in how abliteration works.
Our goal was different: take a model with 235 billion parameters and remove refusals surgically. On the 235B we edited only attention projections, only from layer 44 upwards, with the strength rising towards the last layers. The MLP blocks and all 128 routed experts stay untouched. The result ships as server-grade FP8 (E4M3, 128×128 block scales) for vLLM and agentic coding workloads, with refusals, coding, instruction following and reasoning measured against the base model on 1,065 tasks.
For comparison: the other abliterated Qwen3-235B-A22B we found on Hugging Face edits 73 of the 94 layers, including all 128 experts, and reports MMLU. Both are valid ways to do it. We wanted to know how small the edit can get.
We ran the whole thing twice, on a 27B and on a 235B MoE, to find out whether the capability cost is inherent or just an artefact of editing bluntly. This is the process, the numbers, the failures and what it cost. Total spend on Runpod: $1,041.26, of which $926.78 was GPU time and the rest storage. That includes the mistakes we made while developing the method. Now that we have an established experimental process, future runs can be optimised further to reduce those costs.
BaseAbliterated
Harmful prompts answered, of 100
Benign prompts falsely refused, of 250
Refusal behaviour on identical tasks. Higher is better for harmful prompts answered; lower is better for benign prompts refused.
Orchestration
The experiments were driven end to end by DeepSeek V4.1 uncensored through OpenCode: proposing parameter sets, reading judged results, deciding the next move. It also wrote the harness, the streaming merge and the direction cache. We started with two default models that still refused prompts, a Runpod account for renting H200 GPUs, and a question: could we remove refusals without losing the coding and reasoning capabilities we wanted to keep?
That framing matters: the loop was agentic, which made iteration fast and made mistakes expensive. Both are visible below.
A basic explanation of the method
We used Heretic to identify patterns inside the model associated with refusing a request. It compares the model's internal activity on calibration prompts, looking for a direction that separates refusal-related behaviour from its responses to benign requests.
The edit reduces the model's response along that direction. Heretic also separates it from the direction associated with benign prompts and preserves the size of the affected weight rows. These constraints are intended to limit disruption to other behaviour; they do not guarantee that coding or reasoning will stay intact. That is why we tested those capabilities after editing.
We kept Heretic's editing method but changed the search for its settings. The main questions were how strong the edit should be and which layers should receive it. Too little change left refusals in place; editing the wrong layers damaged coding performance.
Heretic estimates a refusal direction for each layer from calibration activations. It orthogonalises that direction against the benign direction, removing the component aligned with benign behaviour. It applies the edits through low-rank adapters and preserves row norms, so the affected weight rows retain their original magnitudes. We kept this operator and replaced the optimiser that searches for editing settings.
The per-layer separation curve shown below guided the 235B edit: start late, ramp the strength gently, and leave early layers nearly untouched. It helped explain the failures from editing layers with little refusal signal.
Two engineering changes made repeated experiments practical. A direction cache reused the calibration results, avoiding another 512 forward passes that took 40 minutes per run. A shard-streaming merge processed the model in pieces because PEFT's merge held two copies of the 470 GB model and was killed when it ran out of memory.
Heretic's search samples strength up to 1.5. That ceiling turned out to be the whole story: at 1.5 the model still refuses almost everything. Our first two rounds, eighteen candidates, moved answered prompts from 4 of 100 to between 0 and 5 of 100. Only at 2.5 to 4.0 did behaviour flip. Everything after that was buying capability back.
What worked
Strength, then coverage. On the 27B a full-strength edit answered 100/100 harmful prompts and kept 36/50 coding tasks, the best trade of that track, and better than the baseline on four of six measures.
Measuring where refusal lives. We plotted per-layer refusal separation from the calibration activations. Low early, rising from layer 44, peaking at layer 91.
How far apart harmful and harmless prompts are, layer by layer
‖benign mean − harmful mean‖ per layer, from the 512 calibration prompts. Every fourth layer is shown; the peak is at 91.
What did not work
Editing early layers. Layers 30 to 43 carry little of the refusal signal and most of the coding cost. The candidate that included them at full edge strength lost seven coding tasks in fifty.
The MLP term. Principled on paper, useless in practice: it added damage and bought nothing on refusals.
Narrow bands. Restricting to layers 55 to 84 recovered coding but cut answered prompts from 95 to 64 of 100.
Column-selective editing in native FP8. The most promising idea and the biggest disappointment. Selecting the top 82% of columns by signal-to-noise dropped refusal removal from 97% to 18%. Refusal is not concentrated in a few columns. At full columns it works, but the model rambles: 68 of 175 coding answers died on the token cap.
Harmful prompts answered, of 100
Coding tasks solved (MBPP), of 50
Dashed line: base model, 27
The 235B iteration path: every screened candidate and the layers it edited. The final point answers more prompts than p3 and p4 while holding coding within one task of the base.
Our own mistakes, itemised. A wrong layer window passed to the exporter (~$15). Missing manifests that broke three runs (~$45). Moving a loaded 470 GB model to CPU twice, each OOM-killed (~$60). Letting the disk fill with a superseded 438 GB merge (~$35). Two runs stopped when credit ran out (~$40). Roughly $195 of the total was avoidable defect, most of it the agent's.
Results
Qwen3-235B-A22B
1,065 identical tasks per arm, FP8, one run each.
| Measure | Base | Abliterated |
|---|---|---|
| Harmful prompts answered, of 100 | 8 | 82 |
| Benign prompts falsely refused, of 250 | 17 | 5 |
| LiveCodeBench pass@1, of 175 | 43 | 42 |
| IFBench strict, of 300 | 83 | 85 |
| MMLU-Pro, of 140 | 87 | 99 |
| FinQA, of 100 | 10 | 14 |
Qwen3.8-27B
Held-out, same shape.
| Measure | Base | Abliterated |
|---|---|---|
| Harmful prompts answered, of 100 | 4 | 100 |
| Benign prompts falsely refused, of 250 | 16 | 2 |
| LiveCodeBench pass@1, of 175 | 92 | 91 |
| IFBench strict, of 300 | 108 | 110 |
| MMLU-Pro, of 140 | 102 | 99 |
| FinQA, of 100 | 46 | 49 |
Qwen3-235B, tasks against base
Qwen3.8-27B, tasks against base
Change from base, in tasks. The 235B stays within one task or gains everywhere; the 27B pays in MMLU-Pro.
The 235B is the clean one: refused harmful prompts down from 92 to 18 of 100, coding flat within one task, knowledge and instruction-following up. The 27B buys total refusal removal with three MMLU-Pro tasks and one coding task.
Cost
Runpod bill in US dollars
- 235B work, 4×H200$762.46
- Final test suite, 4×H200$96.33
- 27B work, 1×H200$90.56
- Idle 4 TB storage$66.21
- Column-selective track, 1×H200$25.71
Total $1,041.26.
More than half of the storage spend went on a volume nobody used for five days.
Lessons
- Check the optimiser's range before trusting its results. A capped search returns a capped answer. Eighteen candidates were wasted proving it.
- Measure the mechanism, not just the score. The separation curve turned guessing into design and correctly predicted the 235B would tolerate a late-layer edit.
- The cheapest dimension to trade is coverage, not strength. Strength flips behaviour; breadth costs capability.
- Verbosity is a capability metric. More than a third of the column-selective coding answers died on the cap, not on wrong code.
- Budget the infrastructure, not just the GPU. 8 TB of idle volumes cost more per day than four H200s per hour.
- Check an agent's infrastructure work as well as its code. Roughly $195 of our total spend went on avoidable mistakes: a wrong export setting, missing manifests, out-of-memory failures, a full disk and runs interrupted by an empty credit balance. Most of those mistakes were the agent's. Its speed was useful here, but those failed runs still cost money.
- Treat small score differences cautiously. We tested each model version once, using a single random seed, and chose the edited model after inspecting development results. We knew which version we were testing. A difference of one or two solved tasks does not establish a reliable improvement or decline without repeated, independent tests.
Limitations
Single run per arm, one judge (Qwen3Guard-Gen-8B, same family), English single-turn with thinking disabled. The 235B suite ran after selection, so it is post-selection evidence. MMLU-Pro needed a custom extractor applied identically to both arms; the stock parser rejects markdown-formatted finals. Nothing here is blind, and none of it establishes substantive answer quality, only that refusals fall and scores hold. Removing refusals also removes a guardrail: review outputs before shipping.
Where it goes
A 235B model can lose most of its refusals without anyone touching its experts, its MLP blocks or its early layers. Both checkpoints are public in server-grade FP8 (E4M3, 128×128 block scales) under Apache-2.0, ready to serve with vLLM:
vllm serve brutalai/qwen3-235b-a22b-abliterated-p5 \
--tensor-parallel-size 4 --max-model-len 32768 \
--max-num-seqs 32 --gpu-memory-utilization 0.92If you do not want to serve the 235B yourself, we run it for you: Qwen3 235B on request. Other uncensored models are on our API.
Charts are drawn from the run records. Figures are single-run measurements as described above.
Are model refusals a problem in your workflows?
Brutal AI develops software with AI. Talk to us.