/ Модель

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

Лицензия
Gemma
Библиотека
gguf
Опубликована
1 июл 2026

gemma-4-E4B-it-qat-q4_0-heretic-GGUF

Изображение и текст → текст15 профессий

Это мультимодальная модель Gemma 4 E4B, разработанная Google DeepMind и представленная в формате GGUF.

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

Бенчмарки

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

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

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

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

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

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

Данная версия основана на checkpoint coder3101/gemma-4-E4B-it-qat-q4_0-unquantized-heretic, прошла Quantization-Aware Training и предназначена для запуска через llama.cpp, в том числе на устройствах с ограниченными ресурсами. Модель работает с текстом, изображениями и аудио, поддерживает системные сообщения, нативный вызов функций и настраиваемый режим рассуждений.

Архитектура использует гибридное внимание со скользящим окном и глобальным вниманием; модель содержит 42 слоя, размер скользящего окна составляет 512 токенов, а контекстное окно — 131 072 токена. Эффективный объём параметров заявлен на уровне 4,5 млрд при 8 млрд параметров с учётом embeddings. Основные текстовые тензоры представлены в формате Q4_0_PURE, согласованном с QAT-калибровкой; vision/audio projector доступен в вариантах Q8_0 и BF16. Для мультимодального ввода требуется отдельный projector-файл.

Особенностью версии heretic является постобработка с помощью Heretic v1.2.0 и метода Arbitrary-Rank Ablation, направленная на подавление отказов при сохранении рассуждений и мультимодальных возможностей. Заявленные показатели отказов являются самоотчётными и не подтверждены независимым тестированием. Использование формата ограничено Q4_0_PURE: стандартные варианты вроде Q4_K_M или Q5_K_M для этой QAT-модели не рекомендуются, поскольку могут ухудшить качество. Модель распространяется по лицензии Gemma; условия определяются официальными условиями Google Gemma.

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

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

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

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

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

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

Открыть на Hugging Face

🤖 gemma-4-E4B-it-qat-q4_0-heretic — GGUF

This repository hosts GGUF weights and the associated vision/audio projection matrix for gemma-4-E4B-it-qat-q4_0-heretic, quantized from the source floating-point tensors provided by coder3101/gemma-4-E4B-it-qat-q4_0-unquantized-heretic.

🎯 QAT Architecture & Constraints

This model was produced using Quantization Aware Training (QAT). Because the network parameters were exposed to 4-bit constraints natively during fine-tuning, standard post-training formats such as Q4_K_M or Q5_K_M are not compatible and would degrade output quality.

This repository instead provides a single Q4_0 build, produced with the llama.cpp --pure flag, which matches the numerical profile the model was trained on.

ℹ️ Model Profile & Core Features

Gemma 4 E4B is a Google DeepMind model from the Gemma 4 family, a multimodal (text, image, audio) architecture featuring hybrid sliding-window/global attention, configurable thinking mode, native function calling, and system-role support. This is the Quantization-Aware Training (QAT) variant, whose weights were trained to retain near-bfloat16 quality once quantized to 4-bit — unlike a naively post-training-quantized model, QAT checkpoints are specifically calibrated during training for low-bit deployment. The "E" in E4B denotes "effective" parameters: the model uses Per-Layer Embeddings (PLE) so its effective footprint (4.5B) is much smaller than its total parameter count (8B with embeddings).

The heretic suffix denotes post-processing via Heretic v1.2.0 with the Arbitrary-Rank Ablation (ARA) method (row-norm preservation) performed by coder3101, which suppresses refusal behavior while preserving the model's reasoning and multimodal capabilities.

📋 Technical Specifications

PropertyValue
Base ArchitectureGemma 4 E4B (hybrid sliding-window/global attention)
Developed byGoogle DeepMind
Effective Parameters4.5B (8B total with embeddings)
Layers42
Sliding Window512 tokens
Primary UseMultimodal reasoning, on-device/edge deployment
Context Window131,072 tokens
Supported ModalitiesText, Image, Audio
Vision/Audio ProjectorIntegrated (see repository files below)
Quantization-Aware TrainingYes (Q4_0-calibrated)
Abliteration ToolHeretic v1.2.0
Abliteration MethodArbitrary-Rank Ablation (ARA) with row-norm preservation
Prompt FormatGemma chat template (system/user/assistant roles)

🛠️ Heretic Overrides (ARA)

PropertyValue
start_layer_index20
end_layer_index36
preserve_good_behavior_weight0.5805
steer_bad_behavior_weight0.0023
overcorrect_relative_weight0.7764
neighbor_count13

📊 Refusal Bypass Metrics

[!NOTE] The metrics below are self-reported by the original model author (coder3101) and have not been independently reproduced.

MetricThis modelOriginal (google/gemma-4-E4B-it-qat-q4_0-unquantized)
KL divergence0.00650 (by definition)
Refusals5/10098/100

🧮 Numerical & Tensor Formats

PropertyValue
Text TensorsQ4_0 (--pure, uniform quantization across all tensor types)
Vision/Audio TensorsQ8_0, BF16

[!NOTE] Unlike standard Q4_0 builds that mix in higher-precision tensors for embeddings and select layers, this quant was produced with the --pure flag, forcing all eligible tensors to Q4_0. This most closely mirrors the QAT calibration target and is the recommended pairing for this checkpoint.

📦 Available Model Files

Main model weights

FilenameQuantizationllama.cpp BuildSizeDownload
gemma-4-E4B-it-qat-q4_0-heretic-Q4_0_PURE.ggufQ4_0_PUREb98513.96 GB📥 Download

mmproj — vision/audio projector files

FilenameQuantizationSizeDownload
mmproj-gemma-4-E4B-it-qat-q4_0-heretic-Q8_0.ggufQ8_0534 MB📥 Download
mmproj-gemma-4-E4B-it-qat-q4_0-heretic-BF16.ggufBF16946 MB📥 Download

🎛️ Component Pairing Guide

  • Q4_0_PURE: The only main-weights format provided; required to match the QAT training profile.

mmproj files (optional): multimodal vision projectors. Pass one via the --mmproj flag in llama.cpp to enable image input.

  • BF16 (Recommended): Highest possible image processing accuracy. While older projectors were small, modern vision towers can hover around 1GB. If you are tight on VRAM, it is completely viable to run this on system RAM (CPU) with a minimal performance penalty, saving your precious GPU space for the main model layers.
  • Q8_0: Cuts the projector file size and memory footprint in half (~500MB for larger 1GB files). Use this if you prefer to keep the vision tower hosted entirely on your GPU but need to claw back some VRAM to avoid Out-Of-Memory (OOM) crashes.

⚡ Deployment & Execution Commands

[!IMPORTANT] The vision projector (--mmproj) must be supplied at runtime whenever image inputs are used. Omitting it disables multimodal capability entirely.

[!NOTE] Google recommends the following sampling configuration for best results: temperature=1.0, top_p=0.95, top_k=64.

[!NOTE] Thinking is enabled by including the <|think|> token at the start of the system prompt; remove it to disable reasoning output.

llama.cpp CLI (with image)

./llama-cli \
  -m gemma-4-E4B-it-qat-q4_0-heretic-Q4_0_PURE.gguf \
  --mmproj mmproj-gemma-4-E4B-it-qat-q4_0-heretic-BF16.gguf \
  -c 8192 \
  -ngl 99 \
  --temp 1.0 \
  --top-p 0.95 \
  --top-k 64 \
  --image "path/to/image.jpg" \
  -p "<start_of_turn>user\nDescribe what you see in this image.<end_of_turn>\n<start_of_turn>model\n"

OpenAI-Compatible API Server

./llama-server \
  --host 0.0.0.0 \
  --port 8080 \
  -m gemma-4-E4B-it-qat-q4_0-heretic-Q4_0_PURE.gguf \
  --mmproj mmproj-gemma-4-E4B-it-qat-q4_0-heretic-BF16.gguf \
  -c 16384 \
  -ngl 99 \
  --flash-attn

💬 Chat Templates & Prompt Design (Gemma)

<start_of_turn>system
You are a helpful assistant.<end_of_turn>
<start_of_turn>user
Your question, image, or audio payload here.<end_of_turn>
<start_of_turn>model

⚠️ Safety & Operational Notes

  • This model is abliterated and will generate content that standard aligned models refuse. Use responsibly and in compliance with applicable laws.
  • Audio input is limited to 30 seconds; video is processed as frames at up to 60 seconds (1 fps).
  • Place image content before text and audio content after text in the prompt for best results.
  • In multi-turn conversations, do not carry prior turns' thinking content forward — only the final response should appear in history.
  • Vision tensors are kept at BF16 or Q8_0 depending on the mmproj variant chosen, to preserve spatial feature quality.
  • The --pure Q4_0 quantization applies uniform 4-bit precision across all eligible tensors rather than mixing precisions, which most closely matches this checkpoint's QAT calibration target.

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

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

GPU в ailist

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

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

GGUF-веса поддерживаются только для текстовых LLM (llama.cpp).

Ревизия весов
e5a8783

0 моделей