mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 06:07:17 -05:00
[PR #1931] [MERGED] fix(mlperf-edu): quality-target check silently skipped for real submissions #32195
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1931
Author: @Shashank-Tripathi-07
Created: 7/7/2026
Status: ✅ Merged
Merged: 7/10/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/compliance-quality-target-lookup📝 Commits (1)
0500781fix(mlperf-edu): quality-target check silently skipped for real submissions📊 Changes
1 file changed (+16 additions, -5 deletions)
View changed files
📝
mlperf-edu/scripts/compliance_checker.py(+16 -5)📄 Description
Summary
check_from_submission()looked upQUALITY_TARGETSby the full workload id (e.g.resnet18-train, matching everyregistry/suites/*.yamlidfield), butQUALITY_TARGETSis keyed by the short form (resnet18). The lookup always missed, so the quality-target check never ran at all for any real submission, regardless of reported accuracy.metrics.get(metric_name) or metrics.get("loss") or metrics.get("accuracy")used Python truthiness, so a genuine0.0accuracy value fell through to the loss value and could pass the quality-target check.Test plan
resnet18-trainsubmission withtop1_accuracy: 0.0, confirmed the "Quality target reached" check was entirely absent fromcheck_from_submission()'s output before the fix.FAIL | Quality target reached | 0.0000 < 0.75.top1_accuracy: 0.80submission still reportsPASS | Quality target reached | 0.8000 >= 0.75.pre-commit runpasses on the changed file.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.