Minimal recipe
The smallest recipe that writes each part of a recipe once. Copy it to start a new recipe: Write a recipe explains it part by part.
What it trains#
The served model's weights, with supervised fine-tuning on the agent runs that pass a check of the client.
A client reports every run, with the last call of the run and the score of its check.
Each run that scores at least min-score becomes one sample. Each job trains every reply of the served model in its
runs, with cross-entropy (the built-in sft objective).
When to use it#
- As the starting point of a new recipe.
- To train on the runs that pass a check of your own, such as a test suite (rejection-sampling fine-tuning).
To train on target responses that you write, use SFT.
Requirements#
- A Reef checkout with the Tinker extra:
uv pip install -e '.[tinker]' -e ./third_party/reef-client. - A Tinker account with access to
Qwen/Qwen3-8B, and its key inTINKER_API_KEY.
The recipe also trains on Slime (see Train model weights).
Run the example#
From the checkout:
export TINKER_API_KEY=...
export REEF_TOKEN=reef-local
export REEF_MINIMAL_STATE_DIR="$PWD/work/minimal"
reef serve -c recipes/minimal/examples/tinker/serve.yamlWhen /healthz answers, create a scenario, send requests and report each run with its score, as in the
README example, with MODEL_PATH=Qwen/Qwen3-8B.
After four runs with a score of 1, Reef trains one job. GET /reef/scenarios/{scenario}/commits lists the new version.
Configuration#
recipe.samples.min-score: the lowest score of a run that trains (1.0).recipe.jobs.job-samples: the runs of one job (4 in the example).training.options: the Tinker options, such asbatch-sizeandlearning-rate(see Train with Tinker).
Results#
No measured results. The recipe is an example of the recipe contract.
Files#
minimal/
__init__.py exports MinimalRecipe, PassedRuns and RunReport
recipe.py the report type RunReport, the stage PassedRuns, and MinimalRecipe with the sft objective
examples/
tinker/serve.yaml a deployment on TinkerThe test is tests/recipes/minimal/test_minimal_recipe.py.