Skip to content

Commit

Permalink
Update packages.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyouga committed Jul 7, 2024
1 parent 322663b commit f84b007
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/llamafactory/extras/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit f84b007

Please sign in to comment.