Table of Contents

1. Building an LLM from scratch in C++

Hello! This is part 1 in a TBD part series on creating an LLM from scratch! Part 2 can be found here.

In this document I will be talking about how I'll be approaching this. This project is currently in progress, so for now it'll be mostly high-level, and as I go through it I'll update it with more detail and links to relevant articles.

1.1. Math & Linear Algebra Foundations

1.2. Neurons, Chain Rule, and Autodiff

1.3. Optimization & Training Mechanics

1.4. Probabilistic Language Modeling

1.5. Embeddings and a (Tiny) Transformer

Author: Amitav Krishna

Created: 2025-09-30 Tue 20:02

Validate


All Pages