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
deepspeed
Commits
1f972427
Unverified
Commit
1f972427
authored
Jul 21, 2020
by
Arash Ashari
Committed by
GitHub
Jul 21, 2020
Browse files
only global rank 0 can log tensorboard data; avoid multi gpu/node race for the log directory (#296)
parent
376818ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
deepspeed/pt/deepspeed_light.py
deepspeed/pt/deepspeed_light.py
+3
-3
No files found.
deepspeed/pt/deepspeed_light.py
View file @
1f972427
...
@@ -144,12 +144,12 @@ class DeepSpeedLight(Module):
...
@@ -144,12 +144,12 @@ class DeepSpeedLight(Module):
self
.
_configure_with_arguments
(
args
,
mpu
)
self
.
_configure_with_arguments
(
args
,
mpu
)
self
.
_do_sanity_check
()
self
.
_do_sanity_check
()
self
.
_init_distributed
(
dist_init_required
)
self
.
sample_count
=
0
self
.
sample_count
=
0
if
self
.
tensorboard_enabled
():
if
self
.
tensorboard_enabled
()
and
self
.
global_rank
==
0
:
self
.
summary_writer
=
self
.
get_summary_writer
()
self
.
summary_writer
=
self
.
get_summary_writer
()
self
.
_init_distributed
(
dist_init_required
)
# Configure distributed model
# Configure distributed model
self
.
_configure_distributed_model
(
model
)
self
.
_configure_distributed_model
(
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