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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
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

2 hours ago