/ Модель

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

Контекст
32 768 токенов
Параметры
494 млн
Лицензия
Apache 2.0
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-Coder-0.5B-Instruct
Опубликована
26 окт 2026

smart-commit-0.5b-v0.3

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

Компактная англоязычная модель для локальной генерации сообщений Git-коммитов с учётом diff, истории и стиля репозитория.

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

Бенчмарки

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

Тесты пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

smart-commit-0.5b-v0.3 — компактная модель LucasBRT для генерации сообщений Git-коммитов в стиле репозитория. Она дообучена методом DPO на базе Qwen/Qwen2.5-Coder-0.5B-Instruct и предназначена для локального запуска в CLI smart-commit, которому передаются правила, список файлов, история и diff изменений. Модель имеет плотную архитектуру Qwen2, около 494 млн параметров и контекст до 32 768 токенов. Выпускается в форматах safetensors и GGUF Q4_K_M; для GGUF указана совместимость с llama.cpp на CPU и Vulkan GPU.

Настройка на примерах коммитов помогает чаще выдавать пригодный с первой попытки текст и реже добавлять детали, не подтверждённые переданными данными. В описанной оценке тип коммита совпадал с эталоном примерно в двух случаях из трёх, а для молодых репозиториев и определения типа результаты ограничены. Модель предназначена для сообщений на английском языке. Лицензия — Apache-2.0.

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

  • создание сообщения коммита по staged diff
  • формирование сообщений в стиле существующих коммитов репозитория
  • генерация сообщений в формате Conventional Commits
  • локальная генерация коммитов через CLI smart-commit

Ограничения

Модель рассчитана на английские сообщения; тип коммита определяется ненадёжно, особенно для молодых репозиториев с короткой историей. Она всё ещё может упоминать детали, которых нет в diff, и хуже справляется, когда staged изменения охватывают несколько коммитов.

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

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

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

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

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

Открыть на Hugging Face

smart-commit-0.5b-v0.3

smart-commit-0.5b-v0.1 with one more training step, DPO on the model's own samples, for smart-commit, a CLI that writes git commit messages in the repository's style with a small model running locally. Version 0.3: still experimental, while the training recipe changes. (The 0.2 line is a different one: trained without the rules in the prompt. This keeps them, as 0.1 does.)

What the step does: the model samples six replies for each of 5,500 commits it was not trained on, a set of checks marks those that copy a recent subject, name a detail the diff does not contain, say nothing, use a scope the repository never used or a type other than the real commit's, and the model is trained to prefer the reply that passes them all. The replies that fail those checks almost disappear; the type of the commit does not improve significantly.

It is trained on smart-commit's own prompt, byte for byte, with the full rules (--rules full).

Files

FileWhatSHA-256
model.safetensors (+ config and tokenizer)merged weights, bf16bfa263bb653c8b0266ea31a8a0d31402c11ec6a6c1413b1fb8f79ea406ec3ff1
smart-commit-0.5b-v0.3-q4_k_m.ggufQ4_K_M for llama.cpp, 398 MB764940aaec5d3aae4587ce032c1f0437454ff3fa3666bd6c5ff10b2df7acfc3b
training/run.json and the log of the DPO run, and the two LoRA adapters (SFT, then DPO)

Use with smart-commit

hf download LucasBRT/smart-commit-0.5b-v0.3 smart-commit-0.5b-v0.3-q4_k_m.gguf --local-dir ~/models
SMART_COMMIT_GGUF=~/models/smart-commit-0.5b-v0.3-q4_k_m.gguf smart-commit

It runs on smart-commit's llama.cpp devices (CPU and Vulkan GPUs). The OpenVINO export is not validated for this model.

Evaluation

eval-v1: 500 commits from the test split of CommitChronicle (repositories never seen in training), 250 following Conventional Commits and 250 free-form; eval-short: 197 commits from young repositories (1–5 earlier subjects; 47 Conventional, 150 free). Greedy decoding, Vulkan, smart-commit 0.9.0 plus the commits of main up to 236d51f, with its retries and file-list fallback; the same binary and settings for the three models. The columns without "(free)" or "(young)" are the 250 Conventional commits of eval-v1.

With smart-commit's default file list (annotated), the one a user gets:

Modeltype_matchtype_macro_f1scope_knownfirst_tryfallbackungroundedword_f1first_try (free)word_f1 (free)type_match (young)fallback (young)fallback (young, free)
Qwen2.5-Coder-0.5B-Instruct, re-quantized like this model (control)0.3520.2000.8760.3360.6320.2960.1590.6920.1020.4680.8940.340
smart-commit-0.5b-v0.10.6480.5460.8520.9600.0280.1160.3420.9280.2340.6380.0850.080
smart-commit-0.5b-v0.30.6680.5520.8400.9960.0040.0080.3540.9960.2500.5960.0210.000

With the plain file list, the one it was trained on:

Modeltype_matchtype_macro_f1scope_knownfirst_tryfallbackungroundedword_f1first_try (free)word_f1 (free)type_match (young)fallback (young)fallback (young, free)
Qwen2.5-Coder-0.5B-Instruct, re-quantized like this model (control)0.3440.2010.8840.3120.6480.3080.1610.6960.1010.4260.8720.333
smart-commit-0.5b-v0.10.6280.5310.8440.9600.0280.1040.3330.9160.2300.6170.0850.100
smart-commit-0.5b-v0.30.6640.5570.8400.9960.0040.0080.3470.9960.2470.6170.0210.000

Against v0.1, paired, on the 250 Conventional commits of eval-v1 with the annotated list: ungrounded +1/−28 (p = 0.0), first_copied +0/−9 (p = 0.004), first_try +9/−0 (p = 0.004), fallback +0/−6 (p = 0.031); type_match +11/−6 (p = 0.332) and scope_known +2/−5 (p = 0.453), neither significant.

  • type_match: same Conventional type as the real commit. scope_known: no scope, or one the repository already used. first_try: the first reply was usable; fallback: no reply was, and smart-commit wrote the message from the file list. ungrounded: no content word of the description is in the diff, the paths or the history. word_f1: word overlap with the real subject, a rough proxy for content.
  • The control row is the base model quantized as this one: it falls back to the file list for most commits in this setup, and these numbers are not comparable to older ones measured with an earlier smart-commit.
  • It also uses far fewer words that are in nothing the model was given (history, paths and diff): 0.082 of the words of its Conventional replies on eval-v1, against 0.151 for v0.1 and 0.327 for the real commits. It says what the diff says rather than what the change means.

Training

  • Starting point: smart-commit-0.5b-v0.1 (the SFT adapter in training/ is the one it was trained with).
  • Data: CommitChronicle (revision 5fd076e). 5,500 commits of its train split, none of those v0.1 trained on and none from the evaluation repositories: 4,500 from 680 repositories that follow Conventional Commits (at most 8 each) and 1,000 from young repositories, six samples of v0.1 for each (temperature 0.7, fixed seeds). Added to them, the free-style commits (repositories that do not follow Conventional Commits) mined in an earlier run from its test split, outside the evaluation repositories, four samples each. Of the 3172 pairs for training (and 514 of other repositories for validation) 905 are of those free-style commits, cut so that the chosen and the rejected replies have the same distribution of type and of scope (pairs file sha256 8d33514b190028ba…).
  • Method: LoRA r=16, alpha=32, dropout 0.05 on all linear layers, on the merged v0.1; sigmoid DPO loss, beta 0.1, lr 2e-05 cosine, 198 steps of 16 pairs, plus the per-token loss of the chosen reply with weight 0.2; fp16 on a Kaggle Tesla T4, 31 minutes. torch 2.11.0+cu128, transformers 5.20.1, peft 0.21.2. One of six configurations, chosen on a validation set of 500 commits of other repositories.
  • Export: merged into the bf16 weights and quantized to Q4_K_M with llama.cpp b11381 (training/export_gguf.py --adapter SFT --adapter DPO --merged).

Training on a GPU is not bit-for-bit reproducible; generation is (greedy). The recipe, the data selection, the first sweeps that failed and the scripts are in training/ (H12 of HYPOTHESES.md).

Limitations

  • English messages only.
  • Young repositories: on the 47 Conventional commits of eval-short it does not improve the type and the macro F1 falls; with fewer than 10 earlier commits the data is too small to say more.
  • The type of the commit is as unreliable as v0.1's: about two in three right on eval-v1.
  • It can still invent details the diff does not show, and it does not know when the staged changes are several commits.
  • One seed per configuration: differences of a few cases between runs are noise.

Licence and attribution

The weights are released under Apache-2.0, like the base model. CommitChronicle (JetBrains Research) has no single licence: it gathers commits from repositories under MIT, Apache-2.0 and BSD-3-Clause, and asks that uses follow their terms, attribution included. The dataset records the repository and licence of every commit (repo and license fields), which is the provenance of the training data.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen2ForCausalLM
Ревизия весов
9202f7b

0 моделей