Learn AI Layer by Layer

For educators

Learn AI Layer by Layer explains how modern AI works, built up from first principles. It's written for curious learners from about age 12 to adults, and the only background it assumes is arithmetic.

It's free, with no ads and no accounts. Students never need to sign up or give any personal information. The site uses standard analytics (Google Analytics) to count visits and see which chapters work.

Using it with a class? Tell me

Fitting it into a course

Each chapter builds on the ones before it, so students should work through them in order. The 15 chapters fall into four parts, which make natural units. At one chapter per class session or homework assignment, that's 15 sessions — about 6–8 weeks at two a week — and about 5 hours of student time in total. Times below are estimates for one student reading and trying the widgets.

  1. Part 1: The building blocks

    about 1.5 hours

    How a machine made of numbers can learn to do things nobody told it how to do.

  2. Part 2: Meaning as numbers

    about 1.5 hours

    How words become something a computer can reason about, and why predicting the next word requires understanding.

  3. Part 3: The transformer

    about 1 hours

    The architecture behind every modern chatbot, built from the pieces you already have.

  4. Part 4: From model to assistant

    45 min

    How a document-continuing machine becomes something that chats, reasons, and gets things done.

  5. Part 5: AI in the world

    40 min

    What AI is doing to the society around it, and the realistic ways it could go badly wrong.

The introduction is a two-minute read about why I wrote this; it's optional.

Teaching tips

Assigning it

Using it with a class? Tell me

It helps me a lot to know who is teaching with this, and it shapes what I write next. It only takes a minute.

Questions?

If you'd like help fitting this into your course, or have any other questions, email me at rob.ennals@gmail.com. I usually reply.