Lightning-AI/lightning-thunder
PyTorch compiler that accelerates training and inference. Get built-in optimizations for performance, memory, parallelism, and easily write your own. observed · 2026-08-28
Health v2 · maintenance only
72/100
- Activity 99
- Release rhythm 41
- Longevity 64
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 43
- age_days: 898
- days_rel: 315
- days_push: 9
- n_releases_24m: 6
Adoption not part of the score
1469 stars · 119 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Lightning Thunder is a source-to-source deep learning compiler for PyTorch that optimizes models for training and inference. It provides a Pythonic IR, composable optimization transforms (fusion, quantization, distributed parallelism), and an extensible dispatch mechanism to fusers and optimized kernel libraries.
Use cases
- speed up PyTorch model training and inference
- fuse PyTorch ops into optimized kernels
- quantize models to FP8/FP4 precision
- convert single-GPU models to distributed training
- profile and inspect PyTorch computation graphs
- write custom Triton kernels for PyTorch models
- avoid graph breaks when tracing PyTorch programs
When to choose
- you want faster PyTorch execution without leaving Python
- you need composable, inspectable optimization recipes across model families
- you want to target new hardware like NVIDIA Blackwell with custom kernels
- you need distributed TP/PP/DP transforms applied programmatically
When to avoid
- you need a battle-tested production compiler with broad ecosystem support (torch.compile)
- your models rely on ops Thunder does not yet cover
- you are not using PyTorch
Facets
library · maturity active
compiler machine-learning deep-learning llm-inference llm-training gpu-computing benchmarking deep-learning machine-learning compilers gpu-computing large-language-models performance python cross-platform pytorch-compiler kernel-fusion quantization distributed-training triton cuda-graphs source-to-source torch-compile-alternative gpu linux
2 sources
- readme: https://github.com/Lightning-AI/lightning-thunder · fetched 2026-08-28 · 9b4e47b43751
- registry_pypi: https://pypi.org/pypi/lightning-thunder/json · fetched 2026-08-29 · 689a4cd3e793
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Lightning-AI/lightning-thunder | main | 72 |
For agents
markdown · JSON · MCP: product_card(name="Lightning-AI/lightning-thunder")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem