Fix blip2 tests #38510

ydshieh merged 17 commits into main from fix_blip2
ydshieh
ydshieh fix 1: not sure
26d541bc
ydshieh fix 2: _supports_flex_attn = False
35b0c80d
ydshieh fix 3: embedding_output = self.layernorm(query_embeds.to(self.layerno…
c7f586ee
ydshieh fix 4: query_embeds = query_embeds.to(self.layernorm.weight.dtype)
d9163f37
ydshieh fix 5: text_embeds = text_embeds.to(dtype=torch.float16)
2cbf9013
ydshieh fix 5: question_embeds.to(dtype=torch.float16)
58e8cbe7
ydshieh fix 6: text_embeds = text_embeds.to(dtype=self.itm_head.weight.dtype)
d1c7db4e
ydshieh fix 7: image_embeds and question_embeds
f2acf13a
ydshieh fix 8: fix other 2 fp16 tests
6c97546e
ydshieh fix 9: fix T5 OOM
fcd01209
ydshieh fix 10: fix T5 OOM
7f90d9c2
ydshieh fix 11: fix T5
5bf132c3
ydshieh fix 11: fix T5 beam
c020fd4b
ydshieh fix 12: _supports_sdpa=False
371fea18
ydshieh fix 12: style and expect
75eebc06
ydshieh ydshieh changed the title Fix blip2 Fix blip2 tests 307 days ago
HuggingFaceDocBuilderDev
ydshieh
ydshieh commented on 2025-06-02
ydshieh
ydshieh commented on 2025-06-02
ydshieh
ydshieh commented on 2025-06-02
ydshieh
ydshieh commented on 2025-06-02
ydshieh
ydshieh commented on 2025-06-02
ydshieh
ydshieh commented on 2025-06-02
ydshieh ydshieh requested a review from zucchini-nlp zucchini-nlp 305 days ago
zucchini-nlp
zucchini-nlp commented on 2025-06-02
ydshieh
ydshieh revert
4c7b3000
ydshieh revert
79d354ce
ydshieh ydshieh requested a review from zucchini-nlp zucchini-nlp 305 days ago
zucchini-nlp
zucchini-nlp approved these changes on 2025-06-02
ydshieh ydshieh merged de4cf5a3 into main 305 days ago
ydshieh ydshieh deleted the fix_blip2 branch 305 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone