Skip to content

Repository files navigation

llm-from-scratch

Collection of my progress of the project of building an LLM from scratch, following the book by Sebastian Raschka. The notebooks here mostly resemble what is shown in the book, but I included some slight changes, comments, and explanations for myself and anyone who might stumble upon this repository, to really grasp and understand what is being taught in the book.

Chapter 2:

  • Tokenization
  • Byte Pair Encoding

Chapter 3:

  • Attention mechanism
  • Self attention
  • Causal attention
  • Multi-Head attention

Chapter 4:

  • GPT model from scratch
  • Layer normalization
  • GELU activations
  • Feed forward neural network
  • Shortcut connections
  • Transformer blocks

About

My progress on creating an llm from scratch, following as reference the book "Build a Large Language Model from Scratch" by the author Sebastian Raschka.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages