Inquiry About Token Probability Feature #138

Open
opened 2026-02-15 16:28:14 -05:00 by yindo · 0 comments
Owner

Originally created by @SumZbrod on GitHub (Sep 1, 2024).

I have explored the ollama.generate() method but found that it does not seem to support returning token probabilities directly. Could you please let me know if there is an existing feature or workaround within the Ollama library that allows for extracting the probabilities of the next tokens when generating text?

Originally created by @SumZbrod on GitHub (Sep 1, 2024). I have explored the ollama.generate() method but found that it does not seem to support returning token probabilities directly. Could you please let me know if there is an existing feature or workaround within the Ollama library that allows for extracting the probabilities of the next tokens when generating text?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#138