Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e94384bb
Unverified
Commit
e94384bb
authored
Dec 16, 2025
by
Isotr0py
Committed by
GitHub
Dec 16, 2025
Browse files
[Bugfix] Fix broken ViT attention selection for Blackwell device (#30731)
Signed-off-by:
Isotr0py
<
mozf@mail2.sysu.edu.cn
>
parent
b9ff4f2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
vllm/model_executor/models/vision.py
vllm/model_executor/models/vision.py
+2
-8
No files found.
vllm/model_executor/models/vision.py
View file @
e94384bb
...
...
@@ -11,7 +11,7 @@ import torch
from
transformers
import
PretrainedConfig
from
vllm.attention.backends.registry
import
AttentionBackendEnum
from
vllm.config
import
VllmConfig
,
get_current_vllm_config
from
vllm.config
import
VllmConfig
from
vllm.distributed
import
(
get_tensor_model_parallel_rank
,
get_tensor_model_parallel_world_size
,
...
...
@@ -88,16 +88,10 @@ def get_vit_attn_backend(
"""
Get the available attention backend for Vision Transformer.
"""
attn_backend
=
attn_backend_override
selected_backend
=
get_current_vllm_config
().
attention_config
.
backend
if
attn_backend
is
None
:
attn_backend
=
selected_backend
return
current_platform
.
get_vit_attn_backend
(
head_size
,
dtype
,
backend
=
attn_backend
,
backend
=
attn_backend
_override
,
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment