Downloads · 30 days
11
31% of all-time downloads
mkly/pr-poet-lora
pr-poet-lora is a text generation model from mkly. Use it when you need the model to write or continue text. It is set up for peft.
A LoRA adapter for Qwen/Qwen3-0.6B that turns Git commit messages into four-line rhyming poems.
Downloads · 30 days
11
31% of all-time downloads
All-time downloads
36
Public
Repo size
51.9 MB
Likes
0
Public
Click a slice to open those files.
.safetensors40.4 MB · 78%
From the Hugging Face model README
A LoRA adapter for Qwen/Qwen3-0.6B that turns Git commit messages into four-line rhyming poems.
It powers PR Poet, a GitHub Action that posts a poem when a pull request is opened.
This repository contains the PEFT adapter and tokenizer files, not the base model. Load it with the Qwen base model:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = "Qwen/Qwen3-0.6B"
adapter = "mkly/pr-poet-lora"
tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(base_model)
model = PeftModel.from_pretrained(model, adapter)
The model was trained with Axolotl and TRL, followed by GRPO optimization for formatting, rhyme, non-repetition, commit relevance, and style. It expects the structured PR Poet chat prompt used during training rather than an arbitrary plain-text prompt.
For llama.cpp deployment, use the merged and quantized PR Poet Q4_K_M GGUF.