A QLoRA adapter that fine-tunes
Qwen/Qwen3-1.7B to write
Conventional Commits messages from a git diff: a single-file diff in, one
type(scope): description subject line out.
This repo holds the
LoRA adapter weights for the larger of two sizes. For local CPU inference most people want the merged, quantized
GGUF instead. Use this adapter if you want to merge it yourself, train further on top of it, or run it with PEFT on GPU.
Committed defaults to the smaller
0.6B — it matches this 1.7B on commit-type and faithfulness at ~⅓ the size. This 1.7B is the
bigger sibling, worth it for higher specificity (more consistently concrete descriptions).
The trained behavior depends on the exact prompt rendering used in training (a canonical zero-shot
Diff:\n{diff} format with
enable_thinking=False) plus the GBNF grammar applied at decode time. Loading the adapter with a bare prompt will not reproduce the evaluated output. To match what was evaluated, run it through the project's
engine.py, or use the FastAPI / Gradio Space, or the CLI (
git diff | committed --model 1.7b). See
github.com/marzoukbaig14/Committed.
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-1.7B")
4model = PeftModel.from_pretrained(base, "marzoukbaig14/committed-qwen3-1.7b-lora")
5tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-1.7B")
This 1.7B fine-tune is the stronger of the two sizes overall, with its main edge in specificity (0.67 vs the 0.6B's 0.55); the margins on the other axes are small (graded 2.14 vs 2.09). Both base models feat-collapse (~87–96% feat); fine-tuning breaks it on both. The full four-arm comparison (0.6B/1.7B × base/fine-tune, all DeepSeek-judged — not comparable to any earlier Gemini figures), the feat-collapse analysis, and the judge validation are in the merged-model card and the eval writeup:
Apache-2.0, inherited from the Qwen3-1.7B base.
Trained with
TRL. Dataset derived from CommitChronicle (Eliseeva et al.,
From Commit Message Generation to History-Aware Commit Message Generation, arXiv:2308.07655).