Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
3 changes: 2 additions & 1 deletion areal/core/remote_inf_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,9 +739,10 @@ async def agenerate(self, req: ModelRequest) -> ModelResponse:

# Deal with rollout interruption
stop_reason = None
ori_max_new_tokens = gconfig.max_new_tokens
Comment thread
garrett4wade marked this conversation as resolved.
while (
stop_reason not in ["stop", "tool_calls", "length"]
and len(accumulated_output_tokens) < gconfig.max_new_tokens
and len(accumulated_output_tokens) < ori_max_new_tokens
Comment thread
garrett4wade marked this conversation as resolved.
):
# Request is interrupted, wait for some time to avoid interfering
# with update weights requests
Expand Down
Loading