Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lightning-universe/lightning-quick-start
https://github.com/lightning-universe/lightning-quick-start
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lightning-universe/lightning-quick-start
- Owner: Lightning-Universe
- Created: 2022-04-04T00:00:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T15:54:17.000Z (3 months ago)
- Last Synced: 2024-08-01T17:53:26.219Z (3 months ago)
- Language: Python
- Size: 15 MB
- Stars: 13
- Watchers: 12
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Lightning Quick Start App
### Install Lightning
```bash
pip install lightning[app]
```### Locally
In order to run the application locally, run the following commands
```
pip install -r requirements.txt
lightning run app app.py
```### Cloud
In order to run the application cloud, run the following commands
### On CPU
```
lightning run app app.py --cloud
```### On GPU
```
USE_GPU=1 lightning run app app.py --cloud
```### Adding HPO support to Quick Start App.
Using [Lightning HPO](https://github.com/Lightning-AI/LAI-lightning-hpo-App), you can easily convert the training component into a Sweep Component.
```bash
pip install lightning-hpo
lightning run app app_hpo.py
```### Learn how it works
The components are [here](https://github.com/Lightning-AI/lightning-quick-start/blob/main/quick_start/components.py) and the code is heavily commented.
Once you understand well this example, you aren't a beginner with Lightning App anymore 🔥