Ability to acquire loss for next token generation #367
Replies: 4 comments
-
Will add an api to support this. |
Beta Was this translation helpful? Give feedback.
-
That would be great! Thanks :) |
Beta Was this translation helpful? Give feedback.
-
Thanks for making this a discussion. |
Beta Was this translation helpful? Give feedback.
-
It's been implemented, although I'm not sure of how exactly this should be used: |
Beta Was this translation helpful? Give feedback.
-
The generate function from huggingface returns language modelling loss for next token generation. This loss helps calculating perplexity of the model.
Is there a known way to acquire loss from the generate function in onnxruntime_genai?
Beta Was this translation helpful? Give feedback.
All reactions