-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add DistillationTrainer for efficient on-policy distillation
#5407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 18 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
ffde2d0
Use `VLLMGeneration` in `GOLDTrainer`
cmpatino 1797fc1
Update with precommit
cmpatino f723677
Initial `DistillationTrainer` implementation
cmpatino b629987
Fix how we handle padding and special tokens
cmpatino 6746237
Initial implementation of distillation trainer
cmpatino cdc3196
Address concern about vllm weight sync
cmpatino f4c193e
Run precommit
cmpatino 2b41f84
Fix max len behavior for generation
cmpatino 91715cb
Format docstring
cmpatino 0ded0db
Merge branch 'kd-vllm-generation' into kd-distillation-trainer
cmpatino b8754db
Fix data collation issue
cmpatino b94fc1f
Remove decode -> re-tokenization roundtrip
cmpatino dcfce59
Run precommit
cmpatino ff81a89
Add check for tokenizers and prompt length
cmpatino d075a1e
Merge branch 'kd-vllm-generation' into kd-distillation-trainer
cmpatino 6eeaa8f
Merge branch 'kd-distillation-trainer' of github.com:cmpatino/trl int…
cmpatino f5fc947
Implement efficient logprob generation
cmpatino 42f3d4d
Fix top-k implementation
cmpatino 4a00c68
Merge branch 'main' into kd-distillation-trainer
cmpatino d13bc4a
Migrate trainer to experimental
cmpatino 64fdafd
Fix reverse KL calculation for top-1
cmpatino 2730c58
Merge branch 'main' into kd-distillation-trainer
cmpatino 0d4bd05
Run precommit
cmpatino 59aa007
Address cursor comments
cmpatino 91bffa4
Fix reverse KL computation
cmpatino 6d0fe13
Add `DistillationTrainer` to table of contents
cmpatino b55996e
Remove `DistillationTrainer` from toc
cmpatino 9727ec7
Tighten logic for different top-k scenarios
cmpatino 939b53b
Add tail bucket to reverse KL + server case
cmpatino 47eacd5
Merge branch 'main' into kd-distillation-trainer
cmpatino bcf21d2
Fix dead code when using full vocab for external teacher
cmpatino aaf47ad
Remove unused function
cmpatino 89a7b88
Add guard in config for liger + external teacher
cmpatino 16a5380
Tighten alignment logic
cmpatino 1c7b9de
Run precommit
cmpatino 3cb4bc3
Correct completion logic
cmpatino d1b97a8
Remove wandb config params
cmpatino 691f46c
Address Albert's comments
cmpatino 9ef9192
Run precommit
cmpatino bb2eee6
Address PR comments
cmpatino 088db42
Match behavior between local and external teacher when top-1 and bet…
cmpatino 90c6e81
Run precommit
cmpatino 864ba11
Address latest comments
cmpatino 0f65a7b
Merge branch 'main' into kd-distillation-trainer
cmpatino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.