Views
No views yet
facebook/nllb-200-distilled-600M| Epoch | Training Loss | Validation Loss |
|---|---|---|
| 0 | No log | 12.742368 |
| 1 | 6.736500 | 6.469766 |
| 2 | 6.328200 | 6.097203 |
| 3 | 6.004600 | 5.790025 |
| 4 | 5.745800 | 5.544414 |
| 5 | 5.537400 | 5.364527 |
| 6 | 5.339400 | 5.211165 |
| 7 | 5.224800 | 5.101339 |
| 8 | 5.131800 | 5.019337 |
| 9 | 5.076800 | 4.990577 |
| 10 | 5.059100 | 4.964704 |
How are you doing today?
إزيك النهاردة؟
1import torch
2from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
3
4device = "cuda:0" if torch.cuda.is_available() else "cpu"
5
6model = AutoModelForSeq2SeqLM.from_pretrained("IbrahimAmin/nllb-200-distilled-600M-en-to-arz", torch_dtype=torch.float16).to(device).eval()
7tokenizer = AutoTokenizer.from_pretrained("IbrahimAmin/nllb-200-distilled-600M-en-to-arz", src_lang="eng_Latn", tgt_lang="arz_Arab")
8
9article = "How are you doing today?"
10inputs = tokenizer(article, return_tensors="pt").to(device)
11
12translated_tokens = model.generate(**inputs, forced_bos_token_id=tokenizer.convert_tokens_to_ids("arz_Arab"))
13tokenizer.batch_decode(translated_tokens, skip_special_tokens=True)[0]
14
15# Output: 'إزيك النهاردة؟'1@misc{ibrahimamin2025nllb200arz,
2 title={NLLB-200-600M English to Egyptian Arabic},
3 author={Ibrahim Amin},
4 year={2025},
5 howpublished={\url{https://huggingface.co/IbrahimAmin/nllb-200-distilled-600M-en-to-arz}},
6}