Looper Documentation
Looper Cookbook

Choosing settings

Every training run needs a few settings, such as the model, the learning rate and how long to train. This page gives starting settings that work for a first run, explains what each one does, and says when to change it.

You don't need to get these right before you start. Start with the settings below, look at the results, and change one thing at a time.

This page covers:

Starting settings

These are the defaults of the cookbook's ready-made scripts, sft_basic and rl_basic. The pages SFT with the cookbook and RL with the cookbook use them too.

Setting SFT RL
Model Qwen/Qwen3.5-9B Qwen/Qwen3.5-9B
Training kind LoRA, rank 32 LoRA, rank 32
Learning rate 5e-4, lowered to 0 over the run 8e-5, the same for every step
How long 1 pass through your data 50 steps
Batch size 64 conversations per step 32 problems per step
Answers per problem 16
Longest example or answer 2,048 tokens per conversation 512 tokens per answer

The model

Start with Qwen/Qwen3.5-9B. It's the model the cookbook's scripts and tutorials use, and the settings on this page are written for it. You can try any model on Available models, and it's often worth comparing a few. With another model, start from the same settings, and use Signs to watch for to see what to change.

Choose a different model when:

A quick way to choose is to ask a few base models some of your questions first, for example with try.py from Try the trained model, using a base: name. Training improves a model, but it helps to start from one that's already close. Available models lists every model and its limits.

LoRA or full parameters

Start with LoRA, at rank 32. LoRA trains a small set of extra weights on top of the model, instead of changing every weight. It needs fewer GPUs, its checkpoints are small, and it's enough for most tasks.

Learning rate

The learning rate sets how big each update to the weights is. It's the setting that most often needs changing.

Training LoRA Full parameters
SFT 5e-4 1e-5
RL 8e-5 1e-6

How long to train

SFT

RL

Sequence length

SFT

max_seq_len is the longest conversation the run can train on, in tokens. A token is roughly three quarters of a word in English.

RL

max_turn_tokens is the longest answer the model can write, in tokens. An answer that runs out of room scores 0.

Signs to watch for

What you see What it usually means What to try
SFT loss doesn't go down The learning rate is too low, or the data isn't what you think Check what each example trains, as Supervised learning shows. Then try twice the learning rate.
The loss shoots up, or becomes nan The learning rate is too high Try a third of the learning rate.
SFT loss falls close to 0, and the model repeats your examples word for word The model has memorized your examples Train for fewer passes, or add more data.
RL reward stays flat, and groups_trained is near 0 Your problems are too easy or too hard for the model Change your problems. See Choose your problems.
RL reward rises, but the held-out score doesn't The model is learning your training problems, not the skill Add more varied problems, or lower the learning rate.
Many RL answers are cut off max_turn_tokens is too small Raise it.

Change one setting at a time, so you can tell what made the difference.