amyeroberts
27c79a0fb4
Enable instantiating model with pretrained backbone weights ( #28214 )
...
* Enable instantiating model with pretrained backbone weights
* Update tests so backbone checkpoint isn't passed in
* Remove doc updates until changes made in modeling code
* Clarify pretrained import
* Update configs - docs and validation check
* Update src/transformers/utils/backbone_utils.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* Clarify exception message
* Update config init in tests
* Add test for when use_timm_backbone=True
* Small test updates
---------
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
2024-01-23 11:01:50 +00:00
NielsRogge
59499bbe8b
Update forward signature test for vision models ( #27681 )
...
* Update forward signature
* Empty-Commit
2023-11-27 15:48:17 +01:00
Marc Sun
0ed23e4db2
fix vit hybrid test ( #25543 )
...
fix test
2023-08-16 17:02:57 +02:00
Yih-Dar
6ea3ee3cd2
Fix test_model_parallelism
( #25359 )
...
* fix
* fix
---------
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2023-08-08 10:48:45 +02:00
Yih-Dar
bd90cda9a6
CI with num_hidden_layers=2
🚀 🚀 🚀 ( #25266 )
...
* CI with layers=2
---------
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2023-08-02 20:22:36 +02:00
amyeroberts
ae454f41d4
Update old existing feature extractor references ( #24552 )
...
* Update old existing feature extractor references
* Typo
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Address comments from review - update 'feature extractor'
Co-authored by: Yih-Dar <2521628+ydshieh@users.noreply.github.com>
2023-06-29 10:17:36 +01:00
Yih-Dar
871c31a6f1
🔥 Rework pipeline testing by removing PipelineTestCaseMeta
🚀 ( #21516 )
...
* Add PipelineTesterMixin
* remove class PipelineTestCaseMeta
* move validate_test_components
* Add for ViT
* Add to SPECIAL_MODULE_TO_TEST_MAP
* style and quality
* Add feature-extraction
* update
* raise instead of skip
* add tiny_model_summary.json
* more explicit
* skip tasks not in mapping
* add availability check
* Add Copyright
* A way to diable irrelevant tests
* update with main
* remove disable_irrelevant_tests
* skip tests
* better skip message
* better skip message
* Add all pipeline task tests
* revert
* Import PipelineTesterMixin
* subclass test classes with PipelineTesterMixin
* Add pipieline_model_mapping
* Fix import after adding pipieline_model_mapping
* Fix style and quality after adding pipieline_model_mapping
* Fix one more import after adding pipieline_model_mapping
* Fix style and quality after adding pipieline_model_mapping
* Fix test issues
* Fix import requirements
* Fix mapping for MobileViTModelTest
* Update
* Better skip message
* pipieline_model_mapping could not be None
* Remove some PipelineTesterMixin
* Fix typo
* revert tests_fetcher.py
* update
* rename
* revert
* Remove PipelineTestCaseMeta from ZeroShotAudioClassificationPipelineTests
* style and quality
* test fetcher for all pipeline/model tests
---------
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2023-02-28 19:40:57 +01:00
Sylvain Gugger
04b2f13c37
🚨 🚨 🚨 Enforce single model initialization ( #21431 )
...
* Enforce single model initialization
* Add OneFormer example for problem 3
* Do it the Stas way
* Actually rename the uses...
* Rewrite test
* Try to change the test this way
* Fix all init slow/fast tests
* Break connection
* Fix more tests
* Fix test for initialization
* Remove custom test
* Quality
* Fix last failing tests
* The end?
2023-02-09 15:46:26 -05:00
Younes Belkada
9858ecd706
[ViTHybrid
] Fix accelerate
slow tests ( #20679 )
...
* fix failing `accelerate` tests
* make fixup
* smaller values
* even lower
2022-12-08 17:39:32 +01:00
NielsRogge
d151a8c550
Add BiT + ViT hybrid ( #20550 )
...
* First draft
* More improvements
* Add backbone, first draft of ViT hybrid
* Add AutoBackbone
* More improvements
* Fix bug
* More improvements
* More improvements
* Convert ViT-hybrid
* More improvements
* add patch bit
* Fix style
* Improve code
* cleaned v1
* more cleaning
* more refactoring
* Improve models, add tests
* Add docs and tests
* Make more tests pass
* Improve default backbone config
* Update model_type
* Fix more tests
* Add more copied from statements
* More improvements
* Add push to hub to conversion scripts
* clean
* more cleanup
* clean
* replace to
* fix
* Update src/transformers/models/bit/configuration_bit.py
Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
* fix base model prefix
* more cleaning
* get rid of stem
* clean
* replace flag
* Update src/transformers/models/bit/configuration_bit.py
Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
* Update src/transformers/models/bit/configuration_bit.py
Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
* add check
* another check
* fix for hybrid vit
* final fix
* update config
* fix class name
* fix `make fix-copies`
* remove `use_activation`
* Update src/transformers/models/bit/configuration_bit.py
* rm unneeded file
* Add BiT image processor
* rm unneeded file
* add doc
* Add image processor to conversion script
* Add ViTHybrid image processor
* Add resources
* Move bit to correct position
* Fix auto mapping
* Rename hybrid to Hybrid
* Fix name in toctree
* Fix READMEs'
* Improve config
* Simplify GroupNormActivation layer
* fix test + make style
* Improve config
* Apply suggestions from code review
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* remove comment
* remove comment
* replace
* replace
* remove all conv_layer
* refactor norm_layer
* revert x
* add copied from
* last changes + integration tests
* make fixup
* Apply suggestions from code review
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* fix name
* fix message
* remove assert and refactor
* refactor + make fixup
* refactor - add + sfety checker
* fix docstring + checkpoint names
* fix merge issues
* fix function name
* fix copies
* Apply suggestions from code review
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* fix model checkpoint
* fix doctest output
* vit name on doc
* fix name on doc
* fix small nits
* fixed integration tests
* final changes - slow tests pass
Co-authored-by: Niels Rogge <nielsrogge@Nielss-MacBook-Pro.local>
Co-authored-by: younesbelkada <younesbelkada@gmail.com>
Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2022-12-07 11:03:39 +01:00