Advanced

Generating examples at scale

A few thousand examples are written by generating them, and generated examples carry the generator's bias. The way to keep them honest is to generate from varied seeds, filter with a check you can read, and keep the ones that survive.

What you will see

0.17 - a generator mostly failing the check. Fixing the seeds or the generator is the next step, not using the 340.

About 1 min of reading

Try It

Measure the filter.

1

Survival

made = 2000; passed = 340 print(round(passed / made, 2))

Before you run it, say out loud what it will print. Then open the answer.

What it prints
0.17 - a generator mostly failing the check. Fixing the seeds or the generator is the next step, not using the 340.

Data Flow

Seeds become filtered examples.
1 Collect varied seeds
↓
2 Generate outputs
↓
3 Apply the filter
↓
4 Keep survivors plus the human core
Line by line

Read the first example one line at a time. A line that prints shows what appears on screen; the rest set things up quietly.

made = 2000; passed = 340 sets nothing on screen
print(round(passed / made, 2)) 0.17 - a generator mostly failing the check. Fixing the seeds or the generator is the next step, not using the 340.
Why this works
Do not tune on its own output

Generating examples with the model you are about to tune teaches it to copy itself. Use a different, stronger model for generation, or write them, and keep that separation deliberate.

Report the survival rate

How many generated examples passed the filter. A set where ninety percent failed is a generator that is not producing what you need, and the rate is the number that says so.

Examples

Vary the seeds

Generate from real inputs, from paraphrases, and from the rare cases you collected by hand. Generating from one template produces a set that is one shape wide, which is the most common failure of a synthetic set.

Filter with a rule

Reject outputs that fail a check: wrong label set, invalid JSON, too short, contradicts the input. A filter you can read is what keeps a synthetic set from being a wall of plausible noise.

Keep the human core

A few hundred hand written examples set the quality bar; the generated ones fill the range. A set made only of generated examples has no bar, and its quality is whatever the generator happened to do.

Words this lesson uses

Each one is defined here on this site. Open the entry for the full definition and the other words it points at.

← LoRA and partial tuning
Previous Lesson
LoRA and partial tuning
Next Lesson
Serving a tuned model
Serving a tuned model →