LitGPT gives you clean, readable implementations of 20+ pretrained language models without the usual framework bloat. You can load models like Microsoft's Phi-2 with just a few lines of Python and get access to production-ready training workflows. It's maintained by the community with 9.2K GitHub stars, so you're not dealing with abandoned code. The appeal here is simplicity: if you need to actually understand what's happening under the hood or customize model behavior without fighting through abstraction layers, this is a solid choice. Just note that Snyk flagged some warnings in the security audit, so review dependencies before using in production.

skills.sh installs
1K
GitHub stars
14.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill implementing-llms-litgpt --agent claude-code

Installs into .claude/skills of the current project.

Files

LitGPT - Clean LLM Implementations

Quick start

LitGPT provides 20+ pretrained LLM implementations with clean, readable code and production-ready training workflows.

Installation:

pip install 'litgpt[extra]'

Load and use any model:

from litgpt import LLM

# Load pretrained model
llm = LLM.load("microsoft/phi-2")

# Generate text
result = llm.generate(
    "What is the capital of France?",
    max_new_tokens=50,
    temperature=0.7
)
print(result)

List available models:

litgpt download list

Common workflows

Workflow 1: Fine-tune on custom dataset

Copy this checklist:

Fine-Tuning Setup:
- [ ] Step 1: Download pretrained model
- [ ] Step 2: Prepare dataset
- [ ] Step 3: Configure training
- [ ] Step 4: Run fine-tuning

Step 1: Download pretrained model

# Download Llama 3 8B
litgpt download meta-llama/Meta-Llama-3-8B

# Download Phi-2 (smaller, faster)
litgpt download microsoft/phi-2

# Download Gemma 2B
litgpt download google/gemma-2b

Models are saved to checkpoints/ directory.

Step 2: Prepare dataset

LitGPT supports multiple formats:

Sponsors

Details

Repository
github.com/orchestra-research/ai-research-skills
Categories
AI & Agent Building, Data Science & ML
First seen
Jun 3, 2026

More from orchestra-research/ai-research-skills

All 95
1softaworks avatarrequirements-claritysoftaworks/agent-toolkitClarify ambiguous requirements through focused dialogue before implementation. Use when requirements are unclear, features are complex (>2 days), or involve cro1Kskills.sh installs
2orchestra-research avatarmiles-rl-trainingorchestra-research/ai-research-skillsProvides guidance for enterprise-grade RL training using miles, a production-ready fork of slime. Use when training large MoE models with FP8/INT4, needing trai1Kskills.sh installs
3orchestra-research avatarnnsight-remote-interpretabilityorchestra-research/ai-research-skillsProvides guidance for interpreting and manipulating neural network internals using nnsight with optional NDIF remote execution. Use when needing to run interpre1Kskills.sh installs
4orchestra-research avatarrwkv-architectureorchestra-research/ai-research-skillsRNN+Transformer hybrid with O(n) inference. Linear time, infinite context, no KV cache. Train like GPT (parallel), infer like RNN (sequential). Linux Foundation1Kskills.sh installs
5orchestra-research avatarskypilot-multi-cloud-orchestrationorchestra-research/ai-research-skillsMulti-cloud orchestration for ML workloads with automatic cost optimization. Use when you need to run training or batch jobs across multiple clouds, leverage sp1Kskills.sh installs
6orchestra-research avatarllavaorchestra-research/ai-research-skillsLarge Language and Vision Assistant. Enables visual instruction tuning and image-based conversations. Combines CLIP vision encoder with Vicuna/LLaMA language mo1Kskills.sh installs