Hugging Face, End to EndLesson 63 of 75

Module 7 · Training and adapting, with the libraries the Hub is built on

Watching a run you cannot sit next to

In this lesson

  • 8 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 7 of 9 in this chapter

This chapter’s goalDecide from evidence whether a task needs fine-tuning at all, run a LoRA or QLoRA adaptation with Trainer or SFTTrainer on a single free GPU, read a loss curve well enough to name what is wrong, and publish an adapter a stranger can apply to the base model.

This chapter’s media

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

FormatEnglishहिंदी
Chapter filmWatch2:08Not available
Full audiobookNot availableNot available

A little at a time

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

Step 1 of 9Free · no account needed
Lesson steps

What to log, and why the default is not enough

A training run prints a loss every logging_steps. That one number tells you whether the run is alive and almost nothing else. Four things are worth having:

  1. Training loss: is it falling.
  2. Validation loss or metric: is it generalising, which is a different question.
  3. Learning rate: did warmup and decay behave as configured.
  4. Gradient norm: spikes here precede a divergence you can otherwise only see after it has happened.

All four are logged automatically with report_to set:

Python
TrainingArguments(
    ...,
    logging_steps=10,
    eval_strategy="steps",
    eval_steps=100,
    # or "trackio", "wandb", "none"
    report_to="tensorboard",
)

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 Image Generation, in Practice exam.

Stuck on something?Ask Arjun, your AI tutor

How to cite: Addaly (2026) ‘Watching a run you cannot sit next to’, in Hugging Face, End to End. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/hugging-face/tracking-and-checkpointing (Accessed: 29 November 2026).