Upload lightning_config.yaml to W&B for experiment traceability#154
Draft
Upload lightning_config.yaml to W&B for experiment traceability#154
Conversation
Co-authored-by: aditya0by0 <65857172+aditya0by0@users.noreply.github.com>
Co-authored-by: aditya0by0 <65857172+aditya0by0@users.noreply.github.com>
…nd clarity Co-authored-by: aditya0by0 <65857172+aditya0by0@users.noreply.github.com>
Co-authored-by: aditya0by0 <65857172+aditya0by0@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Upload lightning_config.yaml to W&B online run logs
Upload lightning_config.yaml to W&B for experiment traceability
Feb 17, 2026
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.
LightningCLI's
lightning_config.yaml(renamed to avoid W&B'sconfig.yamlclash) is saved locally but not synced to W&B online logs. This config contains critical reproducibility metadata—instantiated classes, CLI arguments, model architecture—that W&B's auto-generated config lacks.Changes
chebai/callbacks/save_config.py: NewCustomSaveConfigCallbackextending Lightning'sSaveConfigCallback. Overridessave_config()to upload viawandb.save()whenWandbLoggeris detected. Handles missing wandb package and config file gracefully.chebai/cli.py: Passsave_config_callback=CustomSaveConfigCallbacktoChebaiCLIinstantiation.tests/unit/callbacks/test_save_config.py: Unit tests covering upload with/without WandbLogger and edge cases.Implementation
The callback leverages Lightning's extension point after config is written to disk:
Config files are now available in W&B's Files tab for all runs using WandbLogger. No impact on non-W&B workflows.
Original prompt
lightning_config.yamlto W&B online run logs for better traceability #121💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.