Correct check for SDPA in Vision Language Models #30565
Labels
Should Fix
This has been identified as a bug and should be fixed.
Vision
WIP
Label your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progress
System Info
In current implementation of VLMs, the "_supports_sdpa" attribute checks and activates SDPA attention only for the language model. For example in Llava
It should also check and if available use SDPA attention for vision tower.
sdpa
support for SigLIP #31499We can raise a warning for composite models if only one part support sdpa, but other does not, and activate SDPA for the supported part. That waythe user knows what is happening in the background.
Verified models
The text was updated successfully, but these errors were encountered: