8.64 GB
15 files
Updated about 2 months ago
Name
Size
.gitattributes1.57 kB
xet
README.md2.15 kB
xet
added_tokens.json35 Bytes
xet
chat_template.json1.62 kB
xet
config.json1.61 kB
xet
generation_config.json192 Bytes
xet
model-00001-of-00002.safetensors4.96 GB
xet
model-00002-of-00002.safetensors3.64 GB
xet
model.safetensors.index.json90.6 kB
xet
preprocessor_config.json570 Bytes
xet
processor_config.json70 Bytes
xet
special_tokens_map.json662 Bytes
xet
tokenizer.json33.4 MB
xet
tokenizer.model4.69 MB
xet
tokenizer_config.json1.16 MB
xet
README.md

💎 Gemma 3 4B IT Abliterated

image/png

Gemma 3 1B AbliteratedGemma 3 12B AbliteratedGemma 3 27B Abliterated

This is an uncensored version of google/gemma-3-4b-it created with a new abliteration technique. See this article to know more about abliteration.

I was playing with model weights and noticed that Gemma 3 was much more resilient to abliteration than other models like Qwen 2.5. I experimented with a few recipes to remove refusals while preserving most of the model capabilities.

Note that this is fairly experimental, so it might not turn out as well as expected. I saw some garbled text from time to time (e.g., "It' my" instead of "It's my").

I recommend using these generation parameters: temperature=1.0, top_k=64, top_p=0.95.

⚡️ Quantization

✂️ Layerwise abliteration

image/png

In the original technique, a refusal direction is computed by comparing the residual streams between target (harmful) and baseline (harmless) samples.

Here, the model was abliterated by computing a refusal direction based on hidden states (inspired by Sumandora's repo) for most layers (layer 7 to 29), independently. This is combined with a refusal weight that follows a symmetric pattern from 0.05 to a peak of 0.55.

This created a very high acceptance rate (>90%) and still produced coherent outputs.

Total size
8.64 GB
Files
15
Last updated
Jun 25
Pre-warmed CDN
US EU US EU

Contributors