Hugging Face TRL Adds Multi-Teacher Distillation That Lets Each Prompt Learn From Its Own Expert

Hugging Face's TRL library now supports Multi-Teacher On-Policy Distillation (MOPD) through AsyncDistillationTrainer. Instead of distilling one teacher into a student, MOPD routes every prompt to the expert teacher for its domain, a recipe already used by Xiaomi, DeepSeek, Moonshot, NVIDIA, Liquid AI and Mistral.

Training a single model to be good at everything has always involved a compromise. A teacher that excels at mathematics rarely writes the clearest instructions, and a model tuned for agentic tool use may be a mediocre coder. Hugging Face's TRL library now gives practitioners a way out of that compromise. In a post published on 3 November 2026, Hugging Face announced support for Multi-Teacher On-Policy Distillation, or MOPD, through its new AsyncDistillationTrainer. Support for the synchronous DistillationTrainer is still to come, but the asynchronous path is available now.

MOPD works as a three-stage post-training recipe. First comes one general supervised fine-tuning model. Then, instead of pushing that model further in every direction at once, trainers build a separate reinforcement learning expert for each domain: mathematics, code, instruction following and agentic tasks among them. The final fusion stage is where the idea earns its name. The student generates answers to prompts, and the expert for each prompt's domain scores those answers token by token using reverse KL. Every prompt, in other words, learns from the teacher that actually knows its subject.

This is not a laboratory curiosity. The same recipe sits behind some of the most talked-about recent releases, including Xiaomi's MiMo-V2-Flash, and Hugging Face names DeepSeek, Moonshot, NVIDIA, Liquid AI and Mistral among the labs using it. The post's worked example makes the payoff concrete. Using Open-MOPD experts with SmolLM3-3B, just 60 steps lifted AIME24 from 17.5 to 24.2 and AIME25 from 19.2 to 22.5, while IFEval rose from 67.5 to 73.0.

There is one warning worth taking seriously before adopting the recipe. Token counts do not follow prompt counts. In the example, instruction following supplied 20% of the prompts yet accounted for only 1-3% of the trained tokens, because its responses are far shorter than a long mathematical derivation. Teams that balance their prompt mix without watching token share will quietly under-train exactly the skills they thought they were covering. MOPD solves the problem of who teaches what. It does not remove the need to watch how much teaching each skill actually receives.

Read the original · huggingface.co

Share