Skip to content

Commit 2d87d7d

Browse files
[Bugfix] Modify modelscope api usage in transformer_utils (#13807)
1 parent aab3927 commit 2d87d7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vllm/transformers_utils/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ def modelscope_list_repo_files(
2929
) -> List[str]:
3030
"""List files in a modelscope repo."""
3131
from modelscope.hub.api import HubApi
32-
from modelscope.utils.hf_util import _try_login
33-
_try_login(token)
3432
api = HubApi()
33+
api.login(token)
3534
# same as huggingface_hub.list_repo_files
3635
files = [
3736
file['Path'] for file in api.get_model_files(

0 commit comments

Comments
 (0)