Gradient
Lesson 10.6ConceptModel~45 min

Seeing and reading together

Images as sequences of patches, and CLIP: one space where pictures and captions meet.

Module 10 · 0/11 done

An image is worth 16 × 16 words

Transformers read sequences of tokens. To make one see, turn an image into a sequence: cut it into square patches, flatten each patch into a vector, and pass it through a learned linear layer. That gives one token per patch. Add position embeddings so the model knows where each patch came from, and the rest is exactly the transformer you built. That’s the Vision Transformer (ViT, 2020).

Fig 10.7The same picture as a grid and as a token sequence. Smaller patches mean more tokens: more detail, but more attention to compute.