玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
DreamFast /

gemma-3-12b-it-heretic

HF 源站

DreamFast/gemma-3-12b-it-heretic is an uncensored open-source model hosted on Hugging Face.

Text GenerationComfyUIsafetensorsGGUFEnglishLicense: gemma12Btransformersgemma3image-text-to-textabliterationhereticuncensoredltx-2video-generationtext-encoderconversationaltext-generation-inference
README.md说明 / 使用方法

license: gemma library_name: transformers pipeline_tag: text-generation base_model: google/gemma-3-12b-it base_model_relation: quantized language:

  • en tags:
  • abliteration
  • heretic
  • uncensored
  • gemma
  • ltx-2
  • comfyui
  • video-generation
  • text-encoder

Gemma 3 12B IT - Heretic (Abliterated)

💬 Community: Join the Abliterlitics Discord for discussion, model releases and support.

An abliterated version of Google's Gemma 3 12B IT created using Heretic. This model has reduced refusals while maintaining model quality, making it suitable as an uncensored text encoder for video generation models like LTX-2.

Version 2 is now available

Check out Gemma 3 12b it Heretic v2 which has vision capabilities, NVFP4 support and decensored with Heretic v1.2.0. It'd be better to use v2.

This current v1 has no vision support and wont work with nodes like TextGenerateLTX2Prompt.

Model Details

  • Base Model: google/gemma-3-12b-it
  • Abliteration Method: Heretic v1.1.0
  • Trial Selected: Trial 99
  • Refusals: 7/100 (vs 100/100 original)
  • KL Divergence: 0.0826 (minimal model damage)

Files

HuggingFace Format (for transformers, llama.cpp conversion)

model-00001-of-00005.safetensors
model-00002-of-00005.safetensors
...
config.json
tokenizer.model
tokenizer_config.json

ComfyUI Format (for LTX-2 text encoder)

comfyui/gemma_3_12B_it_heretic.safetensors          # bf16, 22GB
comfyui/gemma_3_12B_it_heretic_fp8_e4m3fn.safetensors  # fp8, 11GB

GGUF Format (for llama.cpp)

QuantSizeQualityRecommendation
F1622GBLosslessReference, same as original
Q8_012GBExcellentBest quality quantization
Q6_K9.0GBVery GoodHigh quality, good compression
Q5_K_M7.9GBGoodBalanced quality/size
Q5_K_S7.7GBGoodSlightly smaller Q5
Q4_K_M6.8GBGood⭐ Recommended
Q4_K_S6.5GBDecentSmaller Q4 variant
Q3_K_M5.6GBAcceptableFor very low VRAM only
gguf/gemma-3-12b-it-heretic-f16.gguf
gguf/gemma-3-12b-it-heretic-Q8_0.gguf
gguf/gemma-3-12b-it-heretic-Q6_K.gguf
gguf/gemma-3-12b-it-heretic-Q5_K_M.gguf
gguf/gemma-3-12b-it-heretic-Q5_K_S.gguf
gguf/gemma-3-12b-it-heretic-Q4_K_M.gguf
gguf/gemma-3-12b-it-heretic-Q4_K_S.gguf
gguf/gemma-3-12b-it-heretic-Q3_K_M.gguf

Note: GGUF support in ComfyUI for Gemma text encoders is experimental. See PR #402 for status. The GGUFs work with llama.cpp directly.

Do abliterated models makes a difference for LTX2?

I had a deep dive into this topic and found that, maybe not. While it does vary slightly the output of the video, most of the abliteration is on layer 48, the final decision making layer. LTXV averages all the layers which may wash out layer 48s difference. Still it'd be more interesting for someone with more knowledge to confirm this.

Usage

With Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained(
    "DreamFast/gemma-3-12b-it-heretic",
    device_map="auto",
    torch_dtype=torch.bfloat16
)
tokenizer = AutoTokenizer.from_pretrained("DreamFast/gemma-3-12b-it-heretic")

prompt = "Write a story about a bank heist"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

With ComfyUI (LTX-2)

  1. Download the ComfyUI format file:

    • comfyui/gemma_3_12B_it_heretic.safetensors (bf16, 22GB) or
    • comfyui/gemma_3_12B_it_heretic_fp8_e4m3fn.safetensors (fp8, 11GB)
  2. Place in ComfyUI/models/text_encoders/

  3. In your LTX-2 workflow, use the LTXAVTextEncoderLoader node and select the heretic file

Tip: For multi-GPU setups or CPU offloading, check out ComfyUI-LTX2-MultiGPU for optimized LTX-2 workflows.

With llama.cpp

# Using llama-server
llama-server -m gemma-3-12b-it-heretic-Q4_K_M.gguf

# Or with llama-cli
llama-cli -m gemma-3-12b-it-heretic-Q4_K_M.gguf -p "Write a story about a bank heist"

Why Abliterate?

Even when Gemma doesn't outright refuse a prompt, it may "sanitize" or weaken certain concepts in the embeddings. For video generation with LTX-2, this can result in:

  • Weaker adherence to creative prompts
  • Softened or altered visual outputs
  • Less faithful representation of requested content

Abliteration removes this soft censorship, resulting in more faithful prompt encoding.

Abliteration Process

Created using Heretic with the following evaluation results:

* Evaluating...
  * Obtaining first-token probability distributions...
  * KL divergence: 0.0826
  * Counting model refusals...
  * Refusals: 7/100

The low KL divergence (0.0826) indicates minimal model damage, while 7/100 refusals means 93% of previously-refused prompts now work.

Limitations

  • This model inherits all limitations of the base Gemma 3 12B model
  • Abliteration reduces but does not completely eliminate refusals
  • NVFP4 quantization is not supported for text encoders in ComfyUI (use fp8 instead)

License

This model is subject to the Gemma license.

Acknowledgments

  • Google for the Gemma 3 12B model
  • Heretic by p-e-w for the abliteration tool
  • Lightricks for LTX-2
HUGGING FACE

上游数据

HF 下载量1.5万
HF 点赞量93

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
DreamFast
最近更新
未知
最新创建
2026/01/11
HF 趋势
未知
数据快照
2026/09/16
版本
未知
许可证
gemma