Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] Last token measurement fix #11376

Merged
merged 13 commits into from
Dec 28, 2024
Prev Previous commit
Next Next commit
Typo fix
Co-authored-by: Roger Wang <[email protected]>
Signed-off-by: rajveerb <[email protected]>
rajveerb and ywang96 committed Dec 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit d7e39e8e7b1efad88344484af68fc0cdf78a63c5
2 changes: 1 addition & 1 deletion vllm/sequence.py
Original file line number Diff line number Diff line change
@@ -774,7 +774,7 @@ def set_last_token_time(self, now: float) -> None:
# If still in prefill phase, raise Error.
if self.is_prefill():
raise ValueError(
"seq_group.get_last_latency() should not be called "
"seq_group.set_last_token_time() should not be called "
"if the seq_group is in prefill phase.")
>>>>>>> set function for setting last token latency and time
self.last_token_latency = now - self.metrics.last_token_time