-
Notifications
You must be signed in to change notification settings - Fork 1
Add auto loss logging #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5cbdf05
Refactored current loss group by adding 1) a currently unused but pot…
wli51 d891e75
Refactored current realizations of logging trainers to 1) pass self.e…
wli51 7e0eae7
Add auto loss group logging functionality to MlflowLogger
wli51 b124f32
Refactor test fixture by moving fixtures only under the trainer scope…
wli51 2ae005c
Add tests for automatic loss-group config logging in MlflowLogger
wli51 48bed60
Add Progress class abstraction for more versatile weight scheduling
wli51 adada92
Refactored loss item and group and trainer to use and update the newl…
wli51 d8fb72c
Update logging method documentation for clarity
wli51 47e8b89
Add docstrings to test methods for clarity on logging behavior
wli51 4fc7a65
Remove older tests for MlflowLogger focusing only on loss logging beh…
wli51 58147ee
Add model class path logging as tag and tests as it is a minimal but …
wli51 13fc3f7
Update version to 0.4.5 in pyproject.toml and document MLflow auto lo…
wli51 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| """ | ||
| progress.py | ||
|
|
||
| Progress tracking for loss weight scheduling. | ||
|
|
||
| Provides a centralized abstraction for training progress state that can be used | ||
| by loss schedulers operating at different granularities (epoch, step, etc.). | ||
| Designed to be minimal and extensible without overcomplicating the current API. | ||
| """ | ||
|
|
||
| from dataclasses import dataclass | ||
|
|
||
|
|
||
| @dataclass | ||
| class Progress: | ||
| """ | ||
| Tracks training progress for loss weight scheduling. | ||
|
|
||
| Provides centralized access to scheduling state including epoch and step, | ||
| with room for future custom scheduling granularities. | ||
| """ | ||
| epoch: int = 0 | ||
| step: int = 0 | ||
|
|
||
| def set_epoch(self, epoch: int) -> None: | ||
| """ | ||
| Update the current epoch number. | ||
| """ | ||
| self.epoch = epoch | ||
|
|
||
| def set_step(self, step: int) -> None: | ||
| """ | ||
| Update the current step number. | ||
| Intended to be accumulated across epoch for a global step count | ||
| that can be used for step-based scheduling. | ||
| """ | ||
| self.step = step |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.