From MAE to a sequence of patches
The masked autoencoder of Self-supervised learning needed an encoder that sees an image as a set of patches and can drop most of them. That encoder is the Vision Transformer (ViT): cut the image into patches, turn each into a vector, and process the sequence with the Transformer encoder that the NLP course builds for text. Almost nothing in it is specific to images — strength and weakness at once.
A convolutional network builds assumptions into every layer: locality, weight sharing, translation equivariance (see Convolution). Those are an inductive bias: they restrict the functions the network can learn to ones plausible for images, so a CNN learns from few examples. The price is slow travel of information — distant pixels interact only after depth grows the receptive field. Self-attention makes the opposite choice: every token attends to every other in one layer, with weights from content. Nothing tells the layer that neighbours are related; it must learn that from data.