Skip to content

Support endpoints results for submission generation#1029

Open
anandhu-eng wants to merge 11 commits into
mainfrom
feat/endpoints-submission-support
Open

Support endpoints results for submission generation#1029
anandhu-eng wants to merge 11 commits into
mainfrom
feat/endpoints-submission-support

Conversation

@anandhu-eng

Copy link
Copy Markdown
Contributor

🧾 PR Checklist

  • Target branch is dev

📌 Note: PRs must be raised against dev. Do not commit directly to main.

📁 File Hygiene & Output Handling

  • No unintended files (e.g., logs, cache, temp files, pycache, output folders) are committed

📝 Comments & Communication

  • Proper inline comments are added to explain important or non-obvious changes
  • PR title and description clearly state what the PR does and why
  • Related issues (if any) are properly referenced (Fixes #, Related to #, etc.)

🛡️ Safety & Security

  • No secrets or credentials are committed
  • Paths, shell commands, and environment handling are safe and portable

anandhu-eng and others added 8 commits July 8, 2026 21:33
- generate-mlperf-inference-submission: detect endpoint runs (run_metadata.json
  present, no mlperf_log files), copy and rename result files to match checker
  expectations (results_summary.json → result_summary.json), build result
  strings from endpoint metadata (QPS, TTFT P99)

- run-mlperf-inference-submission-checker: prepend tools/submission/ to
  PYTHONPATH when using the modular checker so relative imports in
  submission_checker/main.py resolve correctly without requiring -m invocation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n detection

- Remove ENDPOINTS_PERF_RENAME workaround; checker and harness now agree on
  results_summary.json (inference repo PR #2622)
- Update ENDPOINTS_ACC_FILES to use results_summary.json
- Replace fragile negative detection (run_metadata.json present + no
  mlperf_log_summary.txt) with positive check for all three files the
  endpoints harness always writes: config.yaml, results_summary.json,
  results.json

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Merge ENDPOINTS_PERF_FILES + ENDPOINTS_ACC_FILES into one ENDPOINTS_FILES
  list (run_metadata.json is optional, other files are the same for both modes)
- Simplify is_endpoints_run to check only for config.yaml, which is written
  by the endpoints harness and absent from all standard loadgen runs
- Remove stale ENDPOINTS_PERF_RENAME copy block (no rename needed since
  harness and checker agree on results_summary.json)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Resolved conflict in generate-mlperf-inference-submission/customize.py,
preserving unified ENDPOINTS_FILES list, config.yaml-only run detection,
and removal of ENDPOINTS_PERF_RENAME copy workaround.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ata.json

run_metadata.json is optional; use the two files that are always written
by the endpoints harness to validate a perf/run_1 directory is complete.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@anandhu-eng anandhu-eng requested a review from a team as a code owner July 8, 2026 19:11
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

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

anandhu-eng and others added 3 commits July 9, 2026 12:28
Avoids ModuleNotFoundError when a stale submission_checker package exists
in site-packages by cd-ing into tools/submission/ and running via -m,
which sets sys.path[0] to the correct package root before any other entry
can shadow it. Also handles the SHORT_RUN modified copy (submission_checker1)
via relpath-derived module name.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…aults

- generate-mlperf-inference-submission/customize.py: read accuracy scores
  from the nested 'accuracy_scores' key in endpoints results.json instead
  of iterating the top-level dict (which yielded N/A for all scores)
- generate-mlperf-inference-submission/meta.yaml: bump wg-inference default
  MLC_MLPERF_SUBMISSION_CHECKER_VERSION from v5.1 to v6.1 so --run_checker=yes
  validates against the correct round without requiring an explicit --version flag
- run-mlperf-inference-submission-checker/customize.py: remove cd-based
  module invocation for modularised checker; relative --input paths broke
  after cd shifted the working directory

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@anandhu-eng

Copy link
Copy Markdown
Contributor Author

Modifications based on the requirement for supporting endpoints folder structure detailed here: https://github.com/mlcommons/inference/blob/master/tools/submission/submission_structure.md

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.

1 participant