Translation Models
Collection
Main releases • 4 items • Updated
How to use burkimbia/BIA-MISTRAL-7B-SACHI 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="burkimbia/BIA-MISTRAL-7B-SACHI") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("burkimbia/BIA-MISTRAL-7B-SACHI", dtype="auto")How to use burkimbia/BIA-MISTRAL-7B-SACHI with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for burkimbia/BIA-MISTRAL-7B-SACHI to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for burkimbia/BIA-MISTRAL-7B-SACHI to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for burkimbia/BIA-MISTRAL-7B-SACHI to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="burkimbia/BIA-MISTRAL-7B-SACHI",
max_seq_length=2048,
)BIA-MISTRAL-SACHI is a fine-tuned Mistral-Instruct model for high-quality machine translation between French and Moore (Mooré), a major language of Burkina Faso. This model leverages the Mistral architecture and instruction tuning for accurate, context-aware translation in both directions.
fra), Moore (mos)from inference.translators.mistral import MistralTranslator, Mistral
translator = MistralTranslator("burkimbia/BIA-MISTRAL-SACHI")
# Or simply:
mistral = Mistral("burkimbia/BIA-MISTRAL-SACHI")
# Translate French to Moore
translated = mistral.translate(
text="Bonjour, comment allez-vous?",
src_lang="fra_Latn",
tgt_lang="moor_Latn"
)
print(translated)
# Translate Moore to French
translated = mistral.translate(
text="Laafi bala?",
src_lang="moor_Latn",
tgt_lang="fra_Latn"
)
print(translated)
If you use this model in your research, please cite:
@misc{bia-mistral-sachi,
title={BIA-MISTRAL-SACHI: French↔Moore Translation Model},
author={Salif SAWADOGO at Burkimbia},
year={2025},
howpublished={\url{https://huggingface.co/burkimbia/BIA-MISTRAL-SACHI}}
}
Base model
mistralai/Mistral-7B-v0.3