Downloads · 30 days
8
25% of all-time downloads
sumanthmandavalli/english-to-marathi
english-to-marathi is a machine learning model from sumanthmandavalli. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
cense: cc0-1.0 --- A model that translates English sentences to Marathi.
Downloads · 30 days
8
25% of all-time downloads
All-time downloads
32
Public
Parameters
611M
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.4 GB · 99%
From the Hugging Face model README
A model that translates English sentences to Marathi.
To use this model, use the following code:
from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
model_checkpoint = "sumanthmandavalli/english-to-marathi"
tokenizer = MBart50TokenizerFast.from_pretrained(model_checkpoint)
model = MBartForConditionalGeneration.from_pretrained(model_checkpoint)
text = "WELCOME TO AI WORLD." # Sentence to translate
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True)) # हा चाचणीचा प्रकरण आहे.