talira

Compare

nanoGPTTrain LLM From ScratchnanochatAxolotl
What it isAndrej Karpathy's minimal repository for training and fine-tuning medium-sized GPTs, now deprecated for nanochatPlain-PyTorch codebase to pretrain and post-train your own small language modelsThe best ChatGPT that $100 can buyA free and open source framework for fine-tuning and post-training large language models
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.120.690.500.77
Stars65176133396094312756
Last commit2025-11-122026-11-162026-07-032026-11-20
LicenceMITMITMITApache-2.0
PricingFree and open sourceFree and open sourceFree and open sourceFree
Free tierYesYesYes—
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins———Yes
MCP server————
CompanyAndrej KarpathyFareed KhanAndrej KarpathyAxolotl AI
Features
  • reproduces GPT-2 (124M) on OpenWebText
  • fine-tunes from OpenAI's GPT-2 checkpoints
  • character-level Shakespeare quick start
  • about 600 lines of training and model code
  • pretraining and post-training stages (SFT, reward model, PPO, DPO, ORPO, KTO, GRPO) in plain PyTorch
  • per-stage JSON configs with command-line overrides
  • presets from a CPU-sized 369K-parameter model to billion-parameter configs
  • classic and modern Transformer architectures, including Mixture of Experts
  • Streamlit control panel
  • Tokenization, pretraining, finetuning, evaluation and inference in one codebase
  • One --depth setting derives every other hyperparameter
  • Speedrun script for a GPT-2-capability model on one 8×H100 node
  • Chat with the trained model from the command line
  • Runs on a single GPU with gradient accumulation
  • One YAML config for preprocessing, training, evaluation, quantization and inference
  • Full fine-tuning, LoRA, QLoRA and quantization-aware training
  • Preference tuning (DPO, IPO, KTO, ORPO) and RL (GRPO, GDPO)
  • Multi-GPU and multi-node training with FSDP, DeepSpeed and N-D parallelism
  • Vision-language and audio model fine-tuning
  • GGUF export for llama.cpp and Ollama
  • Docs for AI coding agents bundled with the CLI (axolotl agent-docs)
Limitations
    • billion-parameter configs need a large GPU; a free Colab or Kaggle T4 fits the 13M model but not a billion-parameter one
    • Built for 80 GB GPUs: smaller cards need the device batch size lowered to avoid running out of memory
    • Needs an NVIDIA or AMD GPU: the installation guide lists one as a requirement, with Ampere or newer for bf16 and Flash Attention
    • Telemetry is on by default: it sends system, hardware, model and error information to PostHog until you set AXOLOTL_DO_NOT_TRACK=1