#1515th of 15 in ML frameworks and libraries

pytorch-lightning

PyTorch training framework that removes loop, device and distributed boilerplate

Stars
31.4k
License
Apache-2.0
Last commit
Sep 2026
Last release
Sep 2026
Language
Python
Stars, last 29 weeks+618
24 Mar 2026: 30,788 stars31 Mar 2026: 30,811 stars7 Apr 2026: 30,844 stars14 Apr 2026: 30,885 stars21 Apr 2026: 30,910 stars28 Apr 2026: 30,936 stars5 May 2026: 30,966 stars12 May 2026: 30,993 stars19 May 2026: 31,014 stars26 May 2026: 31,036 stars2 Jun 2026: 31,061 stars9 Jun 2026: 31,075 stars16 Jun 2026: 31,095 stars23 Jun 2026: 31,112 stars30 Jun 2026: 31,132 stars7 Jul 2026: 31,146 stars14 Jul 2026: 31,165 stars21 Jul 2026: 31,178 stars28 Jul 2026: 31,198 stars4 Aug 2026: 31,218 stars11 Aug 2026: 31,239 stars18 Aug 2026: 31,253 stars25 Aug 2026: 31,273 stars1 Sept 2026: 31,284 stars8 Sept 2026: 31,304 stars15 Sept 2026: 31,321 stars22 Sept 2026: 31,346 stars29 Sept 2026: 31,363 stars6 Oct 2026: 31,383 stars13 Oct 2026: 31,406 stars

30,788 on 24 Mar 202631,406 on 13 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

PyTorch Lightning wraps PyTorch models in a LightningModule and a Trainer that handles the training loop, mixed precision, checkpointing, logging and multi-device scaling. The same package ships Lightning Fabric, a lower-level API that keeps your own loop and adds device placement and distributed strategies (DDP, FSDP, DeepSpeed). Runs on CPU, CUDA, Apple Silicon (MPS) and TPU.

Who it is for: ML engineers training or finetuning PyTorch models across GPUs or nodes

Strengths

  • Same code scales from CPU to multi-node GPU or TPU by changing Trainer arguments
  • Fabric offers a minimal-diff path for existing PyTorch loops, with DDP, FSDP and DeepSpeed
  • Built-in early stopping and checkpointing callbacks; loggers for TensorBoard, W&B, Comet, MLflow
  • Exports to TorchScript and ONNX; README cites about 300 ms per epoch overhead

Weaknesses

  • Training only; serving needs the separate LitServe project
  • Trainer requires restructuring code into LightningModule hooks
  • README promotes Lightning Cloud, and most examples run as Lightning Studios
  • Abstraction layer over PyTorch can complicate debugging unusual loops

What it needs

  • GPU optional
  • Needs PyTorch
  • Models: PyTorch nn.Module, TorchScript export, ONNX export

Also in ML frameworks and libraries

See all 15
Also in ML frameworks and libraries
RankProjectScore
1transformersModel-definition library for text, vision, audio and multimodal models167.7k starsApache-2.094 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd for deep learning104.9k starscustom license92 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models62.5k starsAGPL-3.086 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and reference training scripts37.2k starsApache-2.082 out of 100
#5tensorflowTensor and neural network framework with Python and C++ APIs201k starsApache-2.080 out of 100