Instructions to use ljvmiranda921/PolyglotTeachers-Multilingual-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ljvmiranda921/PolyglotTeachers-Multilingual-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ljvmiranda921/PolyglotTeachers-Multilingual-Instruct")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ljvmiranda921/PolyglotTeachers-Multilingual-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ljvmiranda921/PolyglotTeachers-Multilingual-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ljvmiranda921/PolyglotTeachers-Multilingual-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ljvmiranda921/PolyglotTeachers-Multilingual-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ljvmiranda921/PolyglotTeachers-Multilingual-Instruct
- SGLang
How to use ljvmiranda921/PolyglotTeachers-Multilingual-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ljvmiranda921/PolyglotTeachers-Multilingual-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ljvmiranda921/PolyglotTeachers-Multilingual-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ljvmiranda921/PolyglotTeachers-Multilingual-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ljvmiranda921/PolyglotTeachers-Multilingual-Instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ljvmiranda921/PolyglotTeachers-Multilingual-Instruct with Docker Model Runner:
docker model run hf.co/ljvmiranda921/PolyglotTeachers-Multilingual-Instruct
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("ljvmiranda921/PolyglotTeachers-Multilingual-Instruct", device_map="auto")
Website: ljvmiranda921.github.io/polyglot-teachers/
Multilingual Instruct Models (Polyglot Teachers)
These are per-language models supervised fine-tuned on the synthetic data generated in the Polyglot Teachers project (see ljvmiranda921/PolyglotTeachers-SFT-Synth).
Load a specific model by passing the branch as the revision:
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "ljvmiranda921/Polyglot-SFT-Multilingual"
branch = "Polyglot-OLMo3-7B-SFT-ar" # pick any branch below
model = AutoModelForCausalLM.from_pretrained(repo, revision=branch)
tokenizer = AutoTokenizer.from_pretrained(repo, revision=branch)
Branches
| Branch | Description |
|---|---|
Polyglot-Gemma3-4B-SFT-ar |
Gemma-3 4B SFT β Arabic |
Polyglot-Gemma3-4B-SFT-de |
Gemma-3 4B SFT β German |
Polyglot-Gemma3-4B-SFT-id |
Gemma-3 4B SFT β Indonesian |
Polyglot-Gemma3-4B-SFT-tl |
Gemma-3 4B SFT β Tagalog |
Polyglot-OLMo3-7B-SFT-ar |
OLMo-3 7B SFT β Arabic |
Polyglot-OLMo3-7B-SFT-cs |
OLMo-3 7B SFT β Czech |
Polyglot-OLMo3-7B-SFT-de |
OLMo-3 7B SFT β German |
Polyglot-OLMo3-7B-SFT-es |
OLMo-3 7B SFT β Spanish |
Polyglot-OLMo3-7B-SFT-id |
OLMo-3 7B SFT β Indonesian |
Polyglot-OLMo3-7B-SFT-ja |
OLMo-3 7B SFT β Japanese |
Licensing
This repo holds models under different licenses; each branch follows its base model's license:
Polyglot-OLMo3-7B-SFT-*(base allenai/Olmo-3-1025-7B) β Apache-2.0Polyglot-Gemma3-4B-SFT-*(base google/gemma-3-4b-pt) β Gemma license
Acknowledgements
LJVM and AK acknowledge the support of the UKRI Frontier Grant EP/Y031350/1 (EQUATE). This work was performed using joint resources provided by the Cambridge Service for Data Driven Discovery (CSD3) EP/T022159/1 and the Isambard AI National AI Research Resource (AIRR) ST/AIRR/I-A-I/1023, and the Microsoft Research Grant. LJVM would also like to thank Songbo Hu, Chen Cecilia Liu, Millicent Ochieng, and Felermino Ali for helpful and productive discussions on the project.
Citation
@inproceedings{miranda-etal-2026-polyglot,
title = "Polyglot Teachers: Evaluating Language Models for Multilingual Synthetic Data Generation",
author = "Miranda, Lester James Validad and
Vuli{\'c}, Ivan and
Korhonen, Anna",
editor = "Lee, Hung-Yi and
Dev, Sunipa and
Li, Jessy and
Elliott, Desmond",
booktitle = "Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing",
month = oct,
year = "2026",
address = "Budapest, Hungary",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.emnlp-main.440/",
pages = "10116--10144",
ISBN = "979-8-89176-459-0",
abstract = "Synthesizing supervised finetuning (SFT) data from language models (LMs) to teach smaller models multilingual tasks has become increasingly common. However, teacher model selection is often ad hoc, typically defaulting to the largest available option, even though such models may have significant capability gaps in non-English languages. This practice can result in poor-quality synthetic data and suboptimal student downstream performance. In this work, we systematically characterize what makes an effective multilingual teacher. We combine intrinsic measures of data quality with extrinsic student model performance in a metric we call Polyglot Score. We evaluate 10 LMs across 6 typologically diverse languages, generating over 1.4M SFT examples and training 240 student models. Our analyses reveal that model scale alone does not significantly predict teacher effectiveness: the most effective teachers we identify are consistently smaller than the largest models evaluated, and their ranking is stable across student base model families. Instead, data qualities such as prompt diversity, length, and response fluency capture 93.3{\%} of the variance in intrinsic data quality and predict student performance. Finally, we provide practical recommendations, including matching the model families of teacher-student pairs and generating responses to existing prompts or translating them from English, which can yield improvements for less-resourced languages. We hope that our work advances data-centric research in multilingual synthetic data and LM development."
}
Model tree for ljvmiranda921/PolyglotTeachers-Multilingual-Instruct
Base model
allenai/Olmo-3-1025-7B
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ljvmiranda921/PolyglotTeachers-Multilingual-Instruct")