awaelchli / lightning-quick-start

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lightning Quick Start App

Install Lightning

pip install lightning

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, you can easily convert the training component into a Sweep Component.

pip install lightning-hpo
lightning run app app_hpo.py

Learn how it works

The components are here and the code is heavily commented.

Once you understand well this example, you aren't a beginner with Lightning App anymore 🔥

About


Languages

Language:Python 100.0%