Skip to content

Conversation

McPatate
Copy link
Member

@McPatate McPatate commented Sep 1, 2025

Support client-side request cancellation, so server avoids continuing to generate tokens needlessly, saving resources (also helps server exit).

Will rebase when #40479 is merged to get clearer diff.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@LysandreJik LysandreJik changed the base branch from main to fix/continuous_batching_serve September 2, 2025 08:28
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool! Add tests? :)

Base automatically changed from fix/continuous_batching_serve to main September 2, 2025 08:45
@McPatate McPatate force-pushed the feat/support_request_cancellation branch 3 times, most recently from b9836e1 to f34d4c2 Compare September 3, 2025 11:45
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@McPatate McPatate force-pushed the feat/support_request_cancellation branch 2 times, most recently from 7ba48fe to 9345f06 Compare September 3, 2025 17:34
@McPatate McPatate force-pushed the feat/support_request_cancellation branch from 83670d7 to a0d9b88 Compare September 4, 2025 13:54
@McPatate McPatate merged commit 9a6c656 into main Sep 4, 2025
24 checks passed
@McPatate McPatate deleted the feat/support_request_cancellation branch September 4, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants