/ Модель

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

Размер весов
23,9 ГБ
Лицензия
Apache 2.0
Архитектура
gemma4_unified · dense
Базовая модель
gemma-4-12B-it
Библиотека
transformers
Опубликована
24 июн 2026

gemma-4-12B-coder-fable5-composer2.5-v1-heretic

Генерация текстаТекст → текст4 профессии
14скачиваний за 30 дней0лайковвеса обновлены26 сен 2026

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

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

Дообученная и обработанная Heretic версия Gemma 4 12B для генерации и решения алгоритмических задач на Python.

Richard Young — это дообученная версия Google Gemma 4 12B IT, дополнительно обработанная методом abliteration с Heretic v1.4.0 для снижения числа отказов. Модель предназначена прежде всего для решения задач программирования на Python: она может рассуждать о подходе, сложности и граничных случаях, а затем генерировать код. В README указано, что обучающие решения проверялись запуском на детерминированных тестах.

Это плотная мультимодальная архитектура Gemma 4 Unified с весами bf16 в формате safetensors и контекстом до 256K токенов. Карточка ориентирует на использование в Transformers; для запуска требуется свежая версия библиотеки с поддержкой gemma4_unified. Хотя базовая Gemma 4 поддерживает работу с изображениями, видео и аудио, описание этой версии сосредоточено на генерации кода и не подтверждает эти сценарии для неё.

Модель специализирована на Python и алгоритмических задачах, англоязычная; общие факты и числа рекомендуется перепроверять. README сообщает о снижении отказов и предупреждает, что модель не прошла safety alignment, поэтому для применения нужны собственные защитные меры. Лицензия — Apache-2.0.

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

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

Ограничения

Модель специализирована на Python и алгоритмических задачах; общие факты и числа следует перепроверять. По README, она не прошла safety alignment и реже отказывает, поэтому для производственного применения нужны собственные защитные меры.

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

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

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

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

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

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

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

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

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

This is a decensored version of yuxinlu1/gemma-4-12B-coder-fable5-composer2.5-v1, made using Heretic v1.4.0

[!TIP] This model is reproducible!

See the README in the reproduce directory for more information.

Abliteration parameters

ParameterValue
direction_index28.16
attn.o_proj.max_weight1.28
attn.o_proj.max_weight_position36.18
attn.o_proj.min_weight1.24
attn.o_proj.min_weight_distance21.97
mlp.down_proj.max_weight1.48
mlp.down_proj.max_weight_position33.31
mlp.down_proj.min_weight1.47
mlp.down_proj.min_weight_distance9.33

Performance

MetricThis modelOriginal model (yuxinlu1/gemma-4-12B-coder-fable5-composer2.5-v1)
KL divergence0.05820 (by definition)
Refusals7/100100/100

💻 Gemma4-12B-Coder — safetensors master (full precision) ✨

Composer 2.5 × Fable 5 · v1 / code edition

This is the full-precision safetensors master for my Gemma 4 12B coding fine-tune — the same model many of you have been running as GGUF, now in its original weights. 🧠💻 A focused fine-tune of Gemma 4 12B on verifiable Python coding data: it reasons in the open (edge cases, complexity, approach) and then writes a clean, runnable solution.


🎯 What this repo is for

This repo holds the un-quantized master weights (model.safetensors, bf16). Use it to:

  • 🔧 Roll your own quants — make custom GGUF / MLX / AWQ / GPTQ builds from full precision.
  • 🧪 Fine-tune further — it's a clean base for your own LoRA / continued training.
  • 🤗 Run it in transformers (needs a recent build with gemma4_unified support).

🏃 Just want to run it? You don't need this repo — grab a ready-made quant from the GGUF repo → (runs in ~4.5 GB of VRAM / unified memory in LM Studio, Ollama, llama.cpp, Jan…). This master is for builders. 💚


📌 Announcements

🚀 v2 is almost here! Initial training of v2 is done and it's in benchmarking + final QA. So many of you flagged the agentic behavior — so this round I significantly grew the dataset (especially agentic data). v2 is focused on agentic + coding. Targeting a release this Friday or Saturday (US Pacific). 🎉

📣 Context length is 256K. This master ships with the corrected max_position_embeddings = 262144 (256K) — the well-known upstream Gemma 4 metadata bug (config.json once said 131072) is already fixed here, so anything you quantize/convert from these weights inherits the full 256K. 💚 Thanks to the community member who spotted it!


🤗 Run it in transformers

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

repo = "yuxinlu1/gemma-4-12B-coder-fable5-composer2.5-v1"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")

msgs = [{"role": "user", "content": "Write a Python function to check if a string is a valid IPv4 address."}]
inputs = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(inputs, max_new_tokens=1024)
print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))

🧠 Thinking mode: it thinks in Gemma's native thought channel before answering (keep enable_thinking=true, the default chat template handles it). Recommended sampling: temp 1.0, top_p 0.95, top_k 64; for coding you can also go greedy (temp 0) for more deterministic solutions. Needs a recent transformers that knows the gemma4_unified architecture.


📦 Ready-made GGUF quants

All from the GGUF repo:

QuantSizeVibe
🟢 Q2_K4.5 GBtiniest — runs almost anywhere
🟡 Q3_K_M5.7 GBgreat for 8 GB VRAM
🔵 Q4_K_M6.87 GBthe sweet spot 👌 (recommended)
🟣 Q6_K9.11 GBnear-lossless
⚪ Q8_011.8 GBbasically full quality

⚠️ GGUF needs a recent llama.cpp — this is the gemma4_unified architecture, older builds won't load it.


⚡ Optional: free speed with MTP (lossless)

There's a tiny Gemma 4 MTP draft model in my main reasoning repo → MTP/ folder. It's the stock Gemma 4 drafter, so it pairs with any Gemma 4 12B quant — including these coder quants — for lossless speculative decoding (byte-for-byte identical output, just faster). Because it's trained on base Gemma 4, the hit-rate on this fine-tune is a bit lower than on vanilla Gemma 4, but it's free and has no downside. Add three flags (--model-draft, --spec-type draft-mtp, --n-gpu-layers-draft); see the main repo for the full command. 🏎️


📚 Training data (the interesting part 🍳)

A distillation of two complementary chain-of-thought sources over verifiable Python coding tasks (algorithmic / function-level problems with deterministic tests):

  • 🥇 Main — Composer 2.5 real CoT. Genuine model-authored reasoning traces; each solution was run against the task's tests and only passing ones were kept. The reasoning you learn from leads to code that actually works.
  • 🥈 Aux — Fable 5 redo. The problems where Composer 2.5 got it wrong, handed to Fable 5 to re-derive a fresh, self-consistent CoT and a correct solution — again gated on passing the tests. Recovers the hard cases the main teacher missed. These are synthetic (rationalized) CoT and are tagged separately.

Real CoT for solid coverage + synthetic "second-attempt" CoT to patch the failures — all verified by execution before training. ✅


⚠️ Good to know

  • Reduced refusals: task-focused training with no safety hedging, so it refuses less than the base model. It is not safety-aligned — add your own guardrails for production. Use responsibly. 🙏
  • Specialized for Python / algorithmic coding; general-knowledge facts/numbers should still be double-checked.
  • English-centric.

📚 Base & License

  • License: Apache 2.0. Gemma 4 is released by Google under Apache 2.0 (unlike the older Gemma 1/2/3 terms), so this fine-tune is Apache 2.0 too — free to use, modify, and redistribute. 🎉
  • Base model: google/gemma-4-12B-it.
  • Personal/hobby project — shared as-is, no warranty. Have fun, and happy hacking! 🐾✨

Built & maintained by Richard Young · DeepNeuro

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей