karpathy

    karpathy/nn-zero-to-hero

    Neural Networks: Zero to Hero

    deep-learning
    Jupyter Notebook
    MIT
    25.9K stars
    3.8K forks
    397 GitHub watchers
    Updated Nov 19, 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 2 contributors on GitHub.

    Use Cases & Benefits

    • Provides a comprehensive course on building and understanding neural networks from scratch using Jupyter notebooks and Python.
    • Offers step-by-step, code-driven lectures that build intuition by manually implementing neural network components without relying on high-level libraries.
    • Use for learning foundational neural network concepts and backpropagation through hands-on coding exercises.
    • Use for developing and experimenting with character-level language models and multilayer perceptrons in PyTorch.
    • Use for constructing advanced architectures like WaveNet and GPT transformers to understand modern deep learning models.

    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

    • Warning: No commits in over a year (last push Aug 2024).
    • Owned by an individual account with only 2 contributors on GitHub; plan for bus-factor risk.
    • 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

    A course on neural networks that starts all the way at the basics. The course is a series of YouTube videos where we code and train neural networks together. The Jupyter notebooks we build in the videos are then captured here inside the lectures directory. Every lecture also has a set of exercises included in the video description. (This may grow into something more respectable).

    Lecture 1: The spelled-out intro to neural networks and backpropagation: building micrograd

    Backpropagation and training of neural networks. Assumes basic knowledge of Python and a vague recollection of calculus from high school.

    Lecture 2: The spelled-out intro to language modeling: building makemore

    We implement a bigram character-level language model, which we will further complexify in followup videos into a modern Transformer language model, like GPT. In this video, the focus is on (1) introducing torch.Tensor and its subtleties and use in efficiently evaluating neural networks and (2) the overall framework of language modeling that includes model training, sampling, and the evaluation of a loss (e.g. the negative log likelihood for classification).

    Lecture 3: Building makemore Part 2: MLP

    We implement a multilayer perceptron (MLP) character-level language model. In this video we also introduce many basics of machine learning (e.g. model training, learning rate tuning, hyperparameters, evaluation, train/dev/test splits, under/overfitting, etc.).

    Lecture 4: Building makemore Part 3: Activations & Gradients, BatchNorm

    Excerpt from the karpathy/nn-zero-to-hero 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

    Forks

    3.8K+209

    Open issues

    54+1

    Compared with peers in Deep Learning

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

    karpathy/nn-zero-to-hero compared with Deep Learning repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    harvard-edge/cs249r_book30.2K—659 days ago
    karpathy/nn-zero-to-hero25.9K—6—
    onnx/onnx21.7K—6343 days ago
    mlc-ai/web-llm19.4K—602 days ago
    lukas-blecher/LaTeX-OCR16.6K—18—
    SharpAI/DeepCamera3.1K—30250 days ago
    Category median19.4K—60—

    Also by karpathy

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description