Downloads · 30 days
56
39% of all-time downloads
eoinedge/irish-abc-qwen2-5-lora
irish-abc-qwen2-5-lora is a text generation model from eoinedge. Use it when you need the model to write or continue text. It is set up for peft.
This adapter is a fine-tuned version of Qwen/Qwen2.5-0.5B-Instruct. It was trained by Eoin Jordan to improve ABC notation continuation for Irish traditional-style music generation.
Downloads · 30 days
56
39% of all-time downloads
All-time downloads
143
Public
Repo size
117 MB
Likes
0
Public
Click a slice to open those files.
.pt70.7 MB · 43%
From the Hugging Face model README
This adapter is a fine-tuned version of Qwen/Qwen2.5-0.5B-Instruct. It was trained by Eoin Jordan to improve ABC notation continuation for Irish traditional-style music generation.
eoinedge/irish-abc-qwen2-5-lora is a LoRA adapter that steers the base Qwen2.5 instruction model toward generating valid ABC music notation in an Irish traditional style.
The adapter was trained using parameter-efficient fine-tuning with PEFT and the Hugging Face TRL SFT framework.
Load the base model and adapter together to generate ABC continuations:
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-0.5B-Instruct",
trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(
"eoinedge/irish-abc-qwen2-5-lora",
trust_remote_code=True,
use_fast=True,
)
model = PeftModel.from_pretrained(base_model, "eoinedge/irish-abc-qwen2-5-lora")
prompt = "K:D\n|:A2FA DAFA|"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=180)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The adapter was trained on a curated ABC continuation dataset stored in this repository:
data/processed/train_10k.jsonldata/processed/val_1k.jsonlThe dataset is derived from public-domain and traditional ABC sources, formatted for supervised continuation training.
Qwen/Qwen2.5-0.5B-Instructpeft)trl.SFTTrainerThe training configuration is defined in configs/qwen2_5_0_5b_lora_mac.yaml and the fine-tuning script is scripts/train_lora.py.
outputs/adapters/irish-abc-qwen2_5-0_5b-lora-mac.do_sample=False) with the current local MPS environment produced continuations dominated by repeated punctuation characters, indicating unstable adapter generation behavior for the tested ABC prompt.probability tensor contains either inf, nan or element < 0).If you use this adapter, cite the adapter itself:
@software{jordan2026irishabcqwen,
author = {Jordan, Eoin},
title = {Irish ABC Qwen2.5 LoRA Adapter},
year = {2026},
url = {https://huggingface.co/eoinedge/irish-abc-qwen2-5-lora}
}
The adapter uses the TRL and PEFT libraries. Use their current project citation files when citing those dependencies.