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="shhossain/opus-mt-en-to-bn")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("shhossain/opus-mt-en-to-bn")
model = AutoModelForSeq2SeqLM.from_pretrained("shhossain/opus-mt-en-to-bn", device_map="auto")
Quick Links

English-Bengali Translation Model

This model is finetuned on Helsinki-NLP/opus-mt-en-inc for English to Bangla Translation.

  • Developed by: shhossain
  • Model type: [transformer-align]
  • Language(s) (NLP): [English, Bengali]
  • License: [apache-2.0]
  • Finetuned from model [Helsinki-NLP/opus-mt-en-inc]: Helsinki-NLP/opus-mt-en-inc

Use with transformers

from transformers import pipeline

pipe = pipeline("translation", model="shhossain/opus-mt-en-to-bn")
Downloads last month
202
Safetensors
Model size
75.8M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for shhossain/opus-mt-en-to-bn

Finetunes
1 model

Dataset used to train shhossain/opus-mt-en-to-bn

Spaces using shhossain/opus-mt-en-to-bn 14

Evaluation results