-
Notifications
You must be signed in to change notification settings - Fork 31
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
TensorRT - avg_logprob #22
Comments
I'm inquiring about this because having access to this information (the scores) would enable us to implement a language detection method. |
You may check this https://github.com/NVIDIA/TensorRT-LLM/blob/main/tensorrt_llm/runtime/generation.py#L2267. You may also need to register logit as one of the output tensors. |
Thanks for your tips. I don't really see how to do it without modifying TensorRT-llm library. Do you know how to do it ? |
Thanks for your really impressive work.
I was wondering how to extract the token probability with TensorRT (a little bit lit what you did in this example with ctranslate2)
The text was updated successfully, but these errors were encountered: