Quick RL loop¶
Use this loop to improve task selection and the RL recipe: curate tasks, publish a fixed selection, train from the pinned SFT model, and compare evaluation before and after training.
The current entry points are the
Snowball selection recipe
and
train_quick_loop.py.
The selection defines the 100k training allocation. The launcher defaults to
25 synchronous RLOO-N updates on 40 H100s, starting from Datakit SFT revision
fe666478454e79fe6027a0bab0388d9abd68f51a and its matching tokenizer. It uses
128 prompt groups per update, four samples per group, a 24,576-token context
and an 8,192-token response limit.
Make or update tasks¶
Declare new tasks through the
dataset-owned curation pipeline.
Pin their source revision, converter and grader dependencies. The training pool
comes from FULL curation's admitted final/*.parquet files; QUICK conversions
and SAMPLE panels do not qualify.
Use the curation campaign procedure to review and verify the sources. For example, inside an Iris coordinator with the pipeline dependencies and review credentials available:
uv run --with-editable './lib/taskcompendium[pipeline]' python \
-m experiments.post_training.task_curation.driver \
--mode full --source SOURCE_NAME \
--review-mode chat --model-revision "$REVIEW_MODEL_REVISION" \
--review-cache "$CURATION_CACHE" \
--max-workers 64 --coordinator-memory 16g --concurrent-sources 10 \
--normalized-shards 32 --image-backend gvisor \
--worker-image "$WORKER_IMAGE" \
--report-path "$CAMPAIGN/full.json" \
--selection experiments/post_training/task_curation/recipes/snowball-100k.json
Repeat --source for every source in the selection recipe, using its invocation
name from
runnable_sources().
For example, recipe ID MarinSkyRL:eurus2_code is invoked as
--source eurus2_code. The CLI names differ from the stable IDs in the recipe.
Set REVIEW_MODEL_REVISION to the pinned reviewer, WORKER_IMAGE to a
digest-pinned worker image, and CURATION_CACHE and CAMPAIGN to retained,
region-local storage prefixes. Build the declared
grader environments first.
The command prints a plan; add --run to execute it. Successful source artifacts
and exact review requests remain cached across campaigns.
Publish a selection¶
If a completed FULL campaign already has the required source artifacts, reuse
its corpus.json without rerunning curation:
uv run --with-editable './lib/taskcompendium[pipeline]' python \
-m experiments.post_training.task_curation.driver \
--corpus "$CAMPAIGN/corpus.json" \
--selection experiments/post_training/task_curation/recipes/snowball-100k.json
Add --run to publish. The printed task_selection path is the artifact root
to pass to training. Its summary.json records the recipe, source artifacts,
selected counts and evaluation IDs. Check the source and family quotas there
before launching. A source shortfall fails instead of borrowing from another
source. Source or selection changes require a new recipe version; preserve
published versions for comparisons.
The artifact contains train.parquet, validation.parquet and
full_validation.parquet. The fixed validation panel samples 20 tasks per
family from the original 910-task development set. All 910 are excluded from
training by ID, public semantics and exact conversation context. This reused
development set is a hillclimbing signal; use a separate benchmark for final
claims. See selection semantics
for deduplication and task serialization.
Train and evaluate¶
Load the storage, tracking, image-grader and judge credentials required by the RL launcher into the submission environment. Use the published selection path and a fresh run version to print a three-update plan:
uv run python -m experiments.post_training.inventory.train_quick_loop \
--selection-uri "$SELECTION_URI" --version "$RUN_VERSION" --steps 3
Set SELECTION_URI to the printed artifact root, including its selection name
and version. Add --run to submit the graph through the maintained artifact
entry point. After the short run succeeds, use a fresh RUN_VERSION and
--steps 25 for the normal iteration. Each run starts from the pinned SFT model.
The selected data stays cached; training does not curate or resample it.
The launcher binds train.parquet and validation.parquet from that artifact.
Evaluation attempts the fixed panel before training and after the last update,
and saves task-level verifier outcomes. Under the run artifact's exports/,
dumped_evals/global_step_0_evals/ holds the baseline and
dumped_evals/global_step_<steps>_evals/ holds the final evaluation. Each contains
per-dataset JSONL responses and aggregated_results.jsonl; compare its
avg_score and pass_at_1 metrics alongside verifier coverage. The final update saves a checkpoint;
HF export is opt-in with --export-hf and adds a separate export job after training.
Local graders require the privileged container profile; image graders and host judges use their configured backends.
Compare the iteration¶
Require SUCCESS from the Iris coordinator submitted by --run and its training
child, plus successful completion of the Marin training artifact. With --export-hf,
also require the export child to succeed. Its terminal.json records the run result;
the returned SkyRLRun supplies iris_job_id and checkpoint_root for follow-up inspection.
hf_model_uri is populated only when export is requested. Check
optimizer-update counts, finite metrics, initial/final attempted and scored
counts and native checkpoint metadata; check the completed HF export only when requested.
A missing verifier result is an evaluation error, not a wrong answer; report coverage with scores.
Record the source revision, selection identity, initializer, run version and elapsed submission-to-completion time with each comparison. Hold the validation panel fixed and change one recipe choice at a time. Reuse the published data for training-only changes; produce a new selection version when changing tasks or sampling. Update this page and the checked-in recipe when adopting a better configuration, and keep trial results in the experiment issue or report.