YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)

cense: cc0-1.0

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)) # हा चाचणीचा प्रकरण आहे.
Downloads last month
8
Safetensors
Model size
611M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support