generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Refactor DPO data processing #2209
Merged
Merged
Changes from 52 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
af1dabf
in progress
qgallouedec 60d1326
Merge branch 'main' into refactor-dpo-data
qgallouedec 6a51014
Merge branch 'main' into refactor-dpo-data
qgallouedec 9bcbae1
Merge branch 'main' into refactor-dpo-data
qgallouedec 0f76eb5
refactor concatenated_inputs and concatenated_forward
qgallouedec fe1ed25
progress
qgallouedec bfa363f
Merge branch 'main' into refactor-dpo-data
qgallouedec a7d355f
further modif
qgallouedec 05b30f9
padding side
qgallouedec e98dfda
eos prompt enc dec
qgallouedec 85c6ecc
prompt_padding_side
qgallouedec 3103585
drop prompt apdding side collator
qgallouedec b42305f
working on decoder only
qgallouedec 97aca6a
dpo trainer
qgallouedec 4fd879e
Merge branch 'main' into refactor-dpo-data
qgallouedec 8e64bd5
Fix loss_mask type conversion bug
qgallouedec 8f9e7fe
bad attention mask
qgallouedec 182e7c4
try to get the same tokens as main
qgallouedec bae1cf2
fix loss mask
qgallouedec 41618ce
Merge branch 'main' into refactor-dpo-data
qgallouedec d8aa817
fix unused col
qgallouedec 1b3c5b2
added comment
qgallouedec f880697
raise error when paddind token not set
qgallouedec ddf4b72
remove private method tests
qgallouedec 9673410
initial vlm support
qgallouedec fa49958
make it work for paligemma
qgallouedec 139334e
minor test updates
qgallouedec a266fae
style
qgallouedec b95613b
improve readibility
qgallouedec 82c1030
improve doc
qgallouedec ba83156
style
qgallouedec 1aeb67e
flush left and truncate
qgallouedec 6d02c9f
flush left in the code
qgallouedec c23224d
fix empty_cols and make max_length optional
qgallouedec 2491214
always add eos token
qgallouedec 4a545c5
Merge branch 'main' into refactor-dpo-data
qgallouedec 03f6d88
Merge branch 'refactor-dpo-data' of https://github.com/huggingface/tr…
qgallouedec 3984d38
minor changes and doc
qgallouedec fc6f5ef
style
qgallouedec 7b09ec6
fix docstring
qgallouedec 0091c21
preference collator in doc
qgallouedec 27877cc
fix doc
qgallouedec f3a3532
optional max_completion_length
qgallouedec 0c94b9a
Investigating CI failing
qgallouedec 1c4a410
style
qgallouedec 931c68e
just dpo trainer test
qgallouedec 33cdee5
just idefics
qgallouedec bab8c33
paligemma
qgallouedec 972c7ed
llava
qgallouedec 1bb3a88
test cli
qgallouedec b3fc10a
dataset in test
qgallouedec 9824f16
all tests
qgallouedec f7316de
Update trl/trainer/dpo_trainer.py
qgallouedec 7a5ae0c
Update trl/trainer/dpo_trainer.py
qgallouedec fe9bea7
Update trl/trainer/dpo_trainer.py
qgallouedec 4ca58d9
Update trl/trainer/dpo_trainer.py
qgallouedec e509549
reference to ref
qgallouedec 1a813ef
Merge branch 'refactor-dpo-data' of https://github.com/huggingface/tr…
qgallouedec 10cec4e
Merge branch 'main' into refactor-dpo-data
qgallouedec e513fa8
rich descriptions
qgallouedec 5ce1461
fix logits reporting
qgallouedec 5a362e3
fix truncation
qgallouedec 6145afb
remove chat template from dpo_vlm
qgallouedec 8c0c935
Merge branch 'main' into refactor-dpo-data
qgallouedec 979c5c5
`get_batch_sample` -> `generate_from_model[_and_ref]`
qgallouedec ada53cf
add `num_items_in_batch=None`
qgallouedec 10bffa0
`num_items_in_batch` in `training_step`
qgallouedec ca2d98f
Fix return type hint
qgallouedec 3692bc0
test tokenize row
qgallouedec e8dfc7c
Merge branch 'rename_get_batch_sample' into refactor-dpo-data
qgallouedec beb7547
fix test
qgallouedec 31d02cf
Merge branch 'main' into refactor-dpo-data
qgallouedec 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
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.
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.
Otherwise it truncates the image tokens