Skip to content

See how AI actually works.

ChatGPT grew from one small idea, drawn on paper in 1958. You can move it with one finger.

Every lesson starts with a picture you push on. The words come after the picture, and the math comes after the words.

Drag the blue handle until every dot agrees.

One neuron draws one line

8 of 28 dots agree

Drag the handle
0
chapters
43
lessons
550
pictures you can move
62

Four boards from the lessons, live on this page

The same boards the lessons use. Each one takes about half a minute, and nothing needs reading first.

1Guess first

How many numbers are inside GPT-3?

Each is a setting the model learned, called a parameter. Drag the marker to your guess, then lock it in.

Make your guess

Loading the board

2Turn a knob

Why a chatbot never says the same thing twice

A model is finishing “The capital of France is”. Turn up the temperature until Paris gets 50% to 70% of the chances, while pizza stays under 5%.

Turn the dials

Loading the board

3Cut it up

A model never sees letters

It reads words in pieces it has seen many times. Cut “unbelievable” into three: a start, a middle and an end.

Cut it up

Loading the board

4Run it

How a model learns: small steps downhill

The dot is a model's error. Pick a step size and press Run. Reach the bottom in 20 steps without jumping past it.

Run it

Loading the board

How a lesson teaches

An idea is yours once you have felt it, guessed it, run it, and seen where it breaks.

From one neuron to agents

One road in three stages. The level test finds where you join it.

See the full map
  1. Stage 1 · Beginner

    How Machines Learn

    From one neuron to a network you train yourself.

    No background needed. By the end you can explain how a machine learns from examples, and train a small neural network.

    11 chapters · 142 lessons

  2. Stage 2 · Intermediate

    Inside the Models

    Open up the networks that see, remember and write.

    You pick up the working tools and look inside the transformer. By the end you know what happens inside a chat model.

    17 chapters · 216 lessons

  3. Stage 3 · Expert

    Build and Discover

    Build real systems, then explore the open edge of the field.

    You build with models, train your own, and rebuild landmark papers. By the end you can pick an open problem and start on it.

    15 chapters · 192 lessons

How it goes

  1. Find your level

    An eight-minute test finds what you already know and skips it.

  2. Follow the road

    One idea per screen. A lesson takes five to twelve minutes.

  3. Prove it

    Quizzes as you go, then a chapter exam. Pass it and the chapter is yours.

Learn free. Add Premium when one device is not enough.

Every chapter, picture and quiz is free, and stays free. Premium pays for what costs us money every month: sync, the tutor and voice calls.

Free

Every lesson, for good.

$0

  • Every chapter, lesson and visual
  • A code playground inside every lesson
  • Quizzes, chapter exams and the level test
  • Progress, streak and XP saved on this device
Start learning

Masfofah Premium

For when one device is not enough.

$10/month

Billed in US dollars.

One plan. Cancel any time.

  • Everything in Free
  • Progress synced across web, iPhone and Android
  • Bookmarks and notes on any step
  • Exams built from the questions you got wrong
  • AI tutor, 100 messages a day
  • Live voice calls, 90 minutes a month
See Premium

Who this is for

  • Curious

    You keep reading about AI and still feel one step behind.

  • Developers

    You ship features with model APIs and want to know what is inside.

  • Students

    You have the math and want to see where it lands.

  • Researchers

    You want to read papers and reproduce the result yourself.

Questions people ask

No. Math shows up after the picture, and every symbol is explained the first time it appears.
No. Code steps run on their own. You can read, change one number, and run again.
No. Each lesson is written twice. Technical terms give the Arabic word with the English in brackets the first time.
$10 a month, in US dollars. One plan. Cancel any time from Settings, and you keep Premium until the end of the month you paid for. All sales are final.
Yes. Masfofah runs on the web, on iPhone and on Android. With Premium, your progress follows you from one to the other.
A lesson takes five to twelve minutes. Do one a day and you finish a chapter in about two weeks. The level test lets you skip what you already know.
Anyone thirteen or older who wants to know what is going on inside AI. You do not need a background in it.
A small team in Saudi Arabia. Write to us at support@masfofah.app, or find us on X at @MasfofahApp.

Your first lesson takes five minutes.

Open the first lesson