Skip to content

Commit

Permalink
added line by line logging for offlien
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanniasingheTT committed Nov 12, 2024
1 parent e3efb5b commit 092fbbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/mock_vllm_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,10 @@ def _write_to_json(self, stats):
if "time to first token" in last_data:
data = last_data
# find the index of the last user for whicht the first token was computed
last_user_processed = (
len(data[f"Inference num:{self.num_inference}"]) - 1
last_user_processed = len(
data["time to first token"][
f"Inference num:{self.num_inference}"
]
)
else:
last_user_processed = 0
Expand Down

0 comments on commit 092fbbf

Please sign in to comment.