transformers/tests/utils
Raushan Turganbay 21d5025826
Attn implementation for composite models (#32238)
* first try

* codestyle

* idefics2 is happy

* [run-slow] llava, llava_next, video_llava, vipllava, llava_next_video, idefics, idefics2, kosmos2, fuyu, blip, blip_2, instructblip, instructblipvideo, paligemma

* fix-copies

* [run-slow] llava, llava_next, video_llava, vipllava, llava_next_video, idefics, idefics2, kosmos2, fuyu, blip, blip_2, instructblip, instructblipvideo

* blip-2 needs to init vision from config

* when was this removed O_o

* minor fix

* tests

* this way?

* tests

* model-agnostic code

* codestyle

* add tests for idefics

* modify general test for VLMs

* no generation test for vlm yet!

* no generation test here also

* wanr in VIT-SDPA if output attn

* add more tests

* user can pass dict as attn impl

* repo consistency

* update

* muicgen

* no prints

* forgot speech enc-dec and clip

* how many composite models we have?

* musicgen meelody is same as mudicgen

* +siglip

* fix tests + add some more

* remove idefics custom overriden code

* make idefics2 automappable

* nits

* skip tests

* doctests

* Update src/transformers/models/idefics2/configuration_idefics2.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update tests/models/clip/test_modeling_clip.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update tests/models/idefics2/test_modeling_idefics2.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update tests/models/idefics2/test_modeling_idefics2.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/configuration_utils.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* major update, no need for automap

* clean up

* add FA2 test

* more tests

* style

* skip tests

* why did these started failing now?

* no attributes for FA2 needed

* one tiny test

* address comment about FA2 false warning

* style

* add new models and resolve conflicts

* fix copies

* let it be this way for now, come back tomorrow to review

* some more fixes

* update

* more updates

* update

* fix copies

* style and tests

* another big update

* fix tests

* fix tests

* update

* another update

* fix tests

* fix copies

* fix tests

---------

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
2024-10-22 06:54:44 +02:00
..
import_structures Import structure & first three model refactors (#31329) 2024-09-10 11:10:53 +02:00
__init__.py
test_activations_tf.py
test_activations.py
test_add_new_model_like.py fix: Fixed failing tests in tests/utils/test_add_new_model_like.py (#32678) 2024-08-14 12:06:17 +01:00
test_audio_utils.py Remove trust_remote_code when loading Libri Dummy (#31748) 2024-07-23 14:54:38 +08:00
test_backbone_utils.py 🚨 out_indices always a list (#30941) 2024-05-22 15:23:04 +01:00
test_cache_utils.py Cache: revert DynamicCache init for BC (#33861) 2024-10-04 22:47:08 +02:00
test_chat_template_utils.py Make tool JSON schemas consistent (#31756) 2024-07-02 20:00:42 +01:00
test_cli.py Forbid PretrainedConfig from saving generate parameters; Update deprecations in generate-related code 🧹 (#32659) 2024-08-23 11:12:53 +01:00
test_configuration_utils.py Attn implementation for composite models (#32238) 2024-10-22 06:54:44 +02:00
test_convert_slow_tokenizer.py Revert error back into warning for byte fallback conversion. (#22607) 2023-04-06 14:00:29 +02:00
test_deprecation.py Decorators for deprecation and named arguments validation (#30799) 2024-06-10 12:35:10 +01:00
test_doc_samples.py Skip tests properly (#31308) 2024-06-26 21:59:08 +01:00
test_dynamic_module_utils.py Fix the regex in get_imports to support multiline try blocks and excepts with specific exception types (#23725) 2023-05-24 15:40:19 -04:00
test_feature_extraction_utils.py Fix import paths for test_module (#32888) 2024-08-28 12:08:29 +01:00
test_file_utils.py Inheritance-based framework detection (#21784) 2023-02-27 15:31:55 +00:00
test_generic.py Decorators for deprecation and named arguments validation (#30799) 2024-06-10 12:35:10 +01:00
test_hf_argparser.py HfArgumentParser: allow for hyhenated field names in long-options (#33990) 2024-10-10 11:58:26 +02:00
test_hub_utils.py Use HF_HUB_OFFLINE + fix has_file in offline mode (#31016) 2024-05-29 11:55:43 +01:00
test_image_processing_utils.py Fix import paths for test_module (#32888) 2024-08-28 12:08:29 +01:00
test_image_utils.py fix: Replaced deprecated mktemp() function (#32123) 2024-07-22 14:13:39 +01:00
test_import_structure.py Fix some missing tests in circleci (#33559) 2024-09-20 20:58:51 +02:00
test_logging.py Fix flaky test for log level (#21776) 2023-02-28 16:24:14 -05:00
test_model_card.py Automatically add transformers tag to the modelcard (#32623) 2024-08-13 07:59:01 +02:00
test_model_output.py Skip tests properly (#31308) 2024-06-26 21:59:08 +01:00
test_modeling_flax_utils.py Follow up for #31973 (#32025) 2024-07-25 16:12:23 +02:00
test_modeling_rope_utils.py Ignore keys on validate_rope (#33753) 2024-10-04 12:39:37 +02:00
test_modeling_tf_core.py Add tf_keras imports to prepare for Keras 3 (#28588) 2024-01-30 17:26:36 +00:00
test_modeling_tf_utils.py Follow up for #31973 (#32025) 2024-07-25 16:12:23 +02:00
test_modeling_utils.py Fix failing conversion (#34010) 2024-10-11 14:59:23 +02:00
test_offline.py Use HF_HUB_OFFLINE + fix has_file in offline mode (#31016) 2024-05-29 11:55:43 +01:00
test_processing_utils.py Uniformize kwargs for Pixtral processor (#33521) 2024-09-17 14:44:27 -04:00
test_skip_decorators.py Update quality tooling for formatting (#21480) 2023-02-06 18:10:56 -05:00
test_tokenization_utils.py [fix] fix token healing tests and usage errors (#33931) 2024-10-16 14:22:55 +02:00
test_versions_utils.py improve dev setup comments and hints (#28495) 2024-01-15 18:36:40 +00:00
tiny_model_summary.json CI: fix efficientnet pipeline timeout and prevent future similar issues due to large image size (#33123) 2024-08-27 11:58:27 +01:00