Downloads · 30 days
2.7K
0% of all-time downloads
mlabonne/gemma-3-27b-it-abliterated
gemma-3-27b-it-abliterated is a image-text-to-text model from mlabonne. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as gemma.
<center<a href="https://huggingface.co/mlabonne/gemma-3-1b-it-abliterated"Gemma 3 1B Abliterated</a • <a href="https://huggingface.co/mlabonne/gemma-3-4b-it-abliterated"Gemma 3 4B Abliterated</a • <a href="https://hug…
Downloads · 30 days
2.7K
0% of all-time downloads
All-time downloads
735K
Public
Parameters
27.4B
54.9 GB on disk
Likes
347
Public
Click a slice to open those files.
.safetensors54.9 GB · 100%
From the Hugging Face model README

This is an uncensored version of google/gemma-3-27b-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 recommend using these generation parameters: temperature=1.0, top_k=64, top_p=0.95.

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 each layer, independently. This is combined with a refusal weight of 1.5 to upscale the importance of this refusal direction in each layer.
This created a very high acceptance rate (>90%) and still produced coherent outputs.