Billyyy commited on
Commit
88ffc42
·
verified ·
1 Parent(s): 421ad50

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -4
README.md CHANGED
@@ -34,15 +34,30 @@ metrics:
34
  pipeline_tag: translation
35
  ---
36
 
37
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
38
- should probably proofread and complete it, then remove this comment. -->
39
-
40
  # mon_nllb_3B
41
 
42
  This model is a fine-tuned version of [facebook/nllb-200-distilled-1.3B](https://huggingface.co/facebook/nllb-200-distilled-1.3B) on an unknown dataset.
43
  It achieves the following results on the evaluation set:
44
- - Loss: 7.2132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
 
 
46
  ## Model description
47
 
48
  This model was finetuned on Mongolian->English parallel dataset with LoRA
 
34
  pipeline_tag: translation
35
  ---
36
 
 
 
 
37
  # mon_nllb_3B
38
 
39
  This model is a fine-tuned version of [facebook/nllb-200-distilled-1.3B](https://huggingface.co/facebook/nllb-200-distilled-1.3B) on an unknown dataset.
40
  It achieves the following results on the evaluation set:
41
+ - BLEU: 44.06
42
+ - chrF: 44.43
43
+ - METEOR: 0.537
44
+
45
+ ## Example Usage
46
+ ```python
47
+ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
48
+
49
+ model_name = "your_username/mon_nllb_3B"
50
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
51
+ model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
52
+
53
+ text = "Hello, how are you?"
54
+ inputs = tokenizer(text, return_tensors="pt")
55
+
56
+ output_tokens = model.generate(**inputs)
57
+ translated_text = tokenizer.decode(output_tokens[0], skip_special_tokens=True)
58
 
59
+ print(translated_text)
60
+ ```
61
  ## Model description
62
 
63
  This model was finetuned on Mongolian->English parallel dataset with LoRA