Skip to content

moehmeni/GPT-0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT-0

This project is a minimal implementation of a Generative Pre-trained Transformer (GPT), using NumPy for core operations and JAX to handle backpropagation. The goal is to build a simplified version of the GPT model from scratch, focusing on understanding how the architecture works at its core.

The model implements key features of the GPT architecture, such as the attention mechanism and transformer blocks, allowing it to process and generate sequences of text. By using NumPy for the main computations, the project emphasizes a hands-on approach to building the model, while JAX is used to simplify gradient calculation and optimization during training.

Visual Guide

Below is a diagram of the full GPT architecture, which this project is based on:

TODO

  • Causal masking for autoregressive prediction
  • Tokenization and text generation utilities
  • Training loop and optimization strategies

About

Generative pre-trained transformer using only NumPy (JAX for backprop)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages