Run this model with HF Jobs

Run Pavloffm/qwen-commit-merged on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Pavloffm/qwen-commit-merged. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Pavloffm/qwen-commit-merged on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Pavloffm/qwen-commit-merged. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Pavloffm/qwen-commit-merged. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Qwen Commit Merged - Conventional Commit Message Generator

Generates conventional commit messages from git diffs using a fine-tuned Qwen2.5-Coder-3B model. This is a standalone merged model (LoRA adapters merged into base model) ready for direct use.

Model Details

  • Model: Qwen2.5-Coder-3B fine-tuned on conventional commits
  • Fine-tuning Method: QLoRA (4-bit quantized, rank=8, alpha=16)
  • Training Data: 210 real conventional commits from open-source repositories
  • Model Size: ~3B parameters
  • Format: Merged model (no base model required)

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

# Load merged model directly
model = AutoModelForCausalLM.from_pretrained(
    "Pavloffm/qwen-commit-merged",
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Pavloffm/qwen-commit-merged")

# Generate commit message
diff = """diff --git a/src/main.py b/src/main.py
index 1234567..abcdefg 100644
--- a/src/main.py
+++ b/src/main.py
@@ -1,3 +1,5 @@
+def new_feature():
+    pass
"""

messages = [{"role": "user", "content": f"Generate a conventional commit message for this diff:\n{diff}"}]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Training

  • Base Model: Qwen/Qwen2.5-Coder-3B-Instruct
  • Epochs: 2
  • Learning rate: 1.5e-4
  • LoRA rank: 8, alpha: 16
  • Training examples: 210

License

MIT License

Downloads last month
9
Safetensors
Model size
3B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support