MOPD: how frontier labs merge RL experts into one model and how to do it using TRL
by Hugging Face (Sergio Paniego)
Multi-teacher on-policy distillation (MOPD) explained, then run end to end with TRL's AsyncDistillationTrainer on SmolLM3-3B.
Overview
Published November 3, 2026 by Sergio Paniego of Hugging Face, this tutorial covers multi-teacher on-policy distillation (MOPD), the technique Xiaomi named for MiMo-V2-Flash in January 2026. It is organised in four sections. "What is MOPD?" lays out the three-stage recipe: general SFT on mixed data, one RL expert per domain (math, code, instruction following, agentic), then fusion, where the student learns token by token from the expert matched to each prompt using a dense reverse-KL signal on its own samples. It also compares how much of the teacher distribution each lab uses, from the sampled token only (Nemotron 3 Ultra, MiMo-V2-Flash) to the top 16 tokens (Open-MOPD) to the full vocabulary (DeepSeek-V4, Mistral Large 4). "Who uses it" tabulates releases from GLM-5 through Kimi K3 and Mistral Large 4. "MOPD in TRL" is the code: the experimental AsyncDistillationTrainer, a teacher_id column that routes each prompt, an AsyncDistillationConfig with one vLLM server URL per teacher, a SmolLM3-3B MixSFT student and three GRPO-trained teachers from the Open-MOPD release. Subsections cover the 4x H200 GPU layout on HF Jobs and the per-teacher token-share metrics. A 60-step run lifts AIME24 from 17.5 to 24.2 and IFEval from 67.5 to 73.0, and the post reports the Open-MOPD paper's final numbers next to them.
At a Glance
- Topic
- Fine-Tuning
- Level
- Advanced
- Format
- Tutorial
- Cost
- Free
- Duration
- ~12 min read; reproducing the example takes a 4x H200 HF Jobs run with a 6h timeout
- Provider
- Hugging Face (Sergio Paniego)
- Hands-on
- Yes — code/exercises
- Certificate
- None
What You’ll Learn
- ✓How the three MOPD stages fit together: mixed SFT, per-domain RL experts, then fusion into one student
- ✓Why on-policy reverse-KL distillation gives a denser training signal than sparse RL rewards
- ✓How labs differ in teacher signal, from sampled-token probability to top-16 to full-vocabulary distributions
- ✓How to configure TRL's AsyncDistillationTrainer with one vLLM teacher server per domain and a teacher_id routing column
- ✓How to set beta and teacher_top_k, and why top-k only matters for forward KL
- ✓How to split five processes across four H200 GPUs and launch the run with hf jobs uv run
- ✓How to read teacher_jsd and teacher_token_frac to catch a domain that gets prompts but almost no tokens
- ✓How to compare a short run against the starting SFT checkpoint on AIME24, AIME25 and IFEval
Highlights
- •Runnable scripts (async_distillation_mopd.py and launcher.py) live in the official TRL repo examples folder
- •Uses the public Open-MOPD student, teachers and prompt mix, so the experiment can be reproduced without training your own experts
- •Reports honest numbers from a 60-step run (about 1% of the paper's training), including that code was not evaluated
- •Surfaces a real failure mode: instruction-following got 20% of prompts but only 1 to 3% of training tokens
- •Includes a dated table of which 2026 frontier releases used MOPD and how many teachers each one used
Who It’s For
Best For
- ✓Post-training engineers merging several RL-tuned specialist checkpoints into one deployable model
- ✓Teams already using TRL for SFT or GRPO who want to try on-policy distillation
- ✓Researchers reading DeepSeek-V4, Kimi K3 or Nemotron 3 Ultra technical reports who want the mechanics in code
Prerequisites
- •Working knowledge of SFT, GRPO-style RL and KL divergence
- •Experience with Hugging Face TRL and serving models with vLLM
- •Access to multi-GPU hardware (the example uses 4x H200) to reproduce rather than just read
FAQ
What is MOPD: how frontier labs merge RL experts into one model and how to do it using TRL?
A hands-on Hugging Face tutorial on multi-teacher on-policy distillation (MOPD), the post-training recipe that folds separate RL-trained domain experts back into one student model. It is for engineers who already run SFT or GRPO and want to reproduce the technique with TRL, using three expert teachers served with vLLM on Hugging Face Jobs.
Is MOPD: how frontier labs merge RL experts into one model and how to do it using TRL free?
MOPD: how frontier labs merge RL experts into one model and how to do it using TRL is free to access.
What level is MOPD: how frontier labs merge RL experts into one model and how to do it using TRL for?
MOPD: how frontier labs merge RL experts into one model and how to do it using TRL is aimed at a advanced audience. Recommended background: Working knowledge of SFT, GRPO-style RL and KL divergence, Experience with Hugging Face TRL and serving models with vLLM, Access to multi-GPU hardware (the example uses 4x H200) to reproduce rather than just read.
How long does MOPD: how frontier labs merge RL experts into one model and how to do it using TRL take?
Expect roughly ~12 min read; reproducing the example takes a 4x H200 HF Jobs run with a 6h timeout. Most learners work through it at their own pace.
What will I learn from MOPD: how frontier labs merge RL experts into one model and how to do it using TRL?
You'll learn: How the three MOPD stages fit together: mixed SFT, per-domain RL experts, then fusion into one student; Why on-policy reverse-KL distillation gives a denser training signal than sparse RL rewards; How labs differ in teacher signal, from sampled-token probability to top-16 to full-vocabulary distributions; How to configure TRL's AsyncDistillationTrainer with one vLLM teacher server per domain and a teacher_id routing column; How to set beta and teacher_top_k, and why top-k only matters for forward KL; How to split five processes across four H200 GPUs and launch the run with hf jobs uv run; How to read teacher_jsd and teacher_token_frac to catch a domain that gets prompts but almost no tokens; How to compare a short run against the starting SFT checkpoint on AIME24, AIME25 and IFEval.
Topics
Sources
This page was written from 4 sources, 2 on domains other than huggingface.co.