Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def __init__(self, log, path, config: Config,
def map_endpoints_scenario(self, scenario, scenario_fixed):
if scenario_fixed.lower() == "singlestream":
return "SingleStream"
if scenario_fixed.lower() == "interactive" or str(scenario).lower() == "interactive":
if (
scenario_fixed.lower() == "interactive" or
str(scenario).lower() == "interactive"
):
return "Interactive"
if scenario.lower() == "online":
return "Server"
Expand Down Expand Up @@ -528,7 +531,7 @@ def inferred_check(self):
("singlestream", "offline")
]
if (self.scenario.lower(), self.scenario_fixed.lower()
) not in list_inferred:
) not in list_inferred:
self.log.error(
"Result for scenario %s can not be inferred from %s for: %s",
self.scenario_fixed,
Expand All @@ -555,7 +558,7 @@ def get_performance_metric_check(self):
and self.mlperf_log["result_validity"] == "VALID"
):
is_valid = True
scenario = self.scenario
scenario = SCENARIO_MAPPING.get(self.scenario, self.scenario)
res = None
if self.is_endpoints:
res = float(
Expand Down Expand Up @@ -641,12 +644,12 @@ def get_inferred_result(self, res):
res = qps_wo_loadgen_overhead

if (scenario_fixed in ["Offline"]
) and scenario in ["MultiStream"]:
) and scenario in ["MultiStream"]:
inferred = True
res = samples_per_query * S_TO_MS / (latency_mean / MS_TO_NS)

if (scenario_fixed in ["MultiStream"]
) and scenario in ["SingleStream"]:
) and scenario in ["SingleStream"]:
inferred = True
# samples_per_query does not match with the one reported in the logs
# when inferring MultiStream from SingleStream
Expand All @@ -663,6 +666,6 @@ def get_inferred_result(self, res):
else:
res = (latency_99_percentile * samples_per_query) / MS_TO_NS
if (scenario_fixed in ["Interactive"]
) and scenario not in ["Server"]:
) and scenario not in ["Server"]:
is_valid = False
return res, is_valid
1 change: 1 addition & 0 deletions tools/submission/submission_checker/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2283,6 +2283,7 @@

ENDPOINTS_INFERRED_FIELDS = {
"generated_query_count": "qsl_reported_total_count",
"result_tokens_per_second": "result_completed_tokens_per_second",
}

ENDPOINTS_COMPLIANCE_MAPPING = {
Expand Down
Loading