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: Maxime Fournioux <[email protected]>
  • Loading branch information
allenwang28 authored and mfournioux committed Nov 20, 2024
1 parent 53a45e1 commit 7b8e2b1
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 7b8e2b1

Please sign in to comment.