Repository navigation
Compact distributed progress logging without changing its frequency - #196
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #196 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 445 445
Lines 39886 39919 +33
=========================================
+ Hits 39886 39919 +33
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An eight-GPU, two-node S3DF smoke run printed eight startup banners and a full rank table for every iteration. Progress logging also inserted a barrier before gathering serialized strings.
This change keeps
base.log_step=1and per-rank CSV logging unchanged. Global rank zero now prints the CLI startup banner and a compact two-line distributed progress summary (at most 100 columns per line) containing rank timing/memory ranges and mean loss/accuracy.base.log_ranks=truerestores detailed rank tables for training and on-the-fly validation.Compact output uses one fixed-size numeric tensor all-gather instead of Python-object serialization. The separate logging barrier is removed from both modes. This reduces logging work; no GPU throughput improvement is claimed without measurement. Training, gradient synchronization, checkpoints, and final validation aggregation are unchanged.
Validation:
To test with spine-prod's multi-node smoke helper, export
SPINE_LOCAL_PATHpointing to a shared checkout offeature/compact-ddp-logging. The checkout runs inside the existing SPINE container. The companion spine-prod change allowsNCCL_DEBUG=WARNto suppress NCCL diagnostic traffic while comparing the output. Use a fresh run directory; the default logging frequency remains every iteration.S3DF testing completed successfully: three 1,000-step runs across two nodes/eight GPUs, with all checkpoints verified. Compact frequent and rare logging both took approximately 95 seconds over the same 900-step interval; detailed output took approximately 97 seconds. Logging frequency remains unchanged.
Release preparation is intentionally excluded: after this PR merges, the 1.5.1 version/changelog will be committed directly to main.