Skip to content

Commit

Permalink
Qwen-2-5-VL: fix CI (huggingface#35935)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
zucchini-nlp authored and sbucaille committed Feb 14, 2025
1 parent 8b57eea commit b9a3106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/generation/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ def test_generate_from_inputs_embeds(self, _, num_beams):
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.
Expand Down

0 comments on commit b9a3106

Please sign in to comment.