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
| log_model: Save checkpoints in wandb dir to upload on W&B servers. | ||
| experiment: WandB experiment object. | ||
| 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.
Can you put this after the experiment flag, so that old args order is still working?
There was a problem hiding this comment.
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 <aedu.waelchli@gmail.com>
|
Hi, just checking if I need to do anything else on my side? |
| name: Optional[str] = None, | ||
| save_dir: Optional[str] = None, | ||
| offline: bool = False, | ||
| offline: Optional[bool] = False, |
There was a problem hiding this comment.
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.
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
What does this PR do?
Add more flexiblitiy to
WandbLoggerwithsync_stepparameter.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 🙃