Skip to content

tinker_cookbook.rl.FailFast

class tinker_cookbook.rl.FailFast(RolloutStrategy)

Default strategy: any trajectory error crashes the group.

Produces identical behaviour to the original asyncio.gather(...) path — no error tolerance, no overhead.

execute(env_group_builder, policy)

Run all rollouts concurrently, raising immediately on any failure.

Parameters:

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.