* 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>
48 lines
853 B
TOML
48 lines
853 B
TOML
max_steps = 20
|
|
seq_len = 2048
|
|
|
|
[model]
|
|
name = "PrimeIntellect/Qwen3-0.6B-Reverse-Text-SFT"
|
|
|
|
[wandb]
|
|
project = "algorithms-debug"
|
|
name = "debug-max-rl"
|
|
|
|
[orchestrator]
|
|
batch_size = 128
|
|
group_size = 16
|
|
|
|
[orchestrator.algo]
|
|
type = "max_rl"
|
|
|
|
[orchestrator.renderer]
|
|
name = "prime-qwen3"
|
|
|
|
[orchestrator.train.sampling]
|
|
max_completion_tokens = 128
|
|
|
|
[[orchestrator.train.env]]
|
|
name = "reverse-text"
|
|
env.taskset = { id = "reverse-text-v1" }
|
|
env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
|
|
|
|
[orchestrator.eval]
|
|
interval = 1
|
|
num_examples = 128
|
|
|
|
[orchestrator.eval.sampling]
|
|
max_completion_tokens = 128
|
|
|
|
[[orchestrator.eval.env]]
|
|
name = "reverse-text"
|
|
env.taskset = { id = "reverse-text-v1" }
|
|
env.agent.harness = { id = "null", runtime = { type = "subprocess" } }
|
|
|
|
[trainer.optim]
|
|
lr = 3e-6
|
|
|
|
[ckpt]
|
|
|
|
[inference]
|
|
gpu_memory_utilization = 0.5
|