Build nanoGPT is an educational reproduction of GPT-style language-model training built step by step from an initially empty file. Its Git history is intentionally organized so learners can follow each architectural and training improvement as it is introduced. The accompanying video lecture explains how the code develops into a reproduction of the 124-million-parameter GPT-2 model. The project covers tokenization, transformer architecture, optimization, distributed training, data loading, and performance improvements. It includes FineWeb data preparation and HellaSwag evaluation utilities. With sufficient computing resources, the same general code can scale toward larger GPT-3-style configurations. The repository focuses on pretraining rather than instruction tuning or conversational fine-tuning.

Features

  • GPT-2 reproduction from scratch
  • Step-by-step educational Git history
  • Transformer model implementation
  • FineWeb training data preparation
  • HellaSwag model evaluation
  • GPU and distributed training optimizations

Project Samples

Project Activity

See All Activity >

Categories

AI Models

Follow build nanoGPT

build nanoGPT Web Site

Other Useful Business Software
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of build nanoGPT!

Additional Project Details

Programming Language

Python

Related Categories

Python AI Models

Registered

1 hour ago