LitGPT
Recipes for pretraining and finetuning open LLMs
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.
Compare LitGPT
3 head-to-head comparisons.
Similar self-hosted ai apps
OpenClaw
Self-Hosted AIThe AI that actually does things
Hermes Agent
Self-Hosted AIThe AI agent that grows with you
OpenCode
Self-Hosted AIThe open source AI coding agent
Replaces Claude Code, Cursor
Hugging Face Transformers
Self-Hosted AIState-of-the-art machine learning model library
Replaces OpenAI API
Dify
Self-Hosted AIOpen-source platform for building production LLM apps
Replaces OpenAI Assistants, Vertex AI Agent Builder
Langflow
Self-Hosted AIVisual framework for building AI agents and RAG pipelines
Replaces Vertex AI Agent Builder