Attention Is All You Need
Paper โข 1706.03762 โข Published โข 147
How to use AbhirupGhosh/opus-mt-finetuned-en-hi with Transformers:
# 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="AbhirupGhosh/opus-mt-finetuned-en-hi") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("AbhirupGhosh/opus-mt-finetuned-en-hi")
model = AutoModelForSeq2SeqLM.from_pretrained("AbhirupGhosh/opus-mt-finetuned-en-hi", device_map="auto")This model is a fine-tuned version of Helsinki-NLP/opus-mt-hi-en on HindiEnglish Corpora
The model is a transformer model similar to the Transformer as defined in Attention Is All You Need by Vaswani et al
More information needed
The model was trained on 2 NVIDIA_TESLA_A100 GPU's on Google's vertex AI platform.
The following hyperparameters were used during training: