Repository navigation
Stream privacy-safe progress logging from long-running steps - #56
Merged
Merged
Conversation
Generated algorithms printed nothing while training, so a long SLURM step (Curiosity's pretraining, about 20 h) could not be told apart from a hung one from its log. - The generated CLI configures logging to stderr before running a step: INFO by default (LOG_LEVEL overrides), one flushed line per record, so progress reaches logs/<step>.log and the SLURM output while running (print to a file is block-buffered). - The implementation guide gains "Progress logging": what long steps must log (phases with planned sizes, step/epoch out of total, training and tuning loss, kept checkpoint, inference counts) and that logs carry only aggregates and configuration, never subject IDs, times, codes, values, labels, predictions, trajectories or sample rows. - AGENTS.md summarises the rule. - The rendered-lifecycle test checks a step's logger.info line reaches its output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJQdbHt5icm1CgFVHsHTNx
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.
Why
Generated algorithms print nothing while they train. A long SLURM step, such as Curiosity's pretraining at about 20 h, can't be told apart from a hung one by its log; you have to attach to the job and run
nvidia-smi.What
__main__.py): configuresloggingto stderr just before running a step:INFOby default, overridable withLOG_LEVEL, one flushed line per record. Core already sends a step's stdout and stderr tologs/<step>.logand the SLURM output files as they're written, so progress now appears while the step runs. Aprintto a file would be block-buffered.profilesandcommandsoutput is unchanged.AGENTS.md: a one-bullet summary.train_supervisedand checks that theINFO <module>: …line reaches the step's output.Checks
ruff checkandruff format --checkpass.pytest -q: 87 passed.🤖 Generated with Claude Code
https://claude.ai/code/session_01NJQdbHt5icm1CgFVHsHTNx