[Misc] Fix misleading ROCm warning (#19486)

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
Jee Jee Li 2025-06-12 00:12:10 +08:00 committed by GitHub
parent 89b0f84e17
commit 04a55612dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,9 +25,14 @@ Not currently supported:
import torch
from vllm.platforms import current_platform
from vllm.platforms.rocm import on_gfx1x
from vllm.triton_utils import tl, triton
# Avoid misleading ROCm warning.
if current_platform.is_rocm():
from vllm.platforms.rocm import on_gfx1x
else:
on_gfx1x = lambda *args, **kwargs: False
torch_dtype: tl.constexpr = torch.float16