Skip to content

Update endpoints structure#2630

Merged
mrmhodak merged 14 commits into
masterfrom
update_endpoints_structure
Jul 21, 2026
Merged

Update endpoints structure#2630
mrmhodak merged 14 commits into
masterfrom
update_endpoints_structure

Conversation

@pgmpablo157321

Copy link
Copy Markdown
Contributor

Partially address #2628

@pgmpablo157321
pgmpablo157321 requested review from a team as code owners July 14, 2026 05:04
@github-actions

Copy link
Copy Markdown
Contributor

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

This reverts commit 7d8ae1a.
Comment thread tools/submission/submission_checker/parsers/endpoints_parser.py Outdated
…tale results.json (#2631)

The endpoints accuracy artifact was renamed from results.json (with a
responses field) to accuracy/accuracy_results.json in
mlcommons/endpoints#400, which also dropped the responses field
entirely (per-sample text now lives in events.jsonl, not part of the
submission). truncate_accuracy_log.py still looked for the old
results.json/responses shape and would only log "missing" for every
endpoints submission. Detect the endpoints layout via the scenario-root
config.yaml and skip truncation, and remove the now-dead
PERFORMANCE_ENDPOINTS_DIR/ACCURACY_ENDPOINTS_DIR constants left over
from the loader.py refactor to ENDPOINTS_SCENARIO_DIR.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Comment thread tools/submission/submission_checker/parsers/endpoints_parser.py Outdated
Comment thread tools/submission/submission_checker/parsers/endpoints_parser.py Outdated
Comment thread tools/submission/submission_checker/constants.py Outdated
Comment thread tools/submission/submission_checker/constants.py Outdated
Comment thread tools/submission/submission_checker/constants.py Outdated
Comment thread tools/submission/submission_checker/parsers/endpoints_parser.py Outdated
@zihaok

zihaok commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Tested this submission checker with a couple of internal valid log. Find a bug: currently since both accuracy and performance logs are generated together, submission checker will enforce n_samples_issued and n_samples_completed in performance/result_summary.json to be exactly the same size of the dataset. However, this enforcement should be in accuracy log instead of performance log. Performance log should be valid as long as min duration is > 600000 ms, and number of samples > performance dataset size. This is behavior is correct in legacy loadgen's result parsing path, but not correct in endpoint_parser.py

Comment thread tools/submission/submission_checker/constants.py Outdated
│ │ │ │ │ │ │ │ ├── config.yaml
│ │ │ │ │ │ │ │ ├── results.json
│ │ │ │ │ │ │ │ └── results_summary.json
│ │ │ │ │ │ │ └── run_1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run_1 still presents here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pgmpablo157321 , could you review PR #2637 which adresses this and below comment by zihaok.

Thanks @zihaok for pointing it out

Comment thread tools/submission/submission_structure.md Outdated
@zihaok

zihaok commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Hi @pgmpablo157321 , could you see #2636 and merge that to this branch.
I gather all the logs internally and use them to fully test the submission checker on all the currently missing scenario.

CC: @nvzhihanj

zihaok and others added 5 commits July 20, 2026 10:38
* Fix submission directory structure for endpoints

* Fix filename in endpoints submission structure

Corrected the filename from 'results_summary.json' to 'result_summary.json' in the endpoints submission structure documentation.

---------

Co-authored-by: Pablo Gonzalez <pgmpablo97@gmail.com>
@mrmhodak
mrmhodak merged commit 2af078b into master Jul 21, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants