transformers/tests/models/instructblipvideo
Joao Gante be2ac0916a
[generate] shape checks in tests compatible with fixed-length caches (+ some minor fixes) (#35993)
* shape checks compatible with static cache

* add test

* tmp

* manually turn on eager attn when we want to output attn

* typo

* generalize to encoder-decoder models

* force compilation on cpu

* tmp commit

* fix static cache shape checks

* models with odd caches

* fix copies

* shorter cache search loop

* use decoder_past_key_values everywhere

* better test variable names and comments

* signature

* rename _check_outputs into _check_generate_outputs

* add comments

* HybridCache future test note
2025-02-10 17:50:54 +00:00
..
__init__.py Add video modality for InstrucBLIP (#30182) 2024-06-25 15:45:39 +05:00
test_image_processing_instrictblipvideo.py [tests] further fix Tester object has no attribute '_testMethodName' (#35781) 2025-01-29 16:05:33 +01:00
test_modeling_instructblipvideo.py [generate] shape checks in tests compatible with fixed-length caches (+ some minor fixes) (#35993) 2025-02-10 17:50:54 +00:00
test_processor_instructblipvideo.py Uniformize kwargs for image-text-to-text processors (#32544) 2024-09-24 21:28:19 -04:00