-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
feat(wandb): add sync_step #5351
feat(wandb): add sync_step #5351
Conversation
Hello @borisdayma! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-01-24 16:18:30 UTC |
Codecov Report
@@ Coverage Diff @@
## release/1.2-dev #5351 +/- ##
================================================
+ Coverage 89% 92% +4%
================================================
Files 153 153
Lines 10840 10845 +5
================================================
+ Hits 9628 10022 +394
+ Misses 1212 823 -389 |
this shall go in release/1.2-dev? |
@borisdayma mind rebase your change on |
@Borda I tried to rebase, then just merge |
be44f3c
to
121a8c0
Compare
prefix: A string to put at the beginning of metric keys. | ||
sync_step: Sync Trainer step with wandb step. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put this after the experiment flag, so that old args order is still working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the order within the function itself.
For the description of args, I let this order because I thought it made more sense. For example id
and version
are the same thing. Is that ok?
Co-authored-by: Adrian Wälchli <[email protected]>
Hi, just checking if I need to do anything else on my side? |
@@ -85,14 +86,15 @@ def __init__( | |||
self, | |||
name: Optional[str] = None, | |||
save_dir: Optional[str] = None, | |||
offline: bool = False, | |||
offline: Optional[bool] = False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the change here is necessary. Optional[bool]
is equivalent to Union[bool, None]
, and offline
only accepts bool
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should work but actually I want to clean up the way we pass init parameters in a follow-up PR and suggest to just use kwargs.
The possible parameters has evolved and we could just refer to wandb.init doc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
What does this PR do?
Add more flexiblitiy to
WandbLogger
withsync_step
parameter.Fixes #5194
Fixes #4980
Fixes #5070
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃