fix: add missing logic for SGLANG_USE_MODELSCOPE variable (#14794)
This commit is contained in:
@@ -537,7 +537,8 @@ class ModelConfig:
|
||||
is_local = os.path.exists(self.model_path)
|
||||
if not is_local:
|
||||
# Conditional import based on SGLANG_USE_MODELSCOPE environment variable
|
||||
if envs.SGLANG_USE_MODELSCOPE is True:
|
||||
if envs.SGLANG_USE_MODELSCOPE.get():
|
||||
|
||||
from modelscope import HubApi, model_file_download
|
||||
|
||||
hf_api = HubApi()
|
||||
|
||||
Reference in New Issue
Block a user