karpathy

    karpathy/nanochat

    The best ChatGPT that $100 can buy.

    backend
    Python
    MIT
    60.2K stars
    8.4K forks
    60.2K GitHub watchers
    Updated Nov 4, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    The project lists 51 contributors on GitHub.

    Peaked at #10 in the weekly ranking the week of Feb 8, its best in the past year.

    Use Cases & Benefits

    • Implements a full-stack, minimal Large Language Model like ChatGPT that can be trained and run end-to-end on a single GPU node.
    • Enables affordable, hackable, and fully customizable LLM training and inference with a simple codebase and low compute cost.
    • Use for experimenting with training your own ChatGPT-style model on a budget under $100 using accessible scripts and minimal dependencies.
    • Use for educational purposes to learn LLM internals by running a clean, readable, and modifiable transformer training pipeline.
    • Use for deploying a personal chatbot with a web UI that you can customize and extend with your own data and training tweaks.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present

    Watch-outs

    • No GitHub releases; pin a commit or tag instead of a release.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    The best ChatGPT that $100 can buy.

    This repo is a full-stack implementation of an LLM like ChatGPT in a single, clean, minimal, hackable, dependency-lite codebase. nanochat is designed to run on a single 8XH100 node via scripts like speedrun.sh, that run the entire pipeline start to end. This includes tokenization, pretraining, finetuning, evaluation, inference, and web serving over a simple UI so that you can talk to your own LLM just like ChatGPT. nanochat will become the capstone project of the course LLM101n being developed by Eureka Labs.

    Excerpt from the karpathy/nanochat README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Nov 4: +311

    +3,091 stars over 86 days across 8 snapshot days; best day +311 on Nov 4.

    Forks

    8.4K+522

    Open issues

    140+38

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    karpathy/nanochat compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15—
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16—
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29—
    karpathy/nanochat60.2K—35—
    Category median56.0K+2.3K29—

    Also by karpathy

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description