Python class
LogProbabilities
LogProbabilitiesโ
class max.interfaces.LogProbabilities(token_log_probabilities, top_log_probabilities)
Bases: Struct
Log probabilities for an individual output token.
This is a data-only class that serves as a serializable data structure for transferring log probability information. It does not provide any functionality for calculating or manipulating log probabilities - it is purely for data storage and serialization purposes.
token_log_probabilitiesโ
Probabilities of each token.
top_log_probabilitiesโ
Top tokens and their corresponding probabilities.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!