add llamafactory-cli env

Former-commit-id: d4908d5708
This commit is contained in:
hiyouga
2024-06-06 01:28:14 +08:00
parent a16786d8ba
commit 0398338a0f
4 changed files with 65 additions and 5 deletions

View File

@@ -20,6 +20,10 @@ def _get_package_version(name: str) -> "Version":
return version.parse("0.0.0")
def is_deepspeed_available():
return _is_package_available("deepspeed")
def is_fastapi_available():
return _is_package_available("fastapi")