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
e0a1caba
Commit
e0a1caba
authored
May 21, 2020
by
Neel Kant
Browse files
Fix autoresume by removing code from indexer
parent
05ea0cca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
indexer.py
indexer.py
+0
-8
No files found.
indexer.py
View file @
e0a1caba
...
...
@@ -154,14 +154,6 @@ class AsyncIndexBuilder(object):
if
self
.
debug
:
break
autoresume
=
get_adlr_autoresume
()
if
autoresume
.
termination_requested
():
print_rank_0
(
">>> autoresume termination request found!"
)
if
torch
.
distributed
.
get_rank
()
==
0
:
autoresume
.
request_resume
()
print_rank_0
(
">>> training terminated. Returning"
)
sys
.
exit
(
0
)
self
.
block_data
.
save_shard
(
self
.
rank
)
torch
.
distributed
.
barrier
(
get_data_parallel_group
())
del
self
.
model
...
...
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