Skip to content
Computer vision

yukiworks/gemma-4-26B-A4B-it-heretic-NSFW

мультимодальная Gemma 4 без цензуры для контента 18+

2 min readupdated

Это специализированная децензурированная версия мультимодальной модели google/gemma-4-26B-A4B-it от автора yukiworks, способная работать с текстом, изображениями и видео. В основе лежит архитектура Mixture-of-Experts (MoE — смесь экспертов, где на каждый токен активируется лишь часть параметров: 3,8B из общих 25,2B), что обеспечивает высокую скорость генерации. В отличие от базовой версии, которая часто отклоняет запросы для взрослых, здесь отказы сняты с помощью метода Heretic на специально собранном автором наборе промптов 18+. При этом исходные возможности модели сохранены практически без потерь.

Ключевые особенности

  • Точечное снятие цензуры: оптимизация проведена методом Arbitrary-Rank Ablation (ARA) без дообучения весов на авторском датасете NSFW-промптов.
  • Высокая скорость MoE: при общем объёме 25,2B параметров во время генерации работают только 3,8B (8 активных экспертов из 128 плюс 1 общий), поэтому модель сопоставима по скорости с компактными 4B-решениями.
  • Мультимодальность и длинный контекст: поддерживает текстовые и визуальные запросы в любом порядке, анализ видео по кадрам, встроенный режим рассуждений (thinking) и контекстное окно до 256K токенов.
  • Мультиязычность и код: сохранена поддержка более 35 языков (предобучение на 140+), а также генерация кода и вызов функций (function calling).

Что можно сделать

  • Запускать локальных ролевых ботов и генераторы интерактивных историй 18+ без срабатывания встроенных фильтров безопасности.
  • Анализировать и описывать изображения или раскадровки видео для взрослых в мультимодальных сценариях.
  • Использовать в локальных AI-ассистентах через библиотеку transformers для задач, требующих длинного контекста и рассуждений без искусственных ограничений.

Пример

from transformers import AutoProcessor, AutoModelForMultimodalLM

MODEL_ID = "yukiworks/gemma-4-26B-A4B-it-heretic-NSFW"
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForMultimodalLM.from_pretrained(
    MODEL_ID, dtype="auto", device_map="auto"
)
Подробнее Отказы (Refusals Classifier): 0/100 против 89/100 у оригинальной google/gemma-4-26B-A4B-it.
KL divergence: 0.0411 (минимальное отклонение от распределения базовой модели).
Параметры абляции (Heretic v2.2.0.dev0): слои с 10 по 29, neighbor_count = 9.
Контекстное окно: 256K токенов; аудио-модальность в версии 26B A4B не поддерживается.
Discuss Telegram 1 16

Will it run?

Runs in 4-bit

Full precision does not fit, a quantised version does: quality barely changes down to 8 bits, more noticeably at 4 bits.

  • BF16weights 48 GB · ready files53 GB
  • FP8 / INT8recommendedweights 24 GB27 GB
  • 4-bitweights 14 GB15 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # yukiworks/gemma-4-26B-A4B-it-heretic-NSFW
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download yukiworks/gemma-4-26B-A4B-it-heretic-NSFW --local-dir ~/models/gemma-4-26B-A4B-it-heretic-NSFW
    # The model is in ~/models. How to run it is in the model card (link above).
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

  1. gemma-4-26B-A4Bfamily root
  2. gemma-4-26B-A4B-it
  3. gemma-4-26B-A4B-it-heretic-NSFW

New posts about versions of gemma-4-26B-A4B (quants, finetunes, LoRAs) will show up under the bell.

Quantised versions 12All on Hugging Face
Fine-tunes 12All on Hugging Face
Merges 5All on Hugging Face

About the model

yukiworks/gemma-4-26B-A4B-it-heretic-NSFW
Author
yukiworks
Category
Computer vision
Released
Posted

On NeyroLearn

Hugging Face

161

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments

Other

OCEAN-S2

OCEAN-S2