Views
No views yet
| #Params | chrF(++) | GPU Inference time (s) | CPU Inference time (s) | |
|---|---|---|---|---|
| NLLB-200 3.3B | 3.3B | 34.3 | 0.98 s | 4.65 s |
| NLLB-200 1.3B | 1.3B | 32.1 | 0.89 s | 2.46 s |
| NLLB-200 600M | 600M | 32 | 0.43 s | 1.52 s |
| NLLB-200 350M (ours) | 350M | 24.6 | 0.24 s | 1.43 s |
1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2
3model = AutoModelForSeq2SeqLM.from_pretrained('dhtocks/nllb-200-distilled-350M_en-ko', forced_bos_token_id=256098)
4tokenizer = AutoTokenizer.from_pretrained('dhtocks/nllb-200-distilled-350M_en-ko', src_lang='eng_Latn', tgt_lang='kor_Hang')
5
6inputs = tokenizer('[YOUR_INPUT]', return_tensors="pt")
7output = model.generate(**inputs)
8print(tokenizer.decode(output[0]))1@misc{,
2 title={NLLB-200 distilled_350M_en-ko},
3 author={Saechan Oh},
4 year={2024}
5}