mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Inquiry About Token Probability Feature #138
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?