/ Модель

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

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

Instinct-Python-Coder-Gemma4-12B-KimiK3

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

Instinct-Python-Coder-Gemma4-12B-KimiK3 — дообученная модель для генерации кода на Python, созданная на базе unsloth/gemma-4-12b-it.

317скачиваний за 30 дней8лайковвеса обновлены29 июл 2026

Бенчмарки

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

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

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

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

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

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

Разработчик в README не назван; при обучении использовались дистиллированные данные от Kimi K3 (Moonshot AI), на использование и распространение которых, согласно README, было получено письменное разрешение.

Модель предназначена для решения задач программирования на Python: генерации кода по описанию на естественном языке, краткого рассуждения и последующей выдачи решения. Она использует формат сжатого рассуждения в канале <think></think>, что должно сокращать расход контекстного окна, ускорять инференс и снижать затраты. В README указаны базовая архитектура Gemma 4 12B, дообучение на 1,87 млн токенов с двумя проходами, суммарно 3,73 млн токенов, и длина последовательности 8192. Заявленный язык — английский; основная измеренная область применения — Python.

В тесте из 228 задач модель решила 81 задачу с первой попытки, достигнув точности 35,5%, против 17,5% у базовой модели; время пакетного прогона также было меньше. Эти результаты получены однократным жадным декодированием без доверительного интервала и не гарантируют аналогичную эффективность в других условиях. Модель тестировалась только на Python, поэтому её возможности в других языках и сценариях не подтверждены; она также наследует ограничения Gemma 4. Доступна в виде одного файла Q8_0 GGUF размером около 13 ГБ, рассчитана на запуск через llama.cpp и совместимые инструменты при наличии примерно 16 ГБ памяти GPU или Mac. Указанная лицензия — Apache 2.0.

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

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

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

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

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

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

Открыть на Hugging Face

Instinct-Python-Coder-Gemma4-12B-KimiK3

Instinct-Python-Coder-Gemma4-12B-KimiK3 is a general-purpose Python coder that thinks briefly, then answers. We took the highly capable Gemma 4 12B model and taught it to perform better in Python coding with much more concise reasoning in its <think></think> channel, leading to faster inference, a shorter context window, and cost savings for the end user. The reasoning style is distilled from Kimi K3: the model works through the approach in a few lines, then hands back the code.

Evaluation

We measured first-attempt accuracy on a held-out set of 228 Python tasks: one greedy completion per task, each graded automatically.

Gemma 4 12B (base)Instinct
Solved40 / 228 (17.5%)81 / 228 (35.5%)
Ran out of budget without writing code9028
Time to run the full set (batched)233.6 min126.8 min

With a 35.5% first-attempt accuracy, our Python Coder Instinct model preserved 62% of Kimi K3's thinking capability: Kimi K3 itself reaches about 57.3% first-attempt accuracy on a broader Python pool under the same kind of check. For comparison, the base Gemma 4 12B model has only 17.5% accuracy, so we more than doubled it.

On 90 of the 228 tasks the base model ran out of its budget without ever writing code; the finetune cut that to 28. These gains trace to the same change: the model reaches the answer instead of thinking until it runs out of room.

Training

Fine-tuned on 1.87M post-training tokens, passed over twice for 3.73M tokens in total, at a sequence length of 8,192.

Limitations

This is one 12B model measured once with greedy decoding, so treat 35.5% as a single reading with no error bar. It was tuned and tested on Python, and nothing else was measured here. It inherits Gemma 4's behavior and limitations.

The 17.5% base-model figure above was measured with a plain "explain your approach, then write code" prompt — not the <think> instruction this fine-tune was trained on. Scoring the same base weights with a prompt that explicitly asks for a <think> block (the format this model actually uses) gives 3.5%, not 17.5%: the untuned model mostly rambles trying to follow an unfamiliar instruction instead of writing code. So part of the 17.5% → 35.5% gap is this model learning to follow that instruction format, not purely a coding-skill improvement. The absolute 35.5% is unaffected either way.

License and lineage

Base model: unsloth/gemma-4-12b-it, which ships under the Apache 2.0 license (see its own model card's frontmatter — license: apache-2.0), not the standard Gemma Terms of Use. This fine-tune inherits that Apache 2.0 license. Training data is distilled from Kimi K3 (Moonshot AI); Moonshot gave written permission for this project to train on and redistribute Kimi K3-derived outputs and models (recorded in this repo's docs/kimi-k3-distillation.md).

Usage

It ships as a single Q8_0 GGUF, roughly 13 GB on disk, and runs on a GPU or Mac with about 16 GB of memory. Serve it with llama.cpp:

llama-server -m Instinct-Python-Coder-Gemma4-12B-KimiK3-Q8_0.gguf -ngl 99 -c 8192

That exposes an OpenAI-compatible endpoint at http://localhost:8080/v1, and the Gemma 4 chat template is baked into the GGUF, so turns and the thinking channel are formatted for you. It runs anywhere GGUF runs, and any tool that speaks the OpenAI chat API can drive it:

  • Runtimes and apps: llama.cpp, Ollama, LM Studio, Jan, KoboldCpp
  • Coding agents and harnesses: opencode, pi, Hermes, Aider, Cline, Continue

Describe what you want in plain language and it replies with a short pass of reasoning followed by the code:

User: Return the first character in a string that appears only once, or None.

<think>
Count characters in one pass, then scan again and return the first with count 1. O(n).
</think>

```python
from collections import Counter

def first_unique(s):
    counts = Counter(s)
    for ch in s:
        if counts[ch] == 1:
            return ch
    return None
```

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

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

GPU в ailist

llama.cpp

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

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

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

0 моделей