Update README.md
Browse files
README.md
CHANGED
@@ -74,8 +74,8 @@ target language id as the first generated token, pass the `forced_bos_token_id`
|
|
74 |
```python
|
75 |
from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
|
76 |
article_en = "The head of the United Nations says there is no military solution in Syria"
|
77 |
-
model = MBartForConditionalGeneration.from_pretrained("
|
78 |
-
tokenizer = MBart50TokenizerFast.from_pretrained("
|
79 |
|
80 |
model_inputs = tokenizer(article_en, return_tensors="pt")
|
81 |
|
|
|
74 |
```python
|
75 |
from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
|
76 |
article_en = "The head of the United Nations says there is no military solution in Syria"
|
77 |
+
model = MBartForConditionalGeneration.from_pretrained("SnypzZz/Llama2-13b-Language-translate")
|
78 |
+
tokenizer = MBart50TokenizerFast.from_pretrained("SnypzZz/Llama2-13b-Language-translate", src_lang="en_XX")
|
79 |
|
80 |
model_inputs = tokenizer(article_en, return_tensors="pt")
|
81 |
|