Run this model with HF Jobs

Run mlabonne/gemma-3-12b-it-qat-abliterated on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/mlabonne/gemma-3-12b-it-qat-abliterated. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/mlabonne/gemma-3-12b-it-qat-abliterated on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/mlabonne/gemma-3-12b-it-qat-abliterated. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/mlabonne/gemma-3-12b-it-qat-abliterated. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

๐Ÿ’Ž Gemma 3 12B IT QAT Abliterated

image/png

Gemma 3 QAT Abliterated 1B โ€ข 4B โ€ข 12B โ€ข 27B

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

This is a new, improved version that targets refusals with enhanced accuracy.

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

โœ‚๏ธ Abliteration

image/png

The refusal direction is computed by comparing the residual streams between target (harmful) and baseline (harmless) samples. The hidden states of target modules (e.g., o_proj) are orthogonalized to subtract this refusal direction with a given weight factor. These weight factors follow a normal distribution with a certain spread and peak layer. Modules can be iteratively orthogonalized in batches, or the refusal direction can be accumulated to save memory.

Finally, I used a hybrid evaluation with a dedicated test set to calculate the acceptance rate. This uses both a dictionary approach and NousResearch/Minos-v1. The goal is to obtain an acceptance rate >90% and still produce coherent outputs.

Downloads last month
86
Safetensors
Model size
12B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for mlabonne/gemma-3-12b-it-qat-abliterated

Finetuned
(6)
this model
Finetunes
2 models
Quantizations
5 models

Collection including mlabonne/gemma-3-12b-it-qat-abliterated