Skip to main content
Training & Fine-tuningProduction

LitGPT

Lightning-AI / litgpt

Lightning AI’s lightweight recipes for LLM training, fine-tuning and deployment: 20+ models, pretraining, SFT, LoRA, quantisation and inference, with an emphasis on single-GPU runs and readable code.

13.8k stars 1549 forks Python Language Apache-2.0 License Last push 2026-11-10

Why choose it

  • Recipes are readable and modifiable.
  • Covers pretraining, SFT, LoRA and quantisation.
  • Designed to run on a single GPU where possible.

Not for

You need a large-scale multi-node training framework.
You want a no-code fine-tuning product.
Many recipes; check parameters and data formats model by model.

Minimum setup

  1. Run the smallest SFT recipe on one GPU.
  2. Record memory, throughput and evaluation scores.
  3. Try LoRA and compare quality with full fine-tuning.

Dependencies and cost

Check runtime, model weights and external service dependencies in the README.

License and usage boundaries

Code is Apache-2.0; model weights, training data and generated content may have separate terms — check each before commercial use.

Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

Alternatives and neighbors

  • LLaMA-Factory — Start here,One setup for fine-tuning: LoRA, QLoRA, full-parameter and DPO, with a WebUI and model export.
  • Unsloth — Start here,Accelerated QLoRA/LoRA fine-tuning: Triton kernels cut VRAM use and training time for 7B–70B models.
  • torchtune — Scale / performance,A PyTorch-native fine-tuning recipe library: readable training loops, FSDP, activation checkpointing and common post-training recipes.

Next steps

  • Open GitHub and read the README, LICENSE, latest release and issues first.
  • Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • Run a small sample first, then decide on production; never start with production data.

GitHub repository ↗ Docs ↗ Add to compare

Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.