-
Notifications
You must be signed in to change notification settings - Fork 169
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
Fixed logprobs for greedy. #886
Fixed logprobs for greedy. #886
Conversation
I checked multinomial and it returns logprobs in range in [0,1], expected (-inf, 0]. |
Indeed it would be the best to include log10 operation to the current prob values so the returned results would match the logprobs property name. |
Done, please check. |
LogFilter() {} | ||
|
||
void apply(Logits& logits) override { | ||
OPENVINO_ASSERT(logits.is_vector_initialized()); |
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.
This is true only if we have top_p or top_k set. Without them we don't need to sort results hence new vector is not initialized. So it will not work if only temperature is provided.
To make it work in both scenarios we need to change logits.m_vector[i].m_log_prob
values if vector is initialized and
logits.m_data[i]
if vector is not initialized.
Fixed regression after #886. Turned on multinomial tests without ref comparison.
Applied LogSoftmax to logits returned by _greedy_sample().
Ticket: CVS-152274