SkyAICampus
HomePracticeLearnCode LabFocus
SkyAICampus
PrivacyTermssupport@skyaicampus.com© 2026 SkyAI Campus
Log inSign up

Learn

HomePracticeConcept cardsCode LabSky Tutor

Review

Revise todayMistake notebookProgress

Focus

Campus ForestFocus roomsSquads

Questions or feedback?
support@skyaicampus.com

  1. 1Text preprocessing
  2. 2Text as numbers
  3. 3Transformers
  4. 4NLP tasks
← Natural language processing

Lesson 3 of 4

Transformers

Watch, read the card, then practise. Self-attention · BERT and GPT

Video coming soon

The video for this lesson is being recorded.

Meanwhile, the notes below and the 60-second cards cover the same ideas.

Practise this topic
  • Self-attention

    In self-attention, every token looks at every other token to decide what's relevant to it.

    Remember: Multi-head attention looks for several kinds of relationships at once.

  • BERT and GPT

    BERT reads text in both directions to understand it; GPT reads left to right to generate it.

    Remember: Understand or classify → encoder. Write or answer → decoder.

Try the example in Code Lab

tokens = 512
print(tokens * tokens)
← Text as numbersNext: NLP tasks →

In this lesson

  • Self-attention
  • BERT and GPT

Practise this topic

5 questions at your level. The best way to make it stick.

Practise 5 questions