Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions verifiers/rubrics/rubric.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def func(completion, answer, **kwargs):
``
"""

# skip rollout scoring if the rollout has an error
if state.get("error") is not None:
return 0.0

async def _call():
sig = inspect.signature(func)

Expand Down Expand Up @@ -179,6 +183,10 @@ async def _call_group_reward_func(
Invoke `func` with only the required arguments.
"""

# skip group scoring if all states have an error
if all(state.get("error") is not None for state in states):
return [0.0] * len(states)

async def _call():
sig = inspect.signature(func)
merged = dict(
Expand Down
Loading