Loadgen++/endpoints integration with submission checker#2601
Open
pgmpablo157321 wants to merge 7 commits into
Open
Loadgen++/endpoints integration with submission checker#2601pgmpablo157321 wants to merge 7 commits into
pgmpablo157321 wants to merge 7 commits into
Conversation
Contributor
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
7eeb1dc to
2d143ff
Compare
2d143ff to
788e9ed
Compare
anandhu-eng
reviewed
Jun 16, 2026
| system=system, benchmark=benchmark, scenario=scenario) | ||
|
|
||
| def load_single_log(self, path, log_type: Literal["Performance", "Accuracy", | ||
| "AccuracyResult", "AccuracyJSON", "Test", "System", "Measurements"]): |
Contributor
There was a problem hiding this comment.
How about we add Endpoints also here?
Contributor
Author
There was a problem hiding this comment.
Loading the endpoints result is very different. It was moved to another function. Please let me know if you think we should integrate both
anandhu-eng
reviewed
Jun 16, 2026
| """ | ||
| log = None | ||
| if os.path.exists(path): | ||
| if log_type in ["Endpoints"]: |
Contributor
There was a problem hiding this comment.
would it be better to add check if path path exists? as we have in elif?
Contributor
Author
There was a problem hiding this comment.
This was moved to another function as well
anandhu-eng
reviewed
Jun 16, 2026
| acc_json_path, "AccuracyJSON") | ||
| measurements_json = self.load_single_log( | ||
| measurements_path, "Measurements") | ||
| if perf_log is None and acc_log is None: |
Contributor
There was a problem hiding this comment.
My concern here is that if user did an inference run and supplied a wrong path, it would print the error log specific for endpoints and also set is_endpoints_submittion as true:
Could not load Endpoints log from path/supplied, log type not recognized
anandhu-eng
reviewed
Jun 16, 2026
anandhu-eng
reviewed
Jun 16, 2026
anandhu-eng
reviewed
Jun 16, 2026
anandhu-eng
reviewed
Jun 16, 2026
anandhu-eng
reviewed
Jun 16, 2026
anandhu-eng
reviewed
Jun 16, 2026
anandhu-eng
reviewed
Jun 16, 2026
- constants.py: Fix percentile key format in ENDPOINTS_MAPPINGS — the
endpoints JSON uses float-format keys (e.g. "99.0") but the mappings
used integer strings ("99"), causing latency_check to receive None and
crash on the comparison. Updated all latency/ttft/tpot percentile keys
to use the .0 suffix (50.0, 90.0, 95.0, 99.0).
- performance_check.py: Fix llm_check for endpoints — the check gated
on the loadgen use_token_latencies flag which does not exist in
endpoints submissions, causing all LLM models to fail. Added an
endpoints-specific branch that checks TTFT/TPOT p99 values directly
from the result JSON. Also fix get_performance_metric_check to skip
RESULT_FIELD_BENCHMARK_OVERWRITE for endpoints (the tokens/sec field
is not present in endpoints result files; use QPS instead).
- endpoints_parser.py: Fix inferred QPS unit — the fallback QPS
calculation divided n_samples_issued by duration_ns directly, giving
~1e-8 instead of the correct value. Convert duration to seconds first.
Also guard against overwriting an already-resolved QPS value.
- README.md: Update submission checker documentation with current
version numbers, endpoints directory structure, endpoints-specific
checks, and accuracy_scores requirement.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documentation pending