-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[AIR][Doc] New Example: LightningTrainer with experiment tracking tools #34812
[AIR][Doc] New Example: LightningTrainer with experiment tracking tools #34812
Conversation
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
…_tracking_example
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
…_tracking_example
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.
Nice! Can we also add this example to the table of contents under the other lightning examples.
Nit: Also, I think all lightning examples are tested on GPU right now, but this example only needs CPU? Maybe we can split the folder into examples/lightning/cpu
and examples/lightning/gpu
.
doc/source/train/examples/lightning/lightning_exp_tracking.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/lightning/lightning_exp_tracking.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/lightning/lightning_exp_tracking.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/lightning/lightning_exp_tracking.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/lightning/lightning_exp_tracking.ipynb
Outdated
Show resolved
Hide resolved
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
…_tracking_example
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
@justinvyu ✅ Created a separate build object that test this example with CPU only. |
…_tracking_example
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
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!
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.
Looks great! Few minor nits
"\n", | ||
"\n", | ||
":::{note}\n", | ||
"This guide shows how to use the native [Logger](https://lightning.ai/docs/pytorch/stable/extensions/logging.html) integrations in PyTorch Lightning. Ray AIR also provides {ref}`experiment tracking integrations <tune-exp-tracking-ref>` for all the tools mentioned in this example. We recommend sticking with the PyTorch Lightning loggers.\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.
Is there any scenario the user would want to use the AIR integrations instead?
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.
Yes. One case I can think of is when a user wants more flexible logging, our integration allows users to directly interact with (e.g. wandb) client objects. However, the Lightning's logger has another layer of abstraction, so some APIs may not be supported by Lightning's logger.
doc/source/train/examples/lightning/lightning_exp_tracking.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/lightning/lightning_exp_tracking.ipynb
Outdated
Show resolved
Hide resolved
Co-authored-by: matthewdeng <matthew.j.deng@gmail.com> Signed-off-by: Yunxuan Xiao <xiaoyunxuan1998@gmail.com>
…ls (ray-project#34812) Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
…ls (ray-project#34812) Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
…ls (ray-project#34812) Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com> Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Why are these changes needed?
Some users have trouble using wandb/cometML for experiment tracking while onboarding LightningTrainer. They are struggling between PTL native logger and our Ray integration.
This example aims to show the best practices of how to use PTL native logger in LightningTrainer.
Rendered doc: https://anyscale-ray--34812.com.readthedocs.build/en/34812/train/examples/lightning/lightning_exp_tracking.html
Related issue number
Close #34869
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.