/ Модель

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

Лицензия
Apache 2.0
Базовая модель
gemma-4-26B-A4B-it-qat-q4_0-unquantized
Опубликована
27 окт 2026

gemma-4-26B-A4B-opus-reasoning-GGUF

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

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

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

Дообученная Gemma 4 26B-A4B для диалогов с рассуждениями, решения сложных задач, ответов на вопросы и программирования.

Это дообученная на LoRA модель Google Gemma 4 26B-A4B QAT, опубликованная MaxResDefault001 в формате GGUF для запуска через llama.cpp. Она обучена на примерно 8,6 тыс. диалогов с рассуждениями в стиле Claude Opus 4.6/4.7 и предназначена для чата, решения сложных задач, ответов на вопросы и программирования. В репозитории также есть вариант с abliteration на основе Heretic; для обоих вариантов доступны веса Q4_K_M, а LoRA-адаптер сохранён отдельно.

Модель принимает текст и изображения и выдаёт текст; при этом дообучение было текстовым, а возможности анализа изображений унаследованы от базовой Gemma 4. Автор сообщает о примерно 14% сокращении числа токенов рассуждения на сложных задачах, но отмечает, что различия в точности относительно исходной модели невелики и находятся в пределах погрешности небольших однократных тестов. Рекомендуется включать режим рассуждений и использовать температуру 1.0: при низкой температуре модель может зацикливаться и не завершать ответ. В длинных ответах возможны вымышленные ссылки и цитаты; зрение не дообучалось и не оценивалось. Лицензия — Apache-2.0.

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

  • решение многошаговых математических и логических задач
  • ответы на фактические вопросы
  • помощь с программированием
  • ведение диалога с включённым режимом рассуждений
  • анализ изображений средствами базовой Gemma 4

Ограничения

Тесты автора небольшие и выполнены по одному разу, поэтому различия в точности с базовой моделью могут быть шумом. На низкой температуре рассуждения могут зацикливаться; возможны вымышленные ссылки, а зрение унаследовано без дообучения и тестирования.

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Gemma 4 26B-A4B · Opus-reasoning tune (GGUF)

A LoRA fine-tune of Google's Gemma 4 26B-A4B (QAT) on ~8.6k Claude Opus 4.6/4.7-style reasoning conversations, plus an abliterated variant made with Heretic. Both are Q4_K_M GGUFs for llama.cpp.

This was a learning project on a single home machine (GMKtec EVO-X2, Ryzen AI Max+ 395 / Radeon 8060S, 128 GB). I'm sharing it because the settings below make it run quickly on bandwidth-limited hardware like Strix Halo, and the results are written up honestly, small gains included.

Files

FileWhat it is
gemma-4-26B-A4B-opus-reasoning-Q4_K_M.ggufFine-tuned model (16.8 GB)
gemma-4-26B-A4B-opus-reasoning-abliterated-Q4_K_M.ggufSame, plus Heretic abliteration (16.8 GB)
adapter/The LoRA itself (safetensors, r16), if you want to merge it into another Gemma 4 26B-A4B build

Not included, get them from unsloth/gemma-4-26B-A4B-it-qat-GGUF:

  • Vision: mmproj-BF16.gguf. The vision tower was not trained, so the stock projector works (tested).
  • MTP draft head: mtp-gemma-4-26B-A4B-it.gguf (~250 MB). Optional, but gives about +45% generation speed (see below).

TL;DR

  • Accuracy: about the same as stock Gemma 4. Slightly better on hard reasoning and knowledge in my tests, but within noise.
  • Thinking efficiency: about 14% fewer thinking tokens than stock on hard problems, with fewer runaway thoughts that hit the token limit.
  • Less moralising: the Opus-style data alone cut lecture-style disclaimers on borderline prompts from 8 to 3 (out of 27).
  • Abliterated variant: no hard refusals on my over-refusal suite, and with thinking on at temp 1.0 it scored as well as the fine-tune on reasoning and knowledge.
  • Speed: with the MTP draft head, about 85 tok/s on a Radeon 8060S (Vulkan), compared with about 60 tok/s without it.

Recommended settings

Use thinking with temperature 1.0. That's Google's recommendation, and my tests agree strongly (see the temperature table). At low temperature, Gemma 4's thinking tends to loop until it hits the token limit, and the abliterated variant is the most affected.

llama-server \
  -m gemma-4-26B-A4B-opus-reasoning-abliterated-Q4_K_M.gguf \
  --mmproj mmproj-BF16.gguf \
  -md mtp-gemma-4-26B-A4B-it.gguf -ngld 999 --spec-type draft-mtp \
  -ngl 999 -c 65536 -np 4 -fa on -ctk q8_0 -ctv q8_0 --jinja \
  --temp 1.0 --top-k 64 --top-p 0.95 --min-p 0

Thinking is toggled with Gemma 4's normal chat template (chat_template_kwargs: {"enable_thinking": true} or a reasoning-effort setting in your client). Tested with llama.cpp b11840, Vulkan backend, Ubuntu, kernel 7.0.

Results

The benchmarks are my own small suites, the same ones I use to pick models for my home setup:

  • hard: 34 multi-step maths, logic and coding problems with checkable answers.
  • knowledge: 46 factual questions.
  • refusal: 27 borderline but legitimate requests (crude humour, a profane limerick, safe caffeine and alcohol limits, sex-ed, how phishing works, harmless pranks). A point means a clean answer; refusing, lecturing or dodging the request scores zero.

Every suite ran once per setting, so a difference of about 2–3 on the hard suite is within run-to-run noise.

As reference points, I ran the two Gemma 4 26B-A4B builds I already had on the same box under identical settings: stock Gemma 4 (Unsloth's UD-Q4_K_XL QAT GGUF) and HauhauCS's Gemma4-26B-A4B-QAT-Uncensored "Balanced", which I use day to day and which made a good sanity check for the abliterated variant.

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

ModelHard (34)Knowledge (46)Refusal (27)Tokens per hard problemHit token limit
Stock Gemma 42845199,9376
This model (opus)2946248,5595
This model (abliterated)2846259,5685
HauhauCS Uncensored Balanced27452310,6187

Thinking off, temp 0.6 / top-p 0.95

ModelHard (34)Knowledge (46)Refusal (27)
Stock Gemma 4314420
This model (opus)294622
This model (abliterated)284522
HauhauCS Uncensored Balanced294522

With thinking off, all four are within noise of each other.

Temperature sensitivity (thinking on, hard suite)

ModelTemp 0.3Temp 0.6Temp 1.0
Stock Gemma 4192528
This model (opus)222729
This model (abliterated)1623–2428

The low-temperature drop comes almost entirely from answers that never finish thinking. At temp 0.3, 12–17 of the 34 problems hit the token limit, compared with 5–6 at temp 1.0. Don't run Gemma 4 thinking at low temperature.

What's left on the refusal suite

With thinking on at temp 1.0, the abliterated variant's two misses were a "drink responsibly" note and a hangover answer that was flagged as lecturing. Abliteration removes refusals, but some health-topic disclaimers remain.

Political lean (12axes)

I ran all 288 statements of the original 12axes quiz (MIT), using its own long-quiz scoring. Settings: thinking off, temperature 0, and a prompt asking for exactly one of the seven answer options. This is my own harness. UGI's exact prompt and settings aren't published, so expect different numbers there.

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

AxisStockOpusAbliteratedHauhauCS
Federal ↔ Unitary51525150
Democratic ↔ Autocratic56.5575556.5
Internationalist ↔ Nationalist55515359.5
Militarist ↔ Pacifist434546.546
Freedom ↔ Security504848.550.5
Collectivize ↔ Privatize495050.549
Irreligious ↔ Religious46484850.5
Progressive ↔ Traditional42.5465045.5
Multicultural ↔ Assimilationist42.54445.542
Planned ↔ Markets50495147.5
Globalism ↔ Protectionism4746.546.546
Technology ↔ Bioconservative5153.550.553

All four land in "Neutral" on every axis, and neither the fine-tune nor the abliteration moved the lean in any meaningful way. What did change is how often the model takes a position at all:

ModelAnswered "Neutral/Unsure" (of 288)Declined to answer
Stock Gemma 4201 (70%)1
This model (opus)203 (70%)2
This model (abliterated)145 (50%)0
HauhauCS Uncensored Balanced109 (38%)2

The abliterated variant commits to an answer much more often, mostly "Partially Agree". Statements are balanced between the two poles, so this mild agreement largely cancels out on the axes.

Speed (Radeon 8060S, Vulkan, single request, thinking off)

SetupGeneration speedMTP draft tokens accepted
Without MTP~60 tok/s–
With MTP draft head + q8 KV cache~85 tok/s~55–62%

The stock MTP head still predicts this fine-tune and the abliterated weights well. Acceptance was the same as on the other Gemma 4 builds I tested.

Combining the speed with the token savings on a hard thinking problem (temp 1.0): stock without MTP takes about 9.9k tokens at about 60 tok/s (~2.8 min), and this model with MTP takes about 8.6k tokens at about 87 tok/s (~1.6 min).

How it was made

Fine-tune (Unsloth 2026.10.8, transformers 5.17, TRL 1.15, one H100 80GB, 64 min):

  • Base: google/gemma-4-26B-A4B-it-qat-q4_0-unquantized, loaded in 16-bit (not QLoRA, which isn't recommended for MoE).
  • LoRA r16, alpha 16, dropout 0, on attention and MLP/expert projections of the language model; vision layers frozen. 494M trainable parameters (1.9%).
  • 1 epoch over 8,643 conversations. Learning rate 1e-4, cosine schedule, 20 warm-up steps, effective batch 16, adamw_8bit, max length 8192.
  • Loss only on the final assistant turn, including its thinking. Earlier turns are context only, because Gemma's template strips thinking from history.
  • 75% of examples trained with thinking on (<|channel>thought … <channel|>), 25% with thinking off, so both modes keep working.
  • Eval loss on 50 held-out conversations went from 1.468 to 1.298 and was flat for the last ~150 steps, with no sign of overfitting.

Data: angrygiraffe/claude-opus-4.6-4.7-reasoning-8.7k (Apache-2.0). That's 28 categories, about 40% multi-turn, with synthetic reasoning traces. I dropped 13 rows that were broken or over length.

Abliteration: Heretic 1.4.0 on the merged 16-bit model, with 100 trials (30 random start-up trials) and default prompt sets (mlabonne harmless/harmful). I picked trial 44: 25/100 refusals on Heretic's harmful set (from 100/100), KL divergence 0.046.

  • Parameters: direction_index 19.12; attn.o_proj max_weight 1.50 at position 22.20, min_weight 1.41, min_weight_distance 12.79; mlp.down_proj max_weight 1.43 at position 17.62, min_weight 1.23, min_weight_distance 3.84.
  • Heretic edits attention output and the shared dense MLP down-projection in each of the 30 layers, not the 128 routed experts. That may be why no trial got below about 25/100 on its strict harmful set.

Export: merged to 16-bit, converted to GGUF with llama.cpp's convert_hf_to_gguf.py, then quantized to Q4_K_M. 60 of the 658 tensors used llama.cpp's standard fallback quant types, which is normal for this architecture.

Limitations

  • Small benchmarks, single runs. Treat a gap of 1–3 points as a tie. The token savings and the temperature behaviour were consistent across all three test nights; the accuracy differences were not.
  • It writes like Opus but doesn't know what Opus knows. It's a 4B-active model. In long-form answers it can produce confident, plausible-looking citations that don't exist, so verify references.
  • Text-only fine-tune. Vision is stock Gemma 4. It works, but it wasn't trained or benchmarked here.
  • Only Q4_K_M. If there's interest, I can make other quants from the adapter.
  • The abliterated variant answers requests the stock model refuses. You are responsible for how you use it.

Credits

  • Google for Gemma 4 and the QAT weights.
  • Unsloth for the training stack and the GGUF, mmproj and MTP files.
  • angrygiraffe for the dataset.
  • p-e-w for Heretic.
  • llama.cpp contributors.
  • HauhauCS, whose Uncensored Gemma 4 build I run at home and used as a reference point.

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

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

GPU в ailist

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

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

В репозитории нет config.json: не понять архитектуру модели.

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

0 моделей