Skip to content

Commit

Permalink
[Bugfix] Fix ITL recording in serving benchmark (vllm-project#7372)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywang96 authored Aug 9, 2024
1 parent 249b882 commit 70d268a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benchmarks/backend_request_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ async def async_request_openai_completions(
output.ttft = ttft

# Decoding phase
output.itl.append(timestamp -
most_recent_timestamp)
else:
output.itl.append(timestamp -
most_recent_timestamp)

most_recent_timestamp = timestamp
generated_text += data["choices"][0]["text"]
Expand Down

0 comments on commit 70d268a

Please sign in to comment.