Add metrics for speculative decoding (acceptance rate, average acceptance length) (#11441)
This commit is contained in:
@@ -823,6 +823,7 @@ class BatchTokenIDOutput(BaseBatchReq):
|
||||
completion_tokens: List[int]
|
||||
cached_tokens: List[int]
|
||||
spec_verify_ct: List[int]
|
||||
spec_accepted_tokens: List[int]
|
||||
|
||||
# Logprobs
|
||||
input_token_logprobs_val: List[float]
|
||||
@@ -896,6 +897,7 @@ class BatchStrOutput(BaseBatchReq):
|
||||
completion_tokens: List[int]
|
||||
cached_tokens: List[int]
|
||||
spec_verify_ct: List[int]
|
||||
spec_accepted_tokens: List[int]
|
||||
|
||||
# Logprobs
|
||||
input_token_logprobs_val: List[float]
|
||||
|
||||
Reference in New Issue
Block a user