OPUS-MT English to Somali Fine-Tuned

This model is a fine-tuned version of the English-to-Somali Seq2Seq translation model (opus-mt-en-so), trained using specialized parallel datasets. It has been optimized using bfloat16 precision and is designed to translate English text into natural, grammatical Somali.

Model Description

  • Developer: maanka2
  • Model Type: Seq2Seq Translation (Marian Architecture)
  • Language Pair: English to Somali (en-so)
  • License: apache-2.0
  • Primary Use Case: Text-to-Text generation for translation tasks

Training Details

The model was trained on parallel translation corpus data extracted from textual files aligned line-by-line.

How to Use

You can easily run inference with this model using the Hugging Face transformers library:

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

model_id = "maanka2/opus-mt-en-so-finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)

text = "Hello, how are you today?"
inputs = tokenizer(text, return_tensors="pt", max_length=128, truncation=True)
outputs = model.generate(**inputs)
translation = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translation)
Downloads last month
184
Safetensors
Model size
60.6M params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for maanka2/opus-mt-en-so-finetuned

Finetuned
(2)
this model

Dataset used to train maanka2/opus-mt-en-so-finetuned

Space using maanka2/opus-mt-en-so-finetuned 1