Skip to content
#

gpt-from-scratch

Here are 19 public repositories matching this topic...

This repository contains the collection of explorative notebooks pure in python and in the language that we, humans can read. Have tried to compile all lectures from the Andrej Karpathy's 💎 playlist on Neural Networks - which we will end up with building GPT.

  • Updated Apr 30, 2024
  • Jupyter Notebook

Inspired by Andrej Karpathy’s "Let’s Build GPT", this project guides you step‑by‑step to build a GPT from scratch, demystifying its architecture through clear, hands‑on code.

  • Updated Dec 12, 2025
  • Jupyter Notebook

MicroGPT is a clean, educational implementation of the GPT (Generative Pre-trained Transformer) architecture built from first principles with detailed explanations and comprehensive testing.

  • Updated Feb 6, 2026
  • Python

This notebook builds a complete GPT (Generative Pre-trained Transformer) model from scratch using PyTorch. It covers tokenization, self-attention, multi-head attention, transformer blocks, and text generation and all explained step-by-step with a simple nursery rhyme corpus.

  • Updated Dec 16, 2025
  • Jupyter Notebook

SeedGPT is a minimal decoder-only LLM from scratch, inspired by andrej karpathy's tutorials, generating text token-by-token based on input word prompts.

  • Updated Aug 15, 2025
  • Python

Ask the Bhagavad Gita a question in your own words and get the shlokas that answer it — all 18 chapters, 700 verses, verbatim in Sanskrit, Hindi and English. Speaker-aware dense retrieval (bge-m3), crisis triage before the model, and a char-GPT built from scratch.

  • Updated Sep 2, 2026
  • Python

A hands-on learning project for building and training a small GPT-style language model from scratch in PyTorch. The goal is to understand transformers from the inside out: attention, residual blocks, training loops, and what the model is actually doing at each layer.

  • Updated Jun 8, 2026
  • Jupyter Notebook

Add this topic to your repo

To associate your repository with the gpt-from-scratch topic, visit your repo's landing page and select "manage topics."

Learn more