BooleanIQ / Learn

AI from the ground up / Level 400 / LESSON 4B2

Builder: a tiny GPT from scratch

Attention, a block, training on a small text, generating

Build

Coming soon. This is the lesson outline; the full article is not available yet.

What you build

A character-level model trained on a small public-domain Hindi text that then writes in its style. Likely two parts.

The steps

Data and batches; an embedding table; one attention head; a block; stacking; the training loop; sampling with the temperature of 410.

What you need first

3B3; 403 to 407; a laptop or a free notebook.