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

smashingtags/gemma-4-12b-it-abliterated-nf4

smashingtags Gemma 11B multimodal
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/smashingtags%2Fgemma-4-12b-it-abliterated-nf4"
Response includes
  • classification m1
  • files 9
  • hub_downloads_all_time 137
  • author_summary 3 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 · lifetime
137
102 last 30d - active
Likes
0
Model age
3mo ago
created 2026-06-14
Downloads over time
Now145→from2↑7,150%
0531061592 on Jul 1145 on Oct 11145 on Oct 7JulAugSepOct
Jul 1 → Oct 11 · 54 snapshots · spans 102 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
safetensors gemma4_unified abliterated uncensored gemma-4 multimodal 4-bit bitsandbytes nf4 image-text-to-text conversational base_model:google/gemma-4-12B-it-qat-q4_0-unquantized

Related

Total size
7.15 GB
Files
9
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2026-06-14 18:14

Files by quantization

Auxiliary files 9 files 7.18 GB
model.safetensors 7.15 GB ddfbdf8a download
tokenizer.json 30.7 MB cc8d3a0c download
chat_template.jinja 17.1 KB e61bbfe9 download
config.json 4.67 KB 8d189689 download
tokenizer_config.json 2.69 KB 970d3843 download
README.md 2.57 KB 391396a1 download
.gitattributes 1.53 KB 52373fe2 download
processor_config.json 1.35 KB b889adcd download
generation_config.json 255 B 65fd0cf2 download

README current version from Hugging Face


base_model: google/gemma-4-12B-it-qat-q4_0-unquantized
license: gemma
pipeline_tag: image-text-to-text
tags: [abliterated, uncensored, gemma-4, multimodal, 4-bit, bitsandbytes, nf4]

gemma-4-12b-it-abliterated-nf4

Abliterated (refusal-direction removed) Gemma 4 12B, quantized to int4 (NF4).
~7.7 GB, fits a 16 GB GPU, retains text + image + audio. Built from Google's
official QAT weights (google/gemma-4-12B-it-qat-q4_0-unquantized), so int4 quality
is near-bf16. Personal/research use.

Requirements

  • NVIDIA GPU, 16 GB+ VRAM — NF4/bitsandbytes is CUDA-only. (On an Intel Arc / non-NVIDIA
    card this will NOT load; use the GGUF build or ask for a Vulkan-compatible quant.)
  • pip install "transformers>=5.12" bitsandbytes accelerate huggingface_hub

Text chat

from transformers import AutoModelForImageTextToText, AutoProcessor
import torch
m = AutoModelForImageTextToText.from_pretrained(
    "smashingtags/gemma-4-12b-it-abliterated-nf4", device_map="cuda", torch_dtype=torch.bfloat16)
p = AutoProcessor.from_pretrained("smashingtags/gemma-4-12b-it-abliterated-nf4")
msgs = [{"role":"user","content":[{"type":"text","text":"Explain how a lock pick works."}]}]
inp = p.apply_chat_template(msgs, add_generation_prompt=True, tokenize=True,
                            return_dict=True, return_tensors="pt").to("cuda")
out = m.generate(**inp, max_new_tokens=300)
print(p.decode(out[0][inp["input_ids"].shape[1]:], skip_special_tokens=True))

With an image (vision)

msgs = [{"role":"user","content":[
    {"type":"image","url":"https://.../photo.jpg"},
    {"type":"text","text":"What's in this image?"}]}]
# same apply_chat_template + generate as above

Serve as an API (vLLM, OpenAI-compatible)

vllm serve smashingtags/gemma-4-12b-it-abliterated-nf4 --quantization bitsandbytes \
  --max-model-len 8192 --port 8000
# then POST to http://localhost:8000/v1/chat/completions (text or image_url content)

Related builds

repo format size runtime modalities
gemma-4-12b-it-abliterated-nf4 (this) int4 NF4 7.7 GB transformers / vLLM (CUDA) text + image + audio
gemma-4-12b-it-abliterated bf16 24 GB transformers / vLLM text + image + audio
gemma-4-12b-it-abliterated-GGUF q4_0 GGUF 7 GB Ollama / llama.cpp text only

Abliteration: difference-of-means refusal direction (Arditi et al.), hook-captured,
orthogonalized out of the text decoder's o_proj+mlp.down_proj (top 70% layers);
vision/audio encoders and tied embeddings untouched. Refusal smoke: base 3/3 → 0/3.

README history 1 version

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

  1. 2026-06-14EOS-225: usage docs / model card1d9cec52.6 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