feat: bump verifiers to 0.2.2.dev7, adopt the multi-agent episode wire (#3104)

* feat: bump verifiers to 0.2.2.dev7, adopt the multi-agent episode wire

Companion to PrimeIntellect-ai/verifiers#1939 (multi-agent api). Re-pins
deps/verifiers to 192fd8ef0 (= 0.2.2.dev7) and deps/pydantic-config to
v0.4.2 (verifiers now requires prime-pydantic-config>=0.4.2).

- Serve wire: the env-server route run_rollout -> run, answering one
  Episode envelope ({id, env, ok, errors, traces}) per env-rollout.
  Env.run returns list[Rollout]; an episode that failed before minting
  any trace raises (the dispatcher synthesizes its error marker), and a
  not-ok episode marks its clean traces failed so a broken episode's
  partial seats are never trained on.
- The episode is the pipeline currency: the dispatcher emits one episode
  (list[Rollout]) per completed task onto out_q (a legacy run_group
  result emits its traces as single-trace episodes), and both sinks
  count episodes - never loose traces - toward group_size and eval epoch
  sizes. episode_id is stamped into info so saved records keep grouping.
- ok is the success sentinel: has_error now reads it, so the dispatcher's
  empty-trajectory promotion also flips ok, and error markers carry it.
- Only the trainable subset becomes training samples: a trace stamped
  untrainable (a multi-agent env's frozen agent) is never tokenized,
  never enters the group advantage, and never ships; it still lands in
  the trace files and observation window.
- Config shape: everything env lives under the env block, following the
  new vf.EnvServerConfig (env.taskset, env.agent.harness, per-agent caps
  under env.agent.*). All checked-in TOMLs migrated; the spawned env
  server receives the picklable env block via env_config_data.
- run_group survives only for v0/legacy bridge envs (a v1 server refuses
  it and always reports requires_group_scoring=False); vf's @group_reward
  removal doesn't touch prime-rl's own Algorithm.score_group.

Verified: tests/unit green (487 passed; config-loading params covered all
migrated TOMLs), ruff clean, and a 3-step reverse-text RL run on 2 GPUs
trains at 0% errors with every saved trace carrying ok, agent.name,
agent.trainable, and a distinct info.episode_id.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore: trim narrative comments to the load-bearing facts

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: count buffered sink progress in episodes; explicit ok=False on cancel markers

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: keep untrainable traces out of the effective views and the derived avg@k

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
hallerite
2026-07-21 16:44:20 -07:00
committed by GitHub
co-authored by Claude Fable 5
parent 56a6c5fea6
commit cb74ae2beb
56 changed files with 375 additions and 312 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ max_completion_tokens = 768
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "alphabet-sort" name = "alphabet-sort"
taskset = { id = "alphabet-sort-v1", min_turns = 3, max_turns = 5, task = { power_per_turn = false } } env.taskset = { id = "alphabet-sort-v1", min_turns = 3, max_turns = 5, task = { power_per_turn = false } }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[ckpt] # Checkpoint at the end of training [ckpt] # Checkpoint at the end of training
+2 -2
View File
@@ -21,8 +21,8 @@ seq_len = 8192
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "hendrycks-math" name = "hendrycks-math"
taskset = { id = "math-env-v1", dataset_name = "mikasenghaas/Sanity-Test-R1D-1.5B", dataset_subset = "default" } env.taskset = { id = "math-env-v1", dataset_name = "mikasenghaas/Sanity-Test-R1D-1.5B", dataset_subset = "default" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.model] [trainer.model]
seq_len = 16384 seq_len = 16384
+2 -2
View File
@@ -24,8 +24,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 3e-6 lr = 3e-6
+2 -2
View File
@@ -42,8 +42,8 @@ max_completion_tokens = 512
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "wiki-search" name = "wiki-search"
taskset = { id = "wiki-search-v1" } env.taskset = { id = "wiki-search-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[ckpt] # Checkpoint at the end of training [ckpt] # Checkpoint at the end of training
+2 -2
View File
@@ -23,8 +23,8 @@ group_size = 8
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "wordle" name = "wordle"
taskset = { id = "wordle-v1" } env.taskset = { id = "wordle-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.train.sampling] [orchestrator.train.sampling]
max_completion_tokens = 1024 max_completion_tokens = 1024
+2 -2
View File
@@ -24,8 +24,8 @@ max_completion_tokens = 384
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "alphabet-sort" name = "alphabet-sort"
taskset = { id = "alphabet-sort-v1", min_turns = 2, max_turns = 2, min_names_per_turn = 1, max_names_per_turn = 3, task = { similarity_power = 4, power_per_turn = false } } env.taskset = { id = "alphabet-sort-v1", min_turns = 2, max_turns = 2, min_names_per_turn = 1, max_names_per_turn = 3, task = { similarity_power = 4, power_per_turn = false } }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[inference] [inference]
@@ -28,8 +28,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[inference] [inference]
enable_lora = true enable_lora = true
@@ -27,8 +27,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[inference] [inference]
enable_lora = true enable_lora = true
@@ -27,8 +27,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[inference] [inference]
gpu_memory_utilization = 0.7 gpu_memory_utilization = 0.7
@@ -16,8 +16,8 @@ max_completion_tokens = 128
[[train.env]] [[train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[ckpt] [ckpt]
interval = 10 interval = 10
@@ -39,8 +39,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 1 interval = 1
@@ -51,8 +51,8 @@ max_completion_tokens = 128
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 3e-6 lr = 3e-6
@@ -45,8 +45,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 1 interval = 1
@@ -57,8 +57,8 @@ max_completion_tokens = 128
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 3e-6 lr = 3e-6
@@ -25,8 +25,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[inference] [inference]
@@ -24,8 +24,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[inference] [inference]
@@ -22,8 +22,8 @@ max_completion_tokens = 64
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "color-codeword" name = "color-codeword"
taskset = { id = "color-codeword-v1", images_per_turn = 1 } env.taskset = { id = "color-codeword-v1", images_per_turn = 1 }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer] [trainer]
+2 -2
View File
@@ -26,8 +26,8 @@ alpha = 0.1
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "alphabet-sort" name = "alphabet-sort"
taskset = { id = "alphabet-sort-v1", min_turns = 3, max_turns = 5, task = { power_per_turn = false } } env.taskset = { id = "alphabet-sort-v1", min_turns = 3, max_turns = 5, task = { power_per_turn = false } }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.train.sampling] [orchestrator.train.sampling]
max_completion_tokens = 512 max_completion_tokens = 512
+4 -4
View File
@@ -23,8 +23,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 1 interval = 1
@@ -35,8 +35,8 @@ max_completion_tokens = 128
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 3e-6 lr = 3e-6
+4 -4
View File
@@ -23,8 +23,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 1 interval = 1
@@ -35,8 +35,8 @@ max_completion_tokens = 128
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 3e-6 lr = 3e-6
+6 -6
View File
@@ -33,13 +33,13 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text-grpo" name = "reverse-text-grpo"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text-opd" name = "reverse-text-opd"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.train.env.algo] [orchestrator.train.env.algo]
type = "opd" type = "opd"
@@ -57,8 +57,8 @@ max_completion_tokens = 128
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 3e-6 lr = 3e-6
+4 -4
View File
@@ -35,8 +35,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 1 interval = 1
@@ -47,8 +47,8 @@ max_completion_tokens = 128
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 3e-6 lr = 3e-6
+4 -4
View File
@@ -35,8 +35,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 1 interval = 1
@@ -47,8 +47,8 @@ max_completion_tokens = 128
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 1e-4 lr = 1e-4
+4 -4
View File
@@ -31,8 +31,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 1 interval = 1
@@ -43,8 +43,8 @@ max_completion_tokens = 128
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 3e-6 lr = 3e-6
+4 -4
View File
@@ -40,8 +40,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 1 interval = 1
@@ -52,8 +52,8 @@ max_completion_tokens = 128
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 3e-6 lr = 3e-6
+4 -4
View File
@@ -40,8 +40,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 1 interval = 1
@@ -52,8 +52,8 @@ max_completion_tokens = 128
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 1e-4 lr = 1e-4
+1 -1
+7 -7
View File
@@ -149,25 +149,25 @@ Training environments are an array of tables — set one per env, optionally wit
```toml ```toml
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "gsm8k" name = "gsm8k"
taskset = { id = "gsm8k-v1", split = "train" } env.taskset = { id = "gsm8k-v1", split = "train" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
ratio = 3 # 75% of batches ratio = 3 # 75% of batches
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
ratio = 1 # default — 25% of batches ratio = 1 # default — 25% of batches
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "gsm8k-eval" name = "gsm8k-eval"
taskset = { id = "gsm8k-v1", split = "test" } env.taskset = { id = "gsm8k-v1", split = "test" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
``` ```
`ratio` defaults to `1` (equal weight per env); values are relative weights normalized to probabilities across envs. `ratio` defaults to `1` (equal weight per env); values are relative weights normalized to probabilities across envs.
Fields in `taskset` configure the V1 taskset. `harness` selects how its tasks are run. Everything environment lives under the `env` block (verifiers' `[env]` shape): `env.taskset` configures the v1 taskset, and each agent is a field on the env — `env.agent.harness` selects how the single-agent env's tasks are run, and per-run caps are per-agent (`env.agent.max_turns`, `env.agent.timeout`, `env.agent.max_output_tokens`). A multi-agent env declares its own seats (`env.<role>.*`).
The same taskset can appear multiple times across train and eval (or with different settings) — useful for evaluating on a held-out split or comparing two configurations side by side. When it is reused, set a distinct `name` on each entry; `name` defaults to the taskset id and must be unique across all envs in the same group. The same taskset can appear multiple times across train and eval (or with different settings) — useful for evaluating on a held-out split or comparing two configurations side by side. When it is reused, set a distinct `name` on each entry; `name` defaults to the taskset id and must be unique across all envs in the same group.
+12 -12
View File
@@ -95,12 +95,12 @@ num_turns_weight = 0.0
# the plugged BC-style prompt is replaced by the reference judge's stock prompt). # the plugged BC-style prompt is replaced by the reference judge's stock prompt).
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "openseeker" name = "openseeker"
harness = { id = "rlm", skills = ["search"], forward_env = ["SERPER_API_KEY"], summarize_at_tokens = [65536, 131072], runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-search"] } } env.agent.harness = { id = "rlm", skills = ["search"], forward_env = ["SERPER_API_KEY"], summarize_at_tokens = [65536, 131072], runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-search"] } }
[orchestrator.train.env.taskset] [orchestrator.train.env.env.taskset]
id = "openseeker-v1" id = "openseeker-v1"
[[orchestrator.train.env.taskset.task.judges]] [[orchestrator.train.env.env.taskset.task.judges]]
id = "reference" id = "reference"
name = "correct" name = "correct"
model = "Qwen/Qwen3-235B-A22B-Instruct-2507" model = "Qwen/Qwen3-235B-A22B-Instruct-2507"
@@ -108,7 +108,7 @@ question_field = "question"
choices = ["A", "B"] choices = ["A", "B"]
# # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2. # # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2.
# [[orchestrator.train.env.taskset.task.judges]] # [[orchestrator.train.env.env.taskset.task.judges]]
# id = "rubric" # id = "rubric"
# name = "rlm" # name = "rlm"
# path = "deps/research-environments/rubrics/rlm.toml" # path = "deps/research-environments/rubrics/rlm.toml"
@@ -117,12 +117,12 @@ choices = ["A", "B"]
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "redsearcher" name = "redsearcher"
harness = { id = "rlm", skills = ["search"], forward_env = ["SERPER_API_KEY"], summarize_at_tokens = [65536, 131072], runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-search"] } } env.agent.harness = { id = "rlm", skills = ["search"], forward_env = ["SERPER_API_KEY"], summarize_at_tokens = [65536, 131072], runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-search"] } }
[orchestrator.train.env.taskset] [orchestrator.train.env.env.taskset]
id = "redsearcher-v1" # optional `difficulty` filter (easy/medium/hard) id = "redsearcher-v1" # optional `difficulty` filter (easy/medium/hard)
[[orchestrator.train.env.taskset.task.judges]] [[orchestrator.train.env.env.taskset.task.judges]]
id = "reference" id = "reference"
name = "correct" name = "correct"
model = "Qwen/Qwen3-235B-A22B-Instruct-2507" model = "Qwen/Qwen3-235B-A22B-Instruct-2507"
@@ -130,7 +130,7 @@ question_field = "question"
choices = ["A", "B"] choices = ["A", "B"]
# # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2. # # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2.
# [[orchestrator.train.env.taskset.task.judges]] # [[orchestrator.train.env.env.taskset.task.judges]]
# id = "rubric" # id = "rubric"
# name = "rlm" # name = "rlm"
# path = "deps/research-environments/rubrics/rlm.toml" # path = "deps/research-environments/rubrics/rlm.toml"
@@ -145,15 +145,15 @@ interval = 20
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "browsecomp" name = "browsecomp"
num_examples = 500 # full set is 1266; cap eval at 500 num_examples = 500 # full set is 1266; cap eval at 500
harness = { id = "rlm", skills = ["search"], forward_env = ["SERPER_API_KEY"], summarize_at_tokens = 98304, runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-search"] } } env.agent.harness = { id = "rlm", skills = ["search"], forward_env = ["SERPER_API_KEY"], summarize_at_tokens = 98304, runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-search"] } }
timeout = { rollout = 3600 } env.agent.timeout = { rollout = 3600 }
[orchestrator.eval.env.taskset] [orchestrator.eval.env.env.taskset]
id = "browsecomp-v1" id = "browsecomp-v1"
task = { judge = { model = "Qwen/Qwen3-235B-A22B-Instruct-2507" } } task = { judge = { model = "Qwen/Qwen3-235B-A22B-Instruct-2507" } }
# # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2. # # Metric-only monitor (weight 0): rlm harness-mechanics rubric, judged by GLM-5.2.
# [[orchestrator.eval.env.taskset.task.judges]] # [[orchestrator.eval.env.env.taskset.task.judges]]
# id = "rubric" # id = "rubric"
# name = "rlm" # name = "rlm"
# path = "deps/research-environments/rubrics/rlm.toml" # path = "deps/research-environments/rubrics/rlm.toml"
+5 -5
View File
@@ -99,8 +99,8 @@ thinking_retention = "all"
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "scaleswe" name = "scaleswe"
taskset = { id = "scaleswe-v1" } env.taskset = { id = "scaleswe-v1" }
harness = { id = "rlm", summarize_at_tokens = [65536, 131072], runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-swe"] } } env.agent.harness = { id = "rlm", summarize_at_tokens = [65536, 131072], runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-swe"] } }
[orchestrator.prime_monitor] [orchestrator.prime_monitor]
@@ -111,9 +111,9 @@ interval = 20
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "swebench-verified" name = "swebench-verified"
taskset = { id = "swebench-verified-v1" } env.taskset = { id = "swebench-verified-v1" }
harness = { id = "rlm", summarize_at_tokens = 98304, runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-swe"] } } env.agent.harness = { id = "rlm", summarize_at_tokens = 98304, runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-swe"] } }
timeout = { rollout = 3600 } env.agent.timeout = { rollout = 3600 }
# --- Inference --- # --- Inference ---
+14 -14
View File
@@ -93,20 +93,20 @@ num_turns_weight = 0.1
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "tmax" name = "tmax"
harness = { id = "rlm", summarize_at_tokens = [65536, 131072], runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-terminal"] } } env.agent.harness = { id = "rlm", summarize_at_tokens = [65536, 131072], runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-terminal"] } }
[orchestrator.train.env.taskset] [orchestrator.train.env.env.taskset]
id = "tmax-v1" id = "tmax-v1"
# # Metric-only monitors (weight 0): rlm harness-mechanics + swe code-usage rubrics, judged by GLM-5.2. # # Metric-only monitors (weight 0): rlm harness-mechanics + swe code-usage rubrics, judged by GLM-5.2.
# [[orchestrator.train.env.taskset.judges]] # [[orchestrator.train.env.env.taskset.judges]]
# id = "rubric" # id = "rubric"
# name = "rlm" # name = "rlm"
# path = "deps/research-environments/rubrics/rlm.toml" # path = "deps/research-environments/rubrics/rlm.toml"
# model = "zai-org/GLM-5.2" # model = "zai-org/GLM-5.2"
# weight = 0.0 # weight = 0.0
# [[orchestrator.train.env.taskset.judges]] # [[orchestrator.train.env.env.taskset.judges]]
# id = "rubric" # id = "rubric"
# name = "swe" # name = "swe"
# path = "deps/research-environments/rubrics/swe.toml" # path = "deps/research-environments/rubrics/swe.toml"
@@ -120,20 +120,20 @@ interval = 20
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "swebench-verified" name = "swebench-verified"
harness = { id = "rlm", summarize_at_tokens = 98304, runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-terminal"] } } env.agent.harness = { id = "rlm", summarize_at_tokens = 98304, runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-terminal"] } }
timeout = { rollout = 3600 } env.agent.timeout = { rollout = 3600 }
[orchestrator.eval.env.taskset] [orchestrator.eval.env.env.taskset]
id = "swebench-verified-v1" id = "swebench-verified-v1"
# [[orchestrator.eval.env.taskset.judges]] # [[orchestrator.eval.env.env.taskset.judges]]
# id = "rubric" # id = "rubric"
# name = "rlm" # name = "rlm"
# path = "deps/research-environments/rubrics/rlm.toml" # path = "deps/research-environments/rubrics/rlm.toml"
# model = "zai-org/GLM-5.2" # model = "zai-org/GLM-5.2"
# weight = 0.0 # weight = 0.0
# [[orchestrator.eval.env.taskset.judges]] # [[orchestrator.eval.env.env.taskset.judges]]
# id = "rubric" # id = "rubric"
# name = "swe" # name = "swe"
# path = "deps/research-environments/rubrics/swe.toml" # path = "deps/research-environments/rubrics/swe.toml"
@@ -143,20 +143,20 @@ id = "swebench-verified-v1"
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "terminal-bench-2" name = "terminal-bench-2"
group_size = 4 # avg@4 group_size = 4 # avg@4
harness = { id = "rlm", summarize_at_tokens = 98304, runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-terminal"] } } env.agent.harness = { id = "rlm", summarize_at_tokens = 98304, runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["glm45air-terminal"] } }
timeout = { rollout = 3600 } env.agent.timeout = { rollout = 3600 }
[orchestrator.eval.env.taskset] [orchestrator.eval.env.env.taskset]
id = "terminal-bench-2-v1" id = "terminal-bench-2-v1"
# [[orchestrator.eval.env.taskset.judges]] # [[orchestrator.eval.env.env.taskset.judges]]
# id = "rubric" # id = "rubric"
# name = "rlm" # name = "rlm"
# path = "deps/research-environments/rubrics/rlm.toml" # path = "deps/research-environments/rubrics/rlm.toml"
# model = "zai-org/GLM-5.2" # model = "zai-org/GLM-5.2"
# weight = 0.0 # weight = 0.0
# [[orchestrator.eval.env.taskset.judges]] # [[orchestrator.eval.env.env.taskset.judges]]
# id = "rubric" # id = "rubric"
# name = "swe" # name = "swe"
# path = "deps/research-environments/rubrics/swe.toml" # path = "deps/research-environments/rubrics/swe.toml"
+2 -2
View File
@@ -98,8 +98,8 @@ extra_body = {chat_template_kwargs = {clear_thinking = false}}
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "r2e" name = "r2e"
taskset = { id = "r2e-gym-v1" } env.taskset = { id = "r2e-gym-v1" }
harness = { id = "rlm", runtime = { type = "prime", labels = ["glm5-llmd"] } } env.agent.harness = { id = "rlm", runtime = { type = "prime", labels = ["glm5-llmd"] } }
[inference] [inference]
enable_expert_parallel = true enable_expert_parallel = true
+2 -2
View File
@@ -73,8 +73,8 @@ interval = 20
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "swe-bench-verified" name = "swe-bench-verified"
taskset = { id = "swebench-verified-v1" } env.taskset = { id = "swebench-verified-v1" }
harness = { id = "bash", runtime = { type = "prime", labels = ["glm5-pd-disag", "swe-bench-verified"] } } env.agent.harness = { id = "bash", runtime = { type = "prime", labels = ["glm5-pd-disag", "swe-bench-verified"] } }
[[orchestrator.post_batch_filters]] [[orchestrator.post_batch_filters]]
type = "gibberish" type = "gibberish"
+14 -14
View File
@@ -50,32 +50,32 @@ oversampling_factor = 2
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "swe" name = "swe"
ratio = 0.3 ratio = 0.3
taskset = { id = "r2e-gym-v1" } env.taskset = { id = "r2e-gym-v1" }
harness = { id = "bash", runtime = { type = "prime", labels = ["intellect-3.1", "swe"] } } env.agent.harness = { id = "bash", runtime = { type = "prime", labels = ["intellect-3.1", "swe"] } }
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "deepdive" name = "deepdive"
ratio = 0.2 ratio = 0.2
taskset = { id = "deepdive-v1" } env.taskset = { id = "deepdive-v1" }
harness = { id = "rlm", skills = ["search"], forward_env = ["SERPER_API_KEY"], runtime = { type = "prime", labels = ["intellect-3.1", "deepdive"] } } env.agent.harness = { id = "rlm", skills = ["search"], forward_env = ["SERPER_API_KEY"], runtime = { type = "prime", labels = ["intellect-3.1", "deepdive"] } }
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "math" name = "math"
ratio = 0.3 ratio = 0.3
taskset = { id = "i3_math_v1" } env.taskset = { id = "i3_math_v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "logic" name = "logic"
ratio = 0.2 ratio = 0.2
taskset = { id = "i3_logic_v1", filter = { max = 0.874 } } env.taskset = { id = "i3_logic_v1", filter = { max = 0.874 } }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "code" name = "code"
ratio = 0.2 ratio = 0.2
taskset = { id = "i3_code_v1" } env.taskset = { id = "i3_code_v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[[orchestrator.pre_batch_filters]] [[orchestrator.pre_batch_filters]]
type = "zero_advantage" type = "zero_advantage"
@@ -86,13 +86,13 @@ interval = 25
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "swe-bench-verified" name = "swe-bench-verified"
taskset = { id = "swebench-verified-v1" } env.taskset = { id = "swebench-verified-v1" }
harness = { id = "bash", runtime = { type = "prime", labels = ["intellect-3.1", "swe-bench-verified"] } } env.agent.harness = { id = "bash", runtime = { type = "prime", labels = ["intellect-3.1", "swe-bench-verified"] } }
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "aime2025" name = "aime2025"
taskset = { id = "aime25-v1" } env.taskset = { id = "aime25-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[inference.parallel] [inference.parallel]
tp = 8 tp = 8
+4 -4
View File
@@ -51,16 +51,16 @@ max_off_policy_steps = 16
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "swe" name = "swe"
taskset = { id = "r2e-gym-v1" } env.taskset = { id = "r2e-gym-v1" }
harness = { id = "bash", runtime = { type = "prime", labels = ["minimax-swe", "swe"] } } env.agent.harness = { id = "bash", runtime = { type = "prime", labels = ["minimax-swe", "swe"] } }
[orchestrator.eval] [orchestrator.eval]
interval = 25 interval = 25
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "swe-bench-verified" name = "swe-bench-verified"
taskset = { id = "swebench-verified-v1" } env.taskset = { id = "swebench-verified-v1" }
harness = { id = "bash", runtime = { type = "prime", labels = ["minimax-swe", "swe-bench-verified"] } } env.agent.harness = { id = "bash", runtime = { type = "prime", labels = ["minimax-swe", "swe-bench-verified"] } }
[inference.parallel] [inference.parallel]
tp = 8 tp = 8
+5 -5
View File
@@ -83,8 +83,8 @@ truncate_history_thinking = false
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "scaleswe" name = "scaleswe"
taskset = { id = "scaleswe-v1" } env.taskset = { id = "scaleswe-v1" }
harness = { id = "rlm", summarize_at_tokens = [65536, 131072], runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["nemotron-3-super-swe"] } } env.agent.harness = { id = "rlm", summarize_at_tokens = [65536, 131072], runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["nemotron-3-super-swe"] } }
[orchestrator.prime_monitor] [orchestrator.prime_monitor]
@@ -93,9 +93,9 @@ interval = 20
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "swebench-verified" name = "swebench-verified"
taskset = { id = "swebench-verified-v1" } env.taskset = { id = "swebench-verified-v1" }
harness = { id = "rlm", summarize_at_tokens = 98304, runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["nemotron-3-super-swe"] } } env.agent.harness = { id = "rlm", summarize_at_tokens = 98304, runtime = { type = "prime", vm = true, idle_timeout = "None", labels = ["nemotron-3-super-swe"] } }
timeout = { rollout = 3600 } env.agent.timeout = { rollout = 3600 }
[inference] [inference]
enable_expert_parallel = true enable_expert_parallel = true
+4 -4
View File
@@ -50,16 +50,16 @@ max_completion_tokens = 32768
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "math" name = "math"
taskset = { id = "i3_math_v1" } env.taskset = { id = "i3_math_v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 25 interval = 25
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "aime2025" name = "aime2025"
taskset = { id = "aime25-v1" } env.taskset = { id = "aime25-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[inference.parallel] [inference.parallel]
tp = 8 tp = 8
+4 -4
View File
@@ -48,16 +48,16 @@ max_off_policy_steps = 16
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "swe" name = "swe"
taskset = { id = "r2e-gym-v1" } env.taskset = { id = "r2e-gym-v1" }
harness = { id = "bash", runtime = { type = "prime", labels = ["qwen30b-swe", "swe"] } } env.agent.harness = { id = "bash", runtime = { type = "prime", labels = ["qwen30b-swe", "swe"] } }
[orchestrator.eval] [orchestrator.eval]
interval = 25 interval = 25
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "swe-bench-verified" name = "swe-bench-verified"
taskset = { id = "swebench-verified-v1" } env.taskset = { id = "swebench-verified-v1" }
harness = { id = "bash", runtime = { type = "prime", labels = ["qwen30b-swe", "swe-bench-verified"] } } env.agent.harness = { id = "bash", runtime = { type = "prime", labels = ["qwen30b-swe", "swe-bench-verified"] } }
[inference.parallel] [inference.parallel]
tp = 8 tp = 8
+2 -2
View File
@@ -36,8 +36,8 @@ group_size = 16
max_off_policy_steps = 32 max_off_policy_steps = 32
[[orchestrator.train.env]] [[orchestrator.train.env]]
taskset = { id = "general-agent-v1", task = { tools = { colocated = true } }, min_tier = 1 } env.taskset = { id = "general-agent-v1", task = { tools = { colocated = true } }, min_tier = 1 }
harness = { id = "null", runtime = { type = "modal" } } env.agent.harness = { id = "null", runtime = { type = "modal" } }
[inference] [inference]
gpu_memory_utilization = 0.85 gpu_memory_utilization = 0.85
+2 -2
View File
@@ -33,7 +33,7 @@ max_completion_tokens = 768
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "alphabet-sort" name = "alphabet-sort"
taskset = { id = "alphabet-sort-v1", min_turns = 3, max_turns = 5, task = { power_per_turn = false } } env.taskset = { id = "alphabet-sort-v1", min_turns = 3, max_turns = 5, task = { power_per_turn = false } }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[inference] # Default inference config [inference] # Default inference config
+4 -4
View File
@@ -18,16 +18,16 @@ seq_len = 8192
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "hendrycks-math" name = "hendrycks-math"
taskset = { id = "math-env-v1", dataset_name = "mikasenghaas/Sanity-Test-R1D-1.5B", dataset_subset = "default" } env.taskset = { id = "math-env-v1", dataset_name = "mikasenghaas/Sanity-Test-R1D-1.5B", dataset_subset = "default" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.eval] [orchestrator.eval]
interval = 50 interval = 50
[[orchestrator.eval.env]] [[orchestrator.eval.env]]
name = "aime2024" name = "aime2024"
taskset = { id = "aime24-v1" } env.taskset = { id = "aime24-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
group_size = 32 group_size = 32
[trainer.model] [trainer.model]
+2 -2
View File
@@ -17,8 +17,8 @@ max_completion_tokens = 128
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[trainer.optim] [trainer.optim]
lr = 3e-6 lr = 3e-6
+2 -2
View File
@@ -46,8 +46,8 @@ enforce = true
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "wiki-search" name = "wiki-search"
taskset = { id = "wiki-search-v1" } env.taskset = { id = "wiki-search-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[ckpt] # Checkpoint at the end of training [ckpt] # Checkpoint at the end of training
+2 -2
View File
@@ -20,8 +20,8 @@ group_size = 16
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "wordle" name = "wordle"
taskset = { id = "wordle-v1" } env.taskset = { id = "wordle-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
[orchestrator.train.sampling] [orchestrator.train.sampling]
max_completion_tokens = 1024 max_completion_tokens = 1024
@@ -172,24 +172,16 @@ class EnvConfig(vf.EnvServerConfig):
data["pool"] = {"type": "static", "num_workers": num_workers} data["pool"] = {"type": "static", "num_workers": num_workers}
return data return data
@property
def is_legacy(self) -> bool:
"""A v0/legacy env (run via the bridge): an ``id`` is set and no v1 ``taskset`` is."""
return not self.taskset.id
@property
def env_id(self) -> str:
"""The env identifier — the v1 taskset id (v1) or the legacy env id (v0)."""
return self.taskset.id or self.id or ""
@property @property
def resolved_name(self) -> str: def resolved_name(self) -> str:
return self.name or self.env_id return self.name or self.env_id
@model_validator(mode="after") @model_validator(mode="after")
def validate_env(self): def validate_env(self):
if not self.taskset.id and not self.id: if not self.env_id:
raise ValueError('no env configured — set taskset = { id = "<id>" } (v1) or id = "<id>" (v0/legacy)') raise ValueError(
'no env configured — set env = { taskset = { id = "<id>" } } (v1) or id = "<id>" (v0/legacy)'
)
if self.resolved_name == "agg": if self.resolved_name == "agg":
raise ValueError( raise ValueError(
'Environment name "agg" is reserved for cross-env metric aggregation. Use a different name or id.' 'Environment name "agg" is reserved for cross-env metric aggregation. Use a different name or id.'
@@ -200,13 +192,16 @@ class EnvConfig(vf.EnvServerConfig):
def resolve_legacy_env_kwargs(self): def resolve_legacy_env_kwargs(self):
"""For a v0/legacy env, surface the v1 knobs the legacy bridge applies via """For a v0/legacy env, surface the v1 knobs the legacy bridge applies via
``extra_env_kwargs`` (``env.set_kwargs(...)``): the per-rollout wall-clock timeout and ``extra_env_kwargs`` (``env.set_kwargs(...)``): the per-rollout wall-clock timeout and
the multi-turn completion-token budget. (``max_seq_len`` is added per train run in the multi-turn completion-token budget, read off ``env.agent``. (``max_seq_len`` is
``OrchestratorConfig.resolve_env_config``, which knows ``seq_len``.)""" added per train run in ``OrchestratorConfig.resolve_env_config``, which knows
``seq_len``.)"""
if self.is_legacy: if self.is_legacy:
if self.timeout.rollout is not None: agent = getattr(self.env, "agent", None)
self.extra_env_kwargs["timeout_seconds"] = self.timeout.rollout if agent is not None:
if self.max_output_tokens is not None: if agent.timeout.rollout is not None:
self.extra_env_kwargs["max_total_completion_tokens"] = self.max_output_tokens self.extra_env_kwargs["timeout_seconds"] = agent.timeout.rollout
if agent.max_output_tokens is not None:
self.extra_env_kwargs["max_total_completion_tokens"] = agent.max_output_tokens
return self return self
+3 -3
View File
@@ -43,11 +43,11 @@ Incompatible combinations (e.g. CP requires flash attention) must raise in a `mo
```toml ```toml
[[orchestrator.train.env]] [[orchestrator.train.env]]
name = "reverse-text" name = "reverse-text"
taskset = { id = "reverse-text-v1" } env.taskset = { id = "reverse-text-v1" }
harness = { id = "null", runtime = { type = "subprocess" } } env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
``` ```
CLI: `--orchestrator.train.env.0.taskset.id reverse-text-v1`. CLI: `--orchestrator.train.env.0.env.taskset.id reverse-text-v1`.
**Dicts** — TOML uses a section; CLI takes a JSON string: `--vllm-extra '{"key1": "value1"}'`. This works for plain `dict` fields only — nested pydantic-model fields (e.g. `algo`) reject JSON strings; use dotted keys (`--orchestrator.algo.type max_rl`) or a TOML overlay file. **Dicts** — TOML uses a section; CLI takes a JSON string: `--vllm-extra '{"key1": "value1"}'`. This works for plain `dict` fields only — nested pydantic-model fields (e.g. `algo`) reject JSON strings; use dotted keys (`--orchestrator.algo.type max_rl`) or a TOML overlay file.
+11 -8
View File
@@ -137,18 +137,21 @@ curl -s http://localhost:8000/metrics | grep -E "num_requests|gpu_cache_usage"
{output_dir}/rollouts/step_N/{train,eval}/effective/traces.jsonl # written per finalized batch / eval epoch {output_dir}/rollouts/step_N/{train,eval}/effective/traces.jsonl # written per finalized batch / eval epoch
``` ```
JSONL files of `vf.Trace` records (training tensors excluded). `all` gets every completed JSONL files of `vf.Trace` records (training tensors excluded), one line per trace — a
rollout the moment it arrives — errored, filtered, and never-batched ones included — so it's multi-agent env's episode contributes several lines sharing one `info.episode_id`. `all`
crash-durable; `effective` gets the clean subset that went into the step's train batch (eval: gets every completed rollout the moment it arrives — errored, filtered, and never-batched
the non-errored epoch cohort; multiple eval envs share the step file). Each record carries ones included — so it's crash-durable; `effective` gets the clean trainable subset that went
`run` (`{type, id, step}`; for eval, `step` is the trigger step), `verifiers` (producing build), into the step's train batch (eval: the non-errored trainable epoch cohort; multiple eval envs
`agent` (model, sampling, harness), and `runtime` (config + provisioned resource id, e.g. the share the step file) — untrainable traces (a frozen judge's) appear only in `all`. Each record carries `run` (`{type, id, step}`; for eval, `step` is the trigger step),
sandbox id), plus `env_name`, `group_id`, and `policy_version` under `info`. `verifiers` (producing build), `agent` (model, sampling, harness, `name`, `trainable`), `ok`
(the success sentinel — `errors` alone keeps retry history even after a recovery), and
`runtime` (config + provisioned resource id, e.g. the sandbox id), plus `env_name`,
`group_id`, `episode_id`, and `policy_version` under `info`.
```bash ```bash
wc -l {output_dir}/rollouts/step_42/train/{all,effective}/traces.jsonl wc -l {output_dir}/rollouts/step_42/train/{all,effective}/traces.jsonl
jq '.rewards' {output_dir}/rollouts/step_42/train/effective/traces.jsonl jq '.rewards' {output_dir}/rollouts/step_42/train/effective/traces.jsonl
jq 'select(.errors != []) | {id, env: .info.env_name, runtime}' {output_dir}/rollouts/step_*/train/all/traces.jsonl jq 'select(.ok | not) | {id, env: .info.env_name, runtime}' {output_dir}/rollouts/step_*/train/all/traces.jsonl
``` ```
The binary batches consumed by the trainer still live at `{output_dir}/rollouts/step_N/train_rollouts.bin`, next to the trace subtrees. The binary batches consumed by the trainer still live at `{output_dir}/rollouts/step_N/train_rollouts.bin`, next to the trace subtrees.
+44 -28
View File
@@ -3,8 +3,8 @@
- Capacity (``max_inflight_rollouts``) is shared across train + eval. - Capacity (``max_inflight_rollouts``) is shared across train + eval.
A group-scoring task that runs N rollouts in one call reserves N permits. A group-scoring task that runs N rollouts in one call reserves N permits.
- Optional rate limiting via ``AsyncLimiter(tasks_per_minute, 60)``. - Optional rate limiting via ``AsyncLimiter(tasks_per_minute, 60)``.
- Emit-everything invariant: every dispatched rollout eventually reaches - Emit-everything invariant: every dispatched env-rollout eventually reaches
``out_q`` exactly once as a ``Rollout``. Failures ``out_q`` exactly once, as one episode (a ``list[Rollout]``). Failures
(env error, empty trajectory, task exception, off-policy cancel) carry (env error, empty trajectory, task exception, off-policy cancel) carry
``trace.error`` set; sinks decide drop / partial-train policy. ``trace.error`` set; sinks decide drop / partial-train policy.
- ``DispatcherMode.PREFER_TRAIN`` / ``PREFER_EVAL`` controls which kind to - ``DispatcherMode.PREFER_TRAIN`` / ``PREFER_EVAL`` controls which kind to
@@ -152,8 +152,9 @@ class RolloutDispatcher:
self.inflight: dict[asyncio.Task, InflightRollout] = {} self.inflight: dict[asyncio.Task, InflightRollout] = {}
self.groups: dict[uuid.UUID, GroupState] = {} self.groups: dict[uuid.UUID, GroupState] = {}
# Bounded so the dispatcher backpressures on a slow sink # Bounded so the dispatcher backpressures on a slow sink. One entry per
self.out_q: asyncio.Queue[Rollout] = asyncio.Queue(maxsize=max(8, self.max_inflight)) # episode — the sinks count episodes, never loose traces.
self.out_q: asyncio.Queue[list[Rollout]] = asyncio.Queue(maxsize=max(8, self.max_inflight))
self.mode: DispatcherMode = DispatcherMode.PREFER_TRAIN self.mode: DispatcherMode = DispatcherMode.PREFER_TRAIN
# Set by the orchestrator after the final train step; pipeline then # Set by the orchestrator after the final train step; pipeline then
@@ -393,7 +394,7 @@ class RolloutDispatcher:
) )
async def schedule_group_rollout(self, group_id: uuid.UUID, group: GroupState) -> bool: async def schedule_group_rollout(self, group_id: uuid.UUID, group: GroupState) -> bool:
"""Dispatch one ``run_rollout`` / ``run_group`` task for this group. """Dispatch one ``run`` / ``run_group`` task for this group.
Returns False only if we couldn't even schedule one rollout (no clients Returns False only if we couldn't even schedule one rollout (no clients
ready, no permits). Returns True after issuing one task — the caller ready, no permits). Returns True after issuing one task — the caller
@@ -454,7 +455,7 @@ class RolloutDispatcher:
group.rollouts_to_schedule -= 1 group.rollouts_to_schedule -= 1
await self.acquire(permits) await self.acquire(permits)
task = asyncio.create_task( task = asyncio.create_task(
env.run_rollout( env.run(
client=client, client=client,
task_idx=group.task_idx, task_idx=group.task_idx,
model_name=model_name, model_name=model_name,
@@ -485,11 +486,13 @@ class RolloutDispatcher:
self.inflight_permits -= n self.inflight_permits -= n
async def handle_completed_rollout(self, task: asyncio.Task) -> None: async def handle_completed_rollout(self, task: asyncio.Task) -> None:
"""Emit every dispatched rollout exactly once to ``out_q``. Task """Emit every dispatched env-rollout exactly once to ``out_q``: a ``run``
exceptions synthesize ``meta.rollout_count`` error markers so the result as one episode, a legacy ``run_group`` result as ``rollout_count``
sink's count-to-``group_size`` finalization still triggers. single-trace episodes. Task exceptions synthesize ``rollout_count``
Cancelled tasks (popped by ``drop_group``) raise ``CancelledError`` error-marker episodes so the sink's count-to-``group_size`` finalization
and are discarded — ``drop_group`` already emitted their markers. still triggers. Cancelled tasks (popped by ``drop_group``) raise
``CancelledError`` and are discarded — ``drop_group`` already emitted
their markers.
""" """
meta = self.inflight.pop(task, None) meta = self.inflight.pop(task, None)
if meta is None: if meta is None:
@@ -501,6 +504,8 @@ class RolloutDispatcher:
try: try:
result = task.result() result = task.result()
rollouts: list[Rollout] = result if isinstance(result, list) else [result] rollouts: list[Rollout] = result if isinstance(result, list) else [result]
if not rollouts:
raise RuntimeError("env run returned an empty episode (no traces)")
except asyncio.CancelledError: except asyncio.CancelledError:
return return
except Exception as exc: except Exception as exc:
@@ -517,20 +522,28 @@ class RolloutDispatcher:
for r in rollouts: for r in rollouts:
if not r.has_error and r.num_turns == 0: if not r.has_error and r.num_turns == 0:
# Empty trajectory: promote to an explicit error so the sink # Empty trajectory: promote to an explicit error so the sink
# treats it like any other failure # treats it like any other failure (``has_error`` reads ``ok``)
r.errors.append(vf.Error(type="EmptyTrajectory", message="Rollout returned with no trajectory steps")) r.errors.append(vf.Error(type="EmptyTrajectory", message="Rollout returned with no trajectory steps"))
r.ok = False
get_logger().warning(f"Empty trajectory in group {meta.group_id} ({meta.env_name})") get_logger().warning(f"Empty trajectory in group {meta.group_id} ({meta.env_name})")
if r.has_error: if r.has_error:
self.metrics.record_error(kind=meta.kind, env_name=meta.env_name) self.metrics.record_error(kind=meta.kind, env_name=meta.env_name)
if not is_synth_exception: if not is_synth_exception and r.error is not None:
get_logger().warning( get_logger().warning(
f"Rollout failed in group {meta.group_id} ({meta.env_name}) — {r.error.type}: {r.error.message}" f"Rollout failed in group {meta.group_id} ({meta.env_name}) — {r.error.type}: {r.error.message}"
) )
await self.emit_rollout(meta, group, r) if meta.rollout_count == 1:
# A ``run`` task: the whole result is one episode.
await self.emit_episode(meta, group, rollouts)
else:
# A legacy ``run_group`` task: one single-trace episode per trace.
for r in rollouts:
await self.emit_episode(meta, group, [r])
async def emit_rollout(self, meta: InflightRollout, group: GroupState | None, rollout: Rollout) -> None: async def emit_episode(self, meta: InflightRollout, group: GroupState | None, rollouts: list[Rollout]) -> None:
"""Stamp prime-rl metadata onto the completed rollout and put it on ``out_q``. """Stamp prime-rl metadata onto one completed episode and put it on
Pops the group from ``self.groups`` once every member has been emitted.""" ``out_q``. Pops the group from ``self.groups`` once every owed episode
has been emitted."""
eval_step = meta.eval_step eval_step = meta.eval_step
policy_version = meta.policy_version policy_version = meta.policy_version
if group is not None: if group is not None:
@@ -540,15 +553,16 @@ class RolloutDispatcher:
if group.emitted >= group.target_rollouts: if group.emitted >= group.target_rollouts:
self.groups.pop(meta.group_id, None) self.groups.pop(meta.group_id, None)
rollout.kind = meta.kind for rollout in rollouts:
rollout.env_name = meta.env_name rollout.kind = meta.kind
rollout.group_id = meta.group_id rollout.env_name = meta.env_name
rollout.policy_version = policy_version rollout.group_id = meta.group_id
rollout.off_policy_steps = meta.off_policy_steps rollout.policy_version = policy_version
if meta.kind == "eval": rollout.off_policy_steps = meta.off_policy_steps
assert eval_step is not None, "eval rollout missing eval_step" if meta.kind == "eval":
rollout.eval_step = eval_step assert eval_step is not None, "eval rollout missing eval_step"
await self.out_q.put(rollout) rollout.eval_step = eval_step
await self.out_q.put(rollouts)
async def drop_group(self, group_id: uuid.UUID) -> int: async def drop_group(self, group_id: uuid.UUID) -> int:
"""Cancel remaining in-flight tasks for this group and emit a """Cancel remaining in-flight tasks for this group and emit a
@@ -578,10 +592,11 @@ class RolloutDispatcher:
for _ in range(meta.rollout_count): for _ in range(meta.rollout_count):
trace = Rollout( trace = Rollout(
task=vf.TraceTask(type="Task", data=vf.TaskData(idx=task_idx, prompt=None)), task=vf.TraceTask(type="Task", data=vf.TaskData(idx=task_idx, prompt=None)),
ok=False,
errors=[vf.Error(type="Cancelled", message="Off-policy cancel")], errors=[vf.Error(type="Cancelled", message="Off-policy cancel")],
stop_condition="error", stop_condition="error",
) )
await self.emit_rollout(meta, group, trace) await self.emit_episode(meta, group, [trace])
# For non-group-scoring envs, the group may have rollouts that # For non-group-scoring envs, the group may have rollouts that
# were never dispatched (``rollouts_to_schedule > 0``). Emit # were never dispatched (``rollouts_to_schedule > 0``). Emit
@@ -604,10 +619,11 @@ class RolloutDispatcher:
for _ in range(unscheduled_cancelled): for _ in range(unscheduled_cancelled):
trace = Rollout( trace = Rollout(
task=vf.TraceTask(type="Task", data=vf.TaskData(idx=task_idx, prompt=None)), task=vf.TraceTask(type="Task", data=vf.TaskData(idx=task_idx, prompt=None)),
ok=False,
errors=[vf.Error(type="Cancelled", message="Off-policy cancel")], errors=[vf.Error(type="Cancelled", message="Off-policy cancel")],
stop_condition="error", stop_condition="error",
) )
await self.emit_rollout(fallback_meta, group, trace) await self.emit_episode(fallback_meta, group, [trace])
cancelled = inflight_cancelled + unscheduled_cancelled cancelled = inflight_cancelled + unscheduled_cancelled
if cancelled > 0: if cancelled > 0:
@@ -1,7 +1,7 @@
from functools import partial from functools import partial
from verifiers.v1 import pool_serve_kwargs from verifiers.v1 import pool_serve_kwargs
from verifiers.v1.serve import serve_env from verifiers.v1.serve import env_config_data, serve_env
from prime_rl.configs.env_server import EnvServerConfig from prime_rl.configs.env_server import EnvServerConfig
from prime_rl.orchestrator.utils import setup_env_server_logging from prime_rl.orchestrator.utils import setup_env_server_logging
@@ -15,13 +15,13 @@ def run_server(config: EnvServerConfig):
env = config.env env = config.env
address = env.address or "tcp://127.0.0.1:5000" address = env.address or "tcp://127.0.0.1:5000"
# The env's ``pool`` (static or elastic) sizes the server; a v0/legacy env runs through # The env's ``pool`` (static or elastic) sizes the server; a v0/legacy env runs through
# the bridge, a v1 env is a native taskset — both serve vf.Trace over the same protocol, # the bridge, a v1 env is a native env block — both speak the same serve protocol,
# so the orchestrator is agnostic. serve_env applies the logging setup in this process # so the orchestrator is agnostic. serve_env applies the logging setup in this process
# and in every spawned worker. # and in every spawned worker.
server_kwargs = ( server_kwargs = (
{"env_id": env.env_id, "env_args": env.args, "extra_env_kwargs": env.extra_env_kwargs} {"env_id": env.env_id, "env_args": env.args, "extra_env_kwargs": env.extra_env_kwargs}
if env.is_legacy if env.is_legacy
else {"config": env} else {"config_data": env_config_data(env.env)}
) )
serve_env( serve_env(
**pool_serve_kwargs(env.pool), **pool_serve_kwargs(env.pool),
+27 -11
View File
@@ -4,10 +4,10 @@ Each ``Env`` owns a v1 ``EnvServer`` (spawned as a child process, or an
external one given by ``config.address``) and an ``EnvClient`` to drive it. The external one given by ``config.address``) and an ``EnvClient`` to drive it. The
orchestrator never *runs* an environment: it asks the server for ``info`` orchestrator never *runs* an environment: it asks the server for ``info``
(``num_tasks`` + whether group scoring is needed), then runs rollouts purely by (``num_tasks`` + whether group scoring is needed), then runs rollouts purely by
**task index**. The server returns a ``Trace`` (a plain ``model_dump`` — derived values are **task index**. The server answers one ``Episode`` per env-rollout, whose traces
properties, not serialized) which we validate into a ``Trace[WireTaskData]`` — a real ``vf.Trace`` we validate into ``Trace[WireTaskData]`` — real ``vf.Trace``\\ s (never loose
(never a loose dict) whose task keeps the env's dicts) whose task keeps the env's task-specific
task-specific fields as extras (``WireTaskData`` allows them). The orchestrator never imports the fields as extras (``WireTaskData`` allows them). The orchestrator never imports the
env package: the env's *type* and *runtime* both live only in the server, and the orchestrator env package: the env's *type* and *runtime* both live only in the server, and the orchestrator
drives it purely by task index. (Nothing here reads typed env task fields — only ``task.idx`` drives it purely by task index. (Nothing here reads typed env task fields — only ``task.idx``
and a full ``task.model_dump``, both of which ``WireTaskData`` preserves.) and a full ``task.model_dump``, both of which ``WireTaskData`` preserves.)
@@ -27,7 +27,7 @@ from pathlib import Path
from typing import Generic, TypeVar from typing import Generic, TypeVar
import verifiers.v1 as vf import verifiers.v1 as vf
from verifiers.v1.serve import EnvClient from verifiers.v1.serve import EnvClient, env_config_data
from prime_rl.configs.orchestrator import EnvConfig, EvalEnvConfig, TrainEnvConfig from prime_rl.configs.orchestrator import EnvConfig, EvalEnvConfig, TrainEnvConfig
from prime_rl.orchestrator.algo import Algorithm, build_algorithm from prime_rl.orchestrator.algo import Algorithm, build_algorithm
@@ -135,7 +135,8 @@ class Env:
extra_env_kwargs=self.config.extra_env_kwargs, extra_env_kwargs=self.config.extra_env_kwargs,
) )
if self.config.is_legacy if self.config.is_legacy
else dict(legacy=False, config=self.config) # Picklable dict — the narrowed config class doesn't survive the spawn.
else dict(legacy=False, config_data=env_config_data(self.config.env))
) )
process = ctx.Process( process = ctx.Process(
target=_run_env_server, target=_run_env_server,
@@ -168,17 +169,32 @@ class Env:
sampling["extra_body"] = {**sampling.get("extra_body", {}), "cache_salt": cache_salt} sampling["extra_body"] = {**sampling.get("extra_body", {}), "cache_salt": cache_salt}
return vf.SamplingConfig(**sampling) return vf.SamplingConfig(**sampling)
async def run_rollout( async def run(
self, client: vf.ClientConfig, task_idx: int, model_name: str, cache_salt: str | None self, client: vf.ClientConfig, task_idx: int, model_name: str, cache_salt: str | None
) -> Rollout: ) -> list[Rollout]:
"""Run a single rollout for ``task_idx``; return a typed Trace.""" """Run one episode for ``task_idx``; return its typed Traces. A zero-trace
wire = await self.env_client.run_rollout( episode raises (the dispatcher synthesizes the error marker); a not-``ok``
episode marks its clean traces failed so partial episodes never train."""
episode = await self.env_client.run(
task_idx=task_idx, task_idx=task_idx,
client=client, client=client,
model=model_name, model=model_name,
sampling=self._sampling(cache_salt), sampling=self._sampling(cache_salt),
) )
return ROLLOUT_TYPE.model_construct(**dict(wire)) if not episode.traces:
error = episode.error
detail = f"{error.type}: {error.message}" if error is not None else "no traces and no error recorded"
raise RuntimeError(f"env-rollout failed before any trace was minted — {detail}")
rollouts = [ROLLOUT_TYPE.model_construct(**dict(wire)) for wire in episode.traces]
for rollout in rollouts:
rollout.episode_id = episode.id
if not episode.ok and rollout.ok:
error = episode.error or vf.Error(
type="EpisodeFailed", message="A sibling trace in this episode failed"
)
rollout.errors = [*rollout.errors, error]
rollout.ok = False
return rollouts
async def run_group( async def run_group(
self, client: vf.ClientConfig, task_idx: int, model_name: str, group_size: int, cache_salt: str | None self, client: vf.ClientConfig, task_idx: int, model_name: str, group_size: int, cache_salt: str | None
+29 -21
View File
@@ -3,12 +3,13 @@
Same shape as ``TrainSink``, but no tokenization / advantages / filters: Same shape as ``TrainSink``, but no tokenization / advantages / filters:
1. ``process_rollout`` — no-op. 1. ``process_rollout`` — no-op.
2. ``process_group`` — at ``group_size`` arrivals, move the rollouts 2. ``process_group`` — at ``group_size`` episodes, move the rollouts
(errored ones included) into the ``(env, eval_step)`` bucket. (errored ones included) into the ``(env, eval_step)`` bucket.
3. ``process_batch`` — at ``num_examples × group_size`` arrivals, return an 3. ``process_batch`` — at ``num_examples × group_size`` episodes, return an
``EvalBatch`` with the full returned cohort (metrics are computed downstream). ``EvalBatch`` with the full returned cohort (metrics are computed downstream).
``add()`` returns ``EvalBatch | None``. ``add()`` takes one episode (``list[Rollout]``) and returns ``EvalBatch | None``;
all accounting counts episodes, never loose traces.
""" """
from __future__ import annotations from __future__ import annotations
@@ -28,20 +29,24 @@ class EvalSink:
def __init__(self, *, eval_envs: EvalEnvs) -> None: def __init__(self, *, eval_envs: EvalEnvs) -> None:
self.eval_envs = eval_envs self.eval_envs = eval_envs
self.pending_groups: dict[uuid.UUID, list[Rollout]] = defaultdict(list) self.pending_groups: dict[uuid.UUID, list[Rollout]] = defaultdict(list)
# Bucket size IS the arrival count — ``process_group`` flushes # Episodes arrived per group / per batch bucket — the finalization counts.
# everything in without filtering self.pending_group_episodes: dict[uuid.UUID, int] = defaultdict(int)
self.pending_batches: dict[tuple[str, int], list[Rollout]] = defaultdict(list) self.pending_batches: dict[tuple[str, int], list[Rollout]] = defaultdict(list)
self.pending_batch_episodes: dict[tuple[str, int], int] = defaultdict(int)
def add(self, rollout: Rollout) -> EvalBatch | None: def add(self, episode: list[Rollout]) -> EvalBatch | None:
"""Process one arrival; finalize the group on the ``group_size``-th """Process one episode arrival; finalize the group on the ``group_size``-th
arrival and the per-env epoch on the ``num_examples × group_size``-th.""" episode and the per-env epoch on the ``num_examples × group_size``-th."""
env_name = rollout.env_name env_name = episode[0].env_name
self.process_rollout(rollout) group_id = episode[0].group_id
bkey = (env_name, rollout.eval_step) for rollout in episode:
self.pending_groups[rollout.group_id].append(rollout) self.process_rollout(rollout)
if len(self.pending_groups[rollout.group_id]) >= self.group_size_for(env_name): bkey = (env_name, episode[0].eval_step)
self.process_group(rollout.group_id) self.pending_groups[group_id].extend(episode)
if len(self.pending_batches[bkey]) >= self.batch_size_for(env_name): self.pending_group_episodes[group_id] += 1
if self.pending_group_episodes[group_id] >= self.group_size_for(env_name):
self.process_group(group_id)
if self.pending_batch_episodes[bkey] >= self.batch_size_for(env_name):
return self.process_batch(bkey) return self.process_batch(bkey)
return None return None
@@ -49,7 +54,7 @@ class EvalSink:
return self.eval_envs.get(env_name).config.group_size return self.eval_envs.get(env_name).config.group_size
def batch_size_for(self, env_name: str) -> int: def batch_size_for(self, env_name: str) -> int:
"""``num_examples × group_size`` — total rollouts expected for one """``num_examples × group_size`` — total episodes expected for one
epoch of ``env_name``.""" epoch of ``env_name``."""
env = self.eval_envs.get(env_name) env = self.eval_envs.get(env_name)
return len(env.examples) * env.config.group_size return len(env.examples) * env.config.group_size
@@ -57,18 +62,18 @@ class EvalSink:
def batch_progress(self) -> list[tuple[str, int, int, int, int]]: def batch_progress(self) -> list[tuple[str, int, int, int, int]]:
"""One entry per accumulating ``(env, eval_step)`` batch: """One entry per accumulating ``(env, eval_step)`` batch:
``(env_name, eval_step, batch_count, expected, buffered)``. ``(env_name, eval_step, batch_count, expected, buffered)``.
``batch_count`` is finalized-group survivors in ``pending_batches``; ``batch_count`` is finalized-group episodes in ``pending_batches``;
``buffered`` is partial-group arrivals from non-group-scoring envs.""" ``buffered`` is partial-group episode arrivals from non-group-scoring envs."""
batch_counts: dict[tuple[str, int], int] = {bkey: len(bucket) for bkey, bucket in self.pending_batches.items()} batch_counts: dict[tuple[str, int], int] = dict(self.pending_batch_episodes)
buffered: dict[tuple[str, int], int] = {} buffered: dict[tuple[str, int], int] = {}
for rollouts in self.pending_groups.values(): for group_id, rollouts in self.pending_groups.items():
if not rollouts: if not rollouts:
continue continue
env_name = rollouts[0].env_name env_name = rollouts[0].env_name
if self.eval_envs.get(env_name).requires_group_scoring: if self.eval_envs.get(env_name).requires_group_scoring:
continue continue
bkey = (env_name, rollouts[0].eval_step) bkey = (env_name, rollouts[0].eval_step)
buffered[bkey] = buffered.get(bkey, 0) + len(rollouts) buffered[bkey] = buffered.get(bkey, 0) + self.pending_group_episodes.get(group_id, 0)
return [ return [
( (
env_name, env_name,
@@ -93,6 +98,7 @@ class EvalSink:
def process_group(self, group_id: uuid.UUID) -> None: def process_group(self, group_id: uuid.UUID) -> None:
group = self.pending_groups.pop(group_id, []) group = self.pending_groups.pop(group_id, [])
episodes = self.pending_group_episodes.pop(group_id, 0)
if not group: if not group:
return return
env_name = group[0].env_name env_name = group[0].env_name
@@ -100,6 +106,7 @@ class EvalSink:
eval_step = group[0].eval_step eval_step = group[0].eval_step
bucket = self.pending_batches[(env_name, eval_step)] bucket = self.pending_batches[(env_name, eval_step)]
bucket.extend(group) bucket.extend(group)
self.pending_batch_episodes[(env_name, eval_step)] += episodes
survivors = [r for r in group if not r.has_error] survivors = [r for r in group if not r.has_error]
num_errored = len(group) - len(survivors) num_errored = len(group) - len(survivors)
@@ -117,4 +124,5 @@ class EvalSink:
does no aggregation.""" does no aggregation."""
env_name, step = key env_name, step = key
rollouts = self.pending_batches.pop(key, []) rollouts = self.pending_batches.pop(key, [])
self.pending_batch_episodes.pop(key, None)
return EvalBatch(env_name=env_name, step=step, rollouts=EvalRollouts(rollouts)) return EvalBatch(env_name=env_name, step=step, rollouts=EvalRollouts(rollouts))
+13 -8
View File
@@ -337,8 +337,9 @@ class EvalMetrics(RolloutMetrics):
class TrainRollouts: class TrainRollouts:
"""A list of train rollouts (everything that came back, errored + filtered included). ``effective`` """A list of train rollouts (everything that came back, errored + filtered + untrainable
is the clean subset (a view of the same traces); ``metrics`` builds ``TrainMetrics`` over them.""" included). ``effective`` is the clean trainable subset (a view of the same traces);
``metrics`` builds ``TrainMetrics`` over them."""
def __init__(self, rollouts: list[Rollout] | None = None) -> None: def __init__(self, rollouts: list[Rollout] | None = None) -> None:
self.rollouts = rollouts if rollouts is not None else [] self.rollouts = rollouts if rollouts is not None else []
@@ -354,7 +355,7 @@ class TrainRollouts:
@property @property
def effective(self) -> TrainRollouts: def effective(self) -> TrainRollouts:
return TrainRollouts([r for r in self.rollouts if not r.has_error and not r.is_filtered]) return TrainRollouts([r for r in self.rollouts if not r.has_error and not r.is_filtered and r.trainable])
def by_env(self) -> dict[str, TrainRollouts]: def by_env(self) -> dict[str, TrainRollouts]:
grouped: dict[str, list[Rollout]] = {} grouped: dict[str, list[Rollout]] = {}
@@ -368,7 +369,8 @@ class TrainRollouts:
class EvalRollouts: class EvalRollouts:
"""A list of eval rollouts (errored included). ``effective`` is the non-errored subset (a view). """A list of eval rollouts (errored + untrainable included). ``effective`` is the
non-errored trainable subset (a view).
``group_size`` (rollouts per example, the ``avg@k`` k) is derived from the full epoch and carried ``group_size`` (rollouts per example, the ``avg@k`` k) is derived from the full epoch and carried
onto ``effective`` so both subsets share one stable key; ``metrics`` builds ``EvalMetrics``.""" onto ``effective`` so both subsets share one stable key; ``metrics`` builds ``EvalMetrics``."""
@@ -384,18 +386,21 @@ class EvalRollouts:
@property @property
def group_size(self) -> int: def group_size(self) -> int:
"""The largest group (equals the configured group size whenever one example kept all its """The largest group in trainable (policy) traces — equals the configured group size
rollouts); a subview carries its parent's value so ``avg@k`` doesn't drift across subsets.""" whenever one example kept all its rollouts; untrainable traces don't count, so a
multi-agent episode doesn't inflate ``k``. A subview carries its parent's value so
``avg@k`` doesn't drift across subsets."""
if self._group_size is not None: if self._group_size is not None:
return self._group_size return self._group_size
counts: dict = {} counts: dict = {}
for r in self.rollouts: for r in self.rollouts:
counts[r.group_id] = counts.get(r.group_id, 0) + 1 if r.trainable:
counts[r.group_id] = counts.get(r.group_id, 0) + 1
return max(counts.values(), default=0) return max(counts.values(), default=0)
@property @property
def effective(self) -> EvalRollouts: def effective(self) -> EvalRollouts:
return EvalRollouts([r for r in self.rollouts if not r.has_error], group_size=self.group_size) return EvalRollouts([r for r in self.rollouts if not r.has_error and r.trainable], group_size=self.group_size)
@property @property
def metrics(self) -> EvalMetrics: def metrics(self) -> EvalMetrics:
+18 -15
View File
@@ -466,7 +466,7 @@ class Orchestrator:
trim_process_memory() trim_process_memory()
async def main_loop(self) -> None: async def main_loop(self) -> None:
"""Consume ``Rollout``\\ s from the dispatcher and route them """Consume episodes (``list[Rollout]``) from the dispatcher and route them
to the train / eval sink. Both sinks return a finalized batch (or to the train / eval sink. Both sinks return a finalized batch (or
``None``) from ``add()``; we just dispatch on the result.""" ``None``) from ``add()``; we just dispatch on the result."""
while not self.stopped.is_set(): while not self.stopped.is_set():
@@ -476,7 +476,7 @@ class Orchestrator:
break break
try: try:
rollout: Rollout = await asyncio.wait_for(self.dispatcher.out_q.get(), timeout=0.5) episode: list[Rollout] = await asyncio.wait_for(self.dispatcher.out_q.get(), timeout=0.5)
except asyncio.TimeoutError: except asyncio.TimeoutError:
continue continue
@@ -484,33 +484,36 @@ class Orchestrator:
# ``all`` trace file the moment it arrives, so it survives crashes and drains. # ``all`` trace file the moment it arrives, so it survives crashes and drains.
# Train rollouts belong to the batch window currently collecting (``progress.step``), # Train rollouts belong to the batch window currently collecting (``progress.step``),
# eval rollouts to the step whose eval triggered them. # eval rollouts to the step whose eval triggered them.
step = rollout.eval_step if rollout.kind == "eval" else self.progress.step kind = episode[0].kind
step = episode[0].eval_step if kind == "eval" else self.progress.step
assert step is not None assert step is not None
run: vf.RunInfo = ( run: vf.RunInfo = (
vf.EvalRunInfo(id=self.monitor.run_id, step=step) vf.EvalRunInfo(id=self.monitor.run_id, step=step)
if rollout.kind == "eval" if kind == "eval"
else vf.TrainRunInfo(id=self.monitor.run_id, step=step) else vf.TrainRunInfo(id=self.monitor.run_id, step=step)
) )
rollout.stamp( for rollout in episode:
run, rollout.stamp(
env_name=rollout.env_name, run,
group_id=str(rollout.group_id), env_name=rollout.env_name,
policy_version=rollout.policy_version, group_id=str(rollout.group_id),
) episode_id=rollout.episode_id,
policy_version=rollout.policy_version,
)
await asyncio.to_thread( await asyncio.to_thread(
save_rollouts, save_rollouts,
[rollout.to_record()], [rollout.to_record() for rollout in episode],
get_trace_path(self.config.output_dir, step, rollout.kind, "all"), get_trace_path(self.config.output_dir, step, kind, "all"),
) )
if rollout.kind == "eval": if kind == "eval":
assert self.eval_sink is not None # eval rollouts only emitted when eval is configured assert self.eval_sink is not None # eval rollouts only emitted when eval is configured
eval_batch = self.eval_sink.add(rollout) eval_batch = self.eval_sink.add(episode)
if eval_batch is not None: if eval_batch is not None:
await self.finalize_eval_batch(eval_batch) await self.finalize_eval_batch(eval_batch)
continue continue
train_batch = await self.train_sink.add(rollout) train_batch = await self.train_sink.add(episode)
# In drain mode any late-arriving train batch is dropped — we # In drain mode any late-arriving train batch is dropped — we
# don't want to ship past ``max_steps`` # don't want to ship past ``max_steps``
if train_batch is not None and not self.draining and not self.stopped.is_set(): if train_batch is not None and not self.draining and not self.stopped.is_set():
+36 -37
View File
@@ -3,15 +3,17 @@
1. ``process_rollout`` — eager per-rollout tokenization (overlaps with 1. ``process_rollout`` — eager per-rollout tokenization (overlaps with
dispatcher producing more rollouts), then the env algorithm's dispatcher producing more rollouts), then the env algorithm's
``finalize_rollout`` (rollout-local scoring + any reference I/O). Errored ``finalize_rollout`` (rollout-local scoring + any reference I/O). Errored
rollouts skip this. and untrainable rollouts skip this.
2. ``process_group`` — filters errored rollouts, hands survivors to the env 2. ``process_group`` — filters errored rollouts, hands the trainable
algorithm's ``finalize_group`` (advantages + per-sample wire stamping), survivors to the env algorithm's ``finalize_group`` (advantages +
runs the pre-batch filter pass. per-sample wire stamping), runs the pre-batch filter pass.
3. ``process_batch`` — applies post-batch filter annotations and assembles 3. ``process_batch`` — applies post-batch filter annotations and assembles
the trainer-bound ``TrainingSample`` list. Returns a ``TrainBatch``. the trainer-bound ``TrainingSample`` list. Returns a ``TrainBatch``.
``add()`` returns ``TrainBatch | None``. I/O concerns (ship to trainer, ``add()`` takes one episode (``list[Rollout]``) and returns
save_rollouts, monitor.log) live on the orchestrator. ``TrainBatch | None``; group accounting counts episodes, never loose traces.
I/O concerns (ship to trainer, save_rollouts, monitor.log) live on the
orchestrator.
""" """
from __future__ import annotations from __future__ import annotations
@@ -78,6 +80,9 @@ class TrainSink:
# isn't unique — the same task can be re-sampled while an # isn't unique — the same task can be re-sampled while an
# earlier group is still in flight # earlier group is still in flight
self.pending_groups: dict[uuid.UUID, list[Rollout]] = defaultdict(list) self.pending_groups: dict[uuid.UUID, list[Rollout]] = defaultdict(list)
# Episodes arrived per group — the finalization count (an episode may
# add several traces to ``pending_groups`` but counts once here).
self.pending_group_episodes: dict[uuid.UUID, int] = defaultdict(int)
self.pending_batch: list[Rollout] = [] self.pending_batch: list[Rollout] = []
# Running payload-token total of ``pending_batch`` (token-batched # Running payload-token total of ``pending_batch`` (token-batched
# runs), kept in sync on append/pop so the readiness check never # runs), kept in sync on append/pop so the readiness check never
@@ -92,22 +97,6 @@ class TrainSink:
def group_size_for(self, env_name: str) -> int: def group_size_for(self, env_name: str) -> int:
return self.train_envs.get(env_name).config.group_size return self.train_envs.get(env_name).config.group_size
def in_progress_groups(self) -> list[list[Rollout]]:
"""Per-rollout groups currently accumulating in ``pending_groups`` —
i.e. groups that haven't hit ``group_size`` yet, so the pipeline log
can reflect partial-group progress. Skips group-scoring envs (whose
rollouts only make sense as a unit — the user expects per-group
fill, not per-rollout, for those)."""
out: list[list[Rollout]] = []
for rollouts in self.pending_groups.values():
if not rollouts:
continue
env_name = rollouts[0].env_name
if self.train_envs.get(env_name).requires_group_scoring:
continue
out.append(rollouts)
return out
def batch_progress(self) -> tuple[int, int, str]: def batch_progress(self) -> tuple[int, int, str]:
"""``(current, target, unit)`` for the train batch — counts only """``(current, target, unit)`` for the train batch — counts only
``pending_batch`` (survivors of finalized groups, queued for the ``pending_batch`` (survivors of finalized groups, queued for the
@@ -119,9 +108,13 @@ class TrainSink:
return self.pending_tokens, self.token_batch_size, "tokens" return self.pending_tokens, self.token_batch_size, "tokens"
def buffered_count(self) -> int: def buffered_count(self) -> int:
"""Rollouts that have arrived but sit in not-yet-complete groups """Episodes that have arrived but sit in not-yet-complete groups
(non-group-scoring envs) — buffered in the sink ahead of the batch.""" (non-group-scoring envs) — buffered in the sink ahead of the batch."""
return sum(len(group) for group in self.in_progress_groups()) return sum(
self.pending_group_episodes.get(group_id, 0)
for group_id, rollouts in self.pending_groups.items()
if rollouts and not self.train_envs.get(rollouts[0].env_name).requires_group_scoring
)
def pending_batch_by_env(self) -> dict[str, int]: def pending_batch_by_env(self) -> dict[str, int]:
"""Per-env breakdown of ``batch_progress()`` (``pending_batch`` only); """Per-env breakdown of ``batch_progress()`` (``pending_batch`` only);
@@ -131,17 +124,20 @@ class TrainSink:
counts[r.env_name] += 1 counts[r.env_name] += 1
return dict(counts) return dict(counts)
async def add(self, rollout: Rollout) -> TrainBatch | None: async def add(self, episode: list[Rollout]) -> TrainBatch | None:
"""Process one arrival; finalize the group on the ``group_size``-th """Process one episode arrival; finalize the group on the
arrival; return a ``TrainBatch`` if the finalization pushed (or left) ``group_size``-th episode; return a ``TrainBatch`` if the finalization
the batch over its threshold. Arrivals into still-incomplete groups pushed (or left) the batch over its threshold. Arrivals into
never ship a batch.""" still-incomplete groups never ship a batch."""
await self.process_rollout(rollout) group_id = episode[0].group_id
env_name = rollout.env_name env_name = episode[0].env_name
self.pending_groups[rollout.group_id].append(rollout) for rollout in episode:
if len(self.pending_groups[rollout.group_id]) < self.group_size_for(env_name): await self.process_rollout(rollout)
self.pending_groups[group_id].extend(episode)
self.pending_group_episodes[group_id] += 1
if self.pending_group_episodes[group_id] < self.group_size_for(env_name):
return None return None
await self.process_group(rollout.group_id) await self.process_group(group_id)
# ``pending_batch`` only grows on group finalization, so readiness is # ``pending_batch`` only grows on group finalization, so readiness is
# only re-checked here — the window of a shipped batch then always # only re-checked here — the window of a shipped batch then always
# contains at least the group that finalized it. # contains at least the group that finalized it.
@@ -158,8 +154,8 @@ class TrainSink:
"""Build training samples from the rollout's Trace (one per branch), walking the """Build training samples from the rollout's Trace (one per branch), walking the
message graph. Training is renderer-only across all modes (RL/OPD student, SFT teacher), message graph. Training is renderer-only across all modes (RL/OPD student, SFT teacher),
so every node already carries its tokens. Errored rollouts are dropped at the group so every node already carries its tokens. Errored rollouts are dropped at the group
level, so skip them here.""" level, so skip them here; untrainable traces never become training data."""
if rollout.has_error: if rollout.has_error or not rollout.trainable:
return return
samples = await asyncio.to_thread( samples = await asyncio.to_thread(
trace_to_samples, trace_to_samples,
@@ -178,6 +174,7 @@ class TrainSink:
when ``requires_group_scoring`` and any failed), assign advantages, when ``requires_group_scoring`` and any failed), assign advantages,
run pre-batch filters, append survivors to ``pending_batch``.""" run pre-batch filters, append survivors to ``pending_batch``."""
group = self.pending_groups.pop(group_id, []) group = self.pending_groups.pop(group_id, [])
self.pending_group_episodes.pop(group_id, None)
if not group: if not group:
return return
# Window membership follows group finalization, not arrival: a rollout # Window membership follows group finalization, not arrival: a rollout
@@ -200,10 +197,12 @@ class TrainSink:
f"rollouts={len(group)} (errored={num_errored}) | dropped: group-scored partial" f"rollouts={len(group)} (errored={num_errored}) | dropped: group-scored partial"
) )
return return
# Untrainable traces carry no samples and must not skew the group baseline.
survivors = [r for r in survivors if r.trainable]
if not survivors: if not survivors:
get_logger().debug( get_logger().debug(
f"Finished group | env={env_name} task_idx={task_idx} | " f"Finished group | env={env_name} task_idx={task_idx} | "
f"rollouts={len(group)} (errored={num_errored}) | dropped: all failed" f"rollouts={len(group)} (errored={num_errored}) | dropped: no trainable survivors"
) )
return return
+4 -1
View File
@@ -41,7 +41,7 @@ RolloutKind = Literal["train", "eval"]
@dataclass @dataclass
class InflightRollout: class InflightRollout:
"""Per-task scheduling state in the dispatcher; one entry per in-flight """Per-task scheduling state in the dispatcher; one entry per in-flight
``run_rollout`` / ``run_group`` task.""" ``run`` / ``run_group`` task."""
kind: RolloutKind kind: RolloutKind
env_name: str env_name: str
@@ -88,6 +88,9 @@ class Rollout(vf.Trace[DataT], Generic[DataT]):
kind: RolloutKind = Field(default="train", exclude=True) kind: RolloutKind = Field(default="train", exclude=True)
env_name: str = Field(default="", exclude=True) env_name: str = Field(default="", exclude=True)
group_id: uuid.UUID = Field(default_factory=uuid.uuid4, exclude=True) group_id: uuid.UUID = Field(default_factory=uuid.uuid4, exclude=True)
# Links the traces of one episode; stamped into ``info`` on arrival so
# saved records keep their grouping.
episode_id: str = Field(default="", exclude=True)
policy_version: int = Field(default=0, exclude=True) policy_version: int = Field(default=0, exclude=True)
off_policy_steps: int = Field(default=0, exclude=True) off_policy_steps: int = Field(default=0, exclude=True)
samples: list[TrainingSample] = Field(default_factory=list, exclude=True) samples: list[TrainingSample] = Field(default_factory=list, exclude=True)
+1 -1
View File
@@ -336,7 +336,7 @@ class PrimeMonitor(Monitor):
rows = [] rows = []
for sample_id, rollout in enumerate(rollouts): for sample_id, rollout in enumerate(rollouts):
sample = trace_to_sample(rollout, rollout_number=sample_id + 1) sample = trace_to_sample(rollout, rollout_number=sample_id + 1, episode_id=rollout.episode_id or None)
trajectory = sample["trajectory"] trajectory = sample["trajectory"]
if not trajectory: # no branches (e.g. a rollout that errored before any message) if not trajectory: # no branches (e.g. a rollout that errored before any message)
continue continue
+2
View File
@@ -24,6 +24,7 @@ def mk(
rewards: dict | None = None, rewards: dict | None = None,
env_name: str = "env", env_name: str = "env",
group_id: str = "g0", group_id: str = "g0",
trainable: bool = True,
is_trainable: bool = True, is_trainable: bool = True,
is_filtered: bool = False, is_filtered: bool = False,
filter_results: dict | None = None, filter_results: dict | None = None,
@@ -51,6 +52,7 @@ def mk(
metrics=metrics or {}, metrics=metrics or {},
env_name=env_name, env_name=env_name,
group_id=group_id, group_id=group_id,
trainable=trainable,
is_trainable=is_trainable, is_trainable=is_trainable,
is_filtered=is_filtered, is_filtered=is_filtered,
filter_results=filter_results or {}, filter_results=filter_results or {},
Generated
+13
View File
@@ -94,6 +94,7 @@ members = [
"prime-rl", "prime-rl",
"programbench-v1", "programbench-v1",
"prolog-v1", "prolog-v1",
"proposer-solver-v1",
"r2e-gym-v1", "r2e-gym-v1",
"redsearcher-v1", "redsearcher-v1",
"reverse-text-v1", "reverse-text-v1",
@@ -5453,6 +5454,17 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/3a/ed/1cdcab6ba3d6ab7feca11fc14f0eeea80755bb53ef4e892079f31b10a25f/propcache-0.5.2-py3-none-any.whl", hash = "sha256:be1ddfcbb376e3de5d2e2db1d58d6d67463e6b4f9f040c000de8e300295465fe", size = 14036, upload-time = "2026-05-08T21:02:10.673Z" }, { url = "https://files.pythonhosted.org/packages/3a/ed/1cdcab6ba3d6ab7feca11fc14f0eeea80755bb53ef4e892079f31b10a25f/propcache-0.5.2-py3-none-any.whl", hash = "sha256:be1ddfcbb376e3de5d2e2db1d58d6d67463e6b4f9f040c000de8e300295465fe", size = 14036, upload-time = "2026-05-08T21:02:10.673Z" },
] ]
[[package]]
name = "proposer-solver-v1"
version = "0.1.0"
source = { editable = "deps/verifiers/environments/proposer_solver_v1" }
dependencies = [
{ name = "verifiers" },
]
[package.metadata]
requires-dist = [{ name = "verifiers" }]
[[package]] [[package]]
name = "protobuf" name = "protobuf"
version = "6.33.6" version = "6.33.6"
@@ -7893,6 +7905,7 @@ examples = [
{ name = "glossary-v1", editable = "deps/verifiers/environments/glossary_v1" }, { name = "glossary-v1", editable = "deps/verifiers/environments/glossary_v1" },
{ name = "gsm8k-v1", editable = "deps/verifiers/environments/gsm8k_v1" }, { name = "gsm8k-v1", editable = "deps/verifiers/environments/gsm8k_v1" },
{ name = "openenv-wordle-v1", editable = "deps/verifiers/environments/openenv_wordle_v1" }, { name = "openenv-wordle-v1", editable = "deps/verifiers/environments/openenv_wordle_v1" },
{ name = "proposer-solver-v1", editable = "deps/verifiers/environments/proposer_solver_v1" },
{ name = "reverse-text-v1", editable = "deps/verifiers/environments/reverse_text_v1" }, { name = "reverse-text-v1", editable = "deps/verifiers/environments/reverse_text_v1" },
{ name = "scratchpad-v1", editable = "deps/verifiers/environments/scratchpad_v1" }, { name = "scratchpad-v1", editable = "deps/verifiers/environments/scratchpad_v1" },
{ name = "wiki-search-v1", editable = "deps/verifiers/environments/wiki_search_v1" }, { name = "wiki-search-v1", editable = "deps/verifiers/environments/wiki_search_v1" },