Looper Documentation
Looper Cookbook

Tutorials

The tutorials are Jupyter notebooks that teach Looper one step at a time, from asking a model a first question to training with the cookbook's loops. Each one is both a page here, which shows what a real run printed under each cell, and a notebook you can run yourself.

Before you start

100: The basics

Read these in order. Each builds on the one before, and uses the SDK alone, without the cookbook.

# Tutorial What you'll learn Read first
101 Hello Looper Connect to Looper, start a base model and ask it a question. You'll also see how prompts become token ids, why sampling takes two awaits, and how to get several answers to one prompt Nothing
102 Your first fine-tune Turn questions and answers into training data, train a LoRA of Qwen3.5-9B with forward_backward and optim_step, save it as a checkpoint, and sample it 101
103 Operations Why each call has two awaits, how sending steps ahead keeps the GPUs busy, and where an error shows up when a call fails 102
104 Your first RL run Write each round of RL yourself, which means publishing the weights to the run's sampler, getting a group of answers to each problem, scoring them, and training on the scores with Grpo. You'll also see why a problem the model always gets right trains nothing 103

200: Core concepts

This one stands alone, once you've read the basics.

# Tutorial What you'll learn Read first
201 Chat data Use a model's message formatter to write prompts in its chat format, turn conversations into training data, see which tokens each example trains, switch thinking on and off, read a reply back, and format a tool call. It runs on your machine alone, with no API key 102

300: The cookbook's loops

Train on your own data with the cookbook's SFT and RL loops.

# Tutorial What you'll learn Read first
301 The SFT loop Fine-tune on a file of conversations with the message formatter and train_sft.train, with a learning rate that lowers as training goes, then sample the trained model 103, 201
302 The RL loop Turn math problems into tasks, each with a verifier, keep some aside to measure with, and train with train_rl.train, measuring the model before and after 104, 301

Next steps