Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lil_gpt

A small decoder-only Transformer for experimentation and small-scale training with character-level tokenization.

alt text

Quick Start

  • Install: pip install -r requirements.txt
  • Configure: edit config.py to set hyperparameters and paths.
  • Train: python train.py

Project Structure

  • model.py — model architecture
  • train.py — training loop and checkpoints
  • config.py — training and model settings
  • mobydick.txt — dataset I used because I love Moby Dick.
  • requirements.txt — Python dependencies

About

A small decoder-only Transformer based on the 'Attention is all you need' paper built with PyTorch and trained on Moby Dick by Herman Melville.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages