Skip to content

Compact distributed progress logging without changing its frequency - #196

Merged
francois-drielsma merged 3 commits into
mainfrom
feature/compact-ddp-logging
Nov 25, 2026
Merged

francois-drielsma merged 3 commits into
mainfrom
feature/compact-ddp-logging

Conversation

@francois-drielsma

@francois-drielsma francois-drielsma commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

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=1 and 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=true restores 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:

  • 524 focused logging, CLI, driver, validation, configuration, and runtime tests passed with PyTorch, including a real two-process Gloo collective.
  • 516 passed / 6 skipped with core dependencies only.
  • Formatting and lint hooks passed.
  • GPU/NCCL testing remains to be performed on S3DF using this branch.

To test with spine-prod's multi-node smoke helper, export SPINE_LOCAL_PATH pointing to a shared checkout of feature/compact-ddp-logging. The checkout runs inside the existing SPINE container. The companion spine-prod change allows NCCL_DEBUG=WARN to 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.

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (770e528) to head (5a72414).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #196   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          445       445           
  Lines        39886     39919   +33     
=========================================
+ Hits         39886     39919   +33     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/spine/bin/cli.py 100.00% <100.00%> (ø)
src/spine/driver.py 100.00% <100.00%> (ø)
src/spine/logging/manager.py 100.00% <100.00%> (ø)
src/spine/model/validation.py 100.00% <100.00%> (ø)
src/spine/utils/torch/runtime.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@francois-drielsma
francois-drielsma merged commit 4cf12e7 into main Nov 25, 2026
19 checks passed
@francois-drielsma
francois-drielsma deleted the feature/compact-ddp-logging branch November 25, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant