Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def generate_and_rm_group(
sampling_params: dict[str, Any],
evaluation: bool = False,
sample_done_callback: Callable[[], None] | None = None,
) -> list[Sample]:
) -> list[Sample | list[Sample]]:
args = state.args

if state.aborted:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def generate_rollout_async(
logger.debug(f"[rollout] asyncio.wait returned: {len(done)} done, {len(pendings)} pending")
for task in done:
try:
group: list[Sample] = task.result()
group: list[Sample | list[Sample]] = task.result()
except Exception as e:
logger.error(f"[rollout] Task raised exception: {e!r}", exc_info=True)
continue
Expand Down
Loading