You saw the lightning. Now it's time to hear the thunder 🌩️
The Deep Learning framework based on Lightning.
pip install thunder
Currently thunder is not published on pypi. Install it via git clone.
It's as simple as 1, 2, 3:
-
Create a config (e.g.
base.config
):from myproject import MyDataset, MyModule from lightning import Trainer from torch.utils.data import DataLoader # these 3 fields are required train_data = DataLoader(MyDataset()) module = MyModule() trainer = Trainer()
-
Build the experiment:
thunder build base.config /path/to/some/folder
-
Run it
thunder run /path/to/some/folder
Also, 2 and 3 can be combined into a single command:
thunder build-run base.config /path/to/some/folder
See our docs for a full list of neat things thunder
🌩️ can do for you