Skip to content

refactor(aiperf): remove the benchmark qualification framework - #1742

Merged
chaofengw-nv merged 1 commit into
NVIDIA:mainfrom
chaofengw-nv:chore/remove-benchmark-qualification
Oct 16, 2026
Merged

chaofengw-nv merged 1 commit into
NVIDIA:mainfrom
chaofengw-nv:chore/remove-benchmark-qualification

Conversation

@chaofengw-nv

Copy link
Copy Markdown
Collaborator

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 in qualification_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 imports apps.benchmark.performance, which does not exist).

Exit Criteria

  • qualification_tests/benchmark_qualification is gone and nothing outside the family-owned tests/benchmark/ directories refers to it.
  • apps/aiperf_qual and apps/perf_serving behave as before; the AIPerf run-all entry point (tools/model_benchmark.py aiperf) keeps working.
  • The installed trtmc-bench user benchmark (apps/benchmark) is untouched.
  • Non-goals: the family-owned families/*/tests/benchmark/ profiles and references are not removed here (see the notes below).

Implementation

  • Remove 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.py keeps only the aiperf subcommand, which the AIPerf README documents; the list and run commands of the old framework are dropped.
  • Remove what only served the framework: tools/prepare_coco_detection_dataset.py (the data preparation for one old benchmark definition), the unusable tools/perf_matrix/ package, families/sana_wm/tests/test_benchmark_reference.py (imports the removed framework), the framework's tests in tools/tests (test_model_benchmark.py now only covers the AIPerf wrapper; one release-matrix case each in test_new_ci.py and test_family_impact.py), the release-policy file entry and the qualification_tests/ prefix in tools/test_impact.py, and the matching entries in the test_architecture.py file inventories.
  • Drop the package from the pytest paths and the sdist file list in pyproject.toml.
  • Update the benchmarking reference, the validation tutorial, and the profile-model and optimize-model-precision skills to point at trtmc-aiperf-qual instead 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

  • Model or runtime behavior
  • Public API
  • ABI
  • Bundle or artifact format
  • Dependencies
  • Documentation only
  • CI or developer tooling

Validation

Commands and Results

PYTHONPATH=.:apps/aiperf_qual:apps/aiperf_qual/plugins:apps/perf_serving:apps/benchmark:core/builder \
  python -m pytest tools/tests apps/aiperf_qual/tests apps/perf_serving/tests -q

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) need torch, which the test environment does not have; they fail the same way on main. 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 matrix run 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 --help works.
  • ruff check tools apps/aiperf_qual apps/perf_serving: all checks passed.
  • git grep for qualification_tests and benchmark_qualification finds references only under families/*/tests/benchmark/ (see the notes).
  • The five family test_benchmark_reference.py tests that only read the family profiles still pass.

Hardware, Environment, and Revisions

Repository head: origin/main at 1232515fb plus this commit. Development host, CPU only, no GPU, Python virtual environment with aiperf==0.13.0 and the repository's trtmc_aiperf_qual plugin package.

Not Run / Remaining Gaps

  • No GPU qualification run; the check that AIPerf does not depend on the removed code is the matrix build and the unit tests above.
  • The full families/ test tree and the documentation site build were not run (they need torch and the docs toolchain); only the files above that referenced the removed code were edited.
  • Pipelines outside this repository that call qualification_tests or tools/model_benchmark.py list|run cannot be checked from here and would stop working.

Contributor Self-Review

  • I have completed a self-review of this change.

Notes For Future Readers

What the old framework did that AIPerf qualification does not, so reviewers can decide knowingly:

  • Performance environments for the Thor targets (auto-thor, l4t-thor); AIPerf qualification only ships one reference environment and an example, and its use on Thor has not been verified.
  • A torch.compile native 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.
  • Fixed per-operation workloads timed in process by trtmc-bench; AIPerf times the same requests as accuracy through the serving layer, so the numbers are not comparable with older reports.
  • Per-model absolute accuracy gates; AIPerf uses paired non-inferiority decisions, and for some models a different dataset.

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/*.yaml profiles and 39 Python files in 109 families are now unused, and 17 of the reference.py files import the removed package. families/lance/tests/benchmark/upstream_reference.py and prepare_environment.py are used by the AIPerf native reference of Lance and must stay or move.

Risk level

  • Low
  • Medium
  • High

Risk rationale: the change only deletes repository-only qualification tooling and does not touch library, runtime or trtmc-bench code, but it removes capabilities (listed above) that the AIPerf qualification does not replace, and external callers cannot be ruled out from inside the repository.

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]>
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/TensorRT-Model-Connect/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 907fc5c1-6bb0-454c-9750-b59aadd5364a
📥 Commits

Reviewing files that changed from the base of the PR and between 1232515 and 21bfd40.

📒 Files selected for processing: 104
  • apps/aiperf_qual/README.md
  • apps/aiperf_qual/tests/test_noninferiority.py
  • families/sana_wm/tests/test_benchmark_reference.py
  • plugins/trtmc-agent-skills/skills/optimize-model-precision/SKILL.md
  • plugins/trtmc-agent-skills/skills/profile-model/SKILL.md
  • pyproject.toml
  • qualification_tests/__init__.py
  • qualification_tests/benchmark_qualification/__init__.py
  • qualification_tests/benchmark_qualification/accuracy.py
  • qualification_tests/benchmark_qualification/benchmarks/audio_generation_model_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/audio_generation_pipeline_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/beans_image_feature_knn.yaml
  • qualification_tests/benchmark_qualification/benchmarks/coco2017_object_detection.yaml
  • qualification_tests/benchmark_qualification/benchmarks/embedding_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/encoder_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/etth1_forecast_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/flores200_en_fr_seq2seq.yaml
  • qualification_tests/benchmark_qualification/benchmarks/flores200_en_fr_translation.yaml
  • qualification_tests/benchmark_qualification/benchmarks/humaneval_continuation.yaml
  • qualification_tests/benchmark_qualification/benchmarks/image_classification_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/image_features_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_classification.yaml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_localization_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_prompted_segmentation_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_segmentation_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_text_prompted_instance_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_vision_language_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/librispeech_transcription.yaml
  • qualification_tests/benchmark_qualification/benchmarks/media_generation_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/metric_geometry_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/metric_geometry_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/mmlu_continuation.yaml
  • qualification_tests/benchmark_qualification/benchmarks/newstest2019_en_ru_translation.yaml
  • qualification_tests/benchmark_qualification/benchmarks/object_detection_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/ocrbench_v2_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/reranking_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/robot_action_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/robot_action_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/semantic_segmentation_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/speech_nemo_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/speech_transformer_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/stereo_disparity_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/stereo_disparity_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/stsbenchmark_embedding_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/stsbenchmark_reranking_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/task_output_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/text_generation_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/text_prompted_segmentation_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/time_series_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/vision_language_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/vision_language_pipeline_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/wikitext103_continuation.yaml
  • qualification_tests/benchmark_qualification/benchmarks/wmt14_en_de_translation.yaml
  • qualification_tests/benchmark_qualification/catalog.py
  • qualification_tests/benchmark_qualification/datasets.py
  • qualification_tests/benchmark_qualification/performance/README.md
  • qualification_tests/benchmark_qualification/performance/__init__.py
  • qualification_tests/benchmark_qualification/performance/__main__.py
  • qualification_tests/benchmark_qualification/performance/config/environments/auto-thor.yaml
  • qualification_tests/benchmark_qualification/performance/config/environments/gb300.yaml
  • qualification_tests/benchmark_qualification/performance/config/environments/l4t-thor.yaml
  • qualification_tests/benchmark_qualification/performance/config/release.yaml
  • qualification_tests/benchmark_qualification/performance/config/requirements.txt
  • qualification_tests/benchmark_qualification/performance/matrix.py
  • qualification_tests/benchmark_qualification/performance/qualification.py
  • qualification_tests/benchmark_qualification/performance/reference_harness.py
  • qualification_tests/benchmark_qualification/performance/reference_protocol.py
  • qualification_tests/benchmark_qualification/performance/references/__init__.py
  • qualification_tests/benchmark_qualification/performance/references/audio_reference.py
  • qualification_tests/benchmark_qualification/performance/references/generic_reference.py
  • qualification_tests/benchmark_qualification/performance/references/hf_transformers.py
  • qualification_tests/benchmark_qualification/performance/references/timing_contracts.py
  • qualification_tests/benchmark_qualification/performance/reporting.py
  • qualification_tests/benchmark_qualification/performance/runner.py
  • qualification_tests/benchmark_qualification/performance/stability.py
  • qualification_tests/benchmark_qualification/performance/tests/__init__.py
  • qualification_tests/benchmark_qualification/performance/tests/test_diffusers_semantic_reference.py
  • qualification_tests/benchmark_qualification/performance/tests/test_family_performance.py
  • qualification_tests/benchmark_qualification/performance/tests/test_offline_speech_contract.py
  • qualification_tests/benchmark_qualification/performance/tests/test_perf_matrix.py
  • qualification_tests/benchmark_qualification/performance/tests/test_reference_protocol.py
  • qualification_tests/benchmark_qualification/performance/tests/test_reporting.py
  • qualification_tests/benchmark_qualification/performance/tests/test_structured_output_contracts.py
  • qualification_tests/benchmark_qualification/performance/tests/test_timing_contracts.py
  • qualification_tests/benchmark_qualification/performance/types.py
  • qualification_tests/benchmark_qualification/references/hf_encoder.py
  • qualification_tests/benchmark_qualification/references/hf_text_generation.py
  • qualification_tests/benchmark_qualification/references/speech_io.py
  • qualification_tests/benchmark_qualification/references/timm_image_classification.py
  • qualification_tests/benchmark_qualification/runtime.py
  • tools/model_benchmark.py
  • tools/perf_matrix/__init__.py
  • tools/perf_matrix/__main__.py
  • tools/perf_matrix/cli.py
  • tools/perf_matrix/core.py
  • tools/perf_matrix/types.py
  • tools/prepare_coco_detection_dataset.py
  • tools/test_impact.py
  • tools/tests/test_architecture.py
  • tools/tests/test_family_impact.py
  • tools/tests/test_model_benchmark.py
  • tools/tests/test_new_ci.py
  • website/docs/reference/benchmarking.md
  • website/docs/tutorials/advanced/validation-and-benchmarking.md
💤 Files with no reviewable changes: 94
  • qualification_tests/benchmark_qualification/performance/tests/init.py
  • qualification_tests/benchmark_qualification/benchmarks/media_generation_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_classification.yaml
  • tools/perf_matrix/main.py
  • qualification_tests/benchmark_qualification/performance/tests/test_reference_protocol.py
  • qualification_tests/benchmark_qualification/benchmarks/metric_geometry_parity.yaml
  • qualification_tests/benchmark_qualification/performance/config/requirements.txt
  • qualification_tests/benchmark_qualification/benchmarks/flores200_en_fr_translation.yaml
  • qualification_tests/benchmark_qualification/benchmarks/speech_nemo_performance.yaml
  • qualification_tests/benchmark_qualification/performance/config/environments/l4t-thor.yaml
  • qualification_tests/benchmark_qualification/benchmarks/image_classification_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/object_detection_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/reranking_performance.yaml
  • families/sana_wm/tests/test_benchmark_reference.py
  • tools/perf_matrix/init.py
  • qualification_tests/benchmark_qualification/benchmarks/speech_transformer_performance.yaml
  • qualification_tests/benchmark_qualification/performance/config/release.yaml
  • qualification_tests/benchmark_qualification/benchmarks/robot_action_parity.yaml
  • qualification_tests/benchmark_qualification/init.py
  • qualification_tests/benchmark_qualification/benchmarks/flores200_en_fr_seq2seq.yaml
  • apps/aiperf_qual/README.md
  • qualification_tests/benchmark_qualification/benchmarks/stsbenchmark_embedding_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/humaneval_continuation.yaml
  • pyproject.toml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_segmentation_parity.yaml
  • qualification_tests/init.py
  • qualification_tests/benchmark_qualification/performance/init.py
  • qualification_tests/benchmark_qualification/benchmarks/audio_generation_model_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/stsbenchmark_reranking_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/time_series_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/semantic_segmentation_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/newstest2019_en_ru_translation.yaml
  • qualification_tests/benchmark_qualification/benchmarks/vision_language_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/text_generation_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/robot_action_performance.yaml
  • qualification_tests/benchmark_qualification/references/hf_text_generation.py
  • qualification_tests/benchmark_qualification/benchmarks/embedding_performance.yaml
  • qualification_tests/benchmark_qualification/performance/tests/test_offline_speech_contract.py
  • qualification_tests/benchmark_qualification/benchmarks/vision_language_pipeline_performance.yaml
  • qualification_tests/benchmark_qualification/performance/qualification.py
  • qualification_tests/benchmark_qualification/references/timm_image_classification.py
  • qualification_tests/benchmark_qualification/performance/main.py
  • qualification_tests/benchmark_qualification/runtime.py
  • qualification_tests/benchmark_qualification/benchmarks/etth1_forecast_parity.yaml
  • qualification_tests/benchmark_qualification/performance/README.md
  • qualification_tests/benchmark_qualification/performance/tests/test_diffusers_semantic_reference.py
  • qualification_tests/benchmark_qualification/performance/references/init.py
  • qualification_tests/benchmark_qualification/performance/tests/test_timing_contracts.py
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_localization_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/librispeech_transcription.yaml
  • qualification_tests/benchmark_qualification/performance/config/environments/gb300.yaml
  • qualification_tests/benchmark_qualification/benchmarks/ocrbench_v2_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/encoder_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/wikitext103_continuation.yaml
  • tools/tests/test_new_ci.py
  • qualification_tests/benchmark_qualification/performance/references/hf_transformers.py
  • tools/tests/test_family_impact.py
  • qualification_tests/benchmark_qualification/performance/config/environments/auto-thor.yaml
  • qualification_tests/benchmark_qualification/benchmarks/text_prompted_segmentation_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_vision_language_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/metric_geometry_performance.yaml
  • qualification_tests/benchmark_qualification/performance/tests/test_perf_matrix.py
  • qualification_tests/benchmark_qualification/benchmarks/stereo_disparity_performance.yaml
  • qualification_tests/benchmark_qualification/benchmarks/beans_image_feature_knn.yaml
  • qualification_tests/benchmark_qualification/performance/tests/test_structured_output_contracts.py
  • qualification_tests/benchmark_qualification/performance/reference_protocol.py
  • qualification_tests/benchmark_qualification/catalog.py
  • tools/test_impact.py
  • qualification_tests/benchmark_qualification/benchmarks/task_output_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_prompted_segmentation_parity.yaml
  • qualification_tests/benchmark_qualification/benchmarks/audio_generation_pipeline_performance.yaml
  • qualification_tests/benchmark_qualification/performance/runner.py
  • tools/perf_matrix/types.py
  • qualification_tests/benchmark_qualification/benchmarks/coco2017_object_detection.yaml
  • qualification_tests/benchmark_qualification/benchmarks/imagenette_text_prompted_instance_parity.yaml
  • qualification_tests/benchmark_qualification/performance/tests/test_family_performance.py
  • qualification_tests/benchmark_qualification/performance/tests/test_reporting.py
  • qualification_tests/benchmark_qualification/performance/stability.py
  • qualification_tests/benchmark_qualification/benchmarks/stereo_disparity_parity.yaml
  • qualification_tests/benchmark_qualification/references/hf_encoder.py
  • tools/prepare_coco_detection_dataset.py
  • qualification_tests/benchmark_qualification/performance/types.py
  • qualification_tests/benchmark_qualification/benchmarks/image_features_performance.yaml
  • apps/aiperf_qual/tests/test_noninferiority.py
  • tools/perf_matrix/cli.py
  • qualification_tests/benchmark_qualification/benchmarks/wmt14_en_de_translation.yaml
  • qualification_tests/benchmark_qualification/performance/references/generic_reference.py
  • qualification_tests/benchmark_qualification/benchmarks/mmlu_continuation.yaml
  • qualification_tests/benchmark_qualification/performance/reference_harness.py
  • qualification_tests/benchmark_qualification/performance/references/timing_contracts.py
  • qualification_tests/benchmark_qualification/references/speech_io.py
  • qualification_tests/benchmark_qualification/performance/reporting.py
  • qualification_tests/benchmark_qualification/datasets.py
  • qualification_tests/benchmark_qualification/performance/references/audio_reference.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

📝 Summary

Summary

Removes the repository-only benchmark qualification framework, including qualification_tests/, tools/perf_matrix/, framework-specific reference runners and tests, and the COCO dataset preparation tool. Removes the list and run commands from tools/model_benchmark.py; the AIPerf subcommand remains.

Updates packaging, test-impact and architecture inventories, agent skills, and benchmarking documentation to direct release comparisons to apps/aiperf_qual. Family-owned benchmark profiles and references, apps/aiperf_qual, apps/perf_serving, and the installed apps/benchmark remain in scope only as retained components.

Architecture impact

  • Family-owned files: Deletes families/sana_wm/tests/test_benchmark_reference.py. Other family-owned profiles and references are reported as retained. Confirm that removing this Sana test is intended and does not remove validation that should remain with the family.
  • Changed shared surfaces: Removes shared qualification and performance-matrix tooling. Updates tools/model_benchmark.py, tools/test_impact.py, tools/tests/test_architecture.py, pyproject.toml, and documentation. No new shared implementation is introduced.
  • Dependency direction: The updated guidance directs release-comparison workflows to the apps/aiperf_qual application. No new package dependency is reported.
  • Affected consumers: Internal users of the deleted qualification package and the removed list and run commands must change their workflows. External callers may also break; the available information does not establish their full set.
  • Validation evidence: The author reports that the AIPerf matrix covered 190 profiles, with 183 executable; the AIPerf help command worked; and Ruff passed for the listed paths. The reported pytest run had 1,141 passes, 5 skips, and 2 failures attributed to missing torch, which the author reports also occur on main. No GPU qualification run, full families/ test tree, or documentation site build was run.
  • Review outcome: HUMAN REVIEW REQUIRED. Confirm external caller impact and the Sana test deletion’s ownership and scope. Current review finding counts are unavailable.

The change removes the repository-owned benchmark qualification framework, its benchmark definitions, execution tools, reference runners, and associated tests. It updates release-comparison guidance to use apps/aiperf_qual and removes a Sana benchmark-reference test module.

Changes: Qualification framework retirement

Layer / File(s) Summary
Remove qualification catalog and benchmark definitions
qualification_tests/__init__.py, qualification_tests/benchmark_qualification/*, qualification_tests/benchmark_qualification/benchmarks/*, qualification_tests/benchmark_qualification/performance/config/*
The qualification catalog, dataset resolution code, benchmark definitions, release suite, environment configurations, and package initializers are deleted.
Remove performance execution and reference components
qualification_tests/benchmark_qualification/performance/*, qualification_tests/benchmark_qualification/references/*
The performance qualification runtime, reference implementations, reporting and stability code, and related tests are deleted.
Remove command and repository integrations
tools/model_benchmark.py, tools/perf_matrix/*, tools/prepare_coco_detection_dataset.py, tools/test_impact.py, tools/tests/*, pyproject.toml
The model benchmark CLI no longer exposes its internal qualification commands. The performance-matrix tools and COCO preparation script are removed, and packaging, impact classification, and repository checks are updated.
Update qualification guidance
apps/aiperf_qual/README.md, apps/aiperf_qual/tests/test_noninferiority.py, plugins/trtmc-agent-skills/skills/*/SKILL.md, website/docs/reference/benchmarking.md, website/docs/tutorials/advanced/validation-and-benchmarking.md
Agent skill instructions and website documentation direct release comparisons to trtmc-aiperf-qual and family AIPerf profile YAMLs. The README statement about the removed framework and a test scanning for framework references are deleted.

Sana benchmark-reference test removal

Layer / File(s) Summary
Delete Sana benchmark-reference tests
families/sana_wm/tests/test_benchmark_reference.py
The module testing reference routing, testcase selection, pipeline invocation, and missing or ambiguous inputs is deleted.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 21bfd

This change removes the old qualification framework and points users to the AIPerf harness. The author notes that external callers of the removed commands will stop working, which is an intended tradeoff. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 7 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. (4 skipped: 4 … Write docstrings for the functions missing them to satisfy the coverage threshold.
Benchmark Validation Integrity Warning The PR deletes the shared benchmark timing/validation providers but leaves retained family benchmark consumers unchanged. For example, families/birefnet/tests/benchmark/reference.py:15,94,145,152 im… Either retain the shared qualification_tests.benchmark_qualification harness and helper modules until all family benchmark references are migrated, or migrate every affected families/*/tests/benchmark/reference.py to a supported harness…
Passed Passed checks: 7 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: removal of the benchmark qualification framework.
Description check Passed The description covers the required background, exit criteria, implementation, change category, validation results, environment, remaining gaps, self-review, future notes, and risk rationale. It also …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Family Ownership Boundary Passed No new cross-family dependency is introduced. The only family-scoped change is deletion of families/sana_wm/tests/test_benchmark_reference.py; it removes Sana's dependency on the deleted qualificati…
Shared Semantic Neutrality Passed PASS. The diff adds no model-specific semantics to shared code. tools/model_benchmark.py now delegates to the generic trtmc_aiperf_qual run-all command, forwards arbitrary --model values as prof…
Shared Change Blast Radius Passed The pull request satisfies the shared-change evidence requirements. The description identifies a model-agnostic need: the repository-only qualification framework is redundant because `apps/aiperf_qual…
Full details: Description check

Explanation

The description covers the required background, exit criteria, implementation, change category, validation results, environment, remaining gaps, self-review, future notes, and risk rationale. It also identifies removed capabilities and known external compatibility risks.

Full details: Family Ownership Boundary

Explanation

No new cross-family dependency is introduced. The only family-scoped change is deletion of families/sana_wm/tests/test_benchmark_reference.py; it removes Sana's dependency on the deleted qualification framework. The new tools/model_benchmark.py:22-53 invokes the shared AIPerf harness and does not name or load another family. The documentation change at website/docs/reference/benchmarking.md:104-109 uses the generic families/&lt;family&gt;/tests/aiperf/&lt;profile&gt;.yaml ownership path. No changed additions contain a concrete family-to-family reference, registry entry, switch, or strategy mapping.

Full details: Shared Semantic Neutrality

Explanation

PASS. The diff adds no model-specific semantics to shared code. tools/model_benchmark.py now delegates to the generic trtmc_aiperf_qual run-all command, forwards arbitrary --model values as profiles, and sets repository paths without family or model branching. The added qwen3-0.6b-fp16 value appears only in a forwarding test and is an existing family-owned profile. Other shared changes remove obsolete qualification tooling, packaging entries, and impact-test inventory, or update documentation. No shared configuration, tensor/output rule, metric, threshold, dataset, or runtime strategy is added or expanded.

Full details: Shared Change Blast Radius

Explanation

The pull request satisfies the shared-change evidence requirements. The description identifies a model-agnostic need: the repository-only qualification framework is redundant because apps/aiperf_qual now covers every ready catalog model, while the old framework is a large shared implementation and an unusable duplicate matrix. It identifies affected consumers and surfaces: tools/model_benchmark.py, packaging and pytest configuration, impact and architecture inventories, framework-specific tests, docs, skills, and the retained aiperf, apps/perf_serving, and apps/benchmark consumers. It states the compatibility impact: the old list and run commands and external qualification_tests callers stop working, while AIPerf and the installed user benchmark remain supported. The diff confirms the shared removal and keeps aiperf dispatch through apps/aiperf_qual. Validation evidence includes the reported pytest results with baseline-equivalent missing-torch failures, AIPerf matrix coverage for 190 profiles, CLI help, and Ruff checks. The description also explains why the framework is not family-owned: it is repository-wide and model-agnostic, and family-owned benchmark profiles remain outside the removal.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. (4 skipped: 4 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Benchmark Validation Integrity

Explanation

The PR deletes the shared benchmark timing/validation providers but leaves retained family benchmark consumers unchanged. For example, families/birefnet/tests/benchmark/reference.py:15,94,145,152 imports and calls reference_harness; families/canary/tests/benchmark/reference.py:15-22,58,86,99 also imports the deleted harness and speech/audio helpers; families/sana_wm/tests/benchmark/reference.py:17,24,163,191 uses its Measurement and run_premeasured. The provider files are deleted, and families/birefnet/tests/benchmark/birefnet-lite.yaml:40-42 still wires the reference script. These references fail before timing, output validation, or serialization can run. This is a shared benchmark-accounting change without evidence or a migration for 17 affected family reference files.

Resolution

Either retain the shared qualification_tests.benchmark_qualification harness and helper modules until all family benchmark references are migrated, or migrate every affected families/*/tests/benchmark/reference.py to a supported harness. Preserve each reference's timing scope, synchronization boundary, input/asset inclusion, output validation, sample accounting, and result serialization. Update the profiles and tests, then run the full family benchmark test set and representative reference commands before deleting the old providers.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@chaofengw-nv chaofengw-nv self-assigned this Oct 16, 2026
@chaofengw-nv chaofengw-nv added the run-internal-ci Maintainer-approved dispatch to internal CI label Oct 16, 2026
@github-actions github-actions Bot removed the run-internal-ci Maintainer-approved dispatch to internal CI label Oct 16, 2026
@chaofengw-nv
chaofengw-nv merged commit 6573169 into NVIDIA:main Oct 16, 2026
35 of 37 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.

1 participant