Downloads · 30 days
4
7% of all-time downloads
idejavyu/marian-en-uk-translate
marian-en-uk-translate is a translation model from idejavyu. Use it when you need text moved from one language to another. The card lists the license as mit.
This is a fine-tuned MarianMT model for translation between English and Ukrainian.
Downloads · 30 days
4
7% of all-time downloads
All-time downloads
54
Public
Parameters
75.7M
910 MB on disk
Likes
0
Public
Click a slice to open those files.
.pt606 MB · 66%
From the Hugging Face model README
This is a fine-tuned MarianMT model for translation between English and Ukrainian.
from transformers import MarianMTModel, MarianTokenizer
model_name = "your-username/marian-en-uk-translate"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
src_text = ["This is a test."]
batch = tokenizer(src_text, return_tensors="pt", padding=True)
generated = model.generate(**batch)
print(tokenizer.batch_decode(generated, skip_special_tokens=True))