Skip to content

Commit

Permalink
Update endpoint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
YJessicaGao authored Jul 29, 2024
1 parent f4d36cf commit 2b6622d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions byte_infer_perf/llm_perf/server/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ async def _multiple_warmup():
message = single_result["choice"]["message"]
logger.info(f"single warmup response: {message}\n")

# multiple_result = asyncio.run(_multiple_warmup())
# for i, result in enumerate(multiple_result):
# message = result["choice"]["message"]
# logger.info(f"multiple warmup reponse {i}: {message}\n")
multiple_result = asyncio.run(_multiple_warmup())
for i, result in enumerate(multiple_result):
message = result["choice"]["message"]
logger.info(f"multiple warmup reponse {i}: {message}\n")

async def prepare_request(
self, prompt: str, generate_config: Dict[str, Any]
Expand Down

0 comments on commit 2b6622d

Please sign in to comment.