moondream icon indicating copy to clipboard operation
moondream copied to clipboard

Provide logprobs in the API.

Open BenjaminMarechalEVITECH opened this issue 8 months ago • 3 comments

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

BenjaminMarechalEVITECH avatar Apr 10 '25 08:04 BenjaminMarechalEVITECH

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

vikhyat avatar Apr 11 '25 06:04 vikhyat

+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?

anerli avatar Apr 22 '25 20:04 anerli

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.

vikhyat avatar Apr 23 '25 17:04 vikhyat