Sign up and get 15% off the four courses and Lifetime.

The vocabulary

Lesson

The words for training

Lesson 2 of 9 in The vocabulary.

Lesson

Training is how a model learns, by being shown many examples until it picks up the patterns in them. Its words come up whenever a studio talks about a custom model, and they get misused in meetings more than most. Knowing them lets you tell a client what they are really asking for, and what it will take.

Our example is a pickle brand that sells in a squat glass jar with a cloth lid tied with string. Every image model draws a generic jar, and the brand wants one that draws theirs.

Adapt an existing model instead of building one

Pre-training is the first, very large training run, where a model learns from a huge collection of pictures or text. Only big labs do it, and almost nobody else ever needs to. A pre-trained model, also called a base model, has often not been tuned to follow instructions at all, so pre-trained does not mean ready to use.

Fine-tuning is further training on a smaller, specific set, such as a folder of photographs of the pickle jar. It changes the model's weights, the numbers it learned in training. A popular way to do it is a LoRA, a small trained add-on used with the big model, which itself stays as it was. Adapting a model like this takes hours, which is why it is the realistic option for a studio.

Say which kind of LoRA you need

A LoRA can learn a subject or a style. A subject LoRA learns one thing, so the model knows this exact jar with its cloth lid. A style LoRA learns a look, such as the brand's warm, grainy colour grade. They need different pictures and different settings, and mixing them up is why many first attempts give a model that can make only one picture.

For a subject, show the jar from many angles on many different backgrounds, so the model learns the jar and not the table. For a style, show many different things in the same grade, so it learns the look and not the objects. When a client says "we need a LoRA of the brand", ask "the jar, or the look?" before anyone collects a single photograph.

Training on a client's pictures is a contract question before it is a technical one. Get permission in writing and say what the model will be used for, because the model outlives the project.

Test for overfitting before you trust it

An epoch is one pass through all the training pictures, and more epochs are not automatically better. Too many passes over a small set leads to overfitting, which means the model has learned the examples instead of the pattern. It can then only repeat the training photographs.

The test is simple. Ask the trained model for the jar somewhere it has never been, such as on a picnic blanket or a train table. If the background comes back looking like the kitchen counter from the training photos, it has memorised them instead of learning the jar.

Check whether anything was really trained

Plenty of tools claim to be trained on your brand when nothing was trained at all. One question sorts them out: "Were the model's weights changed?" If the answer is no, it was not fine-tuned.

What people sayWhat usually happened
"We fine-tuned it on our brand"A custom assistant was given instructions and a few files. That only changes what the model is handed each time.
"It's trained on our documents"It uses retrieval, also called RAG. It fetches passages from your files when you ask, and deleting the files deletes the knowledge.
"Give it more epochs and it will get better"More passes over a small set push it towards overfitting.

Read a model's agreement for what it is

RLHF, short for reinforcement learning from human feedback, is training on people's judgements of which answer they preferred. It is why chat models are polite and agreeable. So a model praising your idea for the pickle campaign is not much of an opinion. Ask it for the strongest objection to the idea instead, and you get something you can act on.

The next lesson covers the words for generating an image.