LESSON 25.03 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Vision-language models
Watch an image turn into tokens that a language model reads to answer a question.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 25.03 · VLM BAYIMAGE A · 4 PATCHES · 16 PIXELS EACH
01
Stage 1 of 6 · Patches
Image A splits into 4 patches of 4×4 pixels. Each patch becomes a row of 16 pixel values.
Explain it simply
You see a tiny two-tone picture with four shapes. The picture is cut into a grid of four squares, called patches. Each patch is laid out as a row of sixteen pixels. A one is an inked pixel, and a zero is an empty one. A real model cuts a big photo the same way, into hundreds of patches.
An 8 by 8 image in 4 patches: top left circle, top right square, bottom left nothing, bottom right cross.
The encoder weights are seeded random. The projector is fit to 16 captioned patches, or random. The answer head is set by hand.
image and tokensweights, queryattention, answerwrong caption or answerright answer
Toy: an 8×8 image, 4 patches, a 7-number word space
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The image side over the patch side, squared, gives the patch count.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.