Fine-Tuning, and When Not ToLesson 55 of 84

Module 6 · The mechanics of a run

Checkpointing and resuming

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 8 of 10 in this chapter

This chapter’s goalConfigure and launch a fine-tuning job with the correct chat template, masking and tokenizer handling, and diagnose from the logs alone whether a run is not learning, diverging, or memorising.

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

What a checkpoint contains

A checkpoint is not only weights. A complete one holds five things:

  1. The trainable weights: the adapter, or the full model.
  2. The optimiser state: AdamW’s two moment buffers per trainable parameter.
  3. The learning-rate scheduler’s position.
  4. The random number generator states, so data shuffling resumes identically.
  5. The trainer state: global step, epoch, logged metrics.

Only the first is needed to use the model. All five are needed to continue the run.

The size follows: a 42M-parameter LoRA is about 160 MB in bf16, and its optimiser state is another 340 MB, so a resumable checkpoint is roughly half a gigabyte. Keeping three is a gigabyte and a half, which is nothing. Keeping three full 8B checkpoints is 130 GB, which is 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) ‘Checkpointing and resuming’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/checkpointing-and-resuming (Accessed: 29 November 2026).