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
5b044810
Unverified
Commit
5b044810
authored
Oct 29, 2025
by
Wentao Ye
Committed by
GitHub
Oct 29, 2025
Browse files
[Bug] Raise error explicitly if using incompatible backend (#27424)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
f7a66828
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
vllm/platforms/cuda.py
vllm/platforms/cuda.py
+15
-0
No files found.
vllm/platforms/cuda.py
View file @
5b044810
...
@@ -261,6 +261,21 @@ class CudaPlatformBase(Platform):
...
@@ -261,6 +261,21 @@ class CudaPlatformBase(Platform):
from
vllm.attention.backends.registry
import
_Backend
from
vllm.attention.backends.registry
import
_Backend
if
use_mla
:
if
use_mla
:
# explicitly reject non-MLA backends when MLA is enabled to avoid
# silently selecting an incompatible backend (e.g., FLASHINFER).
if
selected_backend
in
{
_Backend
.
FLASHINFER
,
_Backend
.
FLASH_ATTN
,
_Backend
.
TRITON_ATTN
,
_Backend
.
TREE_ATTN
,
_Backend
.
XFORMERS
,
}:
raise
ValueError
(
f
"Attention backend
{
selected_backend
}
incompatible with MLA. "
"Please use one of the MLA backends: FLASHINFER_MLA, CUTLASS_MLA, "
"FLASHMLA, FLASH_ATTN_MLA, or TRITON_MLA. Alternatively, set "
"VLLM_MLA_DISABLE=1 to disable MLA for this model."
)
if
not
use_v1
:
if
not
use_v1
:
raise
RuntimeError
(
raise
RuntimeError
(
"MLA attention backends require the V1 engine. "
"MLA attention backends require the V1 engine. "
...
...
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