Skip to content

Commit

Permalink
[Bugfix] Sets is_first_step_output for TPUModelRunner (vllm-project…
Browse files Browse the repository at this point in the history
…#9202)

Signed-off-by: Sumit Dubey <[email protected]>
  • Loading branch information
allenwang28 authored and sumitd2 committed Nov 14, 2024
1 parent c76b33f commit 483a60c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/worker/tpu_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,8 @@ def execute_model(
seq_group_metadata_list=ctx.seq_group_metadata_list,
scheduler_outputs=ctx.scheduler_outputs,
is_async=False,
is_last_step=False)
is_last_step=False,
is_first_step_output=i == 0)
model_input.async_callback()
if use_async_out_proc:
return [sampler_outputs[-1]]
Expand Down

0 comments on commit 483a60c

Please sign in to comment.