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

Clear beam search info when generate() is finished. #615

Merged
merged 5 commits into from
Jul 15, 2024

Conversation

popovaan
Copy link
Contributor

@popovaan popovaan commented Jul 12, 2024

When generate() is launched multiple times beam_search_info is not cleared and cause failing of sampling.
To fix it added clearing of beam_search_info when generate() is finished.

@Wovchena Wovchena added this pull request to the merge queue Jul 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 15, 2024
@Wovchena Wovchena added this pull request to the merge queue Jul 15, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 15, 2024
Merged via the queue into openvinotoolkit:master with commit de71ce9 Jul 15, 2024
27 checks passed
@ilya-lavrenov ilya-lavrenov self-assigned this Jul 31, 2024
@@ -61,6 +61,7 @@ class ContinuousBatchingPipeline::Impl {
for (const auto& sequence: request->get_sequences()) {
m_scheduler->free_sequence(sequence->get_id());
}
m_sampler->clear_beam_search_info(request->get_request_id());
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose the same should be done for multinomial info? CC @iefode

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.

4 participants