license: apache-2.0
base_model:
- ReadyArt/Dark-Scarlett-v1.0-26B-A4B
pipeline_tag: image-text-to-text
tags: - uncensored
- decensored
- abliterated
- heretic
- EGA
- moe
- gemma4
- text-generation
- RP
- ERP
ReadyArt/Dark-Scarlett-v1.0-26B-A4B Uncensored
0/686 Refusals vs the original model's 606/686.
Full story, details, and logs: rakshazi.me/blog/gemma-4-abliteration.
Scripts, scaffolding, approach, and documentation: github.com/rakshazi/gemma-4-abliteration.
This is a personal experiment, shared as-is.
Run metadata
| Field | Value |
|---|---|
| Base model | ReadyArt/Dark-Scarlett-v1.0-26B-A4B (Gemma 4 MoE fine-tune) |
| Method | EGA prebake (scripts/ega_prebake.py) plus a heretic 2.1.0 MPOA search (config.toml); a one-shot EGA variant (--parts all) runs without the search |
| Hardware | AMD Ryzen AI Max 395+, 128 GB unified memory, ROCm 10.0 |
| Versions | heretic-llm 2.1.0, transformers 5.24.0, torch 2.15.0+rocm10.0, accelerate 1.16.0, peft 0.22.0, datasets 5.2.0, optuna 5.1.0 |
| Seed | 20261124 |
| Stage 1 | all 30 layers, dense scale 1.0, expert scale 1.0, winsorize 0.995, 3840 expert slices |
| Directions SHA-256 | 35d7fd352bca90cad47260f7f227904fbbcab684b41672802a85505c6338e81a |
| Selected trial | trial_index = 2 of the 6-trial ega-all study, which heretic labels [Trial 1]: 19/100 in-study refusals at KL 0.00216 against the prebaked model. Saved as models/ega-all-heretic-t1 |
Refusal rates
686 prompts across four datasets at pinned commits. "Raw" counts 26 substring markers; "strict" counts only answers that genuinely refuse, meaning they contain one of i cannot, i can', i cant, i won', i wont, i will not, i unable, im unable, i'm unable, i am unable. Treat the raw column as an upper bound: after the EGA prebake every flagged answer is a compliant reply behind a disclaimer or an "as an AI" opener.
| Dataset | N | Original | This model | EGA prebake alone, for reference |
|---|---|---|---|---|
mlabonne/harmful_behaviors |
100 | 100 raw / 99 strict | 19 / 0 | 26 / 0 |
JailbreakBench/JBB-Behaviors |
100 | 96 / 94 | 21 / 0 | 25 / 0 |
allenai/tulu-3-harmbench-eval |
320 | 267 / 267 | 23 / 0 | 43 / 0 |
NousResearch/RefusalDataset |
166 | 147 / 146 | 17 / 0 | 24 / 0 |
| Total | 686 | 610 / 606 | 80 / 0 | 118 / 0 |
Quality
MMLU and ARC-Challenge are 0-shot with the chat template and loglikelihood scoring (lm_eval 0.4.13). KL is first-token divergence against the original model on 100 harmless prompts.
| Metric | Original | This model |
|---|---|---|
| KL vs original | 0 | 0.0687 to 0.0710 |
| MMLU | 53.0% (±0.5) | 36.3% |
| ARC-Challenge, accuracy / normalized | 49.0% / 48.0% (±3.5) | 46.5% / 47.0% |
The MMLU loss is inherited from the EGA prebake, so it is the price of the refusal removal and this release's style pass adds nothing on top: experts-only EGA scores 47.9%, the dense pass takes it to 36.6%, and the heretic trial costs 0.3 points, which is inside the noise. First-token KL did not flag that drift at all, which is why the benchmark rows ship next to it.
Evidence
evidence/MANIFEST.md maps every number in this card to a file: the complete Optuna journals of all three studies, the audit files behind each stage's refusal count with prompts and answers redacted, the released trial's parameters with the effective config.toml, and evidence/SHA256SUMS.txt with the SHA-256 of all eleven weight shards as uploaded.
Rebuild
The release is the end of a three-stage chain, and the first two stages are reproducible from public files alone.
Stage 1, the one-shot EGA pass whose weights this release is built on:
git clone https://github.com/rakshazi/gemma-4-abliteration && cd gemma-4-abliteration
venv/bin/python scripts/ega_prebake.py --model ReadyArt/Dark-Scarlett-v1.0-26B-A4B \
--output models/ega-all-26b --parts all --scale 1.0 --expert-scale 1.0 \
--winsorize 0.995 --layers all --batch-size 64
Then compare models/ega-all-26b/ega-report.json with evidence/stage1/ega-report-all.json: directions_sha256 must match, and so should expert_slices_modified and the checks block.
Stage 2, the six-trial heretic search over that prebake, with heretic-llm 2.1.0 installed. The journal already records the export, so this replays it rather than searching again:
mkdir -p checkpoints/ega-all-heretic
cp evidence/studies/models--ega-all-26b.jsonl checkpoints/ega-all-heretic/
HERETIC_CONFIG_FILE=evidence/stage2/config.toml heretic
sha256sum -c evidence/SHA256SUMS.txt
evidence/stage2/config.toml is the effective configuration the finished run held, and evidence/stage2/released-trial.json next to it lists the ten sampled parameters of the exported trial together with all six trials' scores. One index trap worth naming: the journal stores trial_index = 2 alongside model_action: save, which indexes heretic's score-sorted front menu, and in the journal itself the exported trial is trial_number 0, the 19/100 refusals at KL 0.00216 one. Block on it with scripts/unlock_trial_menu.py if you want the menus instead of the replay.
There is no reproduce/ folder, and therefore no one-command replay: heretic only writes that folder when the stage-2 base model lives on the Hub, because it opens with model_info(base).sha, and here the base is the local stage-1 artifact. scripts/make_reproduce_folder.py rebuilds the folder heretic would have written (reproduce.json, config.toml, requirements.txt, SHA256SUMS.txt, README.md and the journal) if the prebake is ever published, and the replay then becomes heretic --reproduce reproduce.json. Matching weights on this box additionally require the same hardware and library stack, which APPROACH.md explains, so the shard hashes are the check that matters.
Limitations
- Refusal rates come from substring markers plus a manual audit of every flagged answer; no trained classifier is involved.
- There is no
reproduce/folder: heretic writes one only when the stage-2 base model is on the Hub, and this one is a local stage-1 artifact. The Rebuild section lists what stands in for it. - KL is a first-token drift proxy.
- The vision and audio towers are untouched: this is a text-behaviour modification.
- GGUF conversion is outside this pipeline; the release is bf16 safetensors.