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
f0232865
Commit
f0232865
authored
Jan 25, 2021
by
mohammad
Browse files
call makefile every run so we recompile if the code has changed
parent
c0400306
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
megatron/initialize.py
megatron/initialize.py
+5
-8
No files found.
megatron/initialize.py
View file @
f0232865
...
...
@@ -80,14 +80,11 @@ def initialize_megatron(extra_args_provider=None, args_defaults={},
_init_autoresume
()
# Compile dataset C++ code.
try
:
from
megatron.data
import
helpers
except
:
if
torch
.
distributed
.
get_rank
()
==
0
:
from
megatron.data.dataset_utils
import
compile_helper
compile_helper
()
# Simple barrier
torch
.
distributed
.
barrier
()
if
torch
.
distributed
.
get_rank
()
==
0
:
from
megatron.data.dataset_utils
import
compile_helper
compile_helper
()
# Simple barrier
torch
.
distributed
.
barrier
()
# No continuation function
return
None
...
...
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