Instructions to use xiaomi-research/MiLMMT-46-12B-v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xiaomi-research/MiLMMT-46-12B-v1.0 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="xiaomi-research/MiLMMT-46-12B-v1.0")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("xiaomi-research/MiLMMT-46-12B-v1.0") model = AutoModelForMultimodalLM.from_pretrained("xiaomi-research/MiLMMT-46-12B-v1.0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model Description
MiLMMT-46-12B-v1.0 is an LLM-based translation model. Its training builds on Gemma3-12B through three stages: (1) continual pretraining on 143 billion tokens of monolingual and parallel data across 46 languages, yielding MiLMMT-46-12B-Pretrain; (2) supervised finetuning, yielding MiLMMT-46-12B-v0.1; and (3) reinforcement learning (RL), yielding this model, MiLMMT-46-12B-v1.0.
- Supported Languages: Arabic, Azerbaijani, Bulgarian, Bengali, Catalan, Czech, Danish, German, Greek, English, Spanish, Persian, Finnish, French, Hebrew, Hindi, Croatian, Hungarian, Indonesian, Italian, Japanese, Kazakh, Khmer, Korean, Lao, Malay, Burmese, Norwegian, Dutch, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Swedish, Tamil, Thai, Tagalog, Turkish, Urdu, Uzbek, Vietnamese, Cantonese, Chinese (Simplified), Chinese (Traditional).
- GitHub: Please find more details in our GitHub repository.
- Developed by: Xiaomi Inc.
Model Performance
Translation Prompt
Translate this from <source language name> to <target language name>:
<source language name>: <source language sentence>
<target language name>:
Please use the language name specified above in the translation prompt.
Run the model
Using on vLLM:
from vllm import LLM, SamplingParams
model_id = "xiaomi-research/MiLMMT-46-12B-v1.0"
model = LLM(model=model_id)
sampling_params = SamplingParams(top_k=1, temperature=0, max_tokens=2048)
text = "Translate this from Chinese (Simplified) to English:\nChinese (Simplified): 我爱机器翻译\nEnglish:"
outputs = model.generate(text, sampling_params)
print(outputs[0].outputs[0].text)
Using on Transformers:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "xiaomi-research/MiLMMT-46-12B-v1.0"
model = AutoModelForCausalLM.from_pretrained(model_id)
tokenizer = AutoTokenizer.from_pretrained(model_id)
text = "Translate this from Chinese (Simplified) to English:\nChinese (Simplified): 我爱机器翻译\nEnglish:"
inputs = tokenizer(text, add_special_tokens=False, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=1024)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Citation
@misc{shang2026scalingmodeldatamultilingual,
title={Scaling Model and Data for Multilingual Machine Translation with Open Large Language Models},
author={Yuzhe Shang and Pengzhi Gao and Wei Liu and Jian Luan and Jinsong Su},
year={2026},
eprint={2602.11961},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2602.11961},
}
Limitations
MiLMMT-46 currently supports only the 46 languages listed above, and strong translation performance is not guaranteed for other languages. We will continue to improve the translation quality of MiLMMT-46, and future model releases will follow in due course.
- Downloads last month
- -
Model tree for xiaomi-research/MiLMMT-46-12B-v1.0
Base model
google/gemma-3-12b-pt