How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
# Warning: Pipeline type "translation" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# 'pip install "transformers<5.0.0'
from transformers import pipeline

pipe = pipeline("translation", model="Swekerr/eng2hindi")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("Swekerr/eng2hindi")
model = AutoModelForSeq2SeqLM.from_pretrained("Swekerr/eng2hindi")
Quick Links

Model Card for Model ID

A English to Hindi Translation Model.

Model Details

Model Description

This is the model card of a 🤗 transformers model that has been pushed on the Hub.

  • Developed by: Swekerr
  • Model type: Translation
  • Language(s) (NLP): [More Information Needed]

Model Sources [optional]

  • Repository: .
  • Demo: .

How to Get Started with the Model

Use the code below to get started with the model.

from transformers import pipeline

checkpoint = "Swekerr/eng2hindi"

translate = pipeline("translation", model=checkpoint)
translate("Failure is the pillar of success")

>>> [{'translation_text': 'असफलता सफलता का स्तम्भ है।'}]

Citation [optional]

Downloads last month
1
Safetensors
Model size
75.9M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train Swekerr/eng2hindi

Space using Swekerr/eng2hindi 1