-
Notifications
You must be signed in to change notification settings - Fork 37
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
Adds lightning fabric integration #749
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #749 +/- ##
==========================================
- Coverage 88.79% 86.81% -1.99%
==========================================
Files 53 55 +2
Lines 3357 3450 +93
Branches 294 304 +10
==========================================
+ Hits 2981 2995 +14
- Misses 337 416 +79
Partials 39 39 ☔ View full report in Codecov by Sentry. |
}, | ||
"outputs": [], | ||
"source": [ | ||
"import argparse\n", |
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.
seems to be unused?
Found a small issue while reviewing #749
"\n", | ||
"from dvclive.fabric import DVCLiveLogger\n", | ||
"\n", | ||
"DATASETS_PATH = (\"Datasets\")" |
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.
review: ipywidgets
was required for me by tqdm to run this cell
Great work! Thanks, @dberenbaum for pushing forward integrations. Some comments as I'm reviewing / running it:
|
@dberenbaum looks good to me overall (I didn't review really deep the Fabric existing loggers to actually deeply review the implementation, but overall it looks fine). I've enabled mypy back + left a comment about VS Code to review, probably also Studio needs to be reviewed / tried out. |
Should mypy be included in https://github.com/iterative/dvclive/blob/main/.pre-commit-config.yaml? |
I would ask @skshetry and the team on what the current state of the art for this :) |
@skshetry How should mypy checks be handled? |
ping @skshetry |
I'm able to see it in VS Code and Studio: Screen.Recording.2023-12-14.at.1.23.08.PM.movScreen.Recording.2023-12-14.at.1.22.36.PM.mov |
We use Since dvclive seems to have removed nox, you can try adding mypy to pre-commit but up to you. |
Depends on #757 now. The remaining test failure is unrelated. |
Closes #742. Fabric is Pytorch Lightning's attempt to abstract out the lightweight parts of their codebase so users can benefit from those without having to entirely adapt Lightning.
The existing Lightning logger was updated to inherit from this one. To make everything work with the existing Lightning logger, I added a
sync
method that decouplesnext_step
from saving all the info to Studio, dvc.yaml, etc. I made it public, but no strong opinion on whether it should be public or documented.See the Tensorboard logger in lightning for an example of another logger: