-
Notifications
You must be signed in to change notification settings - Fork 203
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
Add a choice of how to end streaming from callback: STOP or CANCEL #1476
base: master
Are you sure you want to change the base?
Conversation
TODO: add CANCEL for ContinuousBatching |
454cdd9
to
1592ed0
Compare
10a755b
to
d18fe16
Compare
done |
2758f6b
to
03ca3ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, add tests for new functionality.
samples/python/prompt_lookup_decoding_lm/prompt_lookup_decoding_lm.py
Outdated
Show resolved
Hide resolved
|
||
namespace ov { | ||
namespace genai { | ||
|
||
enum class StreamerRunningStatus { | ||
UNDEF = 0, // Streaming is not run | ||
RUNNING = 1, // Continue to run of inference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUNNING and UNDEF seem to be equivalent. In that case you should keep only one of them. Moreover callback should never return UNDEF, so merging them fixes the API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed it , moved to GenerationStatus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging with GenerationStatus
allows a callback to return FINISHED and IGNORED which aren't related to this. I'd guess #1476 (comment) was about aligning API but not merging. @ilya-lavrenov, is that so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
17a9501
to
8975221
Compare
591c81a
to
8c6ff44
Compare
cac1834
to
408e4a3
Compare
No description provided.