[Bugfix] Sets is_first_step_output for TPUModelRunner (#9202)

This commit is contained in:
Allen Wang 2024-10-11 15:28:10 -05:00 committed by GitHub
parent de9fb4bef8
commit c6cf9295e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -541,7 +541,8 @@ class TPUModelRunner(ModelRunnerBase[ModelInputForTPU]):
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]]