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
1cbf951b
Unverified
Commit
1cbf951b
authored
Jul 27, 2025
by
Ning Xie
Committed by
GitHub
Jul 27, 2025
Browse files
[Misc] add default value for file pattern arg (#21659)
Signed-off-by:
Andy Xie
<
andy.xning@gmail.com
>
parent
a8936e51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
examples/offline_inference/save_sharded_state.py
examples/offline_inference/save_sharded_state.py
+5
-1
No files found.
examples/offline_inference/save_sharded_state.py
View file @
1cbf951b
...
...
@@ -29,6 +29,7 @@ import shutil
from
pathlib
import
Path
from
vllm
import
LLM
,
EngineArgs
from
vllm.model_executor.model_loader
import
ShardedStateLoader
from
vllm.utils
import
FlexibleArgumentParser
...
...
@@ -39,7 +40,10 @@ def parse_args():
"--output"
,
"-o"
,
required
=
True
,
type
=
str
,
help
=
"path to output checkpoint"
)
parser
.
add_argument
(
"--file-pattern"
,
type
=
str
,
help
=
"string pattern of saved filenames"
"--file-pattern"
,
type
=
str
,
default
=
ShardedStateLoader
.
DEFAULT_PATTERN
,
help
=
"string pattern of saved filenames"
,
)
parser
.
add_argument
(
"--max-file-size"
,
...
...
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