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
a4730c1b
Unverified
Commit
a4730c1b
authored
Nov 12, 2025
by
Chaojun Zhang
Committed by
GitHub
Nov 12, 2025
Browse files
[XPU]Fix crash due to removed VLLM_USE_V1 attribute (#28520)
Signed-off-by:
chaojun-zhang
<
chaojun.zhang@intel.com
>
parent
d3ade61e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/platforms/xpu.py
vllm/platforms/xpu.py
+3
-2
No files found.
vllm/platforms/xpu.py
View file @
a4730c1b
...
@@ -65,7 +65,6 @@ class XPUPlatform(Platform):
...
@@ -65,7 +65,6 @@ class XPUPlatform(Platform):
if
use_sparse
:
if
use_sparse
:
raise
NotImplementedError
(
"Sparse Attention is not supported on XPU."
)
raise
NotImplementedError
(
"Sparse Attention is not supported on XPU."
)
use_v1
=
envs
.
VLLM_USE_V1
if
not
use_v1
:
if
not
use_v1
:
raise
ValueError
(
"XPU backend only supports V1."
)
raise
ValueError
(
"XPU backend only supports V1."
)
if
selected_backend
==
AttentionBackendEnum
.
TRITON_ATTN
:
if
selected_backend
==
AttentionBackendEnum
.
TRITON_ATTN
:
...
@@ -115,7 +114,9 @@ class XPUPlatform(Platform):
...
@@ -115,7 +114,9 @@ class XPUPlatform(Platform):
@
classmethod
@
classmethod
def
get_vit_attn_backend
(
def
get_vit_attn_backend
(
cls
,
head_size
:
int
,
dtype
:
torch
.
dtype
cls
,
head_size
:
int
,
dtype
:
torch
.
dtype
)
->
AttentionBackendEnum
:
)
->
"AttentionBackendEnum"
:
from
vllm.attention.backends.registry
import
AttentionBackendEnum
return
AttentionBackendEnum
.
FLASH_ATTN
return
AttentionBackendEnum
.
FLASH_ATTN
@
classmethod
@
classmethod
...
...
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