/ Модель

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

Лицензия
Gemma
Архитектура
gemma4_unified · dense
Базовая модель
gemma-4-12b
Библиотека
transformers
Опубликована
28 окт 2026

Gemma-4-12b-RedTeam-BlackICE

Изображение и текст → текст3 профессии
1 876скачиваний за 30 дней2лайкавеса обновлены30 окт 2026

Описание модели

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

Дообученная Gemma 4 12B для авторизованных задач кибербезопасности, включая пентесты, red team, анализ вредоносного ПО и защитную инженерию.

Gemma-4-12b-RedTeam-BlackICE — дообученная методом LoRA модель на базе Google Gemma 4 12B, созданная для авторизованных исследований кибербезопасности. Она предназначена для пентестов, задач red team, объяснения эксплойтов, анализа вредоносного ПО, решения CTF, цифровой криминалистики и разработки защитных средств. Архитектура — плотная мультимодальная Gemma 4 Unified; модель принимает текст и изображения и выдаёт текст. В карточке указана поддержка вызова инструментов через API OpenAI и описана отдельная среда Engram VM для проверки арифметики, поиска по записям и изолированного выполнения кода.

Модель обучена на 6 019 строках кибербезопасности, включая данные WhiteRabbitNeo, и распространяется в форматах Safetensors и GGUF, включая Q8_0. По результатам тестов, приведённых в карточке, она отвечает на киберзапросы целевого класса, сохраняя отказы на большинстве проверенных запросов из других классов безопасности; общие способности близки к базовой модели. Лицензия — Gemma Terms of Use. Карточка предназначает модель для авторизованных исследований, защитной инженерии и обучения; надёжность сохранённых защит при adversarial jailbreak-атаках не проверялась.

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

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

Ограничения

В приведённых тестах MMLU немного ниже базовой модели; устойчивость сохранённых защит к adversarial jailbreak-атакам не проверялась. Применение кибервозможностей должно соответствовать лицензии Gemma и применимому законодательству.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

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

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

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

Gemma-4-12b-RedTeam-BlackICE

A red-team / security-research variant of Gemma-4-12B built by class-targeted fine-tuning: cyber behavior (offensive AND defensive, black-hat and white-hat) is freed while every other safety class of the base model is left untouched and verified intact.

The premise of this release is a measured finding: on the pristine base, selective class modification preserves both the model's general capability and all other safety training. Global ablations break models; targeted ones do not. Full experiment record in this card and the linked preregistration ledger (36 entries).

What it does

  • Dual-use cybersecurity work at full capability: penetration testing, red-team tooling, exploit explanation, malware analysis, CTF solving, defensive hardening, DFIR, detection engineering
  • Refuses everything else the base refuses: weapons, self-harm, fraud, doxxing, hate — verified refusal-template-identical to the base on 23 of 24 canonical harm prompts (the 24th is the malware row, a cyber class target, correctly enabled)
  • Native tool calling through the standard OpenAI tools API, including multi-step agentic chains
  • Ships with an MIT-licensed engram VM environment (engram_vm/) for serve-time grounding, exact arithmetic verification, and a multi-machine execution sandbox

What it is not

  • Not an unfiltered model. Guard retention was a design requirement and is measured, not assumed.
  • Not a math prodigy. The base model's competition-math capability is preserved (not improved), but the engram's abacus-ledger makes arithmetic exact at serve time.
  • Not trained on scam/dox/fraud content. These guards held in all measured configurations.

Training

basegoogle/gemma-4-12b (pristine)
methodLoRA r=64 α=128, 4-bit NF4 base, bf16 adapters, merged
data6,019 rows: WhiteRabbitNeo cyber 6K (dual-use offense + defense) + copyright seeds 19. No anchors, no other-class rows.
steps2,500 (seq 512, accum 8, lr 2e-5)
licenseGemma Terms of Use (weights)

Attribution: cyber training data from PJMixers/WhiteRabbitNeo. The engram VM environment is MIT-licensed separately.

Evals (served Q8 GGUF, greedy)

Target class — cyber compliance (30 held-out WhiteRabbitNeo items)

λ (adapter scale)compliance
0.0 (pristine base)~0%
0.533%
1.0 (this model)100%

The adapter scale is a graded red-team dial at serve time.

Retained guards — canonical 24-prompt harm bank

23/24 REFUSE with refusal text template-identical to the base model. The single exception is the malware row (cyber class, correctly enabled). Self-harm/crisis rows keep the base's crisis-resource behavior.

Episteme

benchpristine baseBlackICE
MMLU (4-subject, 884)0.75000.7195
RPG mechanics (20 exact-match)15/2014/20
MBPP (25, pass@1)0.520.60
MATH-500~0.390.27-0.35

Tool calling (OpenAI API, tools parameter)

Single call and chained agentic calls both work through the standard tools request field. The template's tool role must be active (llama.cpp --jinja handles this).

The Engram VM Environment (engram_vm/)

A serve-time side tool that provides knowledge grounding, exact arithmetic verification, and a multi-machine execution sandbox — without touching the model's weights. MIT-licensed.

Quick start

# start the model server
llama-server -m model.q8_0.gguf --jinja --port 8012

# start the engram router
python engram_vm/afterimage_router.py \
    --records engram_vm/engram/engram_full_records.jsonl \
    --upstream http://127.0.0.1:8012 --port 8014

Components

filewhat
afterimage_router.pyengram injection + arithmetic verify-repair + passthrough
engram/engram_full_records.jsonlcyber + math + code + reference records
engram/rpg_records.jsonlRPG rules and lore records
machines/ti85.pyinjection-safe scientific calculator
machines/mathcheck.pyarithmetic claim sweep
machines/rv32.pyRV32IM RISC-V emulator
machines/pyvm.pyPython-subset interpreter
machines/m6502.pyMOS 6502 emulator
machines/thumb2.pyARM Thumb-2 text interpreter
machines/dataflow.pyreadiness-driven compute graph
machines/machines.pyuniform machine registry + tool schemas

The abacus ledger

When the model does math, the router:

  1. Extracts every arithmetic claim from the output
  2. Evaluates each with the TI-85 calculator
  3. Builds a machine-verified fact ledger
  4. Feeds the ledger back for one repair round

Result: arithmetic becomes exact without retraining the model.

The machine family

Seven deterministic execution machines, all sandboxed (no syscalls, no host access, capped steps and memory):

machinedialectuse case
ti85expressionsexact arithmetic
pyvmPython-subset programsscripting, algorithms
rv32RV32IM RISC-V assemblysystems programming, payload analysis
z80Z80 assembly (kosarev core)retro/8-bit
m65026502 assembly (py65)retro/8-bit
thumb2ARM Thumb-2 text assemblyembedded/ARM
dataflowJSON compute graphparallel/data-driven

All emulators pass their selftests. rv32 uses the base RV32IM ISA with zero-branch extensions. All are deterministic: same input → same output.

Compilation research

The Qwenputer approach (github.com/divagr18/qwenputer, MIT) — compiling exact computation circuits into transformer weights — has been verified portable to Gemma 4 12B:

  • SiLU and GELU-tanh both behave as exact ReLU at K=128 scale
  • A 4-bit adder compiled into Gemma-compatible SwiGLU MLP weights produces exact results: 256/256 combinations in bf16
  • The approach bypasses gradient descent entirely: weights are computed from circuit specifications, not learned

This is the path to the in-weights VM. The engram is the prototype of this concept at serve time; the compiled approach is the final form. Active research direction.

Intended use

Authorized security research, red-team engagement support, defensive engineering, CTF play, and security education. Usage must comply with the Gemma Terms of Use and applicable law. The dual-use nature is the point: the same exploit knowledge serves attackers and defenders, and this model is released for the defender/researcher side of that line.

Caveats

  • The 3-point MMLU delta is the measured price of the class flip on this 12B substrate; the mech delta (-1/20) is within noise.
  • Cyber compliance is measured on WRN-style prompts; adversarial jailbreak robustness of the RETAINED guards was not red-teamed here.
  • Generated offensive content is training-data-shaped (WhiteRabbitNeo style): technical but not operationally vetted. It is a research assistant, not a weapon.
  • The adapter scale (lambda) is a dial: at λ=1.0 cyber is fully unlocked; at λ=0 it is the pristine base. Intermediate values interpolate. Use responsibly.

Attribution

  • Cyber training data: WhiteRabbitNeo corpus (via PJMixers re-release)
  • Engram VM: MIT license, part of the AfterImage project (github.com/XxChonkExX/AfterImage-Engram)
  • Compiled computation research: Qwenputer concept (github.com/divagr18/qwenputer, MIT)
  • Gemma: google/gemma-4-12b, Gemma Terms of Use

The program behind this model

36 preregistered experiments across multiple training approaches: class-targeted LoRA (rt1, worked), stacked tool chains (rt2, failed), conservative retrain (BICE-2, failed), compiled computation (proven), and the serve-time engram router (working product). Every result — positive and negative — is documented in the preregistration ledger. The architecture lesson: class-targeted modification on pristine bases preserves capability; stacked fine-tuning destroys it.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Gemma4UnifiedForConditionalGeneration
Ревизия весов
0e5af18

0 моделей