Helsinki-NLP Fine-Tuned Model (Arabic โ†’ English)

This model is a fine-tuned version of Helsinki-NLP/opus-mt-ar-en on a custom dataset.

Model Details

  • Source language: Arabic (ar)
  • Target language: English (en)
  • Fine-tuned on: Custom dataset for e-commerce translations
  • Base model: Helsinki-NLP/opus-mt-ar-en

How to Use

You can use this model with the transformers library:

from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

model_name = "LuigiJoseph/Helsinki-ar-en-ft"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)

text = "ู…ุฑุญุจุง ุจุงู„ุนุงู„ู…, ูƒูŠู ุญุงู„ูƒุŸ"
inputs = tokenizer.encode(text, return_tensors="pt")
outputs = model.generate(inputs)
translation = tokenizer.decode(outputs[0], skip_special_tokens=True)

print(translation)  # English translations

Evaluation Metrics

The performance of the base model and the fine-tuned model was measured using the BLEU metric:

Model BLEU Score
Base Model (Helsinki-NLP/opus-mt-ar-en) 42.85
Fine-Tuned Model (this one) 80.79
Downloads last month
22
Safetensors
Model size
76.4M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for LuigiJoseph/Helsinki-ar-en-ft

Finetuned
(27)
this model