From f85ba2044955323e2a24b3c4e4a2153c0588a1ec Mon Sep 17 00:00:00 2001 From: Raushan Turganbay Date: Tue, 28 Jan 2025 14:51:57 +0100 Subject: [PATCH] Qwen-2-5-VL: fix CI (#35935) fix --- tests/generation/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generation/test_utils.py b/tests/generation/test_utils.py index 438378dd43..6afafa8e65 100644 --- a/tests/generation/test_utils.py +++ b/tests/generation/test_utils.py @@ -1655,7 +1655,7 @@ class GenerationTesterMixin: inputs_dict.pop("pixel_values_images", None) # 2.C - No easy fix, let's skip the check that compares the outputs from `input_ids` and `inputs_embeds` has_complex_embeds_computation = any( - model_name in model_class.__name__.lower() for model_name in ["moshi", "qwen2vl"] + model_name in model_class.__name__.lower() for model_name in ["moshi", "qwen2vl", "qwen2_5_vl"] ) # 3 - `inputs_dict` doesn't contain `attention_mask`. When `attention_mask` is not passed to generate, # we infer it from `input_ids`. The last test case will fail if there is a pad token in the original input.