Repository navigation
refactor(aiperf): remove the benchmark qualification framework - #1742
Merged
chaofengw-nv merged 1 commit intoOct 16, 2026
Merged
Conversation
The AIPerf qualification (apps/aiperf_qual) replaces the repository-only benchmark qualification framework. Nothing in aiperf_qual or perf_serving imports or reads it, so remove qualification_tests/benchmark_qualification: the accuracy and performance runners, the release performance matrix and its machine environments, and the shared benchmark definitions. Keep tools/model_benchmark.py as the entry point of the AIPerf run-all wrapper, and drop its list and run commands. Remove what only served the framework: the COCO detection subset script, the tools/perf_matrix package (it imports apps.benchmark.performance, which does not exist, so it cannot be imported), the framework's tests, the release-matrix cases of the CI tools tests, and the architecture inventory entries. Point the benchmarking docs and the profile-model and optimize-model-precision skills at trtmc-aiperf-qual, and drop the package from the pytest paths and the sdist. Family-owned tests/benchmark profiles and references are left in place. Signed-off-by: chaofengw <[email protected]>
3 of 11 tasks
4 of 11 tasks
5 of 11 tasks
This was referenced Oct 19, 2026
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.
Background
apps/aiperf_qual(AIPerf-based Accuracy and Performance qualification against the native models) now covers every ready catalog model and has replaced the repository-only benchmark qualification framework inqualification_tests/benchmark_qualification. The old framework is still carried in the tree (about 18,500 lines, 83 files), together with the tests, docs, skills and tool scripts that only exist for it. A second copy of its release performance matrix,tools/perf_matrix/, was merged recently and cannot be imported (it importsapps.benchmark.performance, which does not exist).Exit Criteria
qualification_tests/benchmark_qualificationis gone and nothing outside the family-ownedtests/benchmark/directories refers to it.apps/aiperf_qualandapps/perf_servingbehave as before; the AIPerf run-all entry point (tools/model_benchmark.py aiperf) keeps working.trtmc-benchuser benchmark (apps/benchmark) is untouched.families/*/tests/benchmark/profiles and references are not removed here (see the notes below).Implementation
qualification_tests/(accuracy and performance runners, release performance matrix and its machine environments, shared benchmark definitions, and the package's own tests).tools/model_benchmark.pykeeps only theaiperfsubcommand, which the AIPerf README documents; thelistandruncommands of the old framework are dropped.tools/prepare_coco_detection_dataset.py(the data preparation for one old benchmark definition), the unusabletools/perf_matrix/package,families/sana_wm/tests/test_benchmark_reference.py(imports the removed framework), the framework's tests intools/tests(test_model_benchmark.pynow only covers the AIPerf wrapper; one release-matrix case each intest_new_ci.pyandtest_family_impact.py), the release-policy file entry and thequalification_tests/prefix intools/test_impact.py, and the matching entries in thetest_architecture.pyfile inventories.pyproject.toml.profile-modelandoptimize-model-precisionskills to point attrtmc-aiperf-qualinstead of the removed commands; remove the AIPerf README sentence and the guard test that stated the harness does not depend on the removed package.No public API, ABI, bundle format or dependency changes.
Change categories
Validation
Commands and Results
1141 passed, 5 skipped, 2 failed. The two failures (
test_family_adapters_load_from_their_file,test_the_diffusers_adapter_passes_an_explicit_zero_guidance) needtorch, which the test environment does not have; they fail the same way onmain. Before the change the same command also failed two tests of the removed framework; they are deleted with it. The AIPerf suites give the same results with and without the removed code.trtmc-aiperf-qual matrixrun against the tree after the deletion builds the matrix of all 190 profiles (183 executable; the 7 blocked ones lack Task defaults), so the AIPerf harness does not read the removed files.python tools/model_benchmark.py aiperf --helpworks.ruff check tools apps/aiperf_qual apps/perf_serving: all checks passed.git grepforqualification_testsandbenchmark_qualificationfinds references only underfamilies/*/tests/benchmark/(see the notes).test_benchmark_reference.pytests that only read the family profiles still pass.Hardware, Environment, and Revisions
Repository head:
origin/mainat1232515fbplus this commit. Development host, CPU only, no GPU, Python virtual environment withaiperf==0.13.0and the repository'strtmc_aiperf_qualplugin package.Not Run / Remaining Gaps
families/test tree and the documentation site build were not run (they needtorchand the docs toolchain); only the files above that referenced the removed code were edited.qualification_testsortools/model_benchmark.py list|runcannot be checked from here and would stop working.Contributor Self-Review
Notes For Future Readers
What the old framework did that AIPerf qualification does not, so reviewers can decide knowingly:
auto-thor,l4t-thor); AIPerf qualification only ships one reference environment and an example, and its use on Thor has not been verified.torch.compilenative baseline in 71 of the 164 performance cases and a release gate that treats a native within five percent of the candidate p50 as equivalent. AIPerf qualification measures an eager native model and reports timing as a measurement, not as a gate.trtmc-bench; AIPerf times the same requests as accuracy through the serving layer, so the numbers are not comparable with older reports.Model coverage is a superset: AIPerf qualification plans 190 profiles against 164 in the old framework; the only old profile without an AIPerf counterpart is
patchtst-etth1-regression-distribution, which is not a ready catalog model.Left for a follow-up: the 164
families/*/tests/benchmark/*.yamlprofiles and 39 Python files in 109 families are now unused, and 17 of thereference.pyfiles import the removed package.families/lance/tests/benchmark/upstream_reference.pyandprepare_environment.pyare used by the AIPerf native reference of Lance and must stay or move.Risk level
Risk rationale: the change only deletes repository-only qualification tooling and does not touch library, runtime or
trtmc-benchcode, but it removes capabilities (listed above) that the AIPerf qualification does not replace, and external callers cannot be ruled out from inside the repository.