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
3e36fcbe
Unverified
Commit
3e36fcbe
authored
Jul 31, 2025
by
Ning Xie
Committed by
GitHub
Jul 31, 2025
Browse files
[Bugfix]: fix metadata file copy in test_sharded_state_loader (#21830)
Signed-off-by:
Andy Xie
<
andy.xning@gmail.com
>
parent
055bd397
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tests/test_sharded_state_loader.py
tests/test_sharded_state_loader.py
+5
-3
No files found.
tests/test_sharded_state_loader.py
View file @
3e36fcbe
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import
fnmatch
import
multiprocessing
as
mp
import
multiprocessing
as
mp
import
os
import
os
import
shutil
import
shutil
...
@@ -64,9 +65,10 @@ def _run_writer(input_dir, output_dir, weights_patterns, **kwargs):
...
@@ -64,9 +65,10 @@ def _run_writer(input_dir, output_dir, weights_patterns, **kwargs):
# Copy metadata files to output directory
# Copy metadata files to output directory
for
file
in
os
.
listdir
(
input_dir
):
for
file
in
os
.
listdir
(
input_dir
):
if
os
.
path
.
isdir
(
os
.
path
.
join
(
input_dir
,
file
)):
if
os
.
path
.
isdir
(
os
.
path
.
join
(
input_dir
,
file
)):
continue
shutil
.
copytree
(
os
.
path
.
join
(
input_dir
,
file
),
if
not
any
(
file
.
endswith
(
ext
)
for
ext
in
weights_patterns
):
os
.
path
.
join
(
output_dir
,
file
))
shutil
.
copy
(
f
"
{
input_dir
}
/
{
file
}
"
,
output_dir
)
elif
not
any
(
fnmatch
.
fnmatch
(
file
,
ext
)
for
ext
in
weights_patterns
):
shutil
.
copy
(
os
.
path
.
join
(
input_dir
,
file
),
output_dir
)
def
_run_generate
(
input_dir
,
queue
:
mp
.
Queue
,
**
kwargs
):
def
_run_generate
(
input_dir
,
queue
:
mp
.
Queue
,
**
kwargs
):
...
...
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