Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

catgpt

A GPT model implemented with catgrad.

NOTE: requires catgrad 0.2.0

Run

Install dependencies

python -m venv venv
source venv/bin/activate
pip install torch catgpt==0.2.0

Get some pretrained model weights:

./get_weights.sh

Generate some text

python generate.py

Architecture

The architecture is a very stripped-down nanoGPT. Several layers have been removed which impact the quality of generated text. In order of importance, the removed layers are:

  • Positional encodings (!)
  • self-attention output layer
  • FeedForward after attention in each block
  • Learnable layer norm weights

About

No description, website, or topics provided.

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages