/ Модель

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

Лицензия
Apache 2.0
Базовая модель
gemma-4-12B-it
Опубликована
4 ноя 2026

gemma-4-12B-opus-reasoning-GGUF

Изображение и текст → текст10 профессий
640скачиваний за 30 дней0лайковвеса обновлены4 ноя 2026

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

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

Дообученная Gemma 4 12B в форматах GGUF для диалога, рассуждений, ответов на вопросы и анализа изображений.

Это дообученная модель Gemma 4 12B, опубликованная MaxResDefault001. Она обучена на примерно 8,6 тыс. диалогов с рассуждениями в стиле Claude Opus 4.6/4.7; доступны варианты GGUF Q6_K и Q4_K_M, а также версия с абляцией отказов Heretic. Модель предназначена для диалога, пошаговых рассуждений, ответов на вопросы, математики, логики и анализа кода. Поддерживает изображения благодаря исходным возможностям Gemma 4, однако дообучение было текстовым, а качество работы с изображениями отдельно не оценивалось.

В описанных автором небольших тестах вариант Q6_K показал сопоставимый с исходной Gemma 4 12B результат на сложных задачах и использовал меньше токенов рассуждений; результаты ограничены небольшими авторскими наборами. Модель может уверенно приводить вымышленные ссылки, а разбор Python-кода остаётся слабым местом. Для Q4_K_M автор отмечает снижение качества сложных ответов при выключенном режиме рассуждений. Лицензия — Apache-2.0.

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

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

Ограничения

Авторские тесты небольшие, поэтому небольшие различия в результатах могут быть шумом; качество работы с изображениями отдельно не оценивалось. Модель может уверенно выдумывать ссылки, а трассировка Python-кода остаётся слабым местом; у Q4_K_M качество сложных ответов ниже при выключенном режиме рассуждений.

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Gemma 4 12B · Opus-reasoning tune (GGUF, made for 16 GB GPUs)

A LoRA fine-tune of Google's Gemma 4 12B on ~8.6k Claude Opus 4.6/4.7-style reasoning conversations, plus an abliterated variant made with Heretic. Q6_K and Q4_K_M GGUFs for llama.cpp.

It's the smaller sibling of my 26B-A4B tune, aimed at ordinary gaming PCs. Everything below was tested on a 16 GB Radeon RX 6800 XT, with the results written up honestly, including where stock Gemma still does better.

Files

FileSizeWhat it is
gemma-4-12B-opus-reasoning-abliterated-Q6_K.gguf9.8 GBRecommended for 16 GB cards. Fine-tune + Heretic abliteration
gemma-4-12B-opus-reasoning-abliterated-Q4_K_M.gguf7.4 GBSame, for 8–12 GB cards (imatrix-calibrated)
gemma-4-12B-opus-reasoning-Q6_K.gguf9.8 GBFine-tune only, no abliteration
gemma-4-12B-opus-reasoning-Q4_K_M.gguf7.4 GBFine-tune only, imatrix-calibrated
mmproj-gemma-4-12B-opus-reasoning-bf16.gguf180 MBVision projector (the vision tower is untouched; Unsloth's stock mmproj works too)
imatrix/15 MB eachThe importance matrices used for the Q4 files
adapter/The LoRA itself (safetensors, r16)

Not included, get it from unsloth/gemma-4-12b-it-GGUF: MTP draft head mtp-gemma-4-12b-it.gguf (0.47 GB). Optional, but gives +40–80% generation speed (see below).

Why Q6_K and Q4_K_M

QuantFits a 16 GB card at 128k context, q8 KV cache, vision onWrite speed (no MTP)Hard reasoning
Q6_Kyes, 12.7 GB used42–44 tok/sties stock Gemma Q6_K
Q4_K_Myes, 10.4 GB used, leaves room for a game/browser51–54 tok/s1.5 points behind stock Q4_K_M
Q8_0 (not shipped)stock Q8_0 spilled into system RAM as context grew: 33 → 17 tok/s
  • Q6_K is the sweet spot on 16 GB: the full 128k context with vision still leaves ~3 GB free.
  • Q4_K_M is for 8–12 GB cards, or 16 GB cards that also run other things.
  • The Q4 files are imatrix-calibrated, and this matters a lot for a fine-tune. My first, uncalibrated Q4_K_M scored 18/34 on the hard suite, against 25/34 for the calibrated one and 26/34 for the Q6_K. The calibration text is a random sample of the training data.

TL;DR

  • Reasoning: at Q6_K it ties stock Gemma 4 12B on my hard suite (27.5 vs 27.5, average of two runs) while using about a third fewer thinking tokens. At Q4_K_M it's 1.5 points behind stock and uses 22% fewer tokens.
  • Less refusing and moralising, with shorter answers: on my 27 borderline-request suite, stock Gemma answers 21–23 cleanly and this tune 23–26, using about 60% fewer tokens with thinking on.
  • Speed with the MTP draft head: ~76 tok/s while thinking at Q6_K (~42 without), ~90 tok/s at Q4_K_M. Use --spec-draft-n-max 2.
  • Keep thinking on, especially at Q4_K_M. With thinking off, the Q6_K is level with stock but the Q4_K_M falls behind on hard problems (see below).

Recommended settings

llama-server \
  -m gemma-4-12B-opus-reasoning-abliterated-Q6_K.gguf \
  --mmproj mmproj-gemma-4-12B-opus-reasoning-bf16.gguf \
  -md mtp-gemma-4-12b-it.gguf -ngld 999 --spec-type draft-mtp --spec-draft-n-max 2 \
  -ngl 999 -c 131072 -fa on -ctk q8_0 -ctv q8_0 --jinja \
  --temp 1.0 --top-k 64 --top-p 0.95 --min-p 0
  • Thinking on, temperature 1.0 (Google's recommendation). Toggle thinking with the normal Gemma 4 chat template (chat_template_kwargs: {"enable_thinking": true} or your client's reasoning-effort setting).
  • --spec-draft-n-max 2, not the default 3: see the MTP section.
  • Tested with llama.cpp b11840 (Vulkan) on Ubuntu.

Results

My own small suites, the same ones I use to pick models at home:

  • hard: 34 multi-step maths, logic and code-tracing problems with checkable answers.
  • knowledge: 46 factual questions.
  • refusal: 27 borderline but legitimate requests (crude humour, profane limericks, safe alcohol and caffeine limits, sex-ed, how phishing works, harmless pranks). Refusing, lecturing or dodging scores zero.

A gap of 2–3 points on the hard suite is within run-to-run noise; I ran the key hard comparisons twice for that reason. Reference points: stock Gemma 4 12B (Unsloth's GGUFs, same quant) and HauhauCS's Gemma4-12B-QAT-Uncensored "Balanced" (only published as Q4_K_M), all under identical settings.

A note on HauhauCS: his uncensored Gemma builds are what I run day to day, so his model was on my drive and a natural yardstick for an abliterated variant. It's here as a reference point, not as competition. His build starts from Google's QAT checkpoint and targets different goals than this one, so a single run of my small suites says little about it. If you want an uncensored Gemma that's battle-tested by a lot of people, his are a great place to start.

Thinking on, temp 1.0 / top-p 0.95 / top-k 64 (recommended)

ModelHard (34)Knowledge (46)Refusal (27)Thinking tokens per hard problem
Stock Gemma 4 12B, Q6_K27.5 (29, 26)44239,600
This model, abliterated, Q6_K27.5 (26, 29)4523.5 (23, 24)6,400
This model, Q6_K2644256,700
Stock Gemma 4 12B, Q4_K_M25.5 (26, 25)442110,000
This model, abliterated, Q4_K_M24 (25, 23)45257,900
This model, Q4_K_M2745247,000
HauhauCS Uncensored Balanced, Q4_K_M18432710,800
This model, abliterated, Q4_K_M without imatrix (not shipped)18422610,400

Numbers in brackets are two separate runs. Token counts include problems that ran out of room (16k-token limit): stock hit the limit on 8 of 34 problems, the abliterated Q6_K on 3.

Thinking off, temp 0.6 / top-p 0.95

ModelHard (34)Knowledge (46)Refusal (27)
Stock Gemma 4 12B, Q6_K244521
Stock Gemma 4 12B, Q4_K_M264521
This model, abliterated, Q6_K234426
This model, Q6_K254324
This model, abliterated, Q4_K_M194325
This model, Q4_K_M224225
HauhauCS Uncensored Balanced, Q4_K_M234426

With thinking off, the Q6_K files are level with stock Q6_K (23–25 vs 24), but the Q4_K_M files fall behind (19–22 vs 26). The training data was 75% thinking traces, so thinking is where this tune is strongest.

Speed on a 16 GB RX 6800 XT (Vulkan, single request)

Prompt reading / writing in tok/s at 0, 8k and 32k tokens of context (llama-bench):

QuantPrompt read 0 / 8k / 32kWrite 0 / 8k / 32k
Q6_K880 / 674 / 41943.9 / 40.3 / 38.9
Q4_K_M1097 / 795 / 46154.2 / 48.8 / 46.7

Card settings: 312 W power limit, −50 mV, Resizable BAR on.¹

MTP draft head: use --spec-draft-n-max 2

Gemma 4's MTP draft head guesses the next few tokens, and the big model checks them in one pass. The output is identical either way; only the speed changes. The draft head was trained on stock Gemma's text, so it guesses this tune's prose less well, but its thinking traces are very predictable. I swept the settings:

SettingQ6_K: storyQ6_K: thinkingQ4_K_M: storyQ4_K_M: thinking
No MTP41.841.751.151.0
MTP, default (3 drafts)50.274.861.888.5
MTP, --spec-draft-n-max 257.676.066.290.5
MTP, 8 drafts16.332.318.534.1

(tok/s, temperature 1.0. "story" is a 300-word story with thinking off; "thinking" is a code-tracing question with thinking on.) Two drafts is the best all-rounder. Long drafts are slower than no MTP at all.

Political lean (12axes)

All 288 statements of the original 12axes quiz (MIT) with its own scoring; thinking off, temperature 0, one of the seven answer options required. My own harness, so expect different numbers on UGI.

Scores are % toward the first-named pole (50 = centre; the quiz calls 40–60 "Neutral"):

AxisStock Q4Opus Q4Abliterated Q4Abliterated Q6HauhauCS
Federal ↔ Unitary4851.54845.554
Democratic ↔ Autocratic50.561.5586153.5
Internationalist ↔ Nationalist5254.556.55859.5
Militarist ↔ Pacifist4649.55349.550
Freedom ↔ Security5249.548.55048.5
Collectivize ↔ Privatize5052535447.5
Irreligious ↔ Religious48565655.548
Progressive ↔ Traditional525958.554.550.5
Multicultural ↔ Assimilationist45393332.543.5
Planned ↔ Markets5048.547.549.552
Globalism ↔ Protectionism4845.5434645.5
Technology ↔ Bioconservative5051.55654.556.5

Stock Gemma 12B barely takes positions (it answers "Neutral/Unsure" to 264 of 288 statements), so it sits at the centre by default. This tune commits far more often (193 neutral; the abliterated variants 112–128), which spreads the scores out. Everything lands in "Neutral" except Multicultural ↔ Assimilationist, where the abliterated variants lean towards Assimilationist (33). I'm reporting it rather than correcting it.

How it was made

Fine-tune (Unsloth 2026.10.11, transformers 5.17, one H100 80GB, 63 min):

  • Base: google/gemma-4-12B-it, 16-bit LoRA (not the QAT checkpoint: it is tuned for Q4_0, and this release is Q6_K/Q4_K_M).
  • LoRA r16, alpha 16, dropout 0, on attention and MLP projections; vision and audio frozen. 65.6M trainable parameters (0.55%).
  • 1 epoch over 8,643 conversations. Learning rate 1e-4, cosine, effective batch 16, adamw_8bit, max length 8192.
  • Loss only on the final assistant turn including its thinking. 75% of examples with thinking on, 25% off.
  • Eval loss on 50 held-out conversations: 1.506 → 1.360.

Data: angrygiraffe/claude-opus-4.6-4.7-reasoning-8.7k (Apache-2.0).

Abliteration: Heretic 1.4.0 on the merged 16-bit model, 100 trials. Picked trial 36: 17/100 refusals on Heretic's harmful set (from 100/100), KL divergence 0.024. Parameters: direction_index 31.51; attn.o_proj max_weight 1.18 at position 33.94, min_weight 0.96, min_weight_distance 13.99; mlp.down_proj max_weight 1.42 at position 28.87, min_weight 1.35, min_weight_distance 26.41.

Quantization: merged → bf16 GGUF → Q6_K with llama-quantize. The Q4_K_M files were made with llama-imatrix (400 × 512-token chunks of 234 random training conversations, computed on the Q6_K) and llama-quantize --allow-requantize --imatrix.

Limitations

  • Small benchmarks. Treat 1–3 points as a tie.
  • Q4_K_M is weaker with thinking off than stock Gemma on hard problems.
  • It writes like Opus but is a 12B model. It can produce confident, plausible citations that don't exist: verify references.
  • Python code tracing is where most of its remaining hard-suite misses are.
  • Text-only fine-tune: vision is stock Gemma 4 (works, not benchmarked).
  • The abliterated variant answers requests the stock model refuses. You are responsible for how you use it.

Credits

  • Google for Gemma 4.
  • Unsloth for the training stack and the stock GGUF and MTP files.
  • angrygiraffe for the dataset.
  • p-e-w for Heretic.
  • llama.cpp contributors (including the imatrix tooling that rescued the Q4).
  • HauhauCS, whose Uncensored Gemma 4 builds I use at home and learned a lot from. Used here as a reference point only, with thanks.

¹ Speeds will be a little higher at the card's stock power limit.

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

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

GPU в ailist

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

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

Не удалось определить, чем загружать веса модели (нет library_name и architectures).

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

0 моделей