-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
[Bugfix] Fix broken ViT attention selection for Blackwell device #30731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request addresses a crash in ViT attention backend selection by replacing an assertion with a fallback mechanism. When an unsupported backend is specified, it now logs an error and proceeds with automatic selection instead of crashing. My review focuses on refining this new logic to prevent incorrect error logging when no backend is specified (a valid use case for auto-selection) and adjusting the log severity to better reflect the recoverable nature of the situation.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
| selected_backend = get_current_vllm_config().attention_config.backend | ||
| if attn_backend is None: | ||
| attn_backend = selected_backend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After second thought, I think we have better decouple ViT attention backend and backbone attention backend config.
tjtanaa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…m-project#30731) Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
) Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn> (cherry picked from commit e94384b)
…m-project#30731) Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn> Signed-off-by: Nathan Price <nathan@abridge.com>
Purpose
Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.