Tinker Multimodal models

by Samy (Kondasamy Jayaraman)

...

A supplier’s invoice, about to be read.

Chapter 1 of 7

A picture is tokens too

Larkspur’s assistant reads text. Now suppliers email invoices as images, the warehouse photographs its notes, and customers send photos of broken parts.

This chapter: How does a model that reads tokens read a picture?

About this chapter

You will learn

  • Why an image is cut into small squares called patches
  • How each patch becomes one token, like a piece of text
  • How to count an image’s tokens from its width and height

Words you’ll meet

Multimodal model
A model that reads more than one kind of input, such as text and images.
Patch
A small square of an image, 28 × 28 pixels here. The model reads each patch as one token.
Visual token
The token a patch becomes. Image tokens are priced and counted against limits like text tokens.

Step 1 of 3

The scanning table: an invoice under the camera, an empty belt to the model. A reads images as well as text.

Predict first.

A supplier’s invoice arrives as a picture. The model reads tokens. How does the picture get in?