Skip to content

feat(mopd): support multiple teacher checkpoints in full-vocabulary o… - #4045

Draft
RayenTian wants to merge 1 commit into
ruit/mopd_full_vocabulary_v2from
ruit/full_vocab_v2_multi_teacher
Draft

feat(mopd): support multiple teacher checkpoints in full-vocabulary o…#4045
RayenTian wants to merge 1 commit into
ruit/mopd_full_vocabulary_v2from
ruit/full_vocab_v2_multi_teacher

Conversation

@RayenTian

Copy link
Copy Markdown
Contributor

…pd_full

Drops the "exactly one unique teacher checkpoint" restriction on on_policy_distillation.full's hidden_states path. Each physical teacher gets a stable index; teacher worker groups tag every payload row they write with it (new OPD_FULL_TEACHER_INDEX_FIELD column); the student loads one LM-head shard per teacher (dict keyed by index, same offload/evict lifecycle as before) and groups a microbatch's rows by teacher_index to project each group through its own shard rather than requiring a single teacher for the whole run.

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

Issues

List issues that this PR closes (syntax):

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you run the unit tests and functional tests locally? Visit our Testing Guide for how to run tests
  • Did you add or update any necessary documentation? Visit our Document Development Guide for how to write, build and test the docs.

Additional Information

  • ...

…pd_full

Drops the "exactly one unique teacher checkpoint" restriction on
on_policy_distillation.full's hidden_states path. Each physical teacher
gets a stable index; teacher worker groups tag every payload row they
write with it (new OPD_FULL_TEACHER_INDEX_FIELD column); the student
loads one LM-head shard per teacher (dict keyed by index, same
offload/evict lifecycle as before) and groups a microbatch's rows by
teacher_index to project each group through its own shard rather than
requiring a single teacher for the whole run.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@copy-pr-bot

copy-pr-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

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.

1 participant