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: Alvant <alvasian@yandex.ru>
  • Loading branch information
Allen Wang authored and Alvant committed Oct 26, 2024
1 parent 8a6a9f5 commit 5946c10
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 5946c10

Please sign in to comment.