fix bench_serving mishandling of internal states (#11376)
Signed-off-by: Shahar Mor <smor@nvidia.com>
This commit is contained in:
@@ -1837,9 +1837,15 @@ async def benchmark(
|
|||||||
server_info_json = server_info.json()
|
server_info_json = server_info.json()
|
||||||
if "decode" in server_info_json:
|
if "decode" in server_info_json:
|
||||||
server_info_json = server_info_json["decode"][0]
|
server_info_json = server_info_json["decode"][0]
|
||||||
accept_length = server_info_json["internal_states"][0].get(
|
if (
|
||||||
"avg_spec_accept_length", None
|
"internal_states" in server_info_json
|
||||||
)
|
and server_info_json["internal_states"]
|
||||||
|
):
|
||||||
|
accept_length = server_info_json["internal_states"][0].get(
|
||||||
|
"avg_spec_accept_length", None
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
accept_length = None
|
||||||
else:
|
else:
|
||||||
accept_length = None
|
accept_length = None
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user