Lesson 4

Transformers

The complete picture

🤖 How does AI work inside?

A Transformer is a pipeline that turns your text into an answer in several steps.

📝1
🧩2
📍3
👁️4
🔄5
🎯6
📝
Step 1

Input Text

You type a question or prompt

Example: "What is the capital of France?"

💡 Key insight:

  • A Transformer is just a pipeline with repeating steps.
  • The main magic is in the attention mechanism — it finds connections between words.
  • More layers = deeper understanding (GPT-4 has 96+ layers).