Translation
Transformers
Safetensors
English
Wolof
marian
text2text-generation
machine-translation
low-resource
english
wolof
Eval Results (legacy)
Instructions to use LocaleNLP/eng_wolof with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LocaleNLP/eng_wolof 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="LocaleNLP/eng_wolof")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("LocaleNLP/eng_wolof") model = AutoModelForSeq2SeqLM.from_pretrained("LocaleNLP/eng_wolof", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature692e54b -
Update README.md
Verified signature0ee3c0a -
Update README.md
Verified signatured7b48bf
-
Create README.md
Verified signatureTraining Details Training Data Dataset: Custom parallel corpus of English ↔ Wolof Size: ~84,709 sentence pairs Preprocessing: Removed duplicates & missing values Normalized (lowercased, stripped extra spaces) Added language tag (>>wol<<) to English inputs Split: 80% train, 10% validation, 10% test Training Procedure Base model: Helsinki-NLP/opus-mt-en-mul Frameworks: Hugging Face Transformers, Datasets, PyTorch Batch size: 8 Learning rate: 1e-5 Epochs: 5 Mixed precision: fp16 Speeds, Sizes, Times Training device: Google Colab (GPU) Dataset size: 1.3 MB (Excel file) Model size: ~300MB after fine-tuning Evaluation Testing Data Test set from the custom English–Wolof dataset (~8.4k sentences). Metrics BLEU (train): 74.76 BLEU (test): 76.12 Accuracy (exact matches): ~calculated but BLEU preferred. Results The model demonstrates strong translation performance for Wolof given the low-resource context, achieving a BLEU score > 76 on test data. Environmental Impact H…406d3d4
-
Upload MarianMT model with tokenizers
Verified signaturecc6da5c -
initial commit
Verified signature5aedf35