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
adaf2c6d
Unverified
Commit
adaf2c6d
authored
Jul 25, 2025
by
Ning Xie
Committed by
GitHub
Jul 24, 2025
Browse files
[Bugfix] fix modelscope snapshot_download serialization (#21536)
Signed-off-by:
Andy Xie
<
andy.xning@gmail.com
>
parent
42343f1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vllm/model_executor/model_loader/default_loader.py
vllm/model_executor/model_loader/default_loader.py
+6
-6
No files found.
vllm/model_executor/model_loader/default_loader.py
View file @
adaf2c6d
...
@@ -69,10 +69,10 @@ class DefaultModelLoader(BaseModelLoader):
...
@@ -69,10 +69,10 @@ class DefaultModelLoader(BaseModelLoader):
# pylint: disable=C.
# pylint: disable=C.
from
modelscope.hub.snapshot_download
import
snapshot_download
from
modelscope.hub.snapshot_download
import
snapshot_download
if
not
os
.
path
.
exists
(
model
):
# Use file lock to prevent multiple processes from
# Use file lock to prevent multiple processes from
# downloading the same model weights at the same time.
# downloading the same model weights at the same time.
with
get_lock
(
model
,
self
.
load_config
.
download_dir
):
with
get_lock
(
model
,
self
.
load_config
.
download_dir
):
if
not
os
.
path
.
exists
(
model
):
model_path
=
snapshot_download
(
model_path
=
snapshot_download
(
model_id
=
model
,
model_id
=
model
,
cache_dir
=
self
.
load_config
.
download_dir
,
cache_dir
=
self
.
load_config
.
download_dir
,
...
...
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