Advanced level · Module 7: Multimodal AI Fundamentals · Lesson 2 of 3
Vision-Language Models in Practice
Learners use a small vision-language model through the Transformers image-text-to-text pipeline to describe images, read documents and answer questions about pictures.
In this lesson you will
- Run a vision-language model on a CPU
- Evaluate its descriptions and answers
Key concepts
image-text-to-text pipelineSmolVLMvisual question answeringdocument imageshallucinated details
The lesson
The Transformers pipeline('image-text-to-text', model=...) runs vision-language models. SmolVLM-256M-Instruct (Apache-2.0) is small enough for a CPU, though slower and less accurate than large hosted models.
Uses include describing product photos, answering questions about charts or forms, and drafting alt text. Outputs can invent details not in the image, so check them.
Do not send images of people or sensitive documents to external services without authorisation.
Step by step
- Describe ten images with a small VLM.
- Ask three questions about a fictional form image.
- Score correctness and hallucinated details.
- Compare with a hosted model if available.
Practice activity
Evaluate a small vision-language model on project-relevant images.
Expected result: Scored results with hallucinations identified.
Check your understanding
-
Which pipeline task runs vision-language models in Transformers?
Show answer
image-text-to-text.
-
What must you check in VLM outputs?
Show answer
Invented details that are not in the image.
Further learning
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.