generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[GKD] Buffer Implementation for Distillation Trainer #5137
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
+726
−291
Merged
Changes from 25 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
719c644
Implement buffer for GOLDTrainer
cmpatino 904378b
Clean up code from KD buffer
cmpatino 6a2ece5
Test scripts for trial run
cmpatino ee07aec
Apply fixes to the Liger loss setting
cmpatino a3fd2af
Remove test scripts
cmpatino b0669d9
Handle config parameters better in gold script
cmpatino b0c4f3e
Upload provisional SLURM script for GOLD
cmpatino 602e564
Refine logic and comments
cmpatino c4f9a64
Improve clarity of buffer implementation
cmpatino 111b85e
Add validation for num_generations
cmpatino 022af62
Add clarifying comment to num_generations
cmpatino 33e0a82
Patch issue with ZeRO-3
cmpatino dbb6e70
Refactor context for ZeRO-3 + Liger
cmpatino 9da54b3
Simplify comments and code logic
cmpatino 1cec9ea
Merge pull request #1 from cmpatino/kd-buffer-fix
cmpatino 4435409
Add scripts to run GOLD
cmpatino ce41aba
Merge pull request #2 from cmpatino/kd-buffer-fix
cmpatino c0a857f
Merge branch 'kd-buffering' of github.com:cmpatino/trl into kd-buffering
cmpatino fa62472
Merge branch 'main' into kd-buffering
cmpatino 31161a0
Refactor to simplify logic
cmpatino da7ef50
Handle student versioning params
cmpatino e24e681
Add warning when dropping incomplete batches
cmpatino 8d31b7a
Add clarifying note in docs
cmpatino 1ef205b
Remove SLURM script used for testing
cmpatino 506afc1
Remove reference to wandb
cmpatino 7e9cb5e
Merge branch 'main' into kd-buffering
lewtun 98ec20c
Remove `_RepeatEachBatchDataLoader` to simplify codebase
cmpatino f89e77f
Merge branch 'kd-buffering' of github.com:cmpatino/trl into kd-buffering
cmpatino da57e47
Remove support for student_model_revision arg
cmpatino c3a8d73
Fix prompt length calculation
cmpatino d185716
Fix logic of padding tokens and prompt lengths
cmpatino 30a0fd5
Add `teacher_model_revision` arg
cmpatino 58b9f74
Avoid creating padding gaps
cmpatino c8cd1f0
Merge branch 'main' into kd-buffering
cmpatino ea72770
Fix prompt completion calculation for transformers
cmpatino 1cbdc32
Merge branch 'kd-buffering' of github.com:cmpatino/trl into kd-buffering
cmpatino 6fea90b
Lint files with precommit
cmpatino bfa7406
Remove reference to `student_model_revision`
cmpatino d4d5ae2
Remove duplicated arg in config
cmpatino abfadc1
Update test to reflect full generated output from transformers
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
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.