--- base_model: google/gemma-4-12B-it base_model_relation: finetune library_name: transformers pipeline_tag: text-generation license: gemma tags: - heretic - uncensored - decensored - abliterated - gemma-4 --- # gemma-4-12B-it-heretic This is a decensored ("abliterated") version of [google/gemma-4-12B-it](https://huggingface.co/google/gemma-4-12B-it), produced fully automatically with [Heretic](https://github.com/p-e-w/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](https://huggingface.co/igorls/gemma-4-12B-it-heretic-GGUF) for how to disable thinking, e.g. `/set nothink`.) ## Usage ```python 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](https://huggingface.co/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](https://ai.google.dev/gemma/terms) and usage policy still apply.