mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-16 11:35:50 +08:00
[Misc][V1] Skip device checking if not available (#15061)
Signed-off-by: Cody Yu <hao.yu.cody@gmail.com>
This commit is contained in:
parent
228b768db6
commit
4f065f12f5
@ -1469,8 +1469,12 @@ class EngineArgs:
|
||||
return False
|
||||
|
||||
# Need at least Ampere for now (FA support required).
|
||||
# Skip this check if we are running on a non-GPU platform,
|
||||
# or if the device capability is not available
|
||||
# (e.g. in a Ray actor without GPUs).
|
||||
from vllm.platforms import current_platform
|
||||
if (current_platform.is_cuda()
|
||||
and current_platform.get_device_capability()
|
||||
and current_platform.get_device_capability().major < 8):
|
||||
_raise_or_fallback(feature_name="Compute Capability < 8.0",
|
||||
recommend_to_remove=False)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user