Fine-Tuning, and When Not ToLesson 36 of 84

Module 4 · Building the dataset

Multi-turn conversations and tool calls

In this lesson

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

This chapter’s goalAssemble a training set from named sources with checked licences, convert it to one chat format, filter and deduplicate it, mix in replay data at a stated ratio, and publish a data card that lets a stranger reproduce the set.

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

Which turns carry loss

A ten-turn conversation contains five assistant messages. Three ways to train on it, and they are not equivalent:

Last turn only. Mask everything except the final assistant message. Simple, and it throws away four fifths of your supervision. For a 10-turn dialogue you get one training signal out of five available.

Every assistant turn. Mask all user and system and tool content; compute loss on every assistant message. Five signals from one conversation. This is what you almost always want.

Everything. Train on user turns too. Occasionally deliberate (if you want a model that can simulate a user, or for continued pretraining on dialogue) and usually a mistake, because you are teaching the model to write the human’s side.

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) ‘Multi-turn conversations and tool calls’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/multi-turn-and-tool-calls (Accessed: 29 November 2026).