mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-29 10:10:35 +08:00
[misc] fix import error (#9299)
This commit is contained in:
@@ -86,6 +86,14 @@ def is_rouge_available():
|
||||
return _is_package_available("rouge_chinese")
|
||||
|
||||
|
||||
def is_safetensors_available():
|
||||
return _is_package_available("safetensors")
|
||||
|
||||
|
||||
def is_sglang_available():
|
||||
return _is_package_available("sglang")
|
||||
|
||||
|
||||
def is_starlette_available():
|
||||
return _is_package_available("sse_starlette")
|
||||
|
||||
@@ -101,7 +109,3 @@ def is_uvicorn_available():
|
||||
|
||||
def is_vllm_available():
|
||||
return _is_package_available("vllm")
|
||||
|
||||
|
||||
def is_sglang_available():
|
||||
return _is_package_available("sglang")
|
||||
|
||||
Reference in New Issue
Block a user