Hugging Face, End to EndLesson 65 of 75

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

Shipping the thing you trained

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 9 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 8Free · no account needed
Lesson steps

Push the adapter, not the merged model

Python
model.push_to_hub("your-name/support-hi-lora")
tok.push_to_hub("your-name/support-hi-lora")

A LoRA adapter is a few megabytes. The merged model is several gigabytes of mostly somebody else’s weights, republished. Publish the adapter:

  • It is honest about what you made.
  • It is fast to download and cheap to store.
  • It stays usable when the base is updated, and it makes clear which base it needs.
  • Several adapters can share one loaded base at serving time.

Publish a merged version as well only when there is a reason: a serving stack that cannot load adapters, or a GGUF conversion for people running on CPUs. Say in the card that it is a merge of your adapter and name the base.

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) ‘Shipping the thing you trained’, in Hugging Face, End to End. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/hugging-face/publishing-an-adapter (Accessed: 29 November 2026).