[Generative Score API] Scoring(Prefill-only) optimizations. (#9748)
This commit is contained in:
committed by
GitHub
parent
94d0f656fb
commit
a360511d7b
@@ -72,7 +72,10 @@ class LogitsProcessorOutput:
|
||||
next_token_top_logprobs_val: Optional[List] = None
|
||||
next_token_top_logprobs_idx: Optional[List] = None
|
||||
# The logprobs and ids of the requested token ids in output positions. shape: [#seq, n] (n is the number of requested token ids)
|
||||
next_token_token_ids_logprobs_val: Optional[List] = None
|
||||
# Can contain either lists or GPU tensors (for delayed copy optimization in prefill-only requests)
|
||||
next_token_token_ids_logprobs_val: Optional[
|
||||
List[Union[List[float], torch.Tensor]]
|
||||
] = None
|
||||
next_token_token_ids_logprobs_idx: Optional[List] = None
|
||||
|
||||
## Part 3: Prefill-only. This part will be assigned in python/sglang/srt/layers/logits_processor.py::LogitsProcessor
|
||||
|
||||
Reference in New Issue
Block a user