Lightning-AI/pytorch-lightning
Pretrain, finetune ANY AI model of ANY size on 1 or 10,000+ GPUs with zero code changes.
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
The deep learning framework to pretrain and finetune AI models. Serving models? Use LitServe to build custom inference servers in pure Python. Examples • PyTorch Lightning • Fabric • Lightning Cloud • Community • Docs [](https://pypi.org/project/pytorch-lightning/) [](https://badge.fury.io/py/pytorch-lightning) [](https://pepy.tech/project/pytorch-lightning) [](https://anaconda.org/conda-forge/lightning) [](https://codecov.io/gh/Lightning-AI/pytorch-lightning) [](https://discord.gg/VptPCZkGNa) [](https://github.com/Lightning-AI/pytorch-lightning/blob/master/LICENSE) Training models in plain PyTorch requires writing and maintaining a lot of repetitive engineering code. Handling backpropagation, mixed precision, multi-GPU, and distributed training is error-prone and often reimplemented for every project. PyTorch Lightning organizes PyTorch code to automate this infrastructure while keeping full control over your model logic. You write the science. Lightning handles the engineering, and scales from CPU to multi-node GPUs without changing your core code. PyTorch experts can still opt into expert-level control. Fun analogy: If PyTorch is Javascript, PyTorch Lightning is ReactJS or NextJS. Lightning Cloud is the easiest way to run PyTorch Lightning without managing infrastructure. Start training with one command…
Read the full README ↗ · Preview checked 2026-11-01T06:48:32.787Z
Inside the original README — Document outline
- Why PyTorch Lightning?
- Looking for GPUs?
- Lightning has 2 core packages
- Quick start
- Install with optional dependencies
- Conda
- Install stable version
- Install bleeding-edge
- PyTorch Lightning example
- Convert from PyTorch to PyTorch Lightning
- Examples
- Advanced features
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
Documentation belongs to its respective authors. Reported project/model license: Apache-2.0. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
Pretrain, finetune ANY AI model of ANY size on 1 or 10,000+ GPUs with zero code changes.
Repository facts
- Owner
- Lightning-AI
- Primary language
- Python
- Stars
- 31,434
- Forks
- 3,842
- Open issues + pull requests
- 1,175
- License
- Apache-2.0
- Archived
- No
- Default branch
- master
- Created
- 2019-03-31T00:45:57.000Z
- Last push
- 2026-10-30T08:08:36.000Z
Topics and intended use
Owner-supplied topics: ai, artificial-intelligence, data-science, deep-learning, machine-learning, python, pytorch
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-11-01T13:20:54.848Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.
Related repositories
EbookFoundation/free-programming-books
donnemartin/system-design-primer