generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
DPO trainer supports num_logits_to_keep to save memory #2129
Merged
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
72d4647
Support num_logits_to_keep, which computes necessary logits in the fo…
xyangk f1ea892
Merge branch 'huggingface:main' into main
xyangk 13cb564
update doc
xyangk 89cc2fc
Merge branch 'main' of github.com:xyangk/trl
xyangk efb12cb
bug fix
xyangk 2348948
Merge branch 'huggingface:main' into main
xyangk 88ccdd0
Merge branch 'main' into keep_necessary_logits
xyangk 1b21865
update
xyangk 03b1b67
check is model supports num_logits_to_keep
xyangk 96a37ae
Merge branch 'main' into keep_necessary_logits
xyangk bd0490d
Merge branch 'main' into keep_necessary_logits
xyangk 1ede5e7
Merge branch 'huggingface:main' into main
xyangk 802f366
Merge branch 'main' into keep_necessary_logits
kashif 6ca9cbe
ruff format
xyangk 2b240a0
Merge branch 'keep_necessary_logits' of github.com:xyangk/trl into ke…
xyangk 3adf9ab
Merge branch 'huggingface:main' into main
xyangk 5bc196d
precommit
xyangk 2877cff
Merge branch 'main' into keep_necessary_logits
xyangk 1e55540
Merge branch 'huggingface:main' into main
xyangk 15a73e2
Merge branch 'main' into keep_necessary_logits
kashif f2ac776
update test file
xyangk 4790868
Merge branch 'keep_necessary_logits' of github.com:xyangk/trl into ke…
xyangk cbe58bb
peft model support
xyangk 725ccf0
test passed
xyangk e5e0605
Merge branch 'main' into keep_necessary_logits
kashif 4815b75
Merge branch 'huggingface:main' into main
xyangk 273f519
Merge branch 'huggingface:main' into main
xyangk aaf889a
Merge branch 'main' into keep_necessary_logits
xyangk fa043e5
Merge branch 'keep_necessary_logits' of github.com:xyangk/trl into ke…
xyangk aff9955
Merge branch 'main' into keep_necessary_logits
kashif d385930
Merge branch 'main' into keep_necessary_logits
kashif ed78dc4
Merge branch 'huggingface:main' into main
xyangk 86b81db
Merge branch 'main' into keep_necessary_logits
xyangk d1ada50
update
xyangk 6512445
Merge branch 'keep_necessary_logits' of github.com:xyangk/trl into ke…
xyangk 56c5c22
Merge branch 'main' into keep_necessary_logits
xyangk a75e4a2
Merge branch 'main' of github.com:xyangk/trl
xyangk c583b57
Merge branch 'main' into keep_necessary_logits
xyangk 56241e0
apply use_num_logits_to_keep
xyangk dfb2fa9
fix num_logits_to_keep compute bug
xyangk 9e9e2ef
compare all outputs
xyangk 858d404
pytest
xyangk 4e37726
Merge branch 'main' into keep_necessary_logits
xyangk dc7849a
pass test
xyangk a3984dc
Merge branch 'keep_necessary_logits' of github.com:xyangk/trl into ke…
xyangk 4debb1d
Merge branch 'main' into keep_necessary_logits
xyangk 1ab1bd9
Merge branch 'main' into keep_necessary_logits
xyangk 664c823
Merge branch 'main' into keep_necessary_logits
xyangk 3e61e4c
Merge branch 'main' into keep_necessary_logits
kashif 70838a7
use check_min_version
xyangk c4b5c4f
format
xyangk 32ed085
test_dpo_trainer_use_num_logits_to_keep passed
xyangk 77c1fd5
Merge branch 'main' into keep_necessary_logits
kashif f3c044e
add some comments
xyangk 90324f3
Merge branch 'main' into keep_necessary_logits
kashif 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 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need it
https://github.com/huggingface/trl/blob/main/setup.py#L82
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I missed that the transformers version was already updated. Since the current PR is already merged, I'll create a new PR to remove the version check. Thank you for cathing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#2343