Hugging Face, End to EndLesson 59 of 75

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

The six arguments worth understanding

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 3 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

TrainingArguments has over a hundred fields

Six of them decide almost everything. The rest have sensible defaults and you can leave them alone until a specific problem says otherwise.

1. Learning rate

The most important number in the file, and the one wrong by an order of magnitude most often.

  • Full fine-tuning of a pretrained model: 2e-5 to 5e-5. Higher and you destroy what pretraining learned: the loss falls fast and the model gets worse at everything it used to do.
  • LoRA and adapters: 1e-4 to 3e-4, ten times higher, because you are training a small number of fresh parameters rather than nudging trained ones.
  • A newly initialised head only: 1e-3 is reasonable.

If the loss explodes to NaN, the learning rate is too high. If the loss barely moves after a full epoch, it is too low. Those two symptoms are unambiguous and they are the fastest diagnostic you have.

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) ‘The six arguments worth understanding’, in Hugging Face, End to End. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/hugging-face/training-arguments-that-matter (Accessed: 29 November 2026).