Fine-Tuning, and When Not ToLesson 58 of 84

Module 7 · Fine-tuning beyond a chat model

Fine-tuning an embedding model

In this lesson

  • 10 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 1 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
In-batch negatives: the batch size is the difficultyBatch of 1616Batch of 6464Batch of 128128Batch of 512, gradientcached512passages the model must choose betweenEach anchor’s positive must outscore every other positive in the batch. Unlike almost everywhere elsein this course you want the batch as large as it will go, and gradient caching reaches 512 on onemodest card.
Each anchor's positive must outscore every other positive in the batch. Unlike almost everywhere else in this course you want the batch as large as it will go, and gradient caching reaches 512 on one modest card.

Figure 7.1

A little at a time

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

Step 1 of 9Free · no account needed
Lesson steps

The highest return in this course

An embedding model is 20 to 350 million parameters. It trains in minutes on free hardware. It needs hundreds of pairs rather than thousands of examples. And because it sets the recall ceiling for everything downstream, improving it improves every generator you ever put behind it.

This is the cheapest substantial win available in applied fine-tuning, and it is the one most often skipped in favour of training the expensive model that sits after it.

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 an embedding model’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/fine-tuning-an-embedding-model (Accessed: 29 November 2026).