KnoxDevelopers/english_meru_pair_sentences
Viewer • Updated • 31.2k • 35
How to use KnoxDevelopers/English-to-Meru-language-translation-LoRA with PEFT:
from peft import PeftModel
from transformers import AutoModelForSeq2SeqLM
base_model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-distilled-600M")
model = PeftModel.from_pretrained(base_model, "KnoxDevelopers/English-to-Meru-language-translation-LoRA")How to use KnoxDevelopers/English-to-Meru-language-translation-LoRA with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("KnoxDevelopers/English-to-Meru-language-translation-LoRA", device_map="auto")This model is a fine-tuned version of facebook/nllb-200-distilled-600M on the English-Meru dataset. It achieves the following results on the evaluation set:
A LoRA adapter for translating text from English to Kimeru.
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 5.2921 | 1.0 | 1742 | 2.3882 |
| 4.6466 | 2.0 | 3484 | 2.1125 |
| 4.3495 | 3.0 | 5226 | 1.9624 |
| 4.1860 | 4.0 | 6968 | 1.8715 |
| 4.0373 | 5.0 | 8710 | 1.8175 |
| 3.8794 | 6.0 | 10452 | 1.7889 |
| 3.9127 | 7.0 | 12194 | 1.7783 |
| Metric | Results | Explained |
|---|---|---|
| sacrebleu | 7.824 | Evaluation matches exact word sequence referencing our ground truth and adapter output. |
| 0-20= translation is literal or broken, 20-50=good, >60=very good or identical training and test data. | ||
| chrF++ | 37.682 | Eval matches character sequence instead of whole words. |
| Model adapter is getting the root words and grammar concepts right but using different word variations or spellings than our ground truth, this is concluded due to the low sacrebleu results. |
Base model
facebook/nllb-200-distilled-600M