[CI][Bugfix] Fix scheduleroutput has no attr get error in prompt logprobs (#4998)
### What this PR does / why we need it? Fix scheduleroutput has no attr get error in prompt logprobs Fix https://github.com/vllm-project/vllm-ascend/actions/runs/20194753373/job/57977131870 ### How was this patch tested? CI passed with existing test. - vLLM version: v0.12.0 - vLLM main: https://github.com/vllm-project/vllm/commit/ad32e3e19ccf0526cb6744a5fed09a138a5fb2f9 Signed-off-by: MengqingCao <cmq0113@163.com>
This commit is contained in:
1 parent
2497bbbaf6
commit
6beb4434e1
1 file changed
+1
-1
@@ -1762,7 +1762,7 @@ class NPUModelRunner(GPUModelRunner):
|
||||
# Compute prompt logprobs if needed.
|
||||
prompt_logprobs_dict = self._get_prompt_logprobs_dict(
|
||||
hidden_states[:scheduler_output.total_num_scheduled_tokens],
|
||||
scheduler_output,
|
||||
scheduler_output.num_scheduled_tokens,
|
||||
)
|
||||
|
||||
num_sampled_tokens = sampler_output.sampled_token_ids.shape[0]
|
||||
|
||||
Reference in new issue
Block a user