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
1e799b7e
Unverified
Commit
1e799b7e
authored
Mar 16, 2025
by
Lucas Wilkinson
Committed by
GitHub
Mar 17, 2025
Browse files
[BugFix] Fix MLA + V1 + TP==1 causing reinitialization of cuda context (#14910)
parent
7f6c5ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/platforms/cuda.py
vllm/platforms/cuda.py
+1
-1
No files found.
vllm/platforms/cuda.py
View file @
1e799b7e
...
@@ -152,7 +152,7 @@ class CudaPlatformBase(Platform):
...
@@ -152,7 +152,7 @@ class CudaPlatformBase(Platform):
# here
# here
use_flashmla
=
(
envs
.
VLLM_ATTENTION_BACKEND
is
None
\
use_flashmla
=
(
envs
.
VLLM_ATTENTION_BACKEND
is
None
\
or
envs
.
VLLM_ATTENTION_BACKEND
==
"FLASHMLA"
)
or
envs
.
VLLM_ATTENTION_BACKEND
==
"FLASHMLA"
)
from
vllm.attention.
backend
s.flashmla
import
is_flashmla_supported
from
vllm.attention.
op
s.flashmla
import
is_flashmla_supported
if
use_flashmla
and
is_flashmla_supported
()[
0
]
\
if
use_flashmla
and
is_flashmla_supported
()[
0
]
\
and
cache_config
.
block_size
!=
64
:
and
cache_config
.
block_size
!=
64
:
cache_config
.
block_size
=
64
cache_config
.
block_size
=
64
...
...
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