We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aab3927 commit 2d87d7dCopy full SHA for 2d87d7d
vllm/transformers_utils/utils.py
@@ -29,9 +29,8 @@ def modelscope_list_repo_files(
29
) -> List[str]:
30
"""List files in a modelscope repo."""
31
from modelscope.hub.api import HubApi
32
- from modelscope.utils.hf_util import _try_login
33
- _try_login(token)
34
api = HubApi()
+ api.login(token)
35
# same as huggingface_hub.list_repo_files
36
files = [
37
file['Path'] for file in api.get_model_files(
0 commit comments