mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-29 07:07:26 +08:00
[V1][Bugfix] Fix oracle for device checking (#15104)
Signed-off-by: Roger Wang <ywang@roblox.com>
This commit is contained in:
parent
68cf1601d3
commit
dafb4e504a
@ -1578,6 +1578,13 @@ class EngineArgs:
|
||||
_raise_or_fallback(feature_name=name, recommend_to_remove=True)
|
||||
return False
|
||||
|
||||
# No support for device type other than CUDA, AMD (experiemntal) or
|
||||
# TPU (experimental) so far.
|
||||
if not (current_platform.is_cuda_alike() or current_platform.is_tpu()):
|
||||
_raise_or_fallback(
|
||||
feature_name=f"device type={current_platform.device_type}",
|
||||
recommend_to_remove=False)
|
||||
return False
|
||||
#############################################################
|
||||
# Experimental Features - allow users to opt in.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user