-
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
Update Example Model Used in Documention #18327
Comments
AutoEncoder is a great example for image classification tasks and for beginner to intermediate folks. I'd propose to only replace where we really need a more advanced demo. We can use Stable Diffusion and LitGPT as example for the GenAI models. |
Can I pick this up @JustinGoheen? |
Hi @Dev-Khant 👋 let's check with @carmocca and @awaelchli where they may like for you to assist. |
Hi @JustinGoheen, I don't have context on the objective of this issue, but I can see there's a long list of "secondary" items in the top post. Since you created it I think it's up to you to decide whether they should be changed or not |
Hey @JustinGoheen I'd love to contribute but I am a new contributor. Can I add some help? |
@sbshah97 would you like to work on lightning/pytorch/core/module? |
@Dev-Khant would you like to work on lightning/pytorch/trainer/trainer? |
Hello yes I can give it a try. |
Yes sure @JustinGoheen |
@Dev-Khant & @sbshah97: here are some clarifying instructions for you since these each involve docstrings. The basic steps are:
Thank you for your willingness to help, and definitely let me know if you have any questions 🙂 |
Hey Justin. I wanted to understand how to sort of approach this task. From what I understand there are two parts to it.
@JustinGoheen |
@sbshah97 I'll put together a guide for doctest for you. |
Thank you Justin. Looking forward to that. |
Hey Justin anything on this ? |
📚 Documentation
Overview
This issue serves to track multiple updates to examples provided in PyTorch Lightning and Lightning Fabric documentation.
Examples will be updated to reflect a common model called
LightningTransformer
. This common model will replace all occurrences ofLitAutoEncoder
and similar encoder-decoder modules.The purpose of these updates is to modernize the examples. However, care should be taken to provide examples which will run on most machines i.e. it is not suitable to provide an example of pretraining or finetuning an LLM as the default example, as this would result in issues for new users who do not possess a machine capable of such a task.
Each update should have a PR of its own, or be grouped in a cohesive manner in order to consolidate.
cc @Borda
Additional Resources
Follow the
docs/README
and documentation guidelines for information on docstring conventions and using doctest.Tasks
Please comment on this issue to have an example added to the to-do list or to be assigned to a particular task.
PyTorch Lightning
Must look in docs/source-pytorch/.
Priorities
lightning.pytorch.demos.transformer
#18452docs/source-pytorch/common/lightning_module.rst
#18451LightningDataModule
Docs #18461Secondary
Lightning Fabric
Must look in docs/source-fabric/
LightningTransformer Demo for PyTorch Lightning
Below is the Transformer that will be used. The model exists in demos, and can be abstracted from the docs in order to keep the example high-level.
Note
this is the same demo Transformer used for Lightning Fabric's home page.
WikiText2DataModule Demo for PyTorch Lightning
The text was updated successfully, but these errors were encountered: