Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
2d87d7d1
Unverified
Commit
2d87d7d1
authored
Feb 25, 2025
by
Shanshan Shen
Committed by
GitHub
Feb 25, 2025
Browse files
[Bugfix] Modify modelscope api usage in transformer_utils (#13807)
parent
aab39277
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
vllm/transformers_utils/utils.py
vllm/transformers_utils/utils.py
+1
-2
No files found.
vllm/transformers_utils/utils.py
View file @
2d87d7d1
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment