mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-10 00:27:23 +08:00
yapf
This commit is contained in:
parent
0d6402ddfd
commit
696b653193
3
setup.py
3
setup.py
@ -189,8 +189,7 @@ class cmake_build_ext(build_ext):
|
|||||||
|
|
||||||
def _is_cuda() -> bool:
|
def _is_cuda() -> bool:
|
||||||
has_cuda = torch.version.cuda is not None
|
has_cuda = torch.version.cuda is not None
|
||||||
return (VLLM_TARGET_DEVICE == "cuda"
|
return (VLLM_TARGET_DEVICE == "cuda" and has_cuda
|
||||||
and has_cuda
|
|
||||||
and not (_is_neuron() or _is_tpu()))
|
and not (_is_neuron() or _is_tpu()))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user