Repository navigation
Is there a way to return logits or logprobs from the API? #7278
Unanswered
summerstay
asked this question in
Q&A
Replies: 1 comment 1 reply
|
Logits/logprobs access is essential for many advanced use cases! At RevolutionAI (https://revolutionai.io), we use them for: Use cases requiring logprobs:
If the API does not expose them directly:
output = llm.generate(
prompts,
SamplingParams(logprobs=5) # Top 5 logprobs per token
)
Feature request note: This is a commonly requested feature. If you want to push for it, cite production use cases — that usually moves the needle with maintainers. What is your specific use case for logprobs? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I would like to work with the logits or the logprobs before sampling. Is there a way to get the API to return these?
All reactions