Repository navigation
Move the MOPD example to its own folder and add a README - #8101
Merged
Merged
Conversation
sergiopaniego
marked this pull request as ready for review
November 3, 2026 17:05
cmpatino
approved these changes
Nov 4, 2026
cmpatino
left a comment
Collaborator
There was a problem hiding this comment.
The changes look good, but some links in the blog post and model card break when the PR merges. They are outside this PR but leaving them here as a reference for when you're changing the links, @sergiopaniego.
| # | Where | Broken link | Who hits it | Importance | In the PR description? |
|---|---|---|---|---|---|
| 1 | Blog post | https://raw.githubusercontent.com/huggingface/trl/main/examples/async_distillation_math/launcher.py |
Anyone who copies the blog's one-command hf jobs uv run |
High. It's the blog's main "run it" command, and the job fails at startup with a 404. | Yes, to be updated after the merge |
| 2 | Blog post | https://github.com/huggingface/trl/blob/main/examples/async_distillation_math/launcher.py |
Readers who click through to read the launcher | Medium. It only 404s for readers, nothing fails, and the file is easy to find in the repo. | No, but same page as #1 |
| 3 | Blog post | https://github.com/huggingface/trl/blob/main/examples/async_distillation_math/async_distillation_mopd.py |
Readers who click through to read the training script | Medium. Same as #2. | No, but same page as #1 |
| 4 | Model card, "The training script is…" line | https://github.com/huggingface/trl/blob/main/examples/async_distillation_math/async_distillation_mopd.py |
Readers of the new README, which links this model from its results table | Low–medium. It's a dead end for anyone following the new README. | No |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the MOPD example out of
examples/async_distillation_mathinto its own folder, with a README that tells it as a story, like #8085 and the Wordle (#8099) and Sudoku (#8097) ones. It started as a variant of the GSM8K example, and since #8014 it fuses the Open-MOPD experts and has its own HF Jobs launcher.async_distillation_mathkeeps the single-teacher example.async_distillation_mopd.pyandlauncher.pymove toexamples/async_distillation_mopd/, with the paths updated in the launcher'sTRAIN_SCRIPT_URL, the run commands and the AsyncDistillationTrainer docs.teacher_id, the GPU layout and the one-command HF Jobs launch, the per-teacher token imbalance with its plot, and the eval of a 60-step run (AIME24 17.5 to 24.2, IFEval 67.5 to 73.0, next to the paper's final model). Our run stopped at step 60 and the script runs 90, which the README says.example_overview.mdgets one row per example.The MOPD blog post (https://huggingface.co/blog/sergiopaniego/mopd-trl) links the launcher's old raw URL, and I will update it when this merges.
Note
Low Risk
Example and documentation reorganization only; no changes to trainer or library code.
Overview
Moves the Open-MOPD multi-teacher example out of
examples/async_distillation_mathintoexamples/async_distillation_mopd/, leaving the GSM8K single-teacher script in the math folder.The new folder ships
async_distillation_mopd.py,launcher.py, and a narrative README (setup,teacher_idrouting, 4-GPU layout, HF Jobs one-liner, per-teacher token imbalance, and 60-step eval vs the paper). Doc links inasync_distillation_trainer.mdand launcher raw URLs now point atasync_distillation_mopd/.example_overview.mdlistsasync_distillation_mathandasync_distillation_mopdas separate rows, with MOPD called out explicitly instead of bundled into the math blurb.Reviewed by Cursor Bugbot for commit 5d659a3. Bugbot is set up for automated code reviews on this repo. Configure here.