-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Uniformize model processors #31368
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
Uniformize model processors #31368
Changes from all commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
b85036f
add initial design for uniform processors + align model
molbap 1336931
add uniform processors for altclip + chinese_clip
molbap 691a298
add uniform processors for blip + blip2
molbap bb8ac70
fix mutable default :eyes:
molbap cd8c601
add configuration test
molbap f00c852
handle structured kwargs w defaults + add test
molbap 693036f
protect torch-specific test
molbap 766da3a
fix style
molbap 844394d
fix
molbap 7d860a0
rebase
molbap 7cb9925
update processor to generic kwargs + test
molbap ad4cbf7
fix style
molbap def56cd
add sensible kwargs merge
molbap 2e6b7e1
update test
molbap c19bbc6
fix assertEqual
molbap 3c38119
move kwargs merging to processing common
molbap 81ae819
rework kwargs for type hinting
molbap ce4abcd
just get Unpack from extensions
molbap 3acdf28
run-slow[align]
molbap 404239f
handle kwargs passed as nested dict
molbap 603be40
add from_pretrained test for nested kwargs handling
molbap 71c9d6c
[run-slow]align
molbap 26383c5
update documentation + imports
molbap 4521f4f
update audio inputs
molbap b96eb64
protect audio types, silly
molbap 9c5c01c
try removing imports
molbap 3ccb505
make things simpler
molbap 142acf3
simplerer
molbap 60a5730
move out kwargs test to common mixin
molbap be6c141
[run-slow]align
molbap 84135d7
skip tests for old processors
molbap ce967ac
[run-slow]align, clip
molbap f78ec52
!$#@!! protect imports, darn it
molbap 52fd5ad
[run-slow]align, clip
molbap 8f21abe
Merge branch 'main' into uniform_processors_1
molbap d510030
[run-slow]align, clip
molbap b2f0336
fix conflicts
molbap 40c8a0b
update common processor testing
molbap 2e19860
add altclip
molbap 06b7ae2
add chinese_clip
molbap 2e58518
add pad_size
molbap aa7a68c
[run-slow]align, clip, chinese_clip, altclip
molbap f0ca955
remove duplicated tests
molbap 7f61246
fix
molbap 0372def
Merge branch 'uniform_processors_2' into uniform_processors_3
molbap a8249e7
add blip, blip2, bridgetower
molbap c283836
fix
molbap fd43bcd
update doc
molbap b2cd7c9
improve documentation for default values
molbap bcbd646
add model_max_length testing
molbap 39c1587
Raise if kwargs are specified in two places
molbap 1f73bdf
fix
molbap 934e612
Merge branch 'uniform_processors_1' into uniform_processors_2
molbap 7372b53
Merge branch 'uniform_processors_1' into uniform_processors_3
molbap 41c2e2a
Merge branch 'uniform_processors_2' into uniform_processors_3
molbap b3f98ba
Merge branch 'main' into uniform_processors_1
molbap bd7e745
Merge branch 'uniform_processors_1' into uniform_processors_3
molbap 0411b79
removed copied from
molbap ee57813
Merge branch 'main' into uniform_processors_2
molbap bab441f
Merge branch 'main' into uniform_processors_2
molbap 4fd60cf
match defaults
molbap 34d0b61
force padding
molbap 10d727b
fix tokenizer test
molbap 986ed9f
clean defaults
molbap 3c265d1
move tests to common
molbap e71a7f5
Merge branch 'main' into uniform_processors_3
molbap 962ddb5
merge + add pad token if not found
molbap dc56fc6
add missing import
molbap f2388f7
fix
molbap 2660c7a
adapt bridgetower tests to shortest edge
molbap 45dd38f
uniformize donut processor + tests
molbap c327925
add wav2vec2
molbap a777253
extend common testing to audio processors
molbap a3ab5bd
add testing + bert version
molbap 17e18c5
propagate common kwargs to different modalities
molbap 3bf804f
BC order of arguments
molbap 2c8180a
check py version
molbap 91e5045
revert kwargs merging
molbap bb256aa
add draft overlap test
molbap f7cc03b
Merge branch 'main' into uniform_processors_3
molbap bae0b5a
Merge branch 'main' into uniform_processors_3
molbap 0d19af4
update
molbap 59037cd
fix blip2 and wav2vec due to updates
molbap 972f29c
fix copies
molbap ba3d4f5
ensure overlapping kwargs do not disappear
molbap ffb864a
replace .pop by .get to handle duplicated kwargs
molbap 3afde1d
fix copies
molbap d337d3c
Merge branch 'main' into uniform_processors_3
molbap bcc8c52
rebase on main + fix wav2vec2_bert test missing import
molbap 1444902
fix missing import
molbap 35cc35f
add clearly wav2vec2_bert to uniformized models
molbap d489a7d
Merge branch 'main' into uniform_processors_3
molbap f282384
Merge branch 'main' into uniform_processors_3
molbap 6f55001
fix copies
molbap ce19cfb
increase number of features
molbap 138140b
fix style
molbap 50b3e45
[run-slow] blip, blip2, bridgetower, donut, wav2vec2, wav2vec2_bert
molbap add0fd5
Merge branch 'main' into uniform_processors_3
molbap 483af1e
[run-slow] blip, blip_2, bridgetower, donut, wav2vec2, wav2vec2_bert
molbap ebc9aea
fix concatenation
molbap c2268c6
[run-slow] blip, blip_2, bridgetower, donut, wav2vec2, wav2vec2_bert
molbap d5c107b
Update tests/test_processing_common.py
molbap 99f9a2e
:broom:
molbap 7e39ca3
Merge branch 'uniform_processors_3' of github.com:molbap/transformers…
molbap acfc61d
address comments
molbap d80d48d
clean up + tests
molbap 90aef58
[run-slow] instructblip, blip, blip_2, bridgetower, donut, wav2vec2, …
molbap 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.
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.