mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[Optimization] Support logprob async copy (#6362)
* support logprob async copy * fix prompt logprob * fix xpu
This commit is contained in:
@@ -455,7 +455,7 @@ def save_output_normal(
|
||||
sampler_output, model_output.index_to_batch_id, model_output.enable_pd_reorder
|
||||
)
|
||||
save_output_topk(
|
||||
sampler_output.sampled_token_ids,
|
||||
share_inputs["sampled_token_ids"],
|
||||
sampler_output.logprobs_tensors.logprob_token_ids,
|
||||
sampler_output.logprobs_tensors.logprobs,
|
||||
sampler_output.logprobs_tensors.selected_token_ranks,
|
||||
|
||||
Reference in New Issue
Block a user