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
44607e07
Unverified
Commit
44607e07
authored
Feb 09, 2025
by
Yuan Tang
Committed by
GitHub
Feb 10, 2025
Browse files
Check if selected backend is None in get_attn_backend_cls() (#12975)
Signed-off-by:
Yuan Tang
<
terrytangyuan@gmail.com
>
parent
67c4637c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/platforms/cpu.py
vllm/platforms/cpu.py
+1
-1
No files found.
vllm/platforms/cpu.py
View file @
44607e07
...
@@ -35,7 +35,7 @@ class CpuPlatform(Platform):
...
@@ -35,7 +35,7 @@ class CpuPlatform(Platform):
dtype
:
torch
.
dtype
,
kv_cache_dtype
:
Optional
[
str
],
dtype
:
torch
.
dtype
,
kv_cache_dtype
:
Optional
[
str
],
block_size
:
int
,
use_v1
:
bool
,
block_size
:
int
,
use_v1
:
bool
,
use_mla
:
bool
)
->
str
:
use_mla
:
bool
)
->
str
:
if
selected_backend
!=
_Backend
.
TORCH_SDPA
:
if
selected_backend
and
selected_backend
!=
_Backend
.
TORCH_SDPA
:
logger
.
info
(
"Cannot use %s backend on CPU."
,
selected_backend
)
logger
.
info
(
"Cannot use %s backend on CPU."
,
selected_backend
)
logger
.
info
(
"Using Torch SDPA backend."
)
logger
.
info
(
"Using Torch SDPA backend."
)
return
"vllm.attention.backends.torch_sdpa.TorchSDPABackend"
return
"vllm.attention.backends.torch_sdpa.TorchSDPABackend"
...
...
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