/ Модель

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

Лицензия
Apache 2.0
Архитектура
gemma4 · dense
Базовая модель
gemma-4-31b-it-heretic-ara
Библиотека
transformers
Опубликована
6 апр 2026

gemma-4-31b-it-abliterated-heretic-AWQ-W4A16

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

Gemma-4-31B-it-abliterated-heretic-AWQ-W4A16 — мультимодальная производная модель, опубликованная alonsoko на базе trohrbaugh/gemma-4-31b-it-heretic-ara, которая, в свою очередь, основана на Google Gemma 4 31B Instruct.

3 719скачиваний за 30 дней15лайковвеса обновлены17 мая 2026

Бенчмарки

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

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

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

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

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

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

Модель принимает текст и изображения, а генерирует текст; она предназначена для исследований, экспериментов и тестирования в задачах рассуждения, программирования, анализа изображений и диалогового взаимодействия. Базовая архитектура — плотная модель размером 31 млрд параметров с поддержкой режима рассуждений, function calling и контекстом до 256K токенов. Языки в карточке не указаны.

Модель подвергнута abliteration с использованием Heretic ARA: встроенные защитные ограничения намеренно удалены, поэтому она может генерировать вредный, оскорбительный или иной нежелательный контент и не рекомендуется для производственных или пользовательских систем. Применена AWQ-квантизация W4A16 с group size 128: линейные слои языковой части используют 4-битные веса и 16-битные активации, а мультимодальные компоненты и LM head сохранены в полной точности. Размер весов составляет около 19 ГБ; для стандартной работы рекомендуется GPU с 24 ГБ VRAM, а для длинного контекста и пакетной обработки — 48 ГБ и более. Поддерживается запуск через vLLM с образом для Gemma 4, однако качество на длинном контексте после квантизации отдельно не проверялось. Лицензия — Apache-2.0; ответственность за безопасное и законное использование возлагается на пользователя.

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

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

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

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

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

Открыть на Hugging Face

Gemma-4-31B-it-abliterated-heretic-AWQ-W4A16

AWQ W4A16 (group_size 128, symmetric) quantization of trohrbaugh/gemma-4-31b-it-heretic-ara — a Heretic-ARA abliterated derivative of google/gemma-4-31b-it.

⚠️ Decensored model. Safety guardrails have been deliberately removed. Research and experimentation only. See full disclaimer below.

Quantization Details

ParameterValue
MethodAWQ (Activation-aware Weight Quantization)
SchemeW4A16 (symmetric)
Weight Bits4
Activation Bits16
Group Size128
Formatcompressed-tensors
Calibration DatasetHuggingFaceH4/ultrachat_200k
Calibration Samples256
Max Sequence Length2048
Vision TowerUnquantized (full precision)
LM HeadUnquantized (full precision)
Compatible Inference EnginevLLM (vllm/vllm-openai:gemma4)

Quantization Notes

  • All multimodal paths kept full precision: Vision tower, audio tower, video tower, multi-modal projector, and all modality-specific embedding and projection layers are excluded from quantization. Only language-model linear layers (attention Q/K/V/O and MLP gate/up/down) are quantized.
  • LM head unquantized: Standard practice to preserve output token distribution quality at negligible size cost.
  • v_proj → o_proj smoothing skipped: llm-compressor reports incompatible balance layer dimensions for v_proj → o_proj on this checkpoint across many of Gemma 4's decoder blocks. Per-channel smoothing is skipped for that path, matching the standard AWQ-for-GQA pattern.
  • Hybrid attention and context window unchanged: Quantization only touches Linear layer weights; Gemma 4's interleaved local/global attention pattern and 256K context capacity are structurally preserved. Actual long-context quality at 4-bit has not been benchmarked.
  • Multimodal input intact: Text + image input works as in the base model. Use the standard Gemma 4 chat template with image tokens placed before text.
  • Full quantization recipe is preserved in recipe.yaml in this repo for reproducibility. It records the exact AWQ mappings, ignore patterns, and scheme parameters applied.

Deployment

Recommended inference with vLLM (Gemma 4 requires the vllm/vllm-openai:gemma4 image):

vllm serve alonsoko/gemma-4-31b-it-abliterated-heretic-AWQ-W4A16 \
    --trust-remote-code \
    --tensor-parallel-size 1 \
    --max-model-len 32768

Recommended sampling (per upstream Gemma 4 guidance): temperature=1.0, top_p=0.95, top_k=64

To enable thinking mode, include the <|think|> token at the start of the system prompt.

Hardware Requirements

Approximate VRAM for inference at this quantization (W4A16-G128):

  • Weights (quantized language model + unquantized vision tower, all in one safetensors): ~19 GB
  • KV cache (per request, grows with context length): ~1-4 GB at 32K context, more at longer contexts
  • Recommended: Single 24 GB GPU (RTX 3090/4090, A10G) for standard context up to ~32K, or single 48 GB GPU (L40S/A6000) for long context / batch serving
  • Long context (128K+): 48-80 GB recommended due to KV cache growth

⚠️ Disclaimer

This model is intended for research, experimentation, and testing purposes only.

  • This model may produce harmful, offensive, inappropriate, or otherwise objectionable content.
  • The abliteration process removes safety guardrails that were intentionally built into the original model.
  • Do not use this model in production systems, consumer-facing applications, or any context where harmful outputs could cause real-world harm.
  • The authors and contributors of this toolkit bear no responsibility for any misuse of this model or any harm caused by outputs generated by this model.
  • By using this model, you agree that you are solely responsible for ensuring its use complies with all applicable laws and ethical guidelines.

This model is shared purely for academic and technical exploration of model internals.

Abliteration

Performed with Heretic v1.2.0+custom using the Arbitrary-Rank Ablation (ARA) method.

ParameterValue
start_layer_index2
end_layer_index60
preserve_good_behavior_weight0.9920
steer_bad_behavior_weight0.0001
overcorrect_relative_weight0.4709
neighbor_count10

Performance

MetricThis modelOriginal google/gemma-4-31b-it
KL divergence0.01200 (by definition)
Refusals5/10098/100

Measured on the unquantized heretic-ara base; AWQ is expected to preserve these closely but has not been separately benchmarked.


About the Base Model

Original model: google/gemma-4-31b-it

Gemma 4 31B is a dense multimodal model (text + image input, text output) with a 256K context window, native thinking-mode support, function calling, and strong performance on reasoning, coding, and vision benchmarks. See the base model card for architectural details, benchmark results, training data, and Google's responsible-use guidance.

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

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

GPU в ailist

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

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

Готовая квантизация поддерживается только для текстовых LLM (vLLM).

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

0 моделей