Downloads · 30 days
17
1% of all-time downloads
WelfCrozzo/T5-L128-belarusian
T5-L128-belarusian is a translation model from WelfCrozzo. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as openrail.
Downloads · 30 days
17
1% of all-time downloads
All-time downloads
3K
Public
Parameters
20.7M
166 MB on disk
Likes
2
Public
Click a slice to open those files.
.bin82.7 MB · 48%
From the Hugging Face model README
This model is based on T5-small with sequence length equal 128 tokens. Model trained from scratch on RTX 3090 24GB.
<extra_id_1><extra_id_2><extra_id_3><extra_id_5><extra_id_6><extra_id_7>from transformers import T5TokenizerFast, T5ForConditionalGeneration
tokenizer = T5TokenizerFast.from_pretrained("WelfCrozzo/T5-L128-belarusian")
model = T5ForConditionalGeneration.from_pretrained("WelfCrozzo/T5-L128-belarusian")
x = tokenizer.encode('<extra_id_1>да зорак праз цяжкасці', return_tensors='pt')
result = model.generate(x, return_dict_in_generate=True, output_scores=True,max_length=128)
print(tokenizer.decode(result["sequences"][0]))
</details>