/ Модель

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

Лицензия
Gemma
Библиотека
gguf
Опубликована
26 июн 2026

gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5-abliterated-GGUF

Генерация текстаТекст → текст9 профессий

Gemma-4 12B Coder — SFT v5 + abliterated (GGUF) — это локальная квантизированная версия кодовой модели семейства Gemma-4, разработанная на базе модели tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5-abliterated и подготовленная triplezrobotics.

920скачиваний за 30 дней0лайковвеса обновлены26 июн 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Модель распространяется в формате GGUF для запуска через llama.cpp и Ollama; заявленный основной язык — английский.

Модель предназначена для генерации кода, текстовых задач и агентских сценариев с использованием инструментов и function calling. Она сочетает дообучение SFT v5, abliteration и imatrix-квантизацию. Доступны варианты от IQ4_XS и Q3_K_M до Q8_0; Q4_K_M обозначен как сбалансированный вариант для примерно 12 ГБ видеопамяти. В README приведён пример запуска с контекстом 16 384 токена.

Ключевое преимущество модели — поддержка вызова инструментов и локального развёртывания. В тесте на наборе из восьми случаев заявлен результат 8/8 при использовании recovery shim, преобразующего нативную разметку Gemma-4 в стандартные tool_calls; без shim-парсера llama.cpp показатель составил 0,125 из-за неполной обработки формата. Ответы могут содержать ошибки или вымышленные данные, поэтому аргументы инструментов необходимо проверять до выполнения.

Вариант является uncensored: из весов удалено направление отказа, поэтому защитные ограничения существенно ослаблены. Это делает модель непригодной для сценариев, где обязательна встроенная политика отказа, и требует контроля со стороны пользователя. В README указана лицензия Gemma.

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

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

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

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

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

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

Открыть на Hugging Face

Gemma-4 12B Coder — SFT v5 + abliterated (GGUF)

Uncensored gemma-4 12B coder for local, agentic tool use — GGUF quantizations for llama.cpp / Ollama.

Run it: llama-server -hf tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5-abliterated-GGUF:Q4_K_M --jinja (full commands below).

⚠️ Tool-calling needs the recovery shim. The model emits gemma-4's native tool markup, which llama.cpp --jinja under-parses — wrap your endpoint with the tool-shim (see Tool-calling below) to get standard tool_calls.

💡 Pick this to run locally with the best of both: SFT v5's tool-calling and an uncensored model. Our KL-guarded abliteration on top of SFT v5 — gate SHIM 8/8.

At a glance

TypeGGUF quantizations · llama.cpp / Ollama
Techniquessft-qlora → abliteration → imatrix-quant → tool-shim
Tool-calling✅ 100% gate pass (recovery-shim path)
Status✅ Active / supported
Usellama-server -hf tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5-abliterated-GGUF:Q4_K_M --jinja

Use it

# llama.cpp (server) — tool-calling needs the recovery shim, see below
llama-server -hf tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5-abliterated-GGUF:Q4_K_M --jinja --ctx-size 16384

# Ollama
ollama run hf.co/tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5-abliterated-GGUF:Q4_K_M

Files

Sizes and a one-click loader are in the file browser / Quantizations widget above; the note says which quant to reach for.

QuantNotes
Q4_K_Mgood default — fits 12 GB VRAM, best size/quality balance
Q5_K_Mhigher quality, ~9.5 GB
Q6_Knear-bf16 quality, ~10.5 GB
Q8_0highest GGUF quality, large
IQ4_XSsmallest usable — for <8 GB VRAM, slight quality cost
Q3_K_Mlow-VRAM fallback, noticeable quality drop

Tool-calling

Tool-calling works — but llama.cpp --jinja doesn't recognise gemma-4's native tool-call markup, so the bare parser under-reports calls. The model is fine; the parser is blind to the format. Recover standard tool_calls with a small serve-side post-processor (no weight change, no latency beyond a regex scan).

Ready-to-use → tpls/gemma4-tool-shim — a drop-in callback for OpenAI-compatible proxies, a standalone (dependency-free) example, and the pure parser, all Apache-2.0, with the full recovery algorithm documented. Point your OpenAI-compatible endpoint through it.

You send tools the usual OpenAI way (tools=[…]); the model emits native markup; the shim turns it into a standard tool_calls object:

# model completion (raw):
<|tool_call>get_weather{"city": "Paris", "units": "celsius"}
// after the shim:
{"finish_reason": "tool_calls",
 "message": {"role": "assistant", "content": null,
   "tool_calls": [{"id": "call_0", "type": "function",
     "function": {"name": "get_weather", "arguments": "{\"city\": \"Paris\", \"units\": \"celsius\"}"}}]}}

Tool-calling gate

Measured 2026-06-26 on the tool-eval suite (7 tool cases + 1 abstain), the Q4_K_M quant served on llama.cpp --jinja with TOOLS_IN_PROMPT=1 at temp 0. raw = native parser; shim = the prod gemma_tool_parse recovery path. SHIM 8/8 = identical to clean SFT v5: abliteration preserved tool-calling (KL=0.0009). The low raw is gemma-4's known native-parser breakage (the shim is the prod path), not abliteration damage.

The rows are this model under two parse paths (raw and shim); the shim path is how it's served in production.

Measured onPass rate
this model — raw (--jinja)0.125
this model — shim (prod path)1.000

Intended use & limitations

Built for code generation and agentic tool use; serve locally via llama.cpp / Ollama, or use as a base to fine-tune / merge / quantize. Outputs can be wrong or fabricated — validate tool arguments before executing, and keep a human in the loop for anything consequential.

⚠️ Uncensored. For this variant the refusal direction has been ablated from the weights — safety guardrails are substantially removed and it will attempt requests a stock model would refuse. You are responsible for what you generate and how it's used; not suitable where refusal behaviour is itself a safety requirement.

Where this sits in the family


Provenance & reproduction

How this model was built — technique chain, training mix, and the exact knobs/pins, so the result is reproducible without any of our tooling.

Mechanics applied

StepTechniqueWhat it doesProvenance
1sft-qloraQLoRA supervised fine-tune to keep + improve native tool-calling—
2abliterationrefusal-direction ablation edits the weights to remove refusalstpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5
3imatrix-quantllama.cpp quantization with an importance matrix (imatrix)—
4tool-shimserve-side recovery of structured tool_calls from the model's native markup—

1. sft-qlora

  • tools_mode: mixed

2. abliteration

weight ablation degrades the canonical <|tool_call> token — the model tends to leak calls as text markup, so the native llama.cpp parser may not fire. See the tool-call recovery note below to get structured calls back.

3. imatrix-quant

  • calibration: code + tool-call markup
  • embed/output: kept at f16 (protects tool-call logits)
  • eog_patch: tokens 105/106 → EOG (bounds the <|turn> runaway)

4. tool-shim

  • where: a thin pre/post wrapper on the OpenAI-compatible endpoint
  • format: re-parse <|tool_call>NAME{json-args} (and leaked <|tool>…) into tool_calls

serve-side only — does not modify the weights; recommended for abliterated variants.

Training data, hyperparameters & environment

The supervised fine-tune (sft-qlora step above) is inherited from Gemma-4 12B Coder — SFT v5 (weights) — see that card for the full training mix, exact hyperparameters, and pinned environment. The remaining step(s) above are what this model adds on top; their measured effect is below.

Quantization environment

The GGUF bytes depend on the quantizer build, not just the weights — a different llama.cpp release rounds tensors differently and can change the convert mapping. Pins the toolchain these quants were produced with:

StepTool / setting
quantizerllama.cpp tools image ghcr.io/ggml-org/llama.cpp:full
convertconvert_hf_to_gguf.py → f16 GGUF
imatrixllama-imatrix over the calibration set (CPU forward pass)
quantizellama-quantize --imatrix, token-embeddings + output tensor kept at f16

The image is the rolling :full tag, not a digest — for byte-exact reproduction pin the image digest you build with. The imatrix-quant step above lists the calibration set and the EOG patch this build applied.

Other measured metrics

MetricValue
kl_divergence0.001
n_trials100.000
refusals3.000

Part of the Gemma-4 12B Coder — active collection.

Something not right, or a request? Open a discussion — happy to help.

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

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

GPU в ailist

llama.cpp

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

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
26168c6

0 моделей