Skip to content

Provide logprobs in the API. #269

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

Open
BenjaminMarechalEVITECH opened this issue Apr 10, 2025 · 3 comments
Open

Provide logprobs in the API. #269

BenjaminMarechalEVITECH opened this issue Apr 10, 2025 · 3 comments

Comments

@BenjaminMarechalEVITECH

Hi,

Is there any way to get probabilities of tokens from moondream models ? In OpenAI API, this is called "logprobs" (https://platform.openai.com/docs/api-reference/chat/create)
If not, that would be a be a great add-on.
For example, it is useful for image classification (query with "yes/no" answer).

Benjamin

@vikhyat
Copy link
Owner

vikhyat commented Apr 11, 2025

Not possible right now, but we'll look into adding this! Will leave this open in the mean time.

@anerli
Copy link

anerli commented Apr 22, 2025

+1, especially for the point API in particular. For query as well would be great. Would be extremely useful to us. Curious what makes it technically difficult?

@vikhyat
Copy link
Owner

vikhyat commented Apr 23, 2025

We're building a new version of our cloud inference stack, it will be in the next version! Not super technically hard, but I didn't want to spend the time reimplementing it in the old stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants