-
Notifications
You must be signed in to change notification settings - Fork 193
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
Port from 24.6 release to master #1356
Port from 24.6 release to master #1356
Conversation
Ticket: CVS-158144, CVS-158142
…toolkit#1302) - In some cases adding the next token can shorten the text, e.g. when apostrophe removing regex had worked after adding new tokens. Need to hold on before flushing if apostrophe is the last symbol. - ticket CVS-157216
…notoolkit#1336) - We use decode to infer tokens string representation from integer ids. But when some tokens ids are not found in IR they are left unset (-1) and evaluate for decode operation fails with ![image](https://github.com/user-attachments/assets/9d47dfaa-5236-47f9-999d-ad631f526544) - Call decode only if token_id is not -1. - Some models don't have token ids neither in IR nor in configs. E.g. `black-forest-labs/FLUX.1-dev` don't have `pad_token_id` and that's totally fine, we don't need to extract string representations for it. --------- Co-authored-by: Ilya Lavrenov <[email protected]>
Please, port fix for speculative decoding in python part https://github.com/openvinotoolkit/openvino.genai/pull/1331/files#diff-40348136edde3e69e1fb50a50b735e9d669bc1fea308bded9038b780ce1ea644 |
You need to replace runner for |
yes, sure. Just did it |
…eded for compilation
The remaining problem is caused by this #1302 In python streamer we get
instead of c++ streamer out
Indeed the same issue now is in 2024.6, we just didn't see it because diff for mincpm is enabled only on the master #1134 |
Reverted that cherry pick and created a ticket to fix that separately CVS-159227 |
- ~openvinotoolkit#1302 (didn't port this PR because of the issue CVS-159227) - openvinotoolkit#1262 - openvinotoolkit#1336 - openvinotoolkit#1331 --------- Co-authored-by: Andrei Kochin <[email protected]> Co-authored-by: Vladimir Zlobin <[email protected]> Co-authored-by: Ilya Lavrenov <[email protected]>
fix TextCallbackStreamer when characters are eaten by regex #1302(didn't port this PR because of the issue CVS-159227)