Skip to content
✳AI UNIVERSITYBY COMMONJOBS
Deep Learning

What is a transformer in AI?

Attention lets a model combine information from different positions using learned relevance weights.

✳ Beginner◷ 5–10 min + practiceTEXT-BASED LEARNING

Start from zero. Learn the meaning, explore a worked example and practise in three short text lessons. No previous AI experience is needed.

Start here · beginner

02 · See it in action

Follow the steps

  1. Write two sentences where the same word has different meanings.
  2. Identify nearby words that disambiguate it.
  3. Imagine assigning different relevance weights to those words.
  4. Explain how a context-sensitive representation differs from a fixed dictionary lookup.

Worked example

"She sat by the river bank."
"She deposited money at the bank."
The tokens "river" and "money" provide different context.
Attention is learned numeric computation, not a human reading rule.

Read the example once, then explain each part aloud in your own words. If it includes Python, you can understand the idea first and run the code later in a local Python environment. Code is shown as text; this page does not execute it.

Sign in to save your reading progress.

Sign in
LET’S TALK

Find your next step.

Share a little about yourself. We’ll get in touch.

COMMONJOBS AI
✦ GEN Z’S WAY OF LEARNING

Your next era.
Powered by AI.

Make your next 5 days count.
Join the CommonJobs AI Bootcamp.

5-DAY AI BOOTCAMP12 Oct 2026

WE START IN

00Days
00Hours
00Minutes
00Seconds
Join Now

Learn AI. Build your next chapter.