karpathy / build-nanogptView external linksLinks
Video+code lecture on building nanoGPT from scratch
☆4,728Aug 13, 2024Updated last year
Alternatives and similar repositories for build-nanogpt
Users that are interested in build-nanogpt are comparing it to the libraries listed below
Sorting:
- The simplest, fastest repository for training/finetuning medium-sized GPTs.☆52,955Nov 12, 2025Updated 3 months ago
- Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.☆10,309Jul 1, 2024Updated last year
- LLM101n: Let's build a Storyteller☆36,281Aug 1, 2024Updated last year
- LLM training in simple, raw C/CUDA☆28,814Jun 26, 2025Updated 7 months ago
- llama3 implementation one matrix multiplication at a time☆15,239May 23, 2024Updated last year
- NanoGPT (124M) in 2 minutes☆4,624Updated this week
- A tiny scalar-valued autograd engine and a neural net library on top of it with PyTorch-like API☆14,598Aug 8, 2024Updated last year
- Inference Llama 2 in one file of pure C☆19,162Aug 6, 2024Updated last year
- 20+ high-performance LLMs with recipes to pretrain, finetune and deploy at scale.☆13,155Feb 8, 2026Updated last week
- A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training☆23,494Aug 15, 2024Updated last year
- Implement a ChatGPT-like LLM in PyTorch from scratch, step by step☆85,210Feb 9, 2026Updated last week
- Implementation for MatMul-free LM.☆3,055Dec 2, 2025Updated 2 months ago
- The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.☆8,891May 3, 2024Updated last year
- Minimal reproduction of DeepSeek R1-Zero☆12,748Apr 24, 2025Updated 9 months ago
- ☆4,525Jan 31, 2024Updated 2 years ago
- An autoregressive character-level language model for making more things☆3,657Jun 4, 2024Updated last year
- Neural Networks: Zero to Hero☆20,246Aug 18, 2024Updated last year
- Fully open reproduction of DeepSeek-R1☆25,879Nov 24, 2025Updated 2 months ago
- Fast and memory-efficient exact attention☆22,231Updated this week
- A high-throughput and memory-efficient inference and serving engine for LLMs☆70,205Updated this week
- Efficient Triton Kernels for LLM Training☆6,141Updated this week
- The official Meta Llama 3 GitHub site☆29,240Jan 26, 2025Updated last year
- A PyTorch native platform for training generative AI models☆5,069Updated this week
- Minimalistic 4D-parallelism distributed training framework for education purpose☆2,076Aug 26, 2025Updated 5 months ago
- Train transformer language models with reinforcement learning.☆17,360Updated this week
- Simple and efficient pytorch-native transformer text generation in <1000 LOC of python.☆6,180Aug 22, 2025Updated 5 months ago
- The official PyTorch implementation of Google's Gemma models☆5,602May 30, 2025Updated 8 months ago
- Welcome to the Llama Cookbook! This is your go to guide for Building with Llama: Getting started with Inference, Fine-Tuning, RAG. We als…☆18,199Nov 3, 2025Updated 3 months ago
- Course to get into Large Language Models (LLMs) with roadmaps and Colab notebooks.☆74,834Feb 5, 2026Updated last week
- Fine-tuning & Reinforcement Learning for LLMs. 🦥 Train OpenAI gpt-oss, DeepSeek, Qwen, Llama, Gemma, TTS 2x faster with 70% less VRAM.☆51,922Updated this week
- PyTorch native post-training library☆5,669Feb 9, 2026Updated last week
- Modeling, training, eval, and inference code for OLMo☆6,306Nov 24, 2025Updated 2 months ago
- tiktoken is a fast BPE tokeniser for use with OpenAI's models.☆17,258Feb 8, 2026Updated last week
- Meta Lingua: a lean, efficient, and easy-to-hack codebase to research LLMs.☆4,754Jul 18, 2025Updated 6 months ago
- verl: Volcano Engine Reinforcement Learning for LLMs☆19,132Updated this week
- The simplest, fastest repository for training/finetuning small-sized VLMs.☆4,647Oct 27, 2025Updated 3 months ago
- Perplexica is an AI-powered answering engine.☆28,872Jan 10, 2026Updated last month
- LLM inference in C/C++☆94,823Updated this week
- 🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal model…☆156,440Updated this week