Downloads · 30 days
1.1K
5% of all-time downloads
OpenYourMind/gemma-4-12B-it-abliterated-uncensored
gemma-4-12B-it-abliterated-uncensored is a any-to-any model from OpenYourMind. Use it for the any-to-any task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as gemma.
<div align="center" <img src="OYMbanner.png" alt="OpenYourMind" width="100%" </div
Downloads · 30 days
1.1K
5% of all-time downloads
All-time downloads
22.3K
Public
Parameters
12B
47.9 GB on disk
Likes
84
Public
Click a slice to open those files.
.safetensors23.9 GB · 100%
From the Hugging Face model README
☕ If these models are useful to you, consider supporting my work — it funds compute for more & larger abliterations.
<a href="https://buymeacoffee.com/oym.kuato" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="48" width="200"></a>
💬 Discord: discord.gg/rhUZY5GEZr · ₿ Bitcoin: bc1qsvfduzj9fjs9fugpc52yver3f2g8fp7xjxecdv
Full BF16 weights of gemma-4-12B-it-abliterated-uncensored — an abliterated, uncensored variant of google/gemma-4-12B-it (Gemma 4 12B Unified, dense, ~11.95B parameters). The model keeps Gemma 4's encoder-free unified multimodal stack intact — text, image, and audio inputs flow straight into a single decoder-only transformer — so this checkpoint is a drop-in replacement for the original instruction-tuned model at the architecture level.
The pipeline:
config.json schema (Gemma4UnifiedForConditionalGeneration, model_type: gemma4_unified) match the base model exactly — this checkpoint loads anywhere the original loads.Key Properties:
google/gemma-4-12B-it| Property | Value |
|---|---|
| Architecture | Gemma4UnifiedForConditionalGeneration (model_type: gemma4_unified) |
| Total Parameters | ~11.95B (dense) |
| Decoder Layers | 48 |
| Hidden Size | 3840 |
| Attention | 16 heads / 8 KV heads, hybrid sliding-window (1024) + global (full) attention, p-RoPE |
| Vocabulary | 262,144 |
| Context Length | up to 256K tokens |
| Modalities | Text, Image, Audio (encoder-free / unified) |
| File | Description | Size |
|---|---|---|
model.safetensors | BF16 weights (48 decoder layers, unified multimodal) | ~23.9 GB |
config.json | Unified multimodal config (Gemma4UnifiedForConditionalGeneration) | — |
processor_config.json | Multimodal processor config | — |
tokenizer.json, tokenizer_config.json, chat_template.jinja, generation_config.json | Standard | — |
Total on disk: ~24 GB.
from transformers import AutoProcessor, AutoModelForMultimodalLM
repo = "OpenYourMind/gemma-4-12B-it-abliterated-uncensored"
processor = AutoProcessor.from_pretrained(repo)
model = AutoModelForMultimodalLM.from_pretrained(
repo, dtype="bfloat16", device_map="auto",
)
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": [
{"type": "image", "url": "path/to/image.jpg"},
{"type": "text", "text": "Describe this image in detail."},
]},
]
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True,
return_tensors="pt", return_dict=True, enable_thinking=False,
).to(model.device)
input_len = inputs["input_ids"].shape[-1]
out = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(out[0][input_len:], skip_special_tokens=True))
Text-only, audio, and video inputs work through the same class — place image content before the text and audio content after the text in the prompt for best results. Requires a recent transformers (the version that ships the Gemma 4 unified classes).
temperature=1.0, top_p=0.95, top_k=64 (the values shipped in generation_config.json).enable_thinking=True in apply_chat_template; the processor's parse_response separates the reasoning block from the final answer. Do not feed previous-turn thoughts back into multi-turn history.Full BF16 weights (~24 GB). Fits on a single 24 GB GPU for inference with modest context, comfortably on a 40–80 GB card for long context and multimodal batches. For Apple Silicon, an MLX quant can be produced from these weights.
Use is the responsibility of the user. Ensure your usage complies with applicable laws, platform rules, the Gemma 4 license terms, and your deployment requirements.