tinker_cookbook.rl.FailFast
class tinker_cookbook.rl.FailFast(RolloutStrategy)
Default strategy: any trajectory error crashes the group.
execute(env_group_builder, policy)
Run all rollouts concurrently, raising immediately on any failure.
Parameters:
- env_group_builder (EnvGroupBuilder) – Builder used to create the environments for this rollout group.
- policy (TokenCompleter) – The policy used to generate actions.
Returns: RolloutResult: Result with all trajectories and an empty error list.
Raises:
- Exception: Any exception raised by a single rollout propagates
- immediately, cancelling the remaining rollouts.