Downloads · 30 days
17
31% of all-time downloads
kashif1085/llama-3.2-1b-urdu-en-qlora
llama-3.2-1b-urdu-en-qlora is a translation model from kashif1085. Use it when you need text moved from one language to another. It is set up for peft. The card lists the license as apache-2.0.
QLoRA fine-tune of meta-llama/Llama-3.2-1B-Instruct for Urdu→English translation.
Downloads · 30 days
17
31% of all-time downloads
All-time downloads
54
Public
Repo size
30.9 MB
Likes
0
Public
Click a slice to open those files.
.json17.3 MB · 56%
From the Hugging Face model README
QLoRA fine-tune of meta-llama/Llama-3.2-1B-Instruct for Urdu→English translation.
kashif1085/urdu-en-translation-instruct
(filtered subset of Helsinki-NLP/opus-100, en-ur)| BLEU | chrF | |
|---|---|---|
| Base | 3.97 | 25.48 |
| LoRA | 10.10 | 31.78 |
| Δ | +6.13 | +6.30 |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained('meta-llama/Llama-3.2-1B-Instruct')
tok = AutoTokenizer.from_pretrained('meta-llama/Llama-3.2-1B-Instruct')
model = PeftModel.from_pretrained(base, 'kashif1085/llama-3.2-1b-urdu-en-qlora')
