/ Модель

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

Размер весов
10,2 ГБ
Лицензия
Apache 2.0
Архитектура
gemma4 · dense
Базовая модель
gemma-4-E2B-it-qat-q4_0-unquantized
Библиотека
transformers
Опубликована
23 июн 2026

gemma4-E2B-it-qat-Q4-unsloth-heretic

Генерация текстаТекст → текст15 профессий

gemma4-E2B-it-qat-Q4-unsloth-heretic — модифицированная instruction-tuned модель семейства Gemma 4 E2B.

1 070скачиваний за 30 дней2лайкавеса обновлены23 июн 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

Базовую модель разработала Google DeepMind, веса подготовлены в формате Unsloth, а данная сборка опубликована MobiusDevelopment и обработана инструментом Heretic. Из модели удалено встроенное поведение отказа отвечать на отдельные запросы («abliteration» или decensoring), при этом заявлено сохранение общих возможностей базовой модели.

Модель предназначена для генерации текста, диалоговых и агентских сценариев, программирования, дополнения и исправления кода, function calling и задач, требующих обработки длинного контекста. Gemma 4 E2B поддерживает текстовые и графические входы, а также аудио; выводом является текст. Заявлены понимание изображений, OCR, анализ документов и PDF, интерфейсов и графиков, распознавание речи и перевод речи в текст, встроенный режим пошагового рассуждения и мультиязычная работа более чем со 140 языками.

Архитектура использует гибридное внимание с чередованием локального sliding-window и глобального внимания, Per-Layer Embeddings и Proportional RoPE. Вариант E2B имеет 2,3 млрд эффективных параметров и 5,1 млрд параметров с учётом эмбеддингов, 35 слоёв, окно локального внимания 512 токенов, контекст до 128K токенов и словарь размером 262 тысяч токенов. Доступны bf16 safetensors для полной мультимодальной версии, текстовый GGUF Q4_K_M и отдельные vision/audio mmproj GGUF. Главная особенность и одновременно ограничение сборки — отсутствие встроенных отказов, поэтому её ответы требуют дополнительного контроля безопасности; качество после модификации может отличаться от базовой модели. Использование регулируется лицензией Gemma и условиями Google Gemma Terms of Use; в метаданных также указана лицензия Apache-2.0.

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

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

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

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

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

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

Открыть на Hugging Face

gemma4-E2B-it-qat-Q4-unsloth-heretic

This is a decensored ("abliterated") build of Google's Gemma 4 E2B instruction-tuned model. The refusal behavior has been removed so the model answers prompts it would otherwise decline, while its general capabilities are kept intact.

ollama run MobiusDevelopment/gemma4-E2B-it-qat-Q4-unsloth-heretic

[!Warning] Abliteration removes the model's built-in safety refusals. You are solely responsible for what you generate with it. Use must still comply with the Gemma Terms of Use.


What "unsloth" means here

Unsloth is an open-source project that makes LLM fine-tuning and inference faster and far more memory-efficient. Beyond the training library, Unsloth re-publishes upstream model weights in convenient, ready-to-use forms — fixed chat templates, dynamic GGUF quants, and clean safetensors mirrors.

The base used here, unsloth/gemma-4-E2B-it-qat-q4_0-unquantized, is Unsloth's mirror of Google's QAT (Quantization-Aware Training) checkpoint, with the Q4_0 QAT weights restored to full precision (bf16 safetensors). QAT lets a model keep close to bf16 quality after 4-bit quantization, so this "unquantized-from-QAT" checkpoint is the ideal, quantization-friendly starting point for downstream work — which is exactly why it was chosen as the abliteration base.

What "heretic" means here

Heretic is an automated decensoring / abliteration tool. "Abliteration" identifies the internal direction a model uses to represent refusal and removes that direction from the weights that write to the residual stream, so the model stops refusing while keeping everything else. Heretic does this automatically: it runs a TPE optimization over the abliteration parameters, scoring each candidate on how many refusals remain versus how much the model's output distribution drifts from the original (KL divergence), and returns the Pareto-optimal trade-offs.

This build used the Arbitrary-Rank Ablation (ARA) method with row-norm preservation (row_normalization = full, a rank-3 LoRA adapter that renormalizes weight rows to preserve their original magnitudes — minimizing collateral damage).

Abliteration details

SettingValue
ToolHeretic v1.4.0
MethodArbitrary-Rank Ablation (ARA), row_normalization = full, LoRA rank 3
ScopeLanguage-model output projections (o_proj, down_proj); vision/audio towers untouched
Trials200 (TPE) over mlabonne/harmless_alpaca + mlabonne/harmful_behaviors
Selected trialrefusals 11/100, KL divergence 0.0489

Heretic v1.2.0 was the originally intended version, but it predates the gemma4 architecture in 🤗 Transformers and cannot load it; v1.4.0 implements the identical ARA + row-norm-preservation method.


About Gemma 4 (base model)

Gemma is a family of open models built by Google DeepMind. Gemma 4 models are multimodal, handling text and image input (with audio supported on E2B, E4B, and 12B) and generating text output. Gemma 4 features a large context window and maintains multilingual support in over 140 languages.

The E2B variant is the smallest Gemma 4 model, designed for efficient on-device and edge deployment. The "E" stands for effective parameters: the model uses Per-Layer Embeddings (PLE) so its effective parameter count is much smaller than its total.

PropertyE2B
Total Parameters2.3B effective (5.1B with embeddings)
Layers35
Sliding Window512 tokens
Context Length128K tokens
Vocabulary Size262K
Supported ModalitiesText, Image, Audio

Gemma 4 uses a hybrid attention mechanism that interleaves local sliding-window attention with full global attention (the final layer is always global). Global layers use unified Keys and Values and apply Proportional RoPE (p-RoPE) to optimize memory for long contexts.

Core capabilities

  • Thinking – built-in step-by-step reasoning mode.
  • Long context – up to 128K tokens on E2B.
  • Image understanding – detection, document/PDF parsing, UI/chart understanding, OCR, handwriting.
  • Audio – speech recognition (ASR) and speech-to-translated-text.
  • Function calling – native structured tool use for agentic workflows.
  • Coding – generation, completion, and correction.
  • Multilingual – out-of-the-box for many languages, pre-trained on 140+.

E2B benchmark reference (base, instruction-tuned)

BenchmarkGemma 4 E2B
MMLU Pro60.0%
GPQA Diamond43.4%
LiveCodeBench v644.0%
MMMU Pro (vision)44.2%
MATH-Vision52.4%

Reported for the unmodified base model; abliteration may shift safety-adjacent behavior.

Getting started (Transformers)

from transformers import AutoProcessor, AutoModelForImageTextToText

MODEL_ID = "MobiusDevelopment/gemma4-E2B-it-qat-Q4-unsloth-heretic"

processor = AutoProcessor.from_pretrained("unsloth/gemma-4-E2B-it-qat-q4_0-unquantized")
model = AutoModelForImageTextToText.from_pretrained(MODEL_ID, dtype="auto", device_map="auto")

messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Write a short joke about saving RAM."},
]
inputs = processor.apply_chat_template(
    messages, tokenize=True, return_dict=True, return_tensors="pt",
    add_generation_prompt=True, enable_thinking=False,
).to(model.device)
input_len = inputs["input_ids"].shape[-1]
outputs = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(outputs[0][input_len:], skip_special_tokens=False))

The safetensors are the full multimodal Gemma 4 weights with decensored text layers (image + audio towers intact — only refusals were removed). Two GGUF options are included:

  • llama.cpp — gemma4-E2B-it-qat-Q4_K_M-unsloth-heretic.gguf (text) + mmproj-gemma4-E2B-it-unsloth-heretic.gguf (vision + audio projector).
  • Ollama (single file) — gemma4-E2B-it-qat-Q4-unsloth-heretic.gguf: the combined text+vision+audio GGUF published to Ollama.

All formats are vision + audio capable. Note: ollama.com only renders the audio capability badge for official library/* models, so the community model page shows vision/tools/thinking — audio still works at runtime (the projector and audio encoder are present).

Recommended sampling

temperature=1.0, top_p=0.95, top_k=64. Thinking is enabled by including <|think|> at the start of the system prompt; remove it to disable. Many libraries (Transformers, llama.cpp) handle the chat template for you.

Limitations

This model inherits the limitations of the Gemma 4 base (factual accuracy, common-sense gaps, sensitivity to prompt quality, training-data biases) and additionally has its safety refusals removed. It will attempt to comply with prompts the original model would refuse, including harmful ones. Apply your own content-safety safeguards for any deployment.


Decensored with Heretic. Base weights © Google DeepMind, mirrored by Unsloth, used under the Gemma Terms.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

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

0 моделей