You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tensorrt_llm/executor/result.py
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ class CompletionOutput:
91
91
text (str): The generated output text. Defaults to "".
92
92
token_ids (List[int], optional): The token ids of the generated output text. Defaults to [].
93
93
cumulative_logprob (float, optional): The cumulative log probability of the generated output text. Defaults to None.
94
-
logprobs (TokenLogprobs, optional): The log probabilities of the top probability words at each position if the logprobs are requested. Defaults to None.
94
+
logprobs (TokenLogprobs | List[float], optional): The log probabilities of the top probability words at each position if the logprobs are requested. Defaults to None.
95
95
prompt_logprobs (TokenLogprobs, optional): The log probabilities per prompt token. Defaults to None.
96
96
finish_reason (Literal['stop', 'length', 'timeout', 'cancelled'], optional): The reason why the sequence is finished. Defaults to None.
97
97
stop_reason (int, str, optional): The stop string or token id that caused the completion to stop, None if the completion finished for some other reason. Defaults to None.
0 commit comments