# PyTorch Lightning

> Organises PyTorch code and handles the training engineering, from one CPU to thousands of GPUs

Source: https://talira.ai/catalog/pytorch-lightning-2dcg53pn
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Library
- Categories: [ai / ml / deep learning frameworks](https://talira.ai/categories/ai/ml/deep-learning-frameworks), [ai / ml / distributed training](https://talira.ai/categories/ai/ml/distributed-training)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source under Apache 2.0. Lightning AI's cloud platform, which runs it on managed GPUs, is a separate paid product with a free tier.
- Free tier: yes[^1]
- Backed by: [Lightning AI](https://talira.ai/orgs/lightning-ai.md)

PyTorch Lightning is a Python framework that organises [PyTorch](https://talira.ai/catalog/pytorch-95ycaf9h.md) code so the training loop's engineering is handled for you: backpropagation, mixed precision, multi-GPU and multi-node distributed training, checkpointing and logging. You write the model logic in a LightningModule and the Trainer runs it, scaling from a CPU to many GPU nodes without changing the core code. Lightning Fabric, in the same package, gives expert-level control for people who want to keep their own training loop while still scaling it. It's used to pretrain and finetune models of any size, and is maintained by Lightning AI, whose cloud platform runs it without managing infrastructure.

## Links

- Website: https://lightning.ai/docs/pytorch/
- GitHub: https://github.com/Lightning-AI/pytorch-lightning
- Docs: https://lightning.ai/docs/pytorch/stable/

## Problems it solves

- stop rewriting the same PyTorch training loop boilerplate for every project
- train my PyTorch model on multiple GPUs without rewriting it
- add mixed precision and checkpointing to PyTorch training
- scale PyTorch training from my laptop to a GPU cluster

## Features

- Trainer that automates the PyTorch training loop
- mixed precision
- multi-GPU and multi-node distributed training
- scale without changing model code
- Lightning Fabric for expert control of your own loop
- checkpointing and logging

## Trust

Overall: 0.67 out of 1.
Signals: maintenance 0.77, adoption 0.90, momentum 0.77, community 1.00, backing 0.30, extensibility 0.00.

- last commit today
- 25 commits in the last 90 days
- latest release 2.6.6 2 months ago
- 31.5k GitHub stars
- 1075 contributors
- backed by Lightning AI

## Related

- Works with [PyTorch](https://talira.ai/catalog/pytorch-95ycaf9h.md)

## Alternatives

- [PyTorch](https://talira.ai/catalog/pytorch-95ycaf9h.md): Tensors and dynamic neural networks in Python with strong GPU acceleration

## Sources

[^1]: https://github.com/Lightning-AI/pytorch-lightning (checked 24 Nov 2026)
[^2]: https://github.com/Lightning-AI/pytorch-lightning/blob/master/LICENSE (checked 24 Nov 2026)
