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
473ff985
"tests/git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "bf2c9fa8d21e4af903769b3d7aca20452e4b4669"
Unverified
Commit
473ff985
authored
Sep 13, 2020
by
Shaden Smith
Committed by
GitHub
Sep 13, 2020
Browse files
scales throughput by logging freq (#408)
parent
4ac9bf60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
deepspeed/runtime/pipe/engine.py
deepspeed/runtime/pipe/engine.py
+2
-3
No files found.
deepspeed/runtime/pipe/engine.py
View file @
473ff985
...
...
@@ -260,9 +260,8 @@ class PipelineEngine(DeepSpeedEngine):
self
.
module
.
train
()
self
.
total_loss
=
None
self
.
timers
(
'train_batch'
).
start
()
# Do the work
self
.
timers
(
'train_batch'
).
start
()
sched
=
schedule
.
TrainSchedule
(
micro_batches
=
self
.
micro_batches
,
stages
=
self
.
num_stages
,
stage_id
=
self
.
stage_id
)
...
...
@@ -274,7 +273,7 @@ class PipelineEngine(DeepSpeedEngine):
if
self
.
global_rank
==
0
:
elapsed
=
self
.
timers
(
'train_batch'
).
elapsed
(
reset
=
True
)
iter_time
=
elapsed
/
self
.
steps_per_print
()
tput
=
self
.
train_batch_size
()
/
elapsed
tput
=
self
.
train_batch_size
()
/
iter_time
print
(
f
'steps:
{
self
.
global_steps
}
'
f
'loss:
{
self
.
agg_train_loss
:
0.4
f
}
'
f
'iter time (s):
{
iter_time
:
0.3
f
}
'
...
...
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