/ Модель

Характеристики

Размер весов
23,9 ГБ
Лицензия
Apache 2.0
Архитектура
gemma4_unified · dense
Базовая модель
gemma-4-12B-it
Библиотека
transformers
Опубликована
4 окт 2026

gemma-4-12B-it-heretic

Мультимодальная модель15 профессий
3 046скачиваний за 30 дней0лайковвеса обновлены1 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Мультимодальный вариант Gemma 4 12B Instruct с ослабленным отказным поведением для локального диалога и анализа текста, изображений, аудио и видео.

saidutta69 (RACER IS OP) подготовил вариант Gemma 4 12B Instruct с ослабленным отказным поведением. Это плотная мультимодальная модель архитектуры Gemma4UnifiedForConditionalGeneration примерно на 12 млрд параметров, полученная целевым изменением весов с помощью Heretic 1.4.0, а не дообучением. Она принимает текст, изображения, видео и аудио и выдаёт текст; поддерживает режимы рассуждения и контекст до 256 тыс. токенов.

Модель рассчитана на локальный запуск и диалог, анализ документов и мультимодальных материалов, ответы на вопросы по аудио и видео, а также задачи рассуждения. Доступны веса Safetensors и сборки GGUF в вариантах от F16 до Q4_K_M, Q5_K_M, Q6_K и Q8_0; README указывает, что GGUF-сборки не содержат модуль обработки изображений. В описанной оценке частота отказов снизилась с 99 до 37 из 100, а KL-дивергенция составила 0,0357, поэтому ответы могут отличаться от исходной модели, а отказное поведение сохраняется в части запросов. Лицензия — Apache-2.0.

Сценарии применения

  • ответы на вопросы по документам и изображениям
  • анализ записей встреч и аудио
  • ответы на вопросы по видеозаписям
  • описание содержимого изображений и видео
  • диалог и рассуждение с длинным контекстом
  • локальный запуск мультимодального чат-бота

Ограничения

В оценке README модель отказала в 37 из 100 запросов из набора для проверки вредоносных запросов; результаты могут заметно отличаться по тону от исходной Gemma 4. GGUF-сборки, согласно README, не содержат модуль обработки изображений.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит15

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

gemma-4-12B-it-heretic

A decensored variant of google/gemma-4-12B-it, produced with Heretic v1.4.0 (directional ablation / "abliteration"). Gemma 4 12B is the multimodal workhorse of the family — text, image, video, and audio input with text output, 256K context, and configurable thinking modes — and refusal behaviour is suppressed here via targeted weight edits to the attention output and MLP down-projections rather than fine-tuning, so the multimodal perception and reasoning are left largely intact.

Who this is for: developers who want Gemma 4's full multimodal range at a size that still fits a single high-end consumer GPU. This is the tier between E4B (which runs anywhere, on-device) and the 26B/31B MoE models (which need datacenter hardware): 12B is where document, audio, and video understanding gets genuinely good and still quantises to a single card. Refusals drop from 99/100 to 37/100 — the loosest edit in this batch, so expect more drift in tone than the low-KL siblings.

Runs on your gaming PC

Full quantization set (F16 + Q4_K_M, Q5_K_M, Q6_K, Q8_0) produced with llama.cpp.

Your GPURecommended quantWeights
RTX 6000 Ada / A100 (48 GB)Q8_011.80 GB
RTX 4090 / 5090 (24 GB)Q6_K9.11 GB
RTX 4080 / 5080 (16 GB)Q5_K_M7.96 GB
RTX 3090 (24 GB, dual-GPU offload)Q5_K_M7.96 GB
CPU-only (32 GB+ RAM)Q5_K_M7.96 GB
CPU-only (16 GB RAM)Q4_K_M6.87 GB

Weights only, at this model's native 12B size; add ~2 GB per 32K of context — multimodal context carries image, video, and audio tokens, so KV cache dominates at long context. Q4_K_M is the practical floor for 16 GB systems. OOM? Drop one quant level. Headroom to spare? Go one up.

Abliteration parameters

Trial 100 of a 200-trial Heretic run (seed 1180095890).

ParameterValue
direction_index29.72
attn.o_proj.max_weight1.25
attn.o_proj.max_weight_position32.29
attn.o_proj.min_weight0.65
attn.o_proj.min_weight_distance14.84
mlp.down_proj.max_weight1.06
mlp.down_proj.max_weight_position46.29
mlp.down_proj.min_weight1.04
mlp.down_proj.min_weight_distance23.15

Performance

MetricThis modelOriginal model (google/gemma-4-12B-it)
KL divergence0.03570 (by definition)
Refusals37/10099/100

Refusals on the harmful evaluation set drop from 99/100 to 37/100. The interesting number here is the KL divergence: at 0.0357 this is the tightest edit in the batch — the lowest collateral damage to everything that isn't refusal — which is why it stopped at 37/100 rather than pushing lower. Gemma 4's safety tuning is broad and consistent, so the remaining refusals are load-bearing for behaviour you'd otherwise destabilise. This is the highest-fidelity variant available here: if you want Gemma 4's answers to stay close to the original and only need the obvious refusals gone, take this one. The E4B sibling trades fidelity (0.1215) for a much lower refusal count (25/100) — pick by which trade you prefer.

direction_index is a single index (29.72) rather than per-layer, which is why the edit stays this tight.

Why abliteration instead of fine-tuning

Fine-tuning a "helpful" persona on top of RLHF'd refusals fights the base model's training and tends to degrade coherence. Abliteration instead finds and edits the specific weight directions responsible for refusal, leaving the rest of the network (and its capabilities) untouched. See the Heretic repo and the original abliteration writeup for the mechanism.

Made with ❤️ by RACER IS OP (saidutta69) — follow for more uncensored models

Files

Safetensors

FileSize
model-00001-of-00005.safetensors4.62 GB
model-00002-of-00005.safetensors4.63 GB
model-00003-of-00005.safetensors4.55 GB
model-00004-of-00005.safetensors4.64 GB
model-00005-of-00005.safetensors3.84 GB

BF16, ~12B. The reproduce/ directory carries the full Heretic recipe - config.toml, requirements.txt, the Optuna study journal, and SHA-256 sums - so this exact model can be regenerated bit-for-bit. Reproduce it with heretic --reproduce reproduce/reproduce.json.

GGUF quantizations

Full quantization set (F16 + Q4_K_M, Q5_K_M, Q6_K, Q8_0) produced with llama.cpp.

FileFormatSize
gemma-4-12B-it-heretic-F16.ggufGGUF F1622.20 GB
gemma-4-12B-it-heretic-Q4_K_M.ggufGGUF Q4_K_M6.87 GB
gemma-4-12B-it-heretic-Q5_K_M.ggufGGUF Q5_K_M7.96 GB
gemma-4-12B-it-heretic-Q6_K.ggufGGUF Q6_K9.11 GB
gemma-4-12B-it-heretic-Q8_0.ggufGGUF Q8_011.80 GB

Gemma 4 Unified architecture (gemma4) with vision and audio encoders - loads natively in llama.cpp / LM Studio / Jan.

Run llama serve -hf saidutta69/gemma-4-12B-it-heretic to pull the default quant.

Quickstart

# llama.cpp
llama serve -hf saidutta69/gemma-4-12B-it-heretic
# transformers
from transformers import AutoProcessor, AutoModelForImageTextToText

model_name = "saidutta69/gemma-4-12B-it-heretic"
model = AutoModelForImageTextToText.from_pretrained(model_name, dtype="auto", device_map="auto")
processor = AutoProcessor.from_pretrained(model_name)

messages = [{"role": "user", "content": [
    {"type": "image", "image": "https://example.com/page.jpg"},
    {"type": "text", "text": "Describe this document, extract the key figures, and flag anything inconsistent."},
]}]
inputs = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=True,
                                        return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=2048)
print(processor.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Thinking modes

Gemma 4 is built as a reasoner with configurable thinking. Toggle the reasoning block through the chat template — full thinking for hard problems, non-thinking when you want latency:

# full thinking (default)
processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)

# skip the reasoning block
processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=False,
                              enable_thinking=False)

Strip the reasoning block from the output before displaying it to users if you enabled thinking.

Audio and video

This is the Gemma4UnifiedForConditionalGeneration variant, so audio and video input are native rather than needing a separate audio tower. That makes it useful for meeting-recording analysis, video captioning, and audio-plus-visual QA in one pass.

Model details

ArchitectureGemma4UnifiedForConditionalGeneration (multimodal decoder, unified)
Parameters~12B
Layers / heads48 layers, 16 attention heads, 8 KV heads, head dim 256
Hidden / intermediate3840 / 15360
Sliding window1024
Position embeddingmixed RoPE — theta 10,000 for sliding layers, proportional theta 1,000,000 with 0.25 partial rotary for full-attention layers
Context length262,144
Vocab262,144
Precisionbfloat16
ModalitiesText, image, video, audio in; text out
Languages140+
Base modelgoogle/gemma-4-12B-it

Where 12B sits in the family

Gemma 4 spans five sizes — E2B, E4B, 12B, 26B A4B, and 31B — mixing dense and mixture-of-experts architectures. The small models (E2B, E4B) have a 128K context; the medium and large ones including 12B reach 256K. 12B is the practical ceiling for single-consumer-GPU deployment: past it you're into MoE territory that wants datacenter hardware. Audio input is native on E2B, E4B, and 12B.

FAQ

What is gemma-4-12B-it-heretic?

gemma-4-12B-it-heretic is a decensored build of google/gemma-4-12B-it produced with Heretic 1.4.0 (directional ablation). It is the same weights with the refusal direction removed, not a new fine-tune, so its capabilities track the base model.

Is gemma-4-12B-it-heretic actually uncensored?

Yes. On Heretic's 100-prompt refusal harness it drops from 99/100 to 37/100 at KL divergence 0.0357 from the base model. These are measured values, not a claim; reproduction data is in reproduce/. This edit is conservative: only 62 of 99 refusals cleared, so read KL and refusal count together.

How do I run gemma-4-12B-it-heretic locally?

Text only: llama serve -hf saidutta69/gemma-4-12B-it-heretic:Q4_K_M (one of 5 GGUF quants). The GGUFs drop the vision tower; use the BF16 safetensors plus AutoProcessor for image input.

Responsible use

Refusal suppression is deliberate and works as intended: this model will comply with requests the base model would refuse, including some it shouldn't. There is no safety filtering layered on top. You are responsible for how you deploy it — don't put this behind an unmoderated public-facing endpoint serving third parties. It inherits Gemma 4's factual limitations and biases; abliteration removes refusal directions, it doesn't add capability or judgment.

License

Inherits the Gemma 4 license from the base model. Upstream lists it as Apache 2.0 with the Gemma terms of use — read the linked terms before commercial deployment.

Related

Abliteration hardware

Recorded in reproduce/reproduce.json:

  • GPU: NVIDIA GeForce RTX 5090 (31.36 GB VRAM)
  • CPU: AMD Ryzen 7 9700X 8-Core Processor
  • OS: Linux-6.8.0-142-generic-x86_64-with-glibc2.35
  • CUDA / driver: CUDA 13.0, driver 595.84
  • Software: PyTorch 2.14.1+cu130, Heretic 1.4.0

Heretic notes that KL-divergence and refusal numbers can vary slightly with hardware and library versions.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Any-to-any модели пока не поддерживаются.

Класс архитектуры
Gemma4UnifiedForConditionalGeneration
Ревизия весов
fbc5bbe

0 моделей