CodeTrain / Learn

How LLMs Actually Work

From a single neuron to a working transformer, built from scratch in pure NumPy, in your browser. Free to start, no card.

Start free, no card 10 lessons a month on the free tier.

Classes in this course

Neural-net foundations

4 lessons · free

History, a trainable neuron, an N-gram model, and the RNN the transformer replaced.

Tokens & embeddings

5 lessons · free

Turn text into vectors: tokenizers, embeddings, similarity, and position.

The Transformer block

5 lessons · free

Self-attention, causal masking, multi-head, LayerNorm, and the full block.

Training, generation & fine-tuning

4 lessons · free

Assemble a GPT, learn the loss, sample text, and see how assistants are aligned.

How CodeTrain teaches this

No videos and no multiple-choice quiz at the end. Each lesson is a handful of small steps in a real editor. You type the code yourself, it runs, and the tutor reviews what you actually wrote. It will not hand you the answer, and the step doesn't advance until your code passes. What you get at the end is a record of which steps you wrote unaided, not a completion percentage.

Other courses

Learn to Code in PythonObject-Oriented PythonJavaScript FundamentalsJavaScript: Functions & DataCommand the Terminal: Linux & Bash
Start this course free Browse every course