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

Claudionomax/osmGemma-4-12B-uncensored-bf16

Claudionomax Gemma 12B 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/Claudionomax%2FosmGemma-4-12B-uncensored-bf16"
Response includes
  • classification m1
  • files 14
  • benchmarks 11 entries
  • hub_downloads_all_time 37
  • 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 · lifetime
37
13 last 30d - stable
Likes
3
Model age
4mo ago
created 2026-06-04
Downloads over time
Now45→from17↑165%
1626374817 on Jun 1045 on Oct 11JunJulAugSepOct
Jun 10 → Oct 11 · 57 snapshots · spans 123 days

Benchmarks

Portrait before abliteration
Benchmarks of the base model as it stood before the refusal-removal operation. Compare with the numbers above to see what the operation cost.
Benchmark Score Source
Entertainment 1.1 UGI
Hazardous 2.9 UGI
Natural Intelligence 25.81 UGI
Political lean -17.4% UGI
Sensitive-Info 16.56 UGI
SocPol 1.3 UGI
UGI 15.2 UGI
Willingness (10) 1.2 UGI
W10-Adherence 1.5 UGI
W10-Direct 1 UGI
Writing 31.6 UGI

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
apache-2.0
Languages
en multilingual
Tags
transformers safetensors gemma4_unified image-text-to-text gemma4 gemma-4 abliterated refusal-ablated uncensored heretic multimodal any-to-any

Related

Total size
22.3 GB
Files
14
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2026-06-04 14:41

Files by quantization

Auxiliary files 14 files 22.3 GB
model-00004-of-00005.safetensors 4.64 GB 83d31d53 download
model-00002-of-00005.safetensors 4.63 GB dc64c524 download
model-00001-of-00005.safetensors 4.62 GB 00da8f1d download
model-00003-of-00005.safetensors 4.55 GB 3bc896db download
model-00005-of-00005.safetensors 3.84 GB 963dc1d0 download
tokenizer.json 30.7 MB a2619fe1 download
model.safetensors.index.json 64.8 KB 752efb73 download
chat_template.jinja 17.1 KB e61bbfe9 download
README.md 6.77 KB 7987b1b1 download
config.json 4.24 KB 5229f6fd download
tokenizer_config.json 2.68 KB 18faad3a download
.gitattributes 1.53 KB 52373fe2 download
processor_config.json 1.35 KB b889adcd download
generation_config.json 255 B 2528bb46 download

README current version from Hugging Face


license: apache-2.0
license_link: https://ai.google.dev/gemma/docs/gemma_4_license
language:

  • en
  • multilingual
    tags:
  • gemma4
  • gemma-4
  • abliterated
  • refusal-ablated
  • uncensored
  • heretic
  • multimodal
    library_name: transformers
    pipeline_tag: any-to-any
    base_model: google/gemma-4-12B-it
    base_model_relation: finetune

osmGemma-4-12B-uncensored-bf16

Full-precision (bf16) abliterated google/gemma-4-12B-it — the complete encoder-free unified multimodal model (text · image · audio · video) with refusals removed via Heretic. This is the artifact that runs refusal-free vision + audio + video today (in 🤗 transformers), and the source for the MLX quants below. By osmAPI.

⚠️ Abliterated model — read this

Refusal directions were surgically removed from the parent. It will answer many prompts the parent refuses. No new capabilities were added — only refusal behavior was reduced. Use responsibly and within applicable law.

🔓 Refusal removal — before / after

Measured with Heretic's evaluator on 100 harmful prompts (mlabonne/harmful_behaviors test[:100]), greedy decoding, refusal-marker classifier:

Model Refusals Refusal rate
google/gemma-4-12B-it (original) 99 / 100 99.0%
this model (abliterated) 12 / 100 12.0%

↓ 87 fewer refusals — an 87.9% reduction, at KL divergence 0.053 from the original (≪ 0.5, the damage threshold) → general capabilities preserved.

📊 Specs

Precision bfloat16 (full precision)
Disk size ~23.9 GB
Base google/gemma-4-12B-it — 11.95B, 48 layers, 256K context, 140+ languages
Modalities text · image · audio · video in, text out (encoder-free / unified)
Refusal-free multimodal today ✅ via 🤗 transformers

⚡ Inference & compatibility

Runtime Supported? Notes
🤗 transformers (PyTorch · CUDA/MPS) ✅ full multimodal (text · image · audio · video) needs torchvision + librosa
vLLM (CUDA) ⚠️ quantize first convert to FP8/AWQ/GPTQ; gemma4_unified serving support is rolling out
MLX (Apple Silicon) ➡️ use the MLX quants below text today; vision pending mlx-vlm
Ollama / llama.cpp ❌ needs GGUF conversion pending llama.cpp gemma4_unified support

🚀 Quick start — transformers (text)

pip install -U "transformers>=5.10" torch torchvision librosa accelerate
from transformers import AutoProcessor, AutoModelForMultimodalLM

mid = "osmapi/osmGemma-4-12B-uncensored-bf16"
processor = AutoProcessor.from_pretrained(mid)
model = AutoModelForMultimodalLM.from_pretrained(mid, dtype="auto", device_map="auto")

messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Explain abliteration in two sentences."},
]
inputs = processor.apply_chat_template(messages, tokenize=True, return_dict=True,
    return_tensors="pt", add_generation_prompt=True, enable_thinking=False).to(model.device)
n = inputs["input_ids"].shape[-1]
out = model.generate(**inputs, max_new_tokens=256)
print(processor.parse_response(processor.decode(out[0][n:], skip_special_tokens=False)))

enable_thinking=True turns on reasoning mode; parse_response separates the thinking channel.

🖼️🎙️ Vision & audio (image · audio · video)

Full multimodal runs here today — pass image/audio/video in the message content:

messages = [{"role": "user", "content": [
    {"type": "image", "url":   "https://.../photo.jpg"},   # image → key "url"
    {"type": "audio", "audio": "https://.../clip.wav"},    # audio → key "audio" (≤30s)
    {"type": "text",  "text":  "Describe what you see and hear."},
]}]
inputs = processor.apply_chat_template(messages, tokenize=True, return_dict=True,
    return_tensors="pt", add_generation_prompt=True).to(model.device)
n = inputs["input_ids"].shape[-1]
out = model.generate(**inputs, max_new_tokens=512)
print(processor.parse_response(processor.decode(out[0][n:], skip_special_tokens=False)))

Audio ≤ 30 s (native ASR + speech translation) · images variable-resolution · video ≤ 60 s (~1 fps).

🍎 Running on Mac

This bf16 repo runs in 🤗 transformers on Apple Silicon (MPS) — full multimodal, as above. For lighter, faster MLX serving, use the MLX quants of this model (see the family table) with: oMLX (inference server + macOS menu-bar app, SSD KV cache), vMLX, LM Studio (MLX engine), Ollama 0.19+, or mlx-vlm directly. Those serve the MLX quants once their bundled mlx-lm/mlx-vlm adds gemma4_unified support (text today via mlx-vlm + a small shim).

🗂️ Quant family

Repo Scheme Eff. BPW Size
osmGemma-4-12B-uncensored-bf16 — abliterated, full multimodal bf16 16 ~23.9 GB ✅ you are here
osmGemma-4-12B-uncensored-8bit-mlx 8-bit affine 8.805 ~13.7 GB ↗
osmGemma-4-12B-uncensored-mxfp4-mlx MXFP4 (4-bit microscaling) 7.628 ~11.9 GB ↗
osmGemma-4-12B-uncensored-mixed-4.2bpw-mlx mixed 3/4-bit 4.2 ~6.6 GB ↗
google/gemma-4-12B-it — base (not abliterated) bf16 16 ~24 GB ↗
google/gemma-4-12B-it-assistant — MTP draft can be added later — — ⏳ planned

🧬 Lineage

google/gemma-4-12B                       (Google DeepMind — base pretrain)
        ↓  instruction tuning
google/gemma-4-12B-it               (multimodal, encoder-free)
        ↓  Heretic 1.3.0 — directional ablation, Optuna/TPE-optimized over 100 trials, best Pareto trial #55
this repo — abliterated bf16             (refusals 99→12 / 100, KL 0.053)
        ↓  mlx-vlm quantization
MLX quants (8-bit · MXFP4 · mixed)       — see family table

🙏 Credits

Role Project
Abliteration & release osmAPI
Abliteration tool Heretic by p-e-w
Research osmAPI Research Team · Terv Student Research Team
Base model Google DeepMind — Gemma 4

📜 License

Apache-2.0 (inherited from the base). Also subject to the Gemma 4 Terms of Use.

README history 1 version

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

  1. 2026-06-04Duplicate from osmapi/osmGemma-4-12B-uncensored-bf164b01c296.8 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