Skip to content

Move the MOPD example to its own folder and add a README - #8101

Merged
sergiopaniego merged 3 commits into
mainfrom
move-mopd-example
Nov 5, 2026
Merged

sergiopaniego merged 3 commits into
mainfrom
move-mopd-example

Conversation

@sergiopaniego

@sergiopaniego sergiopaniego commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Moves the MOPD example out of examples/async_distillation_math into 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_math keeps the single-teacher example.

  • async_distillation_mopd.py and launcher.py move to examples/async_distillation_mopd/, with the paths updated in the launcher's TRAIN_SCRIPT_URL, the run commands and the AsyncDistillationTrainer docs.
  • The README goes from where the student starts, to routing each prompt with 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.md gets 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_math into examples/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_id routing, 4-GPU layout, HF Jobs one-liner, per-teacher token imbalance, and 60-step eval vs the paper). Doc links in async_distillation_trainer.md and launcher raw URLs now point at async_distillation_mopd/. example_overview.md lists async_distillation_math and async_distillation_mopd as 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.

@sergiopaniego
sergiopaniego marked this pull request as ready for review November 3, 2026 17:05
@qgallouedec
qgallouedec requested a review from cmpatino November 4, 2026 05:11

@cmpatino cmpatino left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@bot-ci-comment

bot-ci-comment Bot commented Nov 5, 2026

Copy link
Copy Markdown

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.

@sergiopaniego
sergiopaniego merged commit 86debad into main Nov 5, 2026
12 checks passed
@sergiopaniego
sergiopaniego deleted the move-mopd-example branch November 5, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants