Skip to content

Home

Cookiecutter-Pytorch-Lightning


This modern Cookiecutter template provides all the necessary tools for deep learning development, training, testing, and deployment. It supports the following features:

Deep Learning related

  • PyTorch and PyTorch Lightning for deep learning framework
  • Hydra for modular experiment configuration
  • Optional experiment trackers: Tensorboard, W&B, Neptune, Comet, MLFlow and CSVLogger

Python related

An example of a repository generated with this package can be found here.

Quickstart

On your local machine, navigate to the directory in which you want to create a project directory, and run the following command:

uvx cookiecutter https://github.com/foreverYoungGitHub/cookiecutter-pytorch-lightning.git

or if you don't have uv installed yet:

pip install cookiecutter
cookiecutter https://github.com/foreverYoungGitHub/cookiecutter-pytorch-lightning.git

Follow the prompts to configure your project. Once completed, a new directory containing your project will be created. Then navigate into your newly created project directory and follow the instructions in the README.md to complete the setup of your project.

Acknowledgements

This project is partially based on Florian Maas\'s great cookiecutter-uv and Lukas\'s great lightning-hydra-template repository.