Fine-Tuning, and When Not ToLesson 62 of 84

Module 7 · Fine-tuning beyond a chat model

Fine-tuning a vision-language model

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 5 of 9 in this chapter

This chapter’s goalAdapt an embedding model, a reranker, a text classifier, a speech model, a vision-language model or an image generator, and name in each case what differs from fine-tuning a text LM and which cheaper technique should be tried first.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

Three parts, and you train one of them

A vision-language model has a vision encoder that turns an image into a set of embeddings, a projector that maps those into the language model’s embedding space, and the language model itself.

The standard fine-tuning arrangement:

  • Freeze the vision encoder. It knows what images look like, it was trained on far more images than you have, and unfreezing it is the fastest way to damage the model.
  • Train the projector, fully. It is small, and it is the piece that aligns the two spaces for your kind of image.
  • LoRA the language model. Attention and feed-forward projections, as usual.
Python
for p in model.vision_tower.parameters():
    p.requires_grad = False

That one loop is most of the difference between a run that works and one that does not.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Running Models Yourself exam.

Stuck on something?Ask Rafael, your AI tutor

How to cite: Addaly (2026) ‘Fine-tuning a vision-language model’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/vision-language-models (Accessed: 29 November 2026).