Billyyy/mn-en-parallel
Viewer • Updated • 1.05M • 7
How to use Billyyy/mon_nllb_1.3B with PEFT:
from peft import PeftModel
from transformers import AutoModelForSeq2SeqLM
base_model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-distilled-1.3B")
model = PeftModel.from_pretrained(base_model, "Billyyy/mon_nllb_1.3B")This model is a fine-tuned version of facebook/nllb-200-distilled-1.3B on an unknown dataset. It achieves the following results on the evaluation set:
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model_name = "Billyyy/mon_nllb_1.3B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
text = "Сайн байна уу"?"
inputs = tokenizer(text, return_tensors="pt")
output_tokens = model.generate(**inputs)
translated_text = tokenizer.decode(output_tokens[0], skip_special_tokens=True)
print(translated_text)
This model was finetuned on Mongolian->English parallel dataset with LoRA
Training data:
Evaluation data:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 7.3708 | 0.1522 | 1000 | 7.2420 |
| 7.25 | 0.3044 | 2000 | 7.2126 |
| 7.237 | 0.4567 | 3000 | 7.2120 |
| 7.2344 | 0.6089 | 4000 | 7.2137 |
| 7.2323 | 0.7611 | 5000 | 7.2130 |
| 7.2351 | 0.9133 | 6000 | 7.2121 |
| 7.222 | 1.0656 | 7000 | 7.2131 |
| 7.22 | 1.2178 | 8000 | 7.2122 |
| 7.2077 | 1.3700 | 9000 | 7.2131 |
| 7.2132 | 1.5223 | 10000 | 7.2132 |
| 7.2211 | 1.6745 | 11000 | 7.2128 |
| 7.2269 | 1.8267 | 12000 | 7.2131 |
| 7.2296 | 1.9789 | 13000 | 7.2132 |
Base model
facebook/nllb-200-distilled-1.3B