/ Модель

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

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

gemma-4-E4B-it-heretic

Мультимодальная модель

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

3 272скачиваний за 30 дней1лайквеса обновлены5 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Gemma 4 E4B IT Heretic — мультимодальная модель для диалога на базе Google Gemma 4 E4B IT, изменённая RACER IS OP с помощью Heretic: направленная правка весов подавляет отказы без дообучения. Архитектура Gemma4ForConditionalGeneration относится к классу MoE: модель имеет около 8 млрд параметров, из которых примерно 4 млрд активны на токен. Она принимает текст, изображения, видео и аудио, а генерирует текст; контекст — 128 тыс. токенов. Поддерживаются режимы рассуждения и GGUF-квантизации для локального запуска на потребительском оборудовании.

Модель предназначена для локального мультимодального помощника: анализа документов, интерфейсов и снимков экрана, транскрибации и понимания аудио, а также многоязычного диалога. В README заявлена поддержка более 140 языков; метаданные карточки указывают английский. В приведённой оценке на наборе вредоносных запросов отказы снизились с 100 из 100 у исходной модели до 25 из 100, при KL-дивергенции 0,1215. Это означает, что модель может выполнять запросы, от которых исходная модель отказывалась; также возможен дрейф тона и форматирования. Лицензия — Apache-2.0.

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

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

Ограничения

Подавление отказов намеренное: модель может выполнять потенциально вредные запросы, а отдельный слой фильтрации безопасности отсутствует. README сообщает о возможном дрейфе тона и форматирования, а также о наследуемых от базовой модели фактических ошибках и смещениях.

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

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

Открыть на Hugging Face

gemma-4-E4B-it-heretic

A decensored variant of google/gemma-4-E4B-it, produced with Heretic v1.4.0 (directional ablation / "abliteration"). Google's Gemma 4 E4B is an 8B-class multimodal MoE that takes text, image, video, and audio and generates text, with a 128K context and configurable thinking modes; refusal behaviour is suppressed here via targeted weight edits to the attention output and MLP down-projections rather than fine-tuning, so the model's multimodal perception and reasoning are left largely intact.

Who this is for: developers who want Gemma 4's multimodal range — image, video, and audio input — without the alignment refusals, on hardware they already own. E4B is the sweet spot in the family: it runs on-device on a laptop, handles 128K context, supports thinking modes, and here answers directly instead of declining. Best for local document/UI/screenshot analysis, audio transcription and understanding, and multilingual assistant work over 140 languages.

Runs on your gaming PC

Full GGUF ladder included - pick the quant that fits your card:

Your GPURecommended quantWeights
RTX 4090 / 5090 (24 GB)Q8_07.43 GB
RTX 4080 / 5080 / 4060 Ti 16G (16 GB)Q6_K5.75 GB
RTX 3060 / 4070 / 5070 (12 GB)Q5_K_M5.33 GB
RTX 4060 / 3070 (8 GB)Q4_K_M4.94 GB
GTX 1660 Super / 2060 / 3050 laptop (6 GB)IQ4_XS4.71 GB
CPU-only / Apple SiliconQ4_K_M4.94 GB

Weights only, at this model's native 8B size; add ~1 GB per 32K of context. Because this is a mixture-of-experts model, memory bandwidth matters far more than raw VRAM — a CPU with fast RAM often outruns a slow GPU. OOM? Drop one quant level. Headroom to spare? Go one up.

Abliteration parameters

Trial 176 of a 300-trial Heretic run (seed 2082950097). direction_index was selected per layer.

ParameterValue
direction_indexper layer
attn.o_proj.max_weight1.48
attn.o_proj.max_weight_position33.51
attn.o_proj.min_weight1.48
attn.o_proj.min_weight_distance24.58
mlp.down_proj.max_weight1.12
mlp.down_proj.max_weight_position28.11
mlp.down_proj.min_weight1.04
mlp.down_proj.min_weight_distance22.05

Performance

MetricThis modelOriginal model (google/gemma-4-E4B-it)
KL divergence0.12150 (by definition)
Refusals25/100100/100

Refusals on the harmful evaluation set drop from 100/100 to 25/100 — the most complete refusal removal in this batch, and the base model refused essentially everything tested. KL divergence of 0.1215 is a moderate-fidelity edit: Gemma 4's safety tuning is broad and consistent, so Heretic had to move further to reach this refusal level than it did on the Granite or Qwen siblings. Expect more drift in tone and formatting than a low-KL model, and spot-check the model's behaviour on your own prompts before relying on it.

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 — follow for more uncensored models

Files

Safetensors

FileSize
model-00001-of-00004.safetensors5.25 GB
model-00002-of-00004.safetensors4.65 GB
model-00003-of-00004.safetensors4.65 GB
model-00004-of-00004.safetensors0.24 GB

BF16. 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 (14 quants + F16) produced with llama.cpp.

FileFormatSize
gemma-4-E4B-it-heretic-F16.ggufGGUF F1613.92 GB
gemma-4-E4B-it-heretic-Q2_K.ggufGGUF Q2_K4.08 GB
gemma-4-E4B-it-heretic-IQ3_S.ggufGGUF IQ3_S4.32 GB
gemma-4-E4B-it-heretic-Q3_K_S.ggufGGUF Q3_K_S4.31 GB
gemma-4-E4B-it-heretic-Q3_K_M.ggufGGUF Q3_K_M4.49 GB
gemma-4-E4B-it-heretic-Q3_K_L.ggufGGUF Q3_K_L4.65 GB
gemma-4-E4B-it-heretic-IQ4_XS.ggufGGUF IQ4_XS4.71 GB
gemma-4-E4B-it-heretic-Q4_K_S.ggufGGUF Q4_K_S4.82 GB
gemma-4-E4B-it-heretic-Q4_0.ggufGGUF Q4_04.80 GB
gemma-4-E4B-it-heretic-Q4_1.ggufGGUF Q4_15.03 GB
gemma-4-E4B-it-heretic-Q4_K_M.ggufGGUF Q4_K_M4.94 GB
gemma-4-E4B-it-heretic-Q5_K_S.ggufGGUF Q5_K_S5.26 GB
gemma-4-E4B-it-heretic-Q5_K_M.ggufGGUF Q5_K_M5.33 GB
gemma-4-E4B-it-heretic-Q6_K.ggufGGUF Q6_K5.75 GB
gemma-4-E4B-it-heretic-Q8_0.ggufGGUF Q8_07.43 GB

Gemma 4 architecture (gemma4) - loads natively in llama.cpp / Ollama / LM Studio / Jan.

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

Quickstart

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

model_name = "saidutta69/gemma-4-E4B-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/photo.jpg"},
    {"type": "text", "text": "Describe what is in this image and transcribe any text you can read."},
]}]
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=1024)
print(processor.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Also runnable via Ollama, LM Studio, Jan, vLLM, SGLang.

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.

Model details

ArchitectureGemma4ForConditionalGeneration (multimodal MoE decoder)
Parameters8B class (E4B — ~4B active per token)
Layers / heads42 layers (35 sliding-attention window 512 + 7 full-attention), 8 attention heads, 2 KV heads, head dim 256
Hidden / intermediate2560 / 10240
Position embeddingmixed RoPE — theta 10,000 for sliding layers, proportional theta 1,000,000 with 0.25 partial rotary for full-attention layers
Context length128,000
Vocab262,144
Precisionbfloat16
ModalitiesText, image, video, audio in; text out
Languages140+
Base modelgoogle/gemma-4-E4B-it

About the Gemma 4 family

Gemma 4 is a family of open multimodal models from Google DeepMind with text, image, and video input (audio on E2B, E4B, and 12B) and text output. The family spans five sizes — E2B, E4B, 12B, 26B A4B, and 31B — mixing dense and mixture-of-experts architectures, with a 128K context on the small models and 256K on the medium ones. E4B is the on-device tier: multimodal range and reasoning in a model that fits on a laptop.

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

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

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

GPU в ailist

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

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

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

Класс архитектуры
Gemma4ForConditionalGeneration
Ревизия весов
49f672b

0 моделей