Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw exception when request period larger than max tokens rather than infinite loop #403

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

matthewkotila
Copy link
Contributor

Catches when request receives final response without having first reached the end of the request period. Throws error with suggested solution to avoid infinite loop. User error. User must provide request period less than or equal to the max tokens the model will return per request.

Copy link
Contributor

@nv-hwoo nv-hwoo left a comment

Choose a reason for hiding this comment

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

👍

@matthewkotila matthewkotila merged commit ef09eba into periodic-concurrency-mode Sep 29, 2023
3 checks passed
@matthewkotila matthewkotila deleted the matthewkotila-periodic-fix branch September 29, 2023 21:29
matthewkotila added a commit that referenced this pull request Oct 7, 2023
…n infinite loop (#403)

* Throw exception when request period larger than max tokens rather than infinite loop

* Update periodic_concurrency_worker.cc
matthewkotila added a commit that referenced this pull request Oct 7, 2023
…n infinite loop (#403)

* Throw exception when request period larger than max tokens rather than infinite loop

* Update periodic_concurrency_worker.cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants