pytorch-lightning
PyTorch Lightning is the lightweight PyTorch wrapper for ML researchers. Scale your models. Write less boilerplate.
PyTorch Lightning is the lightweight PyTorch wrapper for ML researchers. Scale your models. Write less boilerplate.
To install this package, run one of the following:
Lightning is a way to organize your PyTorch code to decouple the science code from the engineering. It's more of a style-guide than a framework.
In Lightning, you organize your code into 3 distinct categories:
Although your research/production project might start simple, once you add things like GPU AND TPU training, 16-bit precision, etc, you end up spending more time engineering than researching. Lightning automates AND rigorously tests those parts for you.
Overall, Lightning guarantees rigorously tested, correct, modern best practices for the automated parts.
Summary
PyTorch Lightning is the lightweight PyTorch wrapper for ML researchers. Scale your models. Write less boilerplate.
Last Updated
Nov 6, 2025 at 09:56
License
Apache-2.0
Total Downloads
3.1K
Supported Platforms
Unsupported Platforms
GitHub Repository
https://github.com/Lightning-AI/lightningDocumentation
https://lightning.ai/docs/pytorch/stable