mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 22:54:58 +08:00
[misc] improve error message for "Failed to infer device type" (#15994)
Signed-off-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
parent
06f21ce7a5
commit
5e125e74d1
@ -1875,7 +1875,10 @@ class DeviceConfig:
|
|||||||
from vllm.platforms import current_platform
|
from vllm.platforms import current_platform
|
||||||
self.device_type = current_platform.device_type
|
self.device_type = current_platform.device_type
|
||||||
if not self.device_type:
|
if not self.device_type:
|
||||||
raise RuntimeError("Failed to infer device type")
|
raise RuntimeError(
|
||||||
|
"Failed to infer device type, please set "
|
||||||
|
"the environment variable `VLLM_LOGGING_LEVEL=DEBUG` "
|
||||||
|
"to turn on verbose logging to help debug the issue.")
|
||||||
else:
|
else:
|
||||||
# Device type is assigned explicitly
|
# Device type is assigned explicitly
|
||||||
self.device_type = device
|
self.device_type = device
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user