Views
No views yet
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.1from transformers import AutoTokenizer, AutoModelForCausalLM
2from peft import PeftModel
3
4base_model = AutoModelForCausalLM.from_pretrained(
5 "Qwen/Qwen2.5-0.5B-Instruct",
6 trust_remote_code=True,
7)
8tokenizer = AutoTokenizer.from_pretrained(
9 "eoinedge/irish-abc-qwen2-5-lora",
10 trust_remote_code=True,
11 use_fast=True,
12)
13model = PeftModel.from_pretrained(base_model, "eoinedge/irish-abc-qwen2-5-lora")
14
15prompt = "K:D\n|:A2FA DAFA|"
16inputs = tokenizer(prompt, return_tensors="pt")
17outputs = model.generate(**inputs, max_new_tokens=180)
18print(tokenizer.decode(outputs[0], skip_special_tokens=True))data/processed/train_10k.jsonldata/processed/val_1k.jsonlQwen/Qwen2.5-0.5B-Instructpeft)trl.SFTTrainerconfigs/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).1@software{jordan2026irishabcqwen,
2 author = {Jordan, Eoin},
3 title = {Irish ABC Qwen2.5 LoRA Adapter},
4 year = {2026},
5 url = {https://huggingface.co/eoinedge/irish-abc-qwen2-5-lora}
6}