Update packages.py

This commit is contained in:
hoshi-hiyouga 2024-07-07 15:48:29 +08:00 committed by GitHub
parent 322663bf90
commit f84b007ebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -82,6 +82,7 @@ def is_vllm_available():
def is_vllm_version_greater_than_0_5():
return _get_package_version("vllm") >= version.parse("0.5.0")
@lru_cache
def is_vllm_version_greater_than_0_5_1():
return _get_package_version("vllm") >= version.parse("0.5.1")
return _get_package_version("vllm") >= version.parse("0.5.1")