How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf mlabonne/gemma-3-27b-it-abliterated-GGUF:
# Run inference directly in the terminal:
llama cli -hf mlabonne/gemma-3-27b-it-abliterated-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf mlabonne/gemma-3-27b-it-abliterated-GGUF:
# Run inference directly in the terminal:
llama cli -hf mlabonne/gemma-3-27b-it-abliterated-GGUF:
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf mlabonne/gemma-3-27b-it-abliterated-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf mlabonne/gemma-3-27b-it-abliterated-GGUF:
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf mlabonne/gemma-3-27b-it-abliterated-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf mlabonne/gemma-3-27b-it-abliterated-GGUF:
Use Docker
docker model run hf.co/mlabonne/gemma-3-27b-it-abliterated-GGUF:
Quick Links

๐Ÿ’Ž Gemma 3 27B IT Abliterated

image/png

Gemma 3 4B Abliterated โ€ข Gemma 3 12B Abliterated

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.

โœ‚๏ธ 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 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.


Thanks to @bartowski for the mmproj file!

Downloads last month
7,308
GGUF
Model size
27B params
Architecture
gemma3
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ 2 Ask for provider support

Model tree for mlabonne/gemma-3-27b-it-abliterated-GGUF

Quantized
(136)
this model

Space using mlabonne/gemma-3-27b-it-abliterated-GGUF 1

Collection including mlabonne/gemma-3-27b-it-abliterated-GGUF