gemma-4-12B-it-heretic

This is a decensored ("abliterated") version of google/gemma-4-12B-it, produced fully automatically with Heretic.

Heretic removes safety-alignment refusals via directional ablation (norm-preserving, biprojected abliteration) while a TPE optimizer co-minimizes the refusal rate and the KL divergence from the original model, so the decensored model retains as much of the original's capabilities as possible.

Results

Metric google/gemma-4-12B-it (original) this model
Refusals on harmful prompts (genuine) 99/100 0/100
KL divergence from original on harmless prompts 0 (by definition) 0.0284

A KL divergence of 0.0284 is very low — for reference, Heretic's own gemma-3-12b-it-heretic reports 3/100 refusals at KL 0.16; lower KL means less capability loss.

Thinking mode

Gemma-4 is a hybrid thinking model. This abliteration targets the direct (non-thinking) response, which is also Gemma-4's default (enable_thinking=False). The model is fully decensored in non-thinking mode, and that mode gives the best results for roleplay and creative writing. In thinking mode the reasoning is also uncensored, but it consumes the token budget — give it a large max_new_tokens so the final answer isn't truncated, or simply use the default non-thinking mode. (GGUF/Ollama users: see the GGUF repo for how to disable thinking, e.g. /set nothink.)

Usage

from transformers import AutoTokenizer, AutoModelForImageTextToText

model_id = "igorls/gemma-4-12B-it-heretic"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype="auto", device_map="auto")

GGUF quantizations for llama.cpp / Ollama: igorls/gemma-4-12B-it-heretic-GGUF.

Disclaimer

This model has had its safety alignment removed. It will comply with requests that the original model refuses. You are responsible for how you use it, and for complying with all applicable laws. The base model's license and usage policy still apply.

Downloads last month
269
Safetensors
Model size
12B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for igorls/gemma-4-12B-it-heretic

Finetuned
(35)
this model
Finetunes
1 model
Quantizations
2 models