← back to catalog · registered 2026-08-22 13:56

artokun/comfy_gemma_3_12B_it_abliterated

artokun Gemma multimodal second-order
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/artokun%2Fcomfy_gemma_3_12B_it_abliterated"
Response includes
  • classification m1
  • files 3
  • author_summary 1 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M1
Primary method

Direct removal

No other method signals detected in this model.
Confidence
MEDIUM
Why this label 3 signals
Method inferred from partial signals - repository name, related files, or tag patterns. Producer identity not confirmed; label may sharpen or shift as we gather more evidence.
  • 'abliterated' in name/tags
  • is_gguf=0 (base model)
  • no specific method indicators - defaulting to M1 (most common)
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
MEDIUM
Why we say so
primary_method=M1; difference-of-means is the reference extraction for M1/M3 (Arditi 2024)
Downloads · 30-day
0
Likes
3
Model age
5mo ago
created 2026-04-15
Downloads over time
Now0→from0↑0%
00110 on Apr 150 on Oct 11AprMayJunJulAugSepOct
Apr 15 → Oct 11 · 65 snapshots · spans 179 days

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
gemma
Tags
transformers comfyui text-encoder ltxv gemma3 image-text-to-text base_model:mlabonne/gemma-3-12b-it-abliterated base_model:finetune:mlabonne/gemma-3-12b-it-abliterated license:gemma endpoints_compatible region:us

Related

Total size
22.7 GB
Files
3
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2026-04-15 17:10

Files by quantization

Auxiliary files 3 files 22.7 GB
comfy_gemma_3_12B_it_abliterated.safetensors 22.7 GB decef33d download
README.md 4.24 KB b1841d3c download
.gitattributes 1.48 KB a6344aac download

README current version from Hugging Face


license: gemma
library_name: transformers
pipeline_tag: image-text-to-text
base_model: mlabonne/gemma-3-12b-it-abliterated
tags:

  • comfyui
  • text-encoder
  • ltxv
  • gemma3

💎 Gemma 3 12B IT Abliterated — ComfyUI Text Encoder

This is a ComfyUI-compatible single-file repack of mlabonne/gemma-3-12b-it-abliterated, packaged as a drop-in replacement for the stock comfy_gemma_3_12B_it.safetensors text encoder used by the LTXV Audio Text Encoder Loader and other Gemma 3 12B ComfyUI nodes.

🔧 What's changed vs. the upstream abliterated model

The upstream model is an HF transformers checkpoint split across 5 safetensors shards with Gemma3ForConditionalGeneration's key layout. ComfyUI expects a single file with a slightly different layout and an embedded SentencePiece tokenizer. This repack does the following:

  1. Merged all 5 shards into one .safetensors file (~23GB, bf16).
  2. Remapped keys to match ComfyUI's expected layout:
    • language_model.model.* → model.*
    • vision_tower.vision_model.* → vision_model.*
    • multi_modal_projector.* → (unchanged)
  3. Embedded the SentencePiece tokenizer as a spiece_model uint8 byte tensor (~4.5MB), matching the official ComfyUI Gemma 3 12B text encoder layout. Without this, ComfyUI's SPieceTokenizer raises invalid tokenizer on load.
  4. Dropped nothing — all 1066 tensors (1065 weights + 1 tokenizer) match the stock encoder's structure exactly (zero missing, zero extra).

📦 Why

Activism / uncensored video generation workflows need a text encoder that doesn't refuse legitimate subject matter. The stock ComfyUI Gemma 3 12B encoder refuses many prompts that are harmless in context (protest imagery, political speech, etc.). This repack gives you the abliterated model's acceptance rate with zero changes to your ComfyUI nodes or workflow graph — just swap the file.

🚀 Usage

Drop the file into ComfyUI/models/text_encoders/ and select it in the LTXV Audio Text Encoder Loader node (or any node that accepts a Gemma 3 12B text encoder).

Recommended generation parameters (from upstream): temperature=1.0, top_k=64, top_p=0.95.


Original Upstream Model Card

💎 Gemma 3 12B IT Abliterated

image/png

Gemma 3 1B Abliterated • Gemma 3 4B Abliterated • Gemma 3 27B Abliterated

This is an uncensored version of google/gemma-3-12b-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 3 to 45), independently.
This is combined with a refusal weight of 0.6 to upscale the importance of this refusal direction in each layer.

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

README history 1 version

The author's README evolved over time. Click a version to see its content at that point.

  1. 2026-04-15Add model card (upstream card + repacking notes)6458aa34.2 KB
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration