Skip to content

Commit 2585e15

Browse files
committed
fix check
1 parent 7b7cf5d commit 2585e15

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

trl/import_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ def is_uvicorn_available() -> bool:
8282

8383

8484
def is_vllm_available() -> bool:
85-
if (
86-
_vllm_available
87-
and version.parse(_vllm_version) < version.parse("0.10.0")
85+
if _vllm_available and (
86+
version.parse(_vllm_version) < version.parse("0.10.0")
8887
or version.parse(_vllm_version) > version.parse("0.10.2")
8988
):
9089
warnings.warn(

0 commit comments

Comments
 (0)