Views
No views yet
1from transformers import AutoTokenizer, AutoModelForCausalLM
2from peft import PeftModel
3
4tok = AutoTokenizer.from_pretrained("Qwen/Qwen3.5-4B")
5model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-4B", dtype="auto", device_map="auto")
6model = PeftModel.from_pretrained(model, "sinhala-nlp/Qwen3.5-4B-PaliSinhala-Pali2Si-si")Translation: prefix.| Training pairs | 9450 |
| Instruction language | si |
| Length-matched subsample | False |
| Epochs | 1.0 |
| Effective batch size | 16 |
| Learning rate | 0.0002 |
| Max sequence length | 3072 |
| LoRA r / alpha / dropout | 16 / 32 / 0.05 |
| Thinking during training | False |
sinhala-nlp/pali-sinhala, whitespace-tokenized (sacreBLEU's default
13a tokenizer splits Sinhala conjuncts and vowel signs):| Metric | Score |
|---|---|
| Corpus sacreBLEU | 0.06 |
| Sentence-level BLEU mean | 0.12 |
| Hyp/ref length ratio | 0.246 |
sinhala-nlp/pali-sinhala dataset
on its dataset card as well.