Translation
Transformers
PyTorch
nllb-moe
feature-extraction
ArthurZ HF staff commited on
Commit
59fc265
1 Parent(s): c3fb287

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -5
README.md CHANGED
@@ -246,11 +246,13 @@ for the list of all BCP-47 in the Flores 200 dataset.
246
  >>> tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-moe-54b")
247
  >>> model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-moe-54b")
248
 
249
- >>> batched_input = ['We now have 4-month-old mice that are non-diabetic that used to be diabetic," he added.',
250
- "Dr. Ehud Ur, professor of medicine at Dalhousie University in Halifax, Nova Scotia and chair of the clinical and scientific division of the Canadian Diabetes Association cautioned that the research is still in its early days."
251
- "Like some other experts, he is skeptical about whether diabetes can be cured, noting that these findings have no relevance to people who already have Type 1 diabetes."
252
- "On Monday, Sara Danius, permanent secretary of the Nobel Committee for Literature at the Swedish Academy, publicly announced during a radio program on Sveriges Radio in Sweden the committee, unable to reach Bob Dylan directly about winning the 2016 Nobel Prize in Literature, had abandoned its efforts to reach him.",
253
- 'Danius said, "Right now we are doing nothing. I have called and sent emails to his closest collaborator and received very friendly replies
 
 
254
  ]
255
  >>> inputs = tokenizer(article, return_tensors="pt", padding = True)
256
 
 
246
  >>> tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-moe-54b")
247
  >>> model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-moe-54b")
248
 
249
+ >>> batched_input = [
250
+ 'We now have 4-month-old mice that are non-diabetic that used to be diabetic," he added.',
251
+ "Dr. Ehud Ur, professor of medicine at Dalhousie University in Halifax, Nova Scotia and chair of the clinical and scientific division of the Canadian Diabetes Association cautioned that the research is still in its early days."
252
+ "Like some other experts, he is skeptical about whether diabetes can be cured, noting that these findings have no relevance to people who already have Type 1 diabetes."
253
+ "On Monday, Sara Danius, permanent secretary of the Nobel Committee for Literature at the Swedish Academy, publicly announced during a radio program on Sveriges Radio in Sweden the committee, unable to reach Bob Dylan directly about winning the 2016 Nobel Prize in Literature, had abandoned its efforts to reach him.",
254
+ 'Danius said, "Right now we are doing nothing. I have called and sent emails to his closest collaborator and received very friendly replies. For now, that is certainly enough."',
255
+ "Previously, Ring's CEO, Jamie Siminoff, remarked the company started when his doorbell wasn't audible from his shop in his garage.",
256
  ]
257
  >>> inputs = tokenizer(article, return_tensors="pt", padding = True)
258