Skip to content

[rl] Rollouts that fail outside the policy are recorded, not trained - #5520

Closed
felipemello1 wants to merge 1 commit into
mainfrom
felipemello1/rollout-error-system
Closed

felipemello1 wants to merge 1 commit into
mainfrom
felipemello1/rollout-error-system

Conversation

@felipemello1

@felipemello1 felipemello1 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary (human-written)

If a rollout fails because of infra, we shouldnt add it to the training data. Today we cancel the entire group. Now we cancel only that rollout. The other make into training.

Agent details

TLDR: A rollout that failed outside the policy (a dead generator, a crashed env) is now ERROR_INFRA: recorded,
counted, never trained. The rest of its group still trains.

rollout raised        -> Rollout(status=ERROR_INFRA, logs={"error": ...}), no reward, no advantage
group of 16, 6 failed -> the other 10 train, centered on their 10 rewards

Stack (15 PRs, bottom first; merging a PR also merges every PR below it; this PR in bold)

# PR What
1 Run Verifiers groups in rollout workers Verifiers groups run in rollout workers; the env server stays
2 Rollouts that fail outside the policy are recorded, not trained a failed rollout no longer drops its group
3 Rollouter: least-loaded placement; the controller sizes the pool from rollouts_per_worker least-loaded placement; the pool size follows the rollouts in flight
4 Rollout workers get generate_fn and release_session_fn once, at setup; the rollouter closes each worker before it stops them generator functions at setup; workers close before they stop
5 Verifiers: each example is an installed package; its name is the taskset id taskset ids are package names
6 Verifiers: each rollout worker runs its Verifiers envs; the env server is gone the env runs in the worker (Verifiers 0.4.0)
7 Verifiers: the generation server keeps one session per trace sessions; 1 GiB requests; the renderer refuses overlong prompts
8 Verifiers 0.4.1 and renderers 0.2.0 both pins move
9 Verifiers: only a rollout that Verifiers finished cleanly trains the failure rule
10 Verifiers README: terms, concurrency and sandboxes README only: terms, concurrency, sandboxes
11 Verifiers: time each rollout's sandbox start, setup, agent, model, finalize and scoring per-phase time metrics
12 Terminal-Bench: terminal_bench_env_config takes the package that exports the taskset a package argument for launchers outside the repo
13 Spread rollout workers over the job's hosts opt-in: rollout workers on the other hosts
14 Terminal-Bench: run each task in its image's WORKDIR and grade with task.toml timeouts Terminal-Bench task fixes
15 Rollout workers, the router and the controller report their CPU and memory each step per-role CPU and memory metrics

Alone on main, not in this stack: "Validation reads each prompt at most once; ValidationConfig.steps defaults to -1" and "Terminal-Bench 35B-A3B recipe: Dist-MoE in both roles, FULL CUDA graph generators, DAPO loss".

Problem

  1. A rollout can fail because of the policy (a bad tool call) or because of the infra (a generator or env that broke).
  2. On main, a rollout that raises is caught and marked ERROR (_run_single_rollout's except Exception), so
    infra damage trains toward the error reward as if the policy had failed.
  3. An aborted generation is ERROR_ABORT, which also trains toward the error reward, though the policy did nothing
    wrong.

Solution

  1. RolloutStatus.ERROR_INFRA marks a failure outside the policy. is_trainable() is False only for it.
  2. A rollout that raises is ERROR_INFRA. The MessageEnv worker marks it in _run_single_rollout and keeps its
    turns. A sibling that raises out of run_group's gather gets the same status in make_scored_group, which then
    scores and centers the rest of its group. The Verifiers worker (PR 1) passes its gather results to
    make_scored_group too, so a Verifiers rollout that raises no longer fails its whole group.
  3. A completion the generator cut short (finish reason "abort", or vLLM's "error") is ERROR_INFRA without parsing.
    ERROR_ABORT is deleted.
  4. rollout/status_rate/<status> reports each status's share every step. rollout/unscored_rate is the share with
    no reward. rollout_reward averages the scored rollouts; rollout_reward_all averages all of them, an unscored
    one as 0 (8 at 1.0 and 2 unscored: 1.0 and 0.8).
  5. The rule of thumb on RolloutStatus: the status says who failed. ERROR_INFRA never trains; a policy failure
    trains unless the worker gives it no reward (score_group).
  6. The MessageEnv worker's rules for policy failures are unchanged.

You may ask: why no retry for an aborted request? TitanRL's vLLM engine never aborts one, and the SGLang engine
aborts only invalid requests, which a retry wouldn't fix.

TODOs in this PR: group postprocessors as an ordered list; user-added statuses; per-token reward and advantage;
reweighting a partial group.

Test plan

pytest tests/rl/unit_tests/cpu tests/unit_tests/cpu/components/test_renderer.py tests/unit_tests/cpu/config
# 965 passed, 1 skipped, 14 warnings

New: test_a_response_the_generator_cut_short_is_error_infra_even_if_it_fails_to_parse[abort|error];
test_compute_rollout_metrics_records_a_rate_per_status also checks rollout_reward_all;
test_a_failing_rollout_is_error_infra_once_every_sibling_finished (the Verifiers worker).

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 19, 2026
@felipemello1
felipemello1 added this pull request to stack #5513 October 19, 2026 03:01
@felipemello1
felipemello1 force-pushed the felipemello1/http/7-native-rollout-timeout branch from 70a1b3a to a3f5b24 Compare October 23, 2026 07:34
@felipemello1
felipemello1 force-pushed the felipemello1/rollout-error-system branch from c209ac3 to 6f03cfb Compare October 23, 2026 07:34
@felipemello1 felipemello1 changed the title [rl] Rollouts that fail outside the policy are recorded, not trained [rl] Rollouts that fail outside the policy are recorded, not trained (14/14) Oct 23, 2026
@felipemello1
felipemello1 removed this pull request from stack #5513 October 27, 2026 14:27
@felipemello1
felipemello1 changed the base branch from felipemello1/http/7-native-rollout-timeout to felipemello1/shutdown/1-drain-in-flight October 27, 2026 14:30
@felipemello1
felipemello1 force-pushed the felipemello1/rollout-error-system branch from 6f03cfb to 59c038c Compare October 27, 2026 14:30
@felipemello1 felipemello1 changed the title [rl] Rollouts that fail outside the policy are recorded, not trained (14/14) [rl] Rollouts that fail outside the policy are recorded, not trained (7/14) Oct 27, 2026
@felipemello1
felipemello1 added this pull request to stack #5639 October 27, 2026 14:33
@felipemello1
felipemello1 force-pushed the felipemello1/shutdown/1-drain-in-flight branch from 1bd02b5 to 060dbe7 Compare November 5, 2026 00:36
@felipemello1
felipemello1 force-pushed the felipemello1/rollout-error-system branch from 59c038c to 4653f41 Compare November 5, 2026 00:36
@felipemello1

Copy link
Copy Markdown
Contributor Author

Reply from claude: @claude review

@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @felipemello1's task in 3m 46s —— View job


Approve -- please address the items below before merging (the Verifiers 4xx rule counts some infra failures as policy errors; a maintainer still needs to review): review

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Approve -- please address the items below before merging. Moving infra failures out of scoring, the advantage and training is the right layer for this fix. One rule in the Verifiers classifier is too broad: it still trains some infra failures as policy errors. This PR touches core RL code (training_sample_builder.py, advantage.py, rollouter.py), so a maintainer still needs to review it.

What this PR does. It adds RolloutStatus.ERROR_SYSTEM for rollouts that fail for a reason outside the policy. Native rollouts that raise and Verifiers rollouts that raise (via rollouts_from_gather) become ERROR_SYSTEM instead of failing their group. So do Verifiers traces with a recorded infra error (rollout_status). These rollouts stay in their group for logs and the recorder, but scoring, the advantage estimator and TrainingSampleBuilder skip them. The remaining rollouts are centered on their own mean.

Example. One group of 3 rollouts. The generator is unreachable for rollout 0, and the rubric gives rewards 2 and 3 to the other two:

before: rollout 0 is ERROR with no turns -> "untrainable" filter drops all 3
after:  rollout 0 is ERROR_SYSTEM, reward/advantage None, not trained
        rollouts 1, 2 get advantages -0.5, +0.5 (mean 2.5) and train
        rollout/system_error_rate = 1/3

Must fix

  1. torchtitan/rl/examples/verifiers/rollouter.py:415 -- the rule treats any generator 4xx as the policy's error. The in-repo generation server also returns 400 for harness/integration bugs (missing session header, bad sampling_params, missing group id). Those rollouts get error_reward and their partial turns train. Match the context-length message instead (inline suggestion).

Questions

  • rollouter.py:413 -- Does Verifiers raise HarnessError after the first turn only when the agent exits on its own? If a harness process or sandbox crash mid-rollout is also a HarnessError, those rollouts train as policy errors.
Details
  • I checked the callers of the new status. Rubric._score_single_rollout's error_reward short-circuit uses is_error(), but ERROR_SYSTEM rollouts never reach the rubric. compute_rollout_metrics and KeepExtremeRewardsFilter already skip None rewards. AdvantageEstimator now returns [] for an empty group, and both group functions zip with strict=True over the same scored list.
  • TokenEnv's step timeout returns ERROR_TIMEOUT instead of raising (token_env.py:226), so moving native exceptions to ERROR_SYSTEM doesn't reclassify timeouts. CancelledError is a BaseException, so rollouts_from_gather still re-raises it.
  • Changing the zero-std check from len(rewards) > 1 to len(rollout_group.rollouts) > 1 keeps group_size=1 groups trainable as before, and drops groups that have one rollout left.
  • A Verifiers 400 at 0 turns is still ERROR with no turns, so the "untrainable" filter drops the whole group. That matches the intent (a data problem) and the behavior before this PR.

Not verified: I couldn't inspect the installed Verifiers package, so I don't know whether Error.type records the concrete subclass name. If it does, a subclass of ProviderError or HarnessError wouldn't match __name__, and those rollouts would fall through to ERROR_SYSTEM.

@felipemello1

Copy link
Copy Markdown
Contributor Author

Reply from claude: @claude review again

@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @felipemello1's task in 1m 11s —— View job


Approve -- the earlier must-fix item and question are resolved, and the new commits add no new problems (a maintainer still needs to review): review

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Approve -- the earlier must-fix item and question are resolved, and the new commits (9044219, 1dfba47, f99803e) add no new problems. This PR touches core RL code (training_sample_builder.py, advantage.py, rollout/rollouter.py), so a maintainer still needs to review it.

What changed since the last review. rollout_status (torchtitan/rl/examples/verifiers/rollouter.py:425-432) now counts only two recorded errors as the policy's:

  • a ProviderError whose message contains _CONTEXT_OVERFLOW_TEXT;
  • a HarnessError after the first turn whose message matches _AGENT_EXIT_PATTERN (harness '<id>' exited <code>: ).

The first-prompt check at line 375 uses the same constant.

Example.

first recorded error                                   turns  before this round  now
ProviderError 400 "maximum context length ..."         0/1    ERROR              ERROR
ProviderError 400 "missing X-Session-ID header"        1      ERROR (trained)    ERROR_SYSTEM
HarnessError "harness 'terminus' exited 1: ..."        1      ERROR              ERROR
HarnessError "harness 'terminus' metric: KeyError"     1      ERROR (trained)    ERROR_SYSTEM
HarnessError "harness 'terminus': ... tmux exited 1"   1      ERROR (trained)    ERROR_SYSTEM
HarnessError (any)                                     0      ERROR_SYSTEM       ERROR_SYSTEM

Earlier items

  • Must fix, rollouter.py:415 (any generator 4xx counted as the policy's): resolved. Only the context-length wording counts now, and the parametrized cases cover a non-context 400.
  • Question, HarnessError after the first turn: resolved. The match is now on the agent-exit message and anchored with re.match. The pattern requires the quoted id, so a nested "... exited 1" inside a harness-code error doesn't match (there's a test case for that). A harness process that crashes on its own after the first turn still counts as the policy's, and the comment at 416-417 now says so.
Details
  • At 0 turns, a context-overflow ProviderError returns ERROR, so lines 372-391 still flag the first prompt as a data problem and the "untrainable" filter drops the group, same as before. A non-context 400 at 0 turns is now ERROR_SYSTEM, so its siblings train. That's the intended change.
  • Since the last review, the PR diff only changed rollouter.py and test_verifiers.py. The merge commits only bring in the base branch.

Not verified: I couldn't import the installed Verifiers 0.4.0, so I didn't confirm its exact HarnessError exit wording or that Error.type is type(error).__name__. That relies on the author's reply.

@felipemello1
felipemello1 removed this pull request from stack #5639 November 5, 2026 07:53
@felipemello1
felipemello1 added this pull request to stack #5857 November 5, 2026 07:54
@felipemello1 felipemello1 changed the title [rl] Rollouts that fail outside the policy are recorded, not trained (7/14) [rl] Rollouts that fail outside the policy are recorded, not trained (7/10) Nov 5, 2026
Base automatically changed from felipemello1/shutdown/1-drain-in-flight to main November 5, 2026 11:14
@felipemello1
felipemello1 force-pushed the felipemello1/rollout-error-system branch from 674cf32 to b3c83d3 Compare November 5, 2026 11:15
@felipemello1
felipemello1 removed this pull request from stack #5857 November 6, 2026 04:05
@felipemello1
felipemello1 changed the base branch from main to felipemello1/verifiers-v2/1-taskset-package-ids November 6, 2026 04:05
@felipemello1
felipemello1 force-pushed the felipemello1/rollout-error-system branch from 08eb8a5 to 99ef19d Compare November 6, 2026 04:05
@felipemello1
felipemello1 added this pull request to stack #5878 November 6, 2026 04:06
@felipemello1
felipemello1 force-pushed the felipemello1/verifiers-v2/1-taskset-package-ids branch from 5a833dd to ed02d71 Compare November 6, 2026 05:18
@felipemello1
felipemello1 force-pushed the felipemello1/rollout-error-system branch from 99ef19d to 0ecfb1f Compare November 6, 2026 05:18
@felipemello1
felipemello1 added this pull request to stack #6040 November 12, 2026 00:36
@felipemello1

Copy link
Copy Markdown
Contributor Author

Reply from claude: @claude please review. This push puts the stack on a draft copy of the look-aside router PR, rebased onto main (row 0, DO NOT REVIEW; it closes when the original lands). The generate answer now comes from the generator, so the docs and bodies say so; each body says not to merge while row 0 is under the stack.

@claude

claude Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @felipemello1's task in 1m 39s —— View job


Approve -- please address the items below before merging: the rebase onto row 0 leaves this PR's diff unchanged in substance, and failed rollouts still release their router reservation. The "Summary (human-written)" section is still empty, and a maintainer still needs to review. Review

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Approve -- please address the items below before merging. Rebasing onto row 0 (look-aside routing) leaves this PR's diff unchanged in substance, and the failed-rollout path still composes with the new generate path. This PR touches core RL code (rollout/rollouter.py, rollout/types.py, rollout/token_env.py, trainer/training_sample_builder.py), so a maintainer still needs to review it.

What changed since the last review. Only the base changed. The PR's 19 files and hunks match what I approved last round. Row 0 changes what a rollout's generate_fn does: the controller's generate (controller.py:668-691) reserves a generator from the router, calls that generator directly, and releases the reservation in a finally.

Example. One rollout's generate call fails under look-aside routing:

generate_fn: router.reserve -> generator.generate raises ConnectionError -> finally: release_reservation
_run_single_rollout: except Exception -> ERROR_INFRA, logs["error"]="ConnectionError(...)"
                     then release_session_fn(routing_session_id) runs as before
run_group: gather(return_exceptions=True) waits for every sibling -> make_scored_group
controller: generator_router.release_groups([group_id]) (controller.py:1206), no sibling still generating

Must fix

  1. PR description: the "Summary (human-written)" section is still empty. The author has to fill it in (CLAUDE.md, PR expectations #2).

Questions

  • Still open from earlier rounds: token_env.py re-renders the policy's own completion_message (bridge_to_next_turn, then render_ids). If either can raise on content the model produced, the rule of thumb says that rollout should train, but today it ends as ERROR_INFRA. Can that happen with the renderers in use?
Details
  • Reservation accounting: generate's finally releases the reservation whether generator.generate returns or raises, so a rollout that becomes ERROR_INFRA leaves no reserved load on the router. The TODO at controller.py:676-678 about cancelled callers is row 0's and unchanged by this PR. This PR's gather never cancels a sibling.
  • make_scored_group's docstring ("the controller releases the group on the generators next") still holds: the release now goes through generator_router.release_groups, which reaches the generators.
  • GenerateFn still returns Completion | None (types.py:178). A None would make TokenEnv.step raise on completion.finish_reason, so it ends as ERROR_INFRA. The controller's generate never returns None (the generator endpoint returns Completion).
  • Callers after the rebase: no TokenEnv.Config() without a cap and no _alphabet_sort_rollouter_config() without arguments remain. Every RolloutWorker.Config(...) builder (alphabet_sort, dapo_math, search_r1, geometry3k, the Rollouter docstring, the RL README) passes token_env.

Not verified: I didn't run the CPU unit tests.

@felipemello1
felipemello1 force-pushed the felipemello1/http/6-verifiers-groups-in-workers branch from d9bb1eb to 029993d Compare November 12, 2026 00:43
@felipemello1
felipemello1 force-pushed the felipemello1/rollout-error-system branch from 81c0bb2 to 6f766d0 Compare November 12, 2026 00:43
@felipemello1
felipemello1 force-pushed the felipemello1/http/6-verifiers-groups-in-workers branch from 029993d to ddd4639 Compare November 12, 2026 03:06
@felipemello1
felipemello1 force-pushed the felipemello1/rollout-error-system branch 2 times, most recently from 91343c6 to 3abf31c Compare November 12, 2026 03:41
@felipemello1

Copy link
Copy Markdown
Contributor Author

Reply from claude: @claude please review. The bottom PR renamed the stock RolloutWorker to MessageEnvRolloutWorker (no alias) and cut three docstrings. This PR takes the new name, and MessageEnvRolloutWorker.run_group keeps the bottom PR's one-line docstring instead of rewriting it.

@claude

claude Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @felipemello1's task in 1m 10s —— View job


Approve -- please address the items below before merging: the rebase onto the MessageEnvRolloutWorker rename is clean, but the "Summary (human-written)" section is still empty, and a maintainer still needs to review. Review

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Approve -- please address the items below before merging. The rebase onto the MessageEnvRolloutWorker rename is clean and the logic is the same as what I approved last round. This PR touches core RL code (rollout/rollouter.py, rollout/types.py, rollout/token_env.py, trainer/training_sample_builder.py), so a maintainer still needs to review it.

What changed since the last review. Only names and one docstring:

  • Every reference this PR adds or edits now uses MessageEnvRolloutWorker / BaseRolloutWorker: the RolloutStatus docstring, the TokenEnv deadline comment, the recipes (alphabet_sort, geometry3k, the CI alphabet_sort configs), the RL README and the tests. Nothing in the tree or the diff still says bare RolloutWorker.
  • MessageEnvRolloutWorker.run_group (rollouter.py:502) keeps the bottom PR's one-line docstring ("... then score them and fill their advantages"). That still matches the body: scoring and advantages happen in make_scored_group, which run_group returns. The detailed contract (gather with return_exceptions=True, pass the results to make_scored_group) is on BaseRolloutWorker.run_group, where an override would look for it.

Example. The same group as before, under the new class name:

MessageEnvRolloutWorker.run_group, group of 3; rollout 0's generate call raises ConnectionError;
the rubric gives rollouts 1 and 2 rewards 2 and 3
  gather(return_exceptions=True) -> [ConnectionError(...), Rollout(1), Rollout(2)]
  BaseRolloutWorker.make_scored_group:
    rollout 0 -> ERROR_INFRA, reward/advantage None, logs["error"]="ConnectionError(...)"
    rollouts 1, 2 -> advantages -0.5, +0.5, trained

Must fix

  1. PR description: the "Summary (human-written)" section is still empty. The author has to fill it in (CLAUDE.md, PR expectations #2).

Questions

  • Still open from earlier rounds: token_env.py re-renders the policy's own completion_message (bridge_to_next_turn, then render_ids). If either one can raise on content the model produced, the rule of thumb says that rollout should train, but today it ends as ERROR_INFRA. Can that happen with the renderers in use?
Details
  • Rename coverage: a word-boundary search for RolloutWorker over the checkout and over gh pr diff 5520 finds no matches. So no recipe, test or doc this PR touches depends on an alias the bottom PR removed.
  • MessageEnvRolloutWorker.Config.token_env has no default. Every MessageEnvRolloutWorker.Config(...) builder (alphabet_sort through _alphabet_sort_rollouter_config(max_rollout_tokens=seq_len), geometry3k, the Rollouter docstring, the RL README) passes token_env.
  • Rollouter.run_group_rollouts (rollouter.py:239-243) still says "Then score_group fills each reward". This PR doesn't touch it, and the sentence is still true.
  • Outside the rename, the diff matches what I approved last round: make_scored_group on BaseRolloutWorker, _NOT_TRAINABLE = {"error_abort", "error_infra"}, the abort check before parsing, the asyncio.timeout deadline check, a required max_rollout_tokens, and the builder filtering on reward is not None.

Not verified: I didn't run the CPU unit tests.

@felipemello1

Copy link
Copy Markdown
Contributor Author

Reply from claude: @claude please review. The stack is reordered: Verifiers groups in workers, then Verifiers 0.4.1, then worker placement come first (the stack table shows the new rows). It is also rebuilt with three reviewed passes: a code-style pass over every changed file, the rewritten placement docs (the VerifiersRollouter docstring and the two Verifiers READMEs; the old SVG is deleted), and the 3 newest main commits. No behavior change from the passes.

@claude

claude Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @felipemello1's task in 1m 4s —— View job


Approve: the logic at 0442e23 is unchanged after the reorder, and the human-written summary is now filled in. A maintainer still needs to review: review

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Approve. I re-read the diff at 0442e23 after the reorder and the rebuild. Its logic is the same as what I approved last round, and the "Summary (human-written)" section is now filled in, so the one remaining must-fix item is resolved. This PR touches core RL code (rollout/rollouter.py, rollout/types.py, rollout/token_env.py, trainer/training_sample_builder.py), so a maintainer still needs to review it.

What this PR does. A rollout whose code raises now ends as ERROR_INFRA, with the error in logs["error"]. That covers a raise inside _run_single_rollout and a sibling that raised past it, which BaseRolloutWorker.make_scored_group catches. score_group and the advantage estimator see only is_trainable() rollouts. ERROR_ABORT and ERROR_INFRA are never scored or trained. TrainingSampleBuilder skips any rollout whose reward is None. max_rollout_tokens is required. Only the TokenEnv step deadline gives ERROR_TIMEOUT.

Example.

group of 3; rollout 0's generate call raises ConnectionError; the rubric gives rollouts 1 and 2 rewards 2 and 3
base:  rollout 0 is ERROR with no turns -> the "untrainable" filter drops all 3
HEAD:  rollout 0 is ERROR_INFRA, reward/advantage None, not trained
       rollouts 1, 2 get advantages -0.5, +0.5 and train
       rollout/status_rate/error_infra = 1/3, rollout/unscored_rate = 1/3

Questions

  • Still open from earlier rounds, not blocking: token_env.py re-renders the policy's own completion_message (bridge_to_next_turn, then render_ids). If either one can raise on content the model produced, the rule of thumb says that rollout should train, but today it ends as an untrained ERROR_INFRA.
Details
  • Diff at HEAD (19 files, +540/-138): the same hunks as last round. Those are make_scored_group on BaseRolloutWorker, _NOT_TRAINABLE = {"error_abort", "error_infra"}, the abort check before parsing, the asyncio.timeout + deadline.expired() check, a required max_rollout_tokens / token_env, the builder's reward is not None filter, and the zero-std check on len(rollout_group.rollouts) > 1. The Verifiers worker's run_group returns make_scored_group(results, ...).
  • Callers after the rebuild: nothing in the tree builds TokenEnv.Config() without a cap or calls _alphabet_sort_rollouter_config() with no arguments. Every MessageEnvRolloutWorker.Config(...) passes token_env: alphabet_sort, geometry3k, dapo_math, search_r1, the Rollouter docstring and the RL README.
  • run_group implementations: MessageEnvRolloutWorker and VerifiersRolloutWorker both go through make_scored_group. The Monarch RolloutWorkerActor.run_group only delegates to them. No other subclass in the tree overrides it.

Not verified: I didn't run the CPU unit tests.

@felipemello1

Copy link
Copy Markdown
Contributor Author

Reply from claude: @claude please review. The stack is rebased onto main (the look-aside router PR merged), and the PRs below this one are updated.

@claude

claude Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @felipemello1's task in 1m 4s —— View job


Approve: the logic at 9e0e9e6 is unchanged after the rebase onto main, and main's new slake.py recipe already sets max_rollout_tokens. A maintainer still needs to review: review

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Approve -- after the rebase onto main (look-aside router merged), the diff at 9e0e9e6 has the same logic I approved last round, and the one new caller from main (slake.py) already sets max_rollout_tokens. This PR touches core RL code (rollout/rollouter.py, rollout/types.py, rollout/token_env.py, trainer/training_sample_builder.py), so a maintainer still needs to review it.

What this PR does. A rollout whose code raises ends as ERROR_INFRA, with the error in logs["error"]. That covers a raise inside _run_single_rollout, and a sibling that raised past it, which BaseRolloutWorker.make_scored_group catches. ERROR_ABORT and ERROR_INFRA are not is_trainable(), so score_group and the advantage estimator never see them. TrainingSampleBuilder skips any rollout whose reward is None. max_rollout_tokens is now required, and only the TokenEnv step deadline gives ERROR_TIMEOUT.

Example.

group of 3; rollout 0's generate call raises ConnectionError; the rubric gives rollouts 1 and 2 rewards 2 and 3
base:  rollout 0 is ERROR with no turns -> the "untrainable" filter drops all 3
HEAD:  rollout 0 is ERROR_INFRA, reward/advantage None, not trained
       rollouts 1, 2 get advantages -0.5, +0.5 and train
       rollout/status_rate/error_infra = 1/3, rollout/unscored_rate = 1/3

Questions

  • Still open from earlier rounds, not blocking: token_env.py re-renders the policy's own completion_message (bridge_to_next_turn, then render_ids). If either one can raise on content the model produced, the rule of thumb says that rollout should train. Today it ends as an untrained ERROR_INFRA.
Details
  • Diff at HEAD: the same 19 files and +540/-138 as last round. The logic hunks are unchanged: make_scored_group on BaseRolloutWorker, _NOT_TRAINABLE = {"error_abort", "error_infra"}, the abort check before parsing, asyncio.timeout + deadline.expired(), a required max_rollout_tokens / token_env, the builder's reward is not None filter, and the zero-std check on len(rollout_group.rollouts) > 1.
  • New from main: torchtitan_recipes/rl/slake.py:166 builds TokenEnv.Config(max_rollout_tokens=max_total_tokens, max_num_turns=1), so the required field doesn't break it. No TokenEnv.Config() without a cap, and no MessageEnvRolloutWorker.Config(...) without token_env, is left in the tree (alphabet_sort, dapo_math, geometry3k, search_r1, slake, the Rollouter docstring, the RL README).
  • run_group implementations: MessageEnvRolloutWorker and VerifiersRolloutWorker both return make_scored_group(...). The Monarch RolloutWorkerActor.run_group only delegates to them.
  • Code that reads a reward (the recorder ranking, compute_rollout_metrics, the builder) filters out None. AdvantageEstimator only gets rollouts_to_center. ERROR_ABORT is still produced in one place, token_env.py:235.

Not verified: I didn't run the CPU unit tests.

@felipemello1

felipemello1 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Reply from claude: Correction: it can raise. The first version of this comment had it wrong.

  • token_env.py:269 stores renderers' ParsedToolCall objects as the message's tool_calls, while Message.tool_calls is typed as OpenAI-style dicts.
  • The bridge (token_env.py:342) never re-renders model content, so most turns are fine.
  • When the bridge returns None, the full re-render (token_env.py:351) renders those objects. Qwen3 (qwen3.py:553) and GPT-OSS (gpt_oss.py:797) call tc.get("function") on them and raise AttributeError, in renderers 0.1.12 and 0.2.0 (CPU probe). Muse Glimmer converts them first (muse_glimmer/renderer.py:275-297), so it is safe.
  • When it happens: a tool call in the history (this turn's included), on a turn where the bridge returns None. Qwen3 re-renders only on rarer bridge misses (e.g. a turn that ends inside an unclosed <think>). GPT-OSS never gets here today, for a different reason: TokenEnv doesn't pass prompt_ids to parse_response, so the GPT-OSS parser returns no tool calls at all.
  • Main has the same code (token_env.py:256). There the rollout's earlier turns trained as ERROR. With this PR the rollout is an untrained ERROR_INFRA, though the policy's own call caused it. The turn with the call is dropped in both.

Follow-up: a separate bug-fix PR on main that converts the tool calls to the Message shape before the full re-render.

Comment thread torchtitan/rl/rollout/rollouter.py Outdated
async def make_scored_group(
self, results: list[Rollout | BaseException], sample: object, *, group_id: int
) -> RolloutGroup:
"""Turn a group's `gather(..., return_exceptions=True)` results into one scored group.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesnt make sense. the gather(..., return_exceptions=True) provides no context

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: Rewritten: "Score one group and fill its advantages. A sibling that raised becomes ERROR_INFRA." Then an example table. The return_exceptions reason moved next to the callers' gather: every sibling must end before the controller frees the group's KV cache.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

Comment thread torchtitan/rl/rollout/rollouter.py Outdated
Comment on lines +367 to +373
Example, group 7, rewards from `score_group`:

results [Rollout(0, COMPLETED), ConnectionError(...), Rollout(2, ERROR)]
rollouts [Rollout(0), Rollout(1, ERROR_INFRA, logs={"error": ...}), Rollout(2)]
rewards [1.0, None, 0.0] score_group sees rollouts 0 and 2 (`is_trainable()`)
advantages [0.5, None, -0.5] None: not trained
results [Rollout(0), CancelledError()] -> raises the CancelledError

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be done better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: The loop no longer rebinds its variable. Each branch appends one rollout, and the names say what each list holds: rollouts_or_errors, then rollouts, then rollouts_to_score.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

Comment thread torchtitan/rl/rollout/rollouter.py Outdated
advantages [0.5, None, -0.5] None: not trained
results [Rollout(0), CancelledError()] -> raises the CancelledError

A reward None from `score_group` (e.g. a judge that failed) also keeps a rollout out of

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i believe reading somewhere that when theres an error, verifiers returns score 0, instead of None. Is there a contradiction here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: No contradiction. Verifiers' Trace.reward sums the rewards that exist, so it reads 0.0 for a trace nobody graded. TitanRL decides by status: the Verifiers worker gives every failed rollout reward None (score_group), whatever its status. So no Verifiers rollout trains on a 0.0 it didn't earn.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

Comment thread torchtitan/rl/rollout/rollouter.py Outdated
rollout for rollout in rollouts if rollout.status.is_trainable()
]
if rollouts_to_score:
outputs = await self.score_group(rollouts_to_score, sample)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets try to be literal and informative in our variable names. E.g. "scored_outputs"? Maybe not that literally.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: Renamed to rubric_outputs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

One scored `RolloutGroup`.
"""

async def make_scored_group(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is make_scored_group the best name here? Maybe "score_rollouts"? But even that is not right, because we also compute advantages. I am ok with the name staying like that, i just wonder if theres something better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: I kept it. It takes a group's raw results and returns a RolloutGroup with rewards and advantages; score_group, the rubric step, is one part of it. I found nothing clearer.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

# subclassed, and metrics list `RolloutStatus` members. One way: keep these kinds fixed and add a
# free-form reason string on `Rollout` that metrics key on. To stop training more rollouts today,
# override `BaseRolloutWorker.score_group` to return reward None.
class RolloutStatus(StrEnum):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docstring here is very bad. We should only give a general guidance of what each means. It can be written as 1-2 lines underneath each option. It shouldnt say what rewards do, because thats up to the rubric function to define. As a rule of thumb, a function shouldnt say what another function is doing, because this can become stale.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: Rewritten. The class docstring is the rule of thumb in 2 lines. Each status has a 1-line docstring that says when it happens, not what other code does with it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

Comment thread torchtitan/rl/rollout/types.py Outdated
Comment on lines +428 to +431
reward: float | None = None
"""Final weighted reward, filled by the rubric."""
"""Final weighted reward, filled by the rubric. None if the rollout wasn't scored (its status
isn't `is_trainable()`) or the rubric gave no reward: it then gets no advantage and isn't
trained."""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add a TODO that this should become per token.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: Added: # TODO: make it per token.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

Comment thread torchtitan/rl/rollout/types.py Outdated
Comment on lines +429 to +431
"""Final weighted reward, filled by the rubric. None if the rollout wasn't scored (its status
isn't `is_trainable()`) or the rubric gave no reward: it then gets no advantage and isn't
trained."""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""Final weighted reward, filled by the rubric. None if the rollout wasn't scored (its status
isn't `is_trainable()`) or the rubric gave no reward: it then gets no advantage and isn't
trained."""
"""Final weighted reward, filled by the rubric. None if the rollout wasn't scored."""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: Applied.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

"""
metrics: list[m.Metric] = list(rollout_group.metrics)
# A rollout with reward None wasn't scored (see `BaseRolloutWorker.make_scored_group`): skip
# it, not its group. A group left with 10 of 16 trains those 10, centered on their 10 rewards.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# it, not its group. A group left with 10 of 16 trains those 10, centered on their 10 rewards.
# it, not its group. A group left with 10/16 trains those 10, centered on their 10 rewards.

Lets put a TODO somewhere that we should investigate if we want to reweight these 10 or change the trainer to count the number of rollouts -- not the number of groups.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: Applied, reworded to drop the "X, not Y" (code-style): "A rollout with reward None wasn't scored: drop only that rollout. E.g. a group left with 10 of 16 rollouts trains those 10, centered on their 10 rewards." The TODO is yours: "investigate reweighting those 10, or making the trainer count the rollouts it trains."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

metrics: list[m.Metric] = list(rollout_group.metrics)
# A rollout with reward None wasn't scored (see `BaseRolloutWorker.make_scored_group`): skip
# it, not its group. A group left with 10 of 16 trains those 10, centered on their 10 rewards.
rollouts = [

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we qualify, e.g. non_zero_rollouts, rollouts_with_reward? you can think of a better name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: Renamed to rollouts_with_reward.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

@felipemello1

Copy link
Copy Markdown
Contributor Author

Reply from claude: answers to the comments on this PR that have no inline thread.

the review bot (comment): If either one can raise on content the model produced, the rule of thumb says that rollout should train. Today it ends as an untrained ERROR_INFRA.

Still true, and outside this stack: it's a renderer bug on main. The proposed fix stays a separate PR.

@felipemello1

Copy link
Copy Markdown
Contributor Author

Reply from claude: @claude please review

@claude

claude Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @felipemello1's task in 1m 59s —— View job


Approve: every comment from the 2026-11-13 maintainer round is fixed at d1200ff, and removing ERROR_ABORT is consistent across the tree. A maintainer still needs to review: review

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Approve. Every comment from the 2026-11-13 maintainer round is fixed at d1200ff, and removing ERROR_ABORT is consistent everywhere in the tree. This PR changes core RL code (rollout/rollouter.py, rollout/types.py, rollout/token_env.py, trainer/training_sample_builder.py), so a maintainer still needs to review it.

What changed since the last review.

  • ERROR_ABORT is gone. TokenEnv.step (token_env.py:236-242) now checks the finish reason before it parses. A finish reason of "abort" or vLLM's "error" returns ERROR_INFRA with no completion_message, so the rollout is never scored or trained. _NOT_TRAINABLE is just {"error_infra"}.
  • There is a new {prefix}_reward_all metric. It is the mean over all rollouts, with an unscored rollout counted as 0, so a rising failure rate can't inflate {prefix}_reward.
  • The maintainer's suggestions are applied:
    • the RolloutStatus docstrings are one line per status, plus the rule of thumb;
    • the make_scored_group docstring and its example table are rewritten;
    • renames: rollouts_or_errors, rubric_outputs, rollouts_with_reward;
    • new TODOs: the per-token reward, reweighting a partial group, and the shorter TODO on RolloutStatus.
  • The reason for return_exceptions now sits next to the gather in run_group (rollouter.py:504-505).

Example. A group of 3. On turn 2, rollout 0's completion comes back with finish_reason="abort" and tokens that don't parse. The rubric gives rollouts 1 and 2 rewards 2 and 3:

main:  parse first -> ERROR_PARSE, scored (error_reward or reward fns), enters the mean, trains
HEAD:  cut-short check first -> ERROR_INFRA, reward/advantage None, not trained
       rollouts 1, 2 -> advantages -0.5, +0.5
       rollout_reward mean 2.5, rollout_reward_all mean 5/3, status_rate/error_infra 1/3
Details
  • 2026-11-13 maintainer comments, checked at HEAD: all are fixed in code or answered, and none got further pushback. The replies on the Verifiers threads point at later PRs in the stack. On this base, VerifiersRollouter.run_group_rollouts (examples/verifiers/rollouter.py:250) still runs its own gather/score path. This PR doesn't touch it, and that path never produces a None reward.
  • ERROR_ABORT removal:
    • No reference to ERROR_ABORT or error_abort is left in the tree.
    • The SGLang engine still reports finish_reason="abort" for a request it has already admitted (generator/sglang/engine.py:746-760, :809). That now ends as ERROR_INFRA, which matches the rule of thumb.
    • An abort during admission still raises ValueError (engine.py:572) and also ends as ERROR_INFRA.
  • Callers: every TokenEnv.Config(...) in recipes and tests passes max_rollout_tokens:
    • dapo_math, search_r1 and slake set it on the next line;
    • alphabet_sort and geometry3k pass seq_len;
    • _configure_ci no longer overrides it.
  • Deadline: deadline = asyncio.timeout(timeout) is created before the try, so deadline.expired() can always be read in the except. asyncio.timeout(None) never expires.
  • Open question from earlier rounds: a tool call in the history can make the full re-render raise. The author confirmed this, and it is on main too. It is deferred to a separate renderer bug-fix PR, so it doesn't block this one.

Not verified: I didn't run the CPU unit tests, and I didn't check what makes SGLang abort a request it already admitted (the description says only invalid requests do).

Comment on lines +286 to +289
# Over every rollout, an unscored one counted as 0: `_reward` leaves the unscored ones
# out, so it reads higher as more rollouts fail. Example: 8 rollouts at 1.0 and 2
# unscored: `_reward` 1.0, `_reward_all` 0.8.
m.Metric(f"{prefix}_reward_all", m.Mean.from_list(all_rewards)),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Over every rollout, an unscored one counted as 0: `_reward` leaves the unscored ones
# out, so it reads higher as more rollouts fail. Example: 8 rollouts at 1.0 and 2
# unscored: `_reward` 1.0, `_reward_all` 0.8.
m.Metric(f"{prefix}_reward_all", m.Mean.from_list(all_rewards)),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

Comment on lines +293 to +300
out.extend(
m.Metric(
f"{prefix}/status_rate/{status.value}",
m.Mean.from_list([float(rollout.status is status) for rollout in rollouts]),
)
for status in RolloutStatus
if status.is_terminal()
)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there must be a more efficient way of doing this. Maybe "Counter" or something like that and divide by the sum and log that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

self._num_turns += 1

# Parse first, so a truncated / aborted response still carries its message
if completion.finish_reason in _CUT_SHORT_FINISH_REASONS:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add a TODO here to also add some log with it, so we are not bling on the reason. Do we already support carrying on logs? if so, maybe its easy to just fix it, no todo?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

@felipemello1

Copy link
Copy Markdown
Contributor Author

Reply from claude: This PR is replaced by a fresh draft on a new branch, with the same title: "[rl] Rollouts that fail outside the policy are recorded, not trained". The comments here were read when planning it. Closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rl CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant