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
ColossalAI
Commits
15aab147
Unverified
Commit
15aab147
authored
Jun 21, 2022
by
Frank Lee
Committed by
GitHub
Jun 21, 2022
Browse files
[zero] avoid zero hook spam by changing log to debug level (#1137)
parent
73ad05fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
colossalai/nn/parallel/data_parallel.py
colossalai/nn/parallel/data_parallel.py
+1
-1
colossalai/zero/utils/zero_hook.py
colossalai/zero/utils/zero_hook.py
+1
-1
No files found.
colossalai/nn/parallel/data_parallel.py
View file @
15aab147
...
...
@@ -181,7 +181,7 @@ class ColoDDPV2(ColoDDP):
def
_post_backward
(
self
):
self
.
chunk_manager
.
exec_lazy_release
()
self
.
_setup_grads_ptr
()
self
.
_logger
.
info
(
self
.
_logger
.
debug
(
f
'layout time:
{
self
.
gemini_manager
.
_layout_time
}
, evict time:
{
self
.
gemini_manager
.
_evict_time
}
, PCIE move vol:
{
self
.
gemini_manager
.
_cpu_gpu_move_volume
}
B'
)
self
.
gemini_manager
.
post_iter
()
...
...
colossalai/zero/utils/zero_hook.py
View file @
15aab147
...
...
@@ -113,7 +113,7 @@ class ZeroHook(BaseOpHook):
def
post_iter
(
self
):
if
self
.
_stateful_tensor_mgr
:
self
.
logger
.
info
(
self
.
logger
.
debug
(
f
"CPU-GPU data moving this iteration
{
self
.
_stateful_tensor_mgr
.
cpu_gpu_move_volume
/
1e9
}
GB, get layout info time:
{
self
.
_stateful_tensor_mgr
.
_layout_time
}
, evict cpu time:
{
self
.
_stateful_tensor_mgr
.
_evict_time
}
"
,
ranks
=
[
0
])
self
.
_stateful_tensor_mgr
.
finish_iter
()
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