Skip to content

Commit

Permalink
fix: schdualing eval
Browse files Browse the repository at this point in the history
  • Loading branch information
XOR-op committed Apr 30, 2024
1 parent 523aea1 commit e88d183
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def eval_scheduling():
else:
time_end = time.perf_counter()
logging.info("Ongoing: " + engine.context.requests[0].decode())
final_tokens_len = len(engine.context.req_runtime_stats[req_id].tokens)
final_tokens_len = len(engine.context.requests[0].tokens)

logging.info(
f"Speed: {(final_tokens_len-init_tokens_len)/(time_end - time_start)} tokens/s"
Expand All @@ -221,5 +221,4 @@ def good_python_example():

if __name__ == "__main__":
set_hf_token()
eval_search()
# eval_scheduling()
eval_scheduling()

0 comments on commit e88d183

Please sign in to comment.