10 Downloads Updated 1 month ago
ollama run juniormartinxo/seshat-commit
ollama launch claude --model juniormartinxo/seshat-commit
ollama launch codex-app --model juniormartinxo/seshat-commit
ollama launch openclaw --model juniormartinxo/seshat-commit
ollama launch hermes --model juniormartinxo/seshat-commit
ollama launch codex --model juniormartinxo/seshat-commit
ollama launch opencode --model juniormartinxo/seshat-commit
Conventional Commits message generator in Brazilian Portuguese (PT-BR), fine-tuned from Qwen 2.5 Coder 7B.
Receive a git diff, return a single-line commit message in Conventional Commits format. Trained on 4869 real commits from the author’s repositories with strict quality filters. Designed to be used inside Seshat, an automated commit CLI.
Model page: https://ollama.com/juniormartinxo/seshat-commit
ollama pull juniormartinxo/seshat-commit
# basic usage:
git diff --cached | ollama run juniormartinxo/seshat-commit
# with Seshat (recommended):
seshat config --provider ollama --model juniormartinxo/seshat-commit
seshat commit --yes
Example:
input → diff --git a/src/foo.rs b/src/foo.rs
+log::info!("starting bar");
output → feat(foo): adicionar log de início na função bar
| Base model | Qwen 2.5 Coder 7B Instruct |
| Method | QLoRA (4-bit base + LoRA r=16, α=16) |
| Trainable params | 40M of 7.6B (0.53%) |
| Quantization | Q4_K_M (4.4 GB) |
| Context | 8192 tokens |
| Languages | PT-BR (primary), EN/ES (limited) |
| Final loss | 0.2768 |
| Training time | ~30 min on RTX 5070 Ti (16 GB) |
| Dataset | 4869 train + 256 eval, filtered from 13525 raw commits |
feat, fix, chore, docs, refactor, perf, test, build, ci, style, revert)feat(api), fix(rtk), chore(release))bump version, endpoint)The included Modelfile sets:
PARAMETER temperature 0.2
PARAMETER top_p 0.9
PARAMETER num_ctx 8192
PARAMETER repeat_penalty 1.05
SYSTEM "Você é um gerador de mensagens de commit no padrão Conventional Commits.
Receba um git diff e responda apenas com a mensagem de commit, sem explicação.
Use PT-BR no corpo quando aplicável.
Tipo válido: feat, fix, chore, docs, refactor, perf, test, build, ci, style, revert."
Lower temperature (0.0–0.3) for production, higher (0.5–0.8) if you want more variation.
Extracted from public + private repositories of the author (~14k commits → 5k after filtering). Filters applied:
^(feat|fix|chore|...)(scope)?(!)?: .+)WIP, Revert, fixup!, squash!, [skip ci], bot authors, whitespace-only diffs, generic subjects (update, fix, tweak…), placeholders (<TODO>, XXX), URL-only subjects, filename-only subjects| Use case | Min | Recommended |
|---|---|---|
| Inference (Q4_K_M) | 6 GB VRAM or 8 GB RAM (CPU) | 8 GB VRAM |
| Fine-tune from this base | RTX 3090 / 4070 Ti / 5070 Ti (16 GB) | 24 GB |
Runs comfortably on a single consumer GPU. CPU inference works but slow (~10–20 tokens/s on modern x86).
The base model (Qwen 2.5 Coder) is released under the Qwen Research License. This fine-tune inherits the same license.
The fine-tuned LoRA adapter and dataset extraction pipeline are MIT.
Full reproducible training pipeline at:
https://github.com/juniormartinxo/seshat (see scripts/dataset/ and scripts/training/).
Re-train on your own commit history in ~1 hour:
make junior # extract + normalize your commits
python train.py # LoRA fine-tune
ollama create my-model -f Modelfile
Seshat is a CLI that automates the commit workflow:
seshat init # configure project
seshat config --provider ollama --model juniormartinxo/seshat-commit
git add .
seshat commit --yes # generate + commit
seshat flow 5 --yes # batch-commit modified files
seshat bench agents --agents ollama --show-samples 3 # benchmark vs Codex/Claude
conventional-commits · git · commit-message · portuguese · pt-br · qwen · code · lora · fine-tuned