skip 2 invalid test cases for pi0 model#45011
Conversation
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
| @unittest.skip("PI0 model requires pixel_attention_mask to be provided") | ||
| def test_flash_attn_2_inference_equivalence(self): | ||
| pass | ||
|
|
||
| @unittest.skip("PI0 model requires pixel_attention_mask to be provided") | ||
| def test_flash_attn_2_inference_equivalence_right_padding(self): | ||
| pass | ||
|
|
|
I will let @anton-l to have a look too before I merge. |
| @unittest.skip("PI0 model requires pixel_attention_mask to be provided") | ||
| def test_flash_attn_2_inference_equivalence(self): | ||
| pass | ||
|
|
||
| @unittest.skip("PI0 model requires pixel_attention_mask to be provided") | ||
| def test_flash_attn_2_inference_equivalence_right_padding(self): | ||
| pass |
There was a problem hiding this comment.
I investigated a bit and even if we pass pixel_attention_mask in that test, it will fail due to some size mismatches as the vlm cache is reused apparently (and some model dimensions don't match there). So it will need some deeper investigation to fix properly
Sadly, that means all FA tests are affected. Can you skip them all, i.e. FA3 and FA4 as well
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
|
[For maintainers] Suggested jobs to run (before merge) run-slow: pi0 |
| pass | ||
|
|
||
| @unittest.skip("PI0 model requires pixel_attention_mask to be provided") | ||
| def test_flash_attn_3_inference_equivalence(self): |
There was a problem hiding this comment.
Thank you for your effort. There are a lot of such tests ....
| @unittest.skip("PI0 model requires pixel_attention_mask to be provided") | ||
| def test_flash_attn_4_from_config(self): | ||
| pass |
There was a problem hiding this comment.
I think we could have done something like in Dia instead:
transformers/tests/models/dia/test_modeling_dia.py
Lines 258 to 271 in f6ff4ed
Would make it easier to maintain and can be a bit more regex based as well
* skip 2 invalid test cases for pi0 model Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com> * skip all FA related test cases Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com> --------- Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
@ydshieh Hi, can you help review? Thx!
Current error (before this PR):