add llamafactory-cli env

This commit is contained in:
hiyouga
2024-06-06 01:28:14 +08:00
parent 67fe822324
commit d4908d5708
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")