Skip to content

A tiny neural net

A linear layer, cross-entropy loss and a single attention head: the forward pass, from scratch.

Syllabus

Linear layer

Cross-entropy

Attention