Translation
Transformers
Safetensors
English
Kabyle
marian
text2text-generation
mt
machine-translation
english
kabyle
berber
tamazight
taqbaylit
Eval Results (legacy)
Instructions to use boffire/marianmt-en-kab with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use boffire/marianmt-en-kab 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="boffire/marianmt-en-kab")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("boffire/marianmt-en-kab") model = AutoModelForSeq2SeqLM.from_pretrained("boffire/marianmt-en-kab") - Notebooks
- Google Colab
- Kaggle
MarianMT English to Kabyle Translation Model
This is a fine-tuned MarianMT model for translating from English (en) to Kabyle (kab), a northen african and a Tamaziɣt (Berber) language spoken primarily in Algeria (and some parts of the world).
Model Description
- Model Type: MarianMT (Transformer-based Neural Machine Translation)
- Architecture: Encoder-Decoder with 6 layers each
- Languages: English (en) → Kabyle (kab)
- Checkpoint: 24000 training steps
- Framework: PyTorch / Transformers
Intended Use
- Machine translation from English to Kabyle
- Research in low-resource language translation
- Applications supporting Kabyle language preservation and accessibility
How to Use
Quick Start with Pipeline
from transformers import pipeline
# Load the translation pipeline
translator = pipeline("translation", model="boffire/marianmt-en-kab", device=0)
# Translate text
result = translator("Hello, how are you?", max_length=128)
print(result[0]['translation_text'])
- Downloads last month
- 62
Space using boffire/marianmt-en-kab 1
Evaluation results
- bleu on Your Dataset Nameself-reported23.767
- chrf on Your Dataset Nameself-reported48.595