Downloads · 30 days
27
1% of all-time downloads
dhtocks/nllb-200-distilled-350M_en-ko
nllb-200-distilled-350M_en-ko is a translation model from dhtocks. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
The NLLB-200 model showed outstanding performance in translation task and contributed to solving problems with low-resource languages. Despite their efforts, it is still hard to run 600M or more than 1B model for thos…
Downloads · 30 days
27
1% of all-time downloads
All-time downloads
2.1K
Public
Parameters
351M
1.4 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors1.4 GB · 98%
From the Hugging Face model README
The NLLB-200 model showed outstanding performance in translation task and contributed to solving problems with low-resource languages. Despite their efforts, it is still hard to run 600M or more than 1B model for those who have not enough computing environment. So I made much smaller model that expertized translaing English to Korean. you can also run it with cpu (No mixed-precision, No Quantization).
Model: model is based on NLLB-200 600M
Licnese: CC-BY-NC
| #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 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model = AutoModelForSeq2SeqLM.from_pretrained('dhtocks/nllb-200-distilled-350M_en-ko', forced_bos_token_id=256098)
tokenizer = AutoTokenizer.from_pretrained('dhtocks/nllb-200-distilled-350M_en-ko', src_lang='eng_Latn', tgt_lang='kor_Hang')
inputs = tokenizer('[YOUR_INPUT]', return_tensors="pt")
output = model.generate(**inputs)
print(tokenizer.decode(output[0]))
@misc{,
title={NLLB-200 distilled_350M_en-ko},
author={Saechan Oh},
year={2024}
}