-
Notifications
You must be signed in to change notification settings - Fork 2.8k
🔮 Native VLM support for SFTTrainer
#3862
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 29 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
ea2973d
initial commit
qgallouedec 0f9aa4c
Merge branch 'main' into native-vlm-support
qgallouedec f72dd39
proper image token ids
qgallouedec 3b78c35
fix tiny model
qgallouedec 95d7767
consistency
qgallouedec 3c5aab9
fix tiny model
qgallouedec d4a5f67
fix test
qgallouedec 590f997
this should work
qgallouedec 015fd2b
fix gemma
qgallouedec c124d73
Merge branch 'main' into native-vlm-support
sergiopaniego 1b76e66
Merge branch 'main' into native-vlm-support
kashif 533ba8c
dtype check and scripts update
sergiopaniego 1b967c4
add vision requirement to test_train_vlm in SFTTrainerTester2
qgallouedec 4f677fa
remove force option from push_to_hub in generate_tiny_models.py
qgallouedec d4a122b
add test case for tiny-Qwen2VLForConditionalGeneration in SFTTrainerT…
qgallouedec 7207802
generate idefics3
qgallouedec 5c53f48
update test
qgallouedec 9cabca2
a lot better
qgallouedec aea083d
Merge branch 'main' into native-vlm-support
qgallouedec fda5c1e
Update trl/trainer/sft_trainer.py
qgallouedec fb203ff
Update scripts/generate_tiny_models.py
qgallouedec 8d5ff49
clean test
qgallouedec df05be1
Add llava_instruct_mix.py dataset processing script
qgallouedec b9a01a2
doc
qgallouedec 230d691
update doc
qgallouedec 0ed5e80
fix llava mix dataset
qgallouedec 329667c
fix doc
qgallouedec 3b99cee
remove training vlm sft
qgallouedec 8aa2381
imageS
qgallouedec 4be3118
Update docs/source/sft_trainer.md
qgallouedec e06b2fb
Small docs nits
sergiopaniego fbcc78d
Updated sft_vlm.py example
sergiopaniego 055a86a
Merge branch 'main' into native-vlm-support
qgallouedec 15a2605
Merge branch 'main' into native-vlm-support
qgallouedec 30b7a2d
Merge branch 'main' into native-vlm-support
qgallouedec dbc4b65
Merge branch 'main' into native-vlm-support
qgallouedec fa05ed2
style
qgallouedec 3ae6682
ignore failing test
qgallouedec f9c1fec
Clarify behavior of `skip_prepare_dataset` for VLM models in SFTConfi…
qgallouedec 089b732
Add documentation for DataCollator classes in SFTTrainer
qgallouedec e9c3b82
new tiny style
qgallouedec 7c070b9
mnior + clean
qgallouedec e8ef1d3
fix tiny qwen2
qgallouedec eb22b9c
fix doc and comments
qgallouedec 13ed3ee
final example cleaning
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 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.