nanogpt-lecture contains the code developed during the nanoGPT installment of Andrej Karpathy's Neural Networks: Zero to Hero lecture series. It is designed to accompany the video so students can inspect, modify, and rerun the implementation themselves. The repository begins with a simple character-level bigram language model and develops toward a GPT-style transformer. Its compact Python code exposes core ideas such as tokenization, embeddings, attention, transformer blocks, training, and text generation. The Git history mirrors much of the progression shown during the lecture. The implementation favors educational clarity over production optimization and includes known limitations in areas such as weight initialization. It therefore serves as a practical bridge between introductory language modeling and larger GPT implementations.

Features

  • Character-level language modeling
  • Bigram baseline implementation
  • Self-attention and transformer layers
  • GPT-style text generation
  • Lecture-aligned Git history
  • Compact educational Python code

Project Samples

Project Activity

See All Activity >

Categories

Education

Follow nanogpt-lecture

nanogpt-lecture 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 nanogpt-lecture!

Additional Project Details

Programming Language

Python

Related Categories

Python Education Software

Registered

15 hours ago