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
ccd3e55e
Unverified
Commit
ccd3e55e
authored
Nov 04, 2025
by
Hank_
Committed by
GitHub
Nov 04, 2025
Browse files
[Bugfix][plugin] fla crash on plugin (#27322)
parent
01baefe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/model_executor/layers/fla/ops/utils.py
vllm/model_executor/layers/fla/ops/utils.py
+3
-2
No files found.
vllm/model_executor/layers/fla/ops/utils.py
View file @
ccd3e55e
...
...
@@ -17,6 +17,7 @@ from typing import Any, Literal
import
torch
from
vllm.platforms
import
current_platform
from
vllm.triton_utils
import
triton
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -137,8 +138,8 @@ def _check_platform() -> Literal["nvidia", "amd", "intel", "musa"]:
# For AMD GPUs, the triton backend is 'hip', while for Nvidia GPUs, the triton backend is 'cuda'.
# However, the torch backend is 'cuda' for both Nvidia and AMD GPUs.
# Therefore, we need to check the triton backend to determine the actual GPU vendor.
device
=
get_available_device
()
if
get_available_device
()
!=
"hip"
else
"cuda"
device_torch_lib
=
getattr
(
torch
,
device
)
device
=
"cuda"
if
current_platform
.
is_cuda_alike
()
else
get_available_device
()
device_torch_lib
=
getattr
(
torch
,
device
,
None
)
device_platform
=
_check_platform
()
is_amd
=
device_platform
==
"amd"
...
...
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