Skip to content

Commit

Permalink
[Fix] Set the missed prefill finish time (#2613)
Browse files Browse the repository at this point in the history
This PR fixes a bug which fails to set the prefill finish time
and results in metric error.
  • Loading branch information
MasterJH5574 committed Jul 1, 2024
1 parent cbf0b02 commit d911c60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/serve/engine_actions/batch_prefill_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ void BatchPrefillBaseActionObj::UpdateRequestStateEntriesWithSampleResults(
mstate->CommitToken(sample_results[i]);
// live update the output metrics
rsentries_for_sample[i]->rstate->metrics.completion_tokens += 1;
rsentries_for_sample[i]->rstate->metrics.prefill_end_time_point = tnow;
}
continue;
}
Expand Down

0 comments on commit d911c60

Please sign in to comment.