Skip to content
#

generative-pretrained-transformer

Here are 13 public repositories matching this topic...

ToyGPT, inspired by Andrej Karpathy’s GPT from scratch, creates a toy generative pre-trained transformer at its most basic level using a simple bigram language model with attention to help educate on the basics of creating an LLM from scratch.

  • Updated Nov 28, 2024
  • Jupyter Notebook

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

Improve this page

Add a description, image, and links to the generative-pretrained-transformer topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the generative-pretrained-transformer topic, visit your repo's landing page and select "manage topics."

Learn more