/ Модель

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

Контекст
512 токенов
Параметры
124 млн
Лицензия
Apache 2.0
Архитектура
t5 · dense
Базовая модель
codet5-base
Библиотека
transformers
Опубликована
29 ноя 2026

commit-message

СуммаризацияТекст → текст

Экспериментальная модель на базе CodeT5 предлагает сообщения коммитов по diff кода и контексту проекта в стиле hpware.

0скачиваний за 30 дней0лайковвеса обновлены29 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

yuanhau разработал экспериментальную модель для предложения сообщений коммитов в непринуждённом стиле hpware. Это дообученная на Salesforce/codet5-base модель T5 с архитектурой encoder-decoder и 123,7 млн параметров по метаданным. Она принимает diff кода вместе с названием репозитория и контекстом проекта, а выдаёт одно сообщение коммита. Контекст ограничен 512 токенами; входные данные могут сокращаться до фрагментов. Модель предназначена для помощи разработчику при подготовке сообщений коммитов, а не для диалога.

Дообучение выполнено на 930 примерах из 62 публичных репозиториев hpware: 813 для обучения и 117 для проверки. Модель иногда описывает конкретные изменения, но может выдавать расплывчатые, неточные или повторяющиеся формулировки; обобщение на новые репозитории не установлено. Предложения следует проверять вручную, модель не предназначена для автономного создания или публикации коммитов. Лицензия — Apache-2.0.

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

  • черновик сообщения коммита по diff кода
  • подготовка сообщения коммита с учётом контекста репозитория
  • предложение краткого описания изменений в коде

Ограничения

Сообщения могут быть расплывчатыми, неточными, повторяющимися или не соответствовать стилю hpware; важные детали больших изменений могут не попасть во входные фрагменты. Обобщение на новые репозитории не установлено, поэтому каждое предложение нужно проверять вручную.

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

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

Открыть на Hugging Face

hpware commit-message model · 223M

Experimental fine-tune of Salesforce/codet5-base to suggest commit messages in hpware's casual style from a code diff and historical project context. Prepared for hpware with OpenAI Codex, using the Colab CLI on a Tesla T4, on 2026-11-29.

This is a 222,882,048-parameter encoder-decoder model, not a chat assistant. It sometimes describes concrete code changes and sometimes produces vague messages. Review every suggestion before committing.

Input and output

The encoder receives a repository name, project context, and actual code diff. The decoder generates one commit message. Project context includes README/package metadata and root file entries from the relevant commit's revision; selected examples also include surrounding source excerpts. Training uses post-commit project snapshots paired with the diff describing the change.

The shared prompt.py reserves about 450 tokenizer tokens for project context and 1,100 for the diff. Oversized inputs retain beginning/end excerpts. Targets are original commit messages capped at 112 tokens, including tokenizer special tokens. The model does not see the entire repository.

Usage

Download the repository, including infer.py and prompt.py:

uv run --with huggingface-hub hf download yuanhau/commit-message --local-dir ./hpware-commit-model

git -C /path/to/project diff --cached > /tmp/staged.diff
uv run --with 'transformers==4.57.1' --with torch \
  ./hpware-commit-model/infer.py ./hpware-commit-model /tmp/staged.diff \
  --repo your-project --repo-path /path/to/project

The inference script reads local README/package metadata and a staged source excerpt, then prints a suggestion. It does not create a commit. AutoTokenizer and AutoModelForSeq2SeqLM can also load this repository normally; use the matching prompt construction for useful inputs.

Data and filtering

  • 930 retained examples across 62 public hpware GitHub repositories.
  • 813 training examples and 117 held-out examples.
  • Includes 50 manually shortlisted 2026 commits: 40 training and 10 held out.
  • Older candidates were examined without the earlier random-1,000 sampling limit. Large changes were excerpted instead of rejected wholesale.
  • Explicit AI attribution, list-style messages, bot/merge/root commits, boilerplate, ambiguous generated-looking templates, uninformative messages, credential-pattern patches, lockfiles, and binary changes were filtered.
  • Exact target-message and patch identities are disjoint across the final partitions. Prior held-out identities remain reserved when eligible; additional older and 2026 examples are held out.
  • All retained examples have historical project/root context; 839 include README content and 194 include an additional source excerpt.

The author said commits before 2026 were mostly his. That date guidance and manual style screening do not establish human authorship of every unmarked message. AI-generated code/documentation or unmarked AI-written messages may remain. The filter applies to this fine-tuning dataset, not the base model's original pretraining data.

The raw training dataset, code patches, and full commit inventory are not distributed in this model repository. Local audit files were retained for the owner. The evaluation files include a small set of public source-commit identifiers and reference/generated messages.

Training

Full supervised fine-tuning with original commit messages as decoder targets; no generated or rewritten target messages were added.

SettingValue
BaseSalesforce/codet5-base
Parameters222,882,048
OptimizerAdamW, learning rate 5e-5, weight decay 0.01
Batch / accumulation1 / 16
Epochs3; epoch 3 selected by held-out loss
PrecisionFP16 training with FP32 overflow fallback; FP16 checkpoint
HardwareTesla T4 on Google Colab
LibrariesPyTorch 2.14.1+cu130, Transformers 4.57.1
Input / target tokens per pass930,708 / 12,377

Source scripts are included. The original local training JSONL files are required to replay training.

Evaluation

Held-out original-message token loss, within this tokenizer/setup:

CheckpointLoss
Base9.9460
Epoch 14.1286
Epoch 23.9716
Epoch 33.9599

FP32 assessment scored 3.9599 with correct context and 4.5280 with shuffled code/project context. This indicates some sensitivity to paired context; it does not establish factual accuracy.

A small held-out sample included:

Repository/changeGenerated message
log: added deletion actionsAdd delete post action
go_http_service: added websocket message handlingAdd sendMSG function to websocket server
log: account/tag changesFix some stuff.
anonqa: logout link changesyeah this works now

The first two descriptions were checked against the actual added code. The latter two illustrate weak specificity. No aggregate accuracy or style score was established. Similar code and related changes can occur across repositories even after exact deduplication; repository-wide generalization has not been demonstrated.

Standalone inference against the exported checkpoint passed. See metrics.json, assessment.json, and RESULTS.md for details. A preceding general-text Pythia experiment collapsed to a generic message and was superseded by this code-focused model.

Limitations

Outputs can be vague, inaccurate, repetitive, or stylistically unlike hpware. Excerpts can omit the important part of a large change. Some original reference messages are themselves vague or describe a broken state, which limits the supervision available for accurate summaries. This model is an experiment and should not autonomously create or publish commits.

Attribution and license

Fine-tuned from Salesforce/codet5-base, whose Hub metadata lists Apache-2.0. The original CodeT5 repository distributes its code and model documentation under BSD-3-Clause; its notice is retained in UPSTREAM_LICENSE_BSD.txt. See LICENSE and NOTICE for attribution and upstream notices. No license to the underlying GitHub source-code dataset is granted by this model repository.

CodeT5: Yue Wang, Weishi Wang, Shafiq Joty, and Steven C. H. Hoi, CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation (2021), paper, upstream repository.

GGUF downloads

FP16, Q8_0, Q4_K_M, Q2_K, and Q1_0 conversions are available at yuanhau/commit-messages-gguf. They require encoder-decoder-aware execution; the GGUF repository includes a tested token-ID runner and exact tokenizer adapter. Q1_0 is experimental and generated immediate EOS/empty text in the held-out test. See that model card for compatibility and validation details.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
T5ForConditionalGeneration
Ревизия весов
260204a

0 моделей