Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Megatron-LM
Commits
be4dda7b
Commit
be4dda7b
authored
Apr 17, 2025
by
wxj
Browse files
Update convert.py
parent
56bf70a2
Pipeline
#2650
passed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
173 additions
and
170 deletions
+173
-170
tools/checkpoint/convert.py
tools/checkpoint/convert.py
+173
-170
No files found.
tools/checkpoint/convert.py
View file @
be4dda7b
...
...
@@ -150,11 +150,14 @@ def main():
args
=
parser
.
parse_args
()
# Initialize queue
queue
=
mp
.
Queue
(
maxsize
=
args
.
max_queue_size
)
ctx
=
mp
.
get_context
(
"spawn"
)
queue
=
ctx
.
Queue
(
maxsize
=
args
.
max_queue_size
)
# queue = mp.Queue(maxsize=args.max_queue_size)
# Start saver process.
print
(
"Starting saver..."
)
saver_proc
=
mp
.
Process
(
target
=
saver
.
save_checkpoint
,
args
=
(
queue
,
args
))
saver_proc
=
ctx
.
Process
(
target
=
saver
.
save_checkpoint
,
args
=
(
queue
,
args
))
# saver_proc = mp.Process(target=saver.save_checkpoint, args=(queue, args))
saver_proc
.
start
()
# Run loader.
...
...
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