LI

LitGPT

Recipes for pretraining and finetuning open LLMs

Self-Hosted AI ★ 13.7k stars Hard setup Apache-2.0

LitGPT is a collection of open-source implementations of 20+ large language models with recipes for pretraining, finetuning, and deployment. Maintained by Lightning AI, it is built for running models on your own hardware.

Key features

  • 20+ model implementations
  • Pretraining and finetuning recipes
  • Quantization support
  • Self-host friendly

Strengths

  • Released under the Apache-2.0 license
  • Mature project with 13.7k GitHub stars
  • Written in Python

Is LitGPT secure?

OSV.dev has no published security advisories for LitGPT's repository. No known vulnerabilities is not proof of security: it means none have been publicly catalogued.

Source: OSV.dev, checked 2026-10-14. How this is measured.

LitGPT replaces

Health badge

Maintain LitGPT? Add its health score to your README. The badge links back to this page.

SelfHostIndex: 94 · excellent

Markdown
[![SelfHostIndex health score for LitGPT](https://selfhostindex.com/badge/litgpt.svg)](https://selfhostindex.com/app/litgpt/)
HTML
<a href="https://selfhostindex.com/app/litgpt/"><img src="https://selfhostindex.com/badge/litgpt.svg" alt="SelfHostIndex health score for LitGPT"></a>
reStructuredText
.. image:: https://selfhostindex.com/badge/litgpt.svg
   :alt: SelfHostIndex health score for LitGPT
   :target: https://selfhostindex.com/app/litgpt/

The score is recomputed on every nightly rebuild from public repository data — see how it is calculated.

Compare LitGPT

3 head-to-head comparisons.

Similar self-hosted ai apps