Downloads · 30 days
11
32% of all-time downloads
wrtdevcod/fintune-qwen2.5-1.5b-lora
fintune-qwen2.5-1.5b-lora is a machine learning model from wrtdevcod. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
LoRA (r=16, alpha=32) adapter fine-tuned on the Financial PhraseBank dataset (sentences50agree, 4,846 sentences, 80/10/10 split) for 3-class financial sentiment classification (positive / negative / neutral).
Downloads · 30 days
11
32% of all-time downloads
All-time downloads
34
Public
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 87%
From the Hugging Face model README
LoRA (r=16, alpha=32) adapter fine-tuned on the Financial PhraseBank dataset (sentences_50agree, 4,846 sentences, 80/10/10 split) for 3-class financial sentiment classification (positive / negative / neutral).
Trained with a custom PyTorch training loop (manual forward pass, loss
computation, backward pass, and optimizer step — no Trainer class) on a
free-tier Colab T4 GPU using 4-bit QLoRA.
| Model | Accuracy | Macro F1 |
|---|---|---|
| Base Qwen2.5-1.5B-Instruct | 50.6% | 0.540 |
| Fine-tuned (this adapter) | 88.9% | 0.887 |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
model = PeftModel.from_pretrained(base, "wrtdevcod/fintune-qwen2.5-1.5b-lora")