From 67bcc3fc8982f48e4ba6102792465e5f9c126648 Mon Sep 17 00:00:00 2001 From: Shanshan Shen <467638484@qq.com> Date: Tue, 25 Feb 2025 06:56:07 +0000 Subject: [PATCH] modify modelscope api Signed-off-by: Shanshan Shen <467638484@qq.com> --- vllm/transformers_utils/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vllm/transformers_utils/utils.py b/vllm/transformers_utils/utils.py index d0b5d7f01a99..87e446f89438 100644 --- a/vllm/transformers_utils/utils.py +++ b/vllm/transformers_utils/utils.py @@ -29,9 +29,8 @@ def modelscope_list_repo_files( ) -> List[str]: """List files in a modelscope repo.""" from modelscope.hub.api import HubApi - from modelscope.utils.hf_util import _try_login - _try_login(token) api = HubApi() + api.login(token) # same as huggingface_hub.list_repo_files files = [ file['Path'] for file in api.get_model_files(