AI Slop Code RIsk Monitor

qualcomm/aimet

AIMET is a library that provides advanced quantization and compression techniques for trained neural network models.

27.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for qualcomm/aimet, a Python project with 2,726 GitHub stars. SynthScan examined 341,215 lines of code across 1171 source files, recording 5989 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 27.2 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

27.2
Adjusted Signal
27.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
2.7K
Stars
Python
Language
341.2K
Lines of Code
1.2K
Files
6.0K
Pattern Hits
2026-10-12
Scan Date
0.43
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 46.5/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 4192 finding(s).

Hallucinated Dependency & Supply Chain Risk 10.7/100 · LOW

Are imports declared and package/API names verified? 640 finding(s).

Agent Over-Engineering Ratio 65.5/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 4453 finding(s).

PR Review Velocity Impact 76.7/100 · CRITICAL

Which changes need focused human review? 5989 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 8HIGH 496MEDIUM 706LOW 4779

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 5989 distinct pattern matches across 26 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers3259 hits · 2995 pts
SeverityFileLineSnippetContext
LOWpackaging/dependencies.py46def _get_pip_reqs_for_framework(CODE
LOWGenAILab/bench/metrics.py134 def _compute_loss_from_logits(CODE
LOWGenAILab/bench/yaml_config_parser.py611 def get_required_export_adaptations(cls, model_type: str) -> list[str]:CODE
LOWGenAILab/bench/recipe_cache.py620def _serialize_dataset_config(dataset_config: dict) -> dict:CODE
LOWGenAILab/bench/datasets.py280 def _format_question_and_answer(CODE
LOWGenAILab/bench/datasets.py419 def _format_question_and_answer(CODE
LOWGenAILab/bench/datasets.py495 def assemble_fewshot_question(formatted_question: str, subject: str):CODE
LOWGenAILab/bench/datasets.py571 def _format_question_and_answer(CODE
LOWGenAILab/bench/datasets.py1516 def _build_transcription_inputs(self, waveform):CODE
LOWGenAILab/bench/recipe_chain.py163def apply_pre_quantization_chain(CODE
LOWGenAILab/bench/precision.py189 def ensure_component_defaults(self, component: str) -> None:CODE
LOWGenAILab/bench/profiler.py44def convert_gpu_meter_to_dict(CODE
LOWGenAILab/bench/profiler.py84def convert_metric_result_to_dict(CODE
LOWGenAILab/bench/profiler.py191def _aggregate_resource_utilization(CODE
LOWGenAILab/bench/profiler.py218def _serialize_component_stats(CODE
LOWGenAILab/bench/profiler.py348 def dict_to_postgres_csv_json_field(d):CODE
LOWGenAILab/bench/torch/test_genai.py316 def _last_calibration_for_onnx(steps):CODE
LOWGenAILab/tests/unit/conftest.py29 def _permissive_register_model(cls, model_type):CODE
LOWGenAILab/tests/unit/onnx/test_topology_handoff.py43 def test_spinquant_uses_supplied_topology(self):CODE
LOWGenAILab/tests/unit/onnx/test_topology_handoff.py58 def test_adascale_uses_supplied_topology(self):CODE
LOWGenAILab/tests/unit/onnx/test_topology_handoff.py81 def test_neither_recipe_analyzes_topology_itself(self):CODE
LOWGenAILab/tests/unit/onnx/test_topology_handoff.py125 def test_pre_sim_chain_forwards_topology(self):CODE
LOWGenAILab/tests/unit/onnx/test_topology_handoff.py136 def test_on_sim_chain_forwards_topology(self):CODE
LOWGenAILab/tests/unit/onnx/test_topology_handoff.py162 def test_torch_spinquant_absorbs_topology(self):CODE
LOWGenAILab/tests/unit/onnx/test_topology_handoff.py193 def test_topology_is_a_fixture_not_a_recipe_knob(self):CODE
LOW⚡GenAILab/tests/unit/onnx/test_quantsim_utils.py19 def test_cuda_device_with_index(self):CODE
LOW⚡GenAILab/tests/unit/onnx/test_quantsim_utils.py27 def test_cuda_device_without_index(self):CODE
LOW⚡GenAILab/tests/unit/onnx/test_quantsim_utils.py35 def test_sets_and_restores_attribute(self):CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_utils.py46 def test_creates_and_removes_new_attribute(self):CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_utils.py58 def test_restores_class_level_attribute(self):CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_utils.py72 def test_ties_past_key_value_quantizers(self, tmp_path):CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_utils.py121 def test_disables_activation_quantizers(self):CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_utils.py143 def test_float_precision_skips_tying(self):CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_utils.py154 def test_int_precision_ties_and_sets_symmetric(self):CODE
LOWGenAILab/tests/unit/onnx/test_generator_utils.py50 def test_fp_mode_disables_and_restores_quantizers(self):CODE
LOWGenAILab/tests/unit/onnx/test_generator_utils.py78 def test_fp_mode_covers_visual_model(self):CODE
LOWGenAILab/tests/unit/onnx/test_generator_utils.py116 def test_wraps_backbone_in_torch_onnx_interface(self):CODE
LOWGenAILab/tests/unit/onnx/test_generator_utils.py143 def test_vlm_wraps_both_models(self):CODE
LOWGenAILab/tests/unit/onnx/test_generator_utils.py194 def test_reassembles_list_outputs(self):CODE
LOWGenAILab/tests/unit/onnx/test_generator_utils.py216 def test_no_list_outputs_passthrough(self):CODE
LOW⚡GenAILab/tests/unit/onnx/test_audio_component.py81 def test_audio_sim_is_wired_to_audio_model_kwarg(self):CODE
LOWGenAILab/tests/unit/onnx/test_audio_component.py112 def test_fp_mode_covers_audio_model(self):CODE
LOWGenAILab/tests/unit/onnx/test_audio_component.py161 def test_present_components_in_canonical_order(self):CODE
LOWGenAILab/tests/unit/onnx/test_audio_component.py167 def test_round_trip_with_audio(self, tmp_path):CODE
LOWGenAILab/tests/unit/onnx/test_audio_component.py184 def test_round_trip_without_audio_writes_no_audio_dir(self, tmp_path):CODE
LOWGenAILab/tests/unit/onnx/test_audio_component.py201 def test_legacy_entry_without_audio_dir_still_loads(self, tmp_path):CODE
LOW⚡GenAILab/tests/unit/onnx/test_audio_component.py229def _run_instantiate_quantsim(model_cls, entry, precision):CODE
LOWGenAILab/tests/unit/onnx/test_audio_component.py260 def instantiate_position_processor(cls):CODE
LOWGenAILab/tests/unit/onnx/test_audio_component.py265 def test_builds_audio_sim_and_no_visual_sim(self):CODE
LOWGenAILab/tests/unit/onnx/test_audio_component.py281 def test_no_stray_visual_precision_block(self):CODE
LOWGenAILab/tests/unit/onnx/test_audio_component.py298 def test_declared_component_with_no_graph_yields_no_sim(self):CODE
LOW⚡GenAILab/tests/unit/onnx/test_quantsim_instantiation.py61 def test_default_precision_when_none(self):CODE
LOW⚡GenAILab/tests/unit/onnx/test_quantsim_instantiation.py68 def test_calls_set_lm_head_precision(self):CODE
LOW⚡GenAILab/tests/unit/onnx/test_quantsim_instantiation.py74 def test_calls_resolve_kv_cache(self):CODE
LOW⚡GenAILab/tests/unit/onnx/test_quantsim_instantiation.py80 def test_calls_block_granularity(self):CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_instantiation.py95 def test_returns_sim_collection_with_config(self):CODE
LOWGenAILab/tests/unit/onnx/test_analysis_passes.py77def test_every_present_component_truncated_during_evaluate(build_calls):CODE
LOWGenAILab/tests/unit/onnx/test_analysis_passes.py97def test_rebuild_during_evaluate_reinstruments(build_calls):CODE
LOWGenAILab/tests/unit/onnx/test_analysis_passes.py117def test_restored_clean_when_evaluate_raises(build_calls):CODE
LOWGenAILab/tests/unit/onnx/test_analysis_passes.py131def test_restored_clean_when_instrumenting_a_later_sim_fails(build_calls, monkeypatch):CODE
3199 more matches not shown…
Decorative Section Separators580 hits · 1832 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt122# -------------------------------COMMENT
MEDIUMCMakeLists.txt124# -------------------------------COMMENT
MEDIUMCMakeLists.txt176# -------------------------------COMMENT
MEDIUMCMakeLists.txt178# -------------------------------COMMENT
MEDIUMCMakeLists.txt209# -------------------------------COMMENT
MEDIUMCMakeLists.txt211# -------------------------------COMMENT
MEDIUMCMakeLists.txt247# -------------------------------COMMENT
MEDIUMCMakeLists.txt249# -------------------------------COMMENT
MEDIUMpackaging/INSTALL.txt1# ==================================================================================COMMENT
MEDIUMpackaging/INSTALL.txt3# ==================================================================================COMMENT
MEDIUMpackaging/envsetup.sh7#====================================COMMENT
MEDIUMpackaging/envsetup.sh9#===================================COMMENT
MEDIUMGenAILab/__main__.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/__main__.py175# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/__main__.py283# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/__main__.py285# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/__main__.py409# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/__main__.py411# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡GenAILab/bench/metrics.py603# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡GenAILab/bench/metrics.py605# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py532# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py534# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py671# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py673# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py799# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py801# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py884# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py886# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py1407# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py1409# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py2226# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/metrics.py2228# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡GenAILab/bench/yaml_config_parser.py542 # ========================COMMENT
MEDIUM⚡GenAILab/bench/yaml_config_parser.py544 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py202 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py204 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py241 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py243 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py285 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py287 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py317 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py319 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py410 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py412 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py663 # ========================COMMENT
MEDIUMGenAILab/bench/yaml_config_parser.py665 # ========================COMMENT
MEDIUMGenAILab/bench/datasets.py1350# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/datasets.py1352# ---------------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/eval_context.py58 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/eval_context.py60 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/eval_context.py80 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/eval_context.py82 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/fp_cache.py35 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/fp_cache.py37 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/fp_cache.py104 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/fp_cache.py106 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/model_cache.py89 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/model_cache.py91 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/model_cache.py286 # ------------------------------------------------------------------COMMENT
MEDIUMGenAILab/bench/model_cache.py288 # ------------------------------------------------------------------COMMENT
520 more matches not shown…
Cross-File Repetition363 hits · 1815 pts
SeverityFileLineSnippetContext
HIGHModelOptimizations/PyModelOptimizations/_quant_enums.py0shared quantization enums used by cython modules. this module provides intenum classes that are shared between _libpymo STRING
HIGH…gExtensions/onnx/src/python/aimet_onnx/_quant_enums.py0shared quantization enums used by cython modules. this module provides intenum classes that are shared between _libpymo STRING
HIGH…nsions/common/src/python/_aimet_common/_quant_enums.py0shared quantization enums used by cython modules. this module provides intenum classes that are shared between _libpymo STRING
HIGHDocs/snippets/onnx/apply_litemp.py0returns calibration and evaluation data-loader for imagenet dataset from provided pathSTRING
HIGHDocs/snippets/onnx/apply_quantsim.py0returns calibration and evaluation data-loader for imagenet dataset from provided pathSTRING
HIGHDocs/snippets/torch/apply_quantsim.py0returns calibration and evaluation data-loader for imagenet dataset from provided pathSTRING
HIGH…acy/torch_code_examples/model_preparer_code_example.py0model that uses functional modules instead of nn.modules. expects input of shape (1, 3, 32, 32)STRING
HIGH…Extensions/onnx/test/python/models/models_for_tests.py0model that uses functional modules instead of nn.modules. expects input of shape (1, 3, 32, 32)STRING
HIGH…ningExtensions/torch/test/python/models/test_models.py0model that uses functional modules instead of nn.modules. expects input of shape (1, 3, 32, 32)STRING
HIGH…Extensions/torch/test/python/v2/models_/test_models.py0model that uses functional modules instead of nn.modules. expects input of shape (1, 3, 32, 32)STRING
HIGH…s/torch/src/python/aimet_torch/examples/test_models.py0model that uses functional modules instead of nn.modules. expects input of shape (1, 3, 32, 32)STRING
HIGH…ngExtensions/torch/test/python/test_model_validator.py0model that uses functional modules instead of nn.modules. expects input of shape (1, 3, 32, 32)STRING
HIGH…acy/torch_code_examples/model_preparer_code_example.py0model that uses single relu instances multiple times in the forward. expects input of shape (1, 3, 32, 32)STRING
HIGH…Extensions/onnx/test/python/models/models_for_tests.py0model that uses single relu instances multiple times in the forward. expects input of shape (1, 3, 32, 32)STRING
HIGH…ningExtensions/torch/test/python/models/test_models.py0model that uses single relu instances multiple times in the forward. expects input of shape (1, 3, 32, 32)STRING
HIGH…Extensions/torch/test/python/v2/models_/test_models.py0model that uses single relu instances multiple times in the forward. expects input of shape (1, 3, 32, 32)STRING
HIGH…s/torch/src/python/aimet_torch/examples/test_models.py0model that uses single relu instances multiple times in the forward. expects input of shape (1, 3, 32, 32)STRING
HIGH…cy/torch_code_examples/model_validator_code_example.py0model that reuses a relu module. expects input of shape (1, 3, 32, 32)STRING
HIGH…Extensions/onnx/test/python/models/models_for_tests.py0model that reuses a relu module. expects input of shape (1, 3, 32, 32)STRING
HIGH…ningExtensions/torch/test/python/models/test_models.py0model that reuses a relu module. expects input of shape (1, 3, 32, 32)STRING
HIGH…Extensions/torch/test/python/v2/models_/test_models.py0model that reuses a relu module. expects input of shape (1, 3, 32, 32)STRING
HIGH…s/torch/src/python/aimet_torch/examples/test_models.py0model that reuses a relu module. expects input of shape (1, 3, 32, 32)STRING
HIGHExamples/onnx/utils/image_net_evaluator.py0:param images_dir: the path to the data directory :param image_size: the length of the image :param batch_size: the batcSTRING
HIGHExamples/torch/utils/image_net_trainer.py0:param images_dir: the path to the data directory :param image_size: the length of the image :param batch_size: the batcSTRING
HIGHExamples/torch/utils/image_net_evaluator.py0:param images_dir: the path to the data directory :param image_size: the length of the image :param batch_size: the batcSTRING
HIGHExamples/torch/utils/image_net_evaluator.py0evaluate the specified model using the specified number of samples from the validation set. :param model: the model to bSTRING
HIGHExamples/torch/quantization/range_learning.py0evaluate the specified model using the specified number of samples from the validation set. :param model: the model to bSTRING
HIGH…ples/torch/quantization/quantization_aware_training.py0evaluate the specified model using the specified number of samples from the validation set. :param model: the model to bSTRING
HIGHExamples/torch/quantization/adaround.py0evaluate the specified model using the specified number of samples from the validation set. :param model: the model to bSTRING
HIGHExamples/torch/quantization/range_learning.py0provides apis for model quantization using evaluation and finetuning.STRING
HIGH…ples/torch/quantization/quantization_aware_training.py0provides apis for model quantization using evaluation and finetuning.STRING
HIGHExamples/torch/quantization/adaround.py0provides apis for model quantization using evaluation and finetuning.STRING
HIGHExamples/torch/quantization/range_learning.py0finetunes the model. the implemtation provided here is just an example, provide your own implementation if needed. :paraSTRING
HIGHExamples/torch/compression/weight_svd.py0finetunes the model. the implemtation provided here is just an example, provide your own implementation if needed. :paraSTRING
HIGHExamples/torch/compression/channel_pruning.py0finetunes the model. the implemtation provided here is just an example, provide your own implementation if needed. :paraSTRING
HIGHExamples/torch/compression/spatial_svd_cp.py0finetunes the model. the implemtation provided here is just an example, provide your own implementation if needed. :paraSTRING
HIGHExamples/torch/compression/spatial_svd.py0finetunes the model. the implemtation provided here is just an example, provide your own implementation if needed. :paraSTRING
HIGHExamples/torch/compression/channel_pruning.py0provides apis for model compression using aimet weight svd, evaluation and finetuning.STRING
HIGHExamples/torch/compression/weight_svd.py0provides apis for model compression using aimet weight svd, evaluation and finetuning.STRING
HIGHExamples/torch/compression/spatial_svd_cp.py0provides apis for model compression using aimet weight svd, evaluation and finetuning.STRING
HIGHExamples/torch/compression/spatial_svd.py0provides apis for model compression using aimet weight svd, evaluation and finetuning.STRING
HIGHExamples/torch/compression/channel_pruning.py0evaluate the specified model using the specified number of samples from the validation set. aimet's compress_model() expSTRING
HIGHExamples/torch/compression/weight_svd.py0evaluate the specified model using the specified number of samples from the validation set. aimet's compress_model() expSTRING
HIGHExamples/torch/compression/spatial_svd_cp.py0evaluate the specified model using the specified number of samples from the validation set. aimet's compress_model() expSTRING
HIGHExamples/torch/compression/spatial_svd.py0evaluate the specified model using the specified number of samples from the validation set. aimet's compress_model() expSTRING
HIGHExamples/torch/compression/channel_pruning.py01. instantiate data pipeline for evaluation and training 2. load the pretrained resnet18 model 3. calculate floating poiSTRING
HIGHExamples/torch/compression/weight_svd.py01. instantiate data pipeline for evaluation and training 2. load the pretrained resnet18 model 3. calculate floating poiSTRING
HIGHExamples/torch/compression/spatial_svd_cp.py01. instantiate data pipeline for evaluation and training 2. load the pretrained resnet18 model 3. calculate floating poiSTRING
HIGHExamples/torch/compression/spatial_svd.py01. instantiate data pipeline for evaluation and training 2. load the pretrained resnet18 model 3. calculate floating poiSTRING
HIGHNightlyTests/torch/test_compress_example_torch.py0constructor :param cuda: if true, data will be loaded in gpu memory :param seed: seed to use for randomization (to help STRING
HIGHNightlyTests/torch/models/mnist_torch_model.py0constructor :param cuda: if true, data will be loaded in gpu memory :param seed: seed to use for randomization (to help STRING
HIGH…tensions/torch/test/python/models/mnist_torch_model.py0constructor :param cuda: if true, data will be loaded in gpu memory :param seed: seed to use for randomization (to help STRING
HIGH…ions/torch/test/python/v2/models_/mnist_torch_model.py0constructor :param cuda: if true, data will be loaded in gpu memory :param seed: seed to use for randomization (to help STRING
HIGH…h/src/python/aimet_torch/examples/mnist_torch_model.py0constructor :param cuda: if true, data will be loaded in gpu memory :param seed: seed to use for randomization (to help STRING
HIGHNightlyTests/torch/models/mobilenet.py0loads model from a path :param model: :param model_path: :param location: :return: loaded modelSTRING
HIGHTrainingExtensions/onnx/test/python/models/mobilenet.py0loads model from a path :param model: :param model_path: :param location: :return: loaded modelSTRING
HIGH…ainingExtensions/torch/test/python/models/mobilenet.py0loads model from a path :param model: :param model_path: :param location: :return: loaded modelSTRING
HIGH…ons/torch/src/python/aimet_torch/examples/mobilenet.py0loads model from a path :param model: :param model_path: :param location: :return: loaded modelSTRING
HIGHNightlyTests/torch/models/mnist_torch_model.py0overriden implementation for the forward pass :param inputs: one or more inputs for the model :return: output of the forSTRING
HIGH…tensions/torch/test/python/models/mnist_torch_model.py0overriden implementation for the forward pass :param inputs: one or more inputs for the model :return: output of the forSTRING
303 more matches not shown…
Unused Imports599 hits · 564 pts
SeverityFileLineSnippetContext
LOWpackaging/plugins/local/aimet.py4CODE
LOWGenAILab/bench/analysis.py30CODE
LOWGenAILab/bench/yaml_config_parser.py6CODE
LOWGenAILab/bench/yaml_config_parser.py21CODE
LOWGenAILab/bench/recipe_cache.py27CODE
LOWGenAILab/bench/recipe_chain.py6CODE
LOWGenAILab/bench/precision.py6CODE
LOWGenAILab/bench/precision.py11CODE
LOWGenAILab/bench/precision.py22CODE
LOWGenAILab/bench/eval_context.py6CODE
LOWGenAILab/bench/grade_responses.py47CODE
LOWGenAILab/bench/onnx/analysis_passes.py6CODE
LOWGenAILab/bench/onnx/test_genai.py34CODE
LOWGenAILab/bench/onnx/test_genai.py35CODE
LOWGenAILab/bench/onnx/test_genai.py36CODE
LOWGenAILab/bench/onnx/test_genai.py37CODE
LOWGenAILab/bench/onnx/test_genai.py38CODE
LOWGenAILab/bench/torch/test_genai.py18CODE
LOWGenAILab/bench/torch/test_genai.py34CODE
LOWGenAILab/bench/torch/test_genai.py35CODE
LOWGenAILab/bench/utils/generation_utils.py10CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_utils.py6CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_utils.py8CODE
LOWGenAILab/tests/unit/onnx/test_generator_utils.py8CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_instantiation.py10CODE
LOWGenAILab/tests/unit/onnx/test_quantsim_instantiation.py12CODE
LOWGenAILab/tests/unit/torch/test_quantsim_utils.py6CODE
LOWGenAILab/tests/unit/torch/test_quantsim_utils.py8CODE
LOWGenAILab/tests/unit/torch/test_generator_utils.py8CODE
LOW…nAILab/tests/unit/torch/test_quantsim_instantiation.py12CODE
LOW…nAILab/tests/unit/torch/test_quantsim_instantiation.py15CODE
LOW…Lab/tests/unit/models/test_hub_compatible_generator.py7CODE
LOW…Lab/tests/unit/models/test_hub_compatible_generator.py8CODE
LOWGenAILab/tests/unit/models/test_generator.py6CODE
LOWGenAILab/tests/unit/models/test_vlm_generator.py11CODE
LOWGenAILab/tests/unit/models/test_layer_cache.py8CODE
LOWGenAILab/tests/unit/models/test_adaptations.py6CODE
LOWGenAILab/tests/unit/models/test_base.py8CODE
LOWGenAILab/tests/unit/infrastructure/test_main.py7CODE
LOWGenAILab/tests/unit/infrastructure/test_main.py10CODE
LOWGenAILab/tests/unit/helpers/test_model_cache.py6CODE
LOWGenAILab/tests/unit/helpers/test_yaml_config_parser.py6CODE
LOWGenAILab/tests/unit/helpers/test_yaml_config_parser.py7CODE
LOWGenAILab/tests/unit/helpers/test_yaml_config_parser.py12CODE
LOWGenAILab/tests/unit/helpers/test_precision_config.py8CODE
LOWGenAILab/qai_hub_lm/backends/onnx/__init__.py7CODE
LOWGenAILab/qai_hub_lm/backends/onnx/__init__.py10CODE
LOWGenAILab/qai_hub_lm/backends/onnx/__init__.py13CODE
LOWGenAILab/qai_hub_lm/backends/onnx/__init__.py16CODE
LOWGenAILab/qai_hub_lm/backends/onnx/__init__.py20CODE
LOWGenAILab/qai_hub_lm/backends/onnx/llm.py6CODE
LOWGenAILab/qai_hub_lm/backends/onnx/vlm.py6CODE
LOW…AILab/qai_hub_lm/backends/onnx/adaptations/__init__.py4CODE
LOW…Lab/qai_hub_lm/backends/onnx/adaptations/hub_models.py40CODE
LOWGenAILab/qai_hub_lm/backends/torch/gemma4.py12CODE
LOWGenAILab/qai_hub_lm/backends/torch/__init__.py9CODE
LOWGenAILab/qai_hub_lm/backends/torch/__init__.py12CODE
LOWGenAILab/qai_hub_lm/backends/torch/__init__.py15CODE
LOWGenAILab/qai_hub_lm/backends/torch/__init__.py19CODE
LOWGenAILab/qai_hub_lm/backends/torch/__init__.py27CODE
539 more matches not shown…
Empty Error Handlers92 hits · 460 pts
SeverityFileLineSnippetContext
HIGHpackaging/plugins/local/aimet.py186except Exception:CODE
HIGHGenAILab/bench/profiler.py172except ImportError:CODE
HIGHGenAILab/bench/profiler.py184except (subprocess.TimeoutExpired, FileNotFoundError):CODE
HIGHGenAILab/bench/model_cache.py128except Exception:CODE
HIGHGenAILab/bench/model_cache.py245except Exception:CODE
HIGHGenAILab/qai_hub_lm/backends/onnx/vlm.py468except ImportError:CODE
HIGHGenAILab/qai_hub_lm/backends/onnx/vlm.py478except ImportError:CODE
HIGHGenAILab/qai_hub_lm/backends/onnx/vlm.py488except ImportError:CODE
HIGHGenAILab/qai_hub_lm/backends/onnx/quantsim_utils.py79except AttributeError:CODE
HIGHGenAILab/qai_hub_lm/backends/torch/__init__.py28except ImportError:CODE
HIGHGenAILab/qai_hub_lm/backends/torch/vlm.py222except ImportError:CODE
HIGHGenAILab/qai_hub_lm/backends/torch/vlm.py232except ImportError:CODE
HIGHGenAILab/qai_hub_lm/models/utils/compat.py42except (ImportError, AttributeError):CODE
HIGHGenAILab/qai_hub_lm/models/utils/rope_embedding.py42except ImportError:CODE
HIGHGenAILab/qai_hub_lm/models/utils/rope_embedding.py51except ImportError:CODE
HIGHGenAILab/qai_hub_lm/models/utils/rope_embedding.py60except ImportError:CODE
HIGHGenAILab/qai_hub_lm/models/utils/rope_embedding.py69except ImportError:CODE
HIGHscripts/all/build_and_test.py349except Exception:CODE
HIGHscripts/all/build_and_test.py281except Exception:CODE
HIGHscripts/all/build_and_test.py316except Exception:CODE
HIGHscripts/all/util.py69except Exception:CODE
HIGHAIMETRegression/suite_runner.py352except ImportError:CODE
HIGHAIMETRegression/features/onnx/_common.py277except (OSError, PermissionError):CODE
HIGHAIMETRegression/features/torch/quantsim_runner.py148except NotImplementedError:CODE
HIGHAIMETRegression/features/torch/_common.py111except (TypeError, ValueError):CODE
HIGHAIMETRegression/features/torch/_common.py167except ImportError:CODE
HIGHAIMETRegression/features/torch/_common.py175except ImportError:CODE
HIGHAIMETRegression/features/torch/_common.py183except ImportError:CODE
HIGHAIMETRegression/features/torch/_common.py191except ImportError:CODE
HIGHAIMETRegression/features/torch/_common.py199except ImportError:CODE
HIGHAIMETRegression/features/torch/_common.py214except ImportError:CODE
HIGHAIMETRegression/features/torch/_common.py224except ImportError:CODE
HIGHAIMETRegression/features/torch/_common.py245except ImportError:CODE
HIGHAIMETRegression/features/torch/_common.py254except ImportError:CODE
HIGHAIMETRegression/features/torch/_common.py264except (ImportError, ModuleNotFoundError):CODE
HIGHAIMETRegression/features/torch/_common.py300except (ImportError, ModuleNotFoundError):CODE
HIGHAIMETRegression/features/torch/utils.py153except ImportError:CODE
HIGHAIMETRegression/features/torch/utils.py192except ImportError:CODE
HIGHAIMETRegression/features/torch/utils.py144except Exception:CODE
HIGHAIMETRegression/features/torch/utils.py181except Exception:CODE
HIGHAIMETRegression/models/ai_hub_loader.py84except TypeError:CODE
HIGHAIMETRegression/workflow/utils.py102except:CODE
HIGHAIMETRegression/workflow/utils.py112except:CODE
HIGHAIMETRegression/workflow/utils.py140except:CODE
HIGHAIMETRegression/evaluation/eval_qnn.py52except Exception:CODE
HIGHAIMETRegression/evaluation/eval_qnn.py67except Exception:CODE
HIGHAIMETRegression/evaluation/eval_qnn.py236except Exception:CODE
HIGHAIMETRegression/evaluation/eval_qnn.py226except Exception:CODE
HIGHAIMETRegression/evaluation/eval_torch.py143except NotImplementedError:CODE
HIGHAIMETRegression/evaluation/metrics_utils.py128except Exception:CODE
HIGHAIMETRegression/evaluation/metrics_utils.py336except pynvml.NVMLError:CODE
HIGHAIMETRegression/evaluation/metrics_utils.py412except Exception:CODE
HIGHNightlyTests/onnx/test_quantsim.py21except (ImportError, OSError):CODE
HIGHNightlyTests/onnx/test_rnn_quantsim.py21except (ImportError, OSError):CODE
HIGH…ions/onnx/test/python/test_llm_topology_integration.py152except (AttributeError, TypeError):CODE
HIGH…/onnx/src/python/aimet_onnx/adascale/onnx2torch_ext.py43except (RuntimeError, defs.SchemaError):CODE
HIGH…/onnx/src/python/aimet_onnx/adascale/onnx2torch_ext.py158except KeyError:CODE
HIGH…/onnx/src/python/aimet_onnx/adascale/onnx2torch_ext.py216except KeyError:CODE
HIGHTrainingExtensions/torch/test/python/test_utils.py609except:CODE
HIGHTrainingExtensions/torch/test/python/test_utils.py653except:CODE
32 more matches not shown…
Self-Referential Comments113 hits · 346 pts
SeverityFileLineSnippetContext
MEDIUMGenAILab/bench/torch/example_custom_script.py90 # Create a generator object to accurately simulate inference with static graph constraints while maintaining theCOMMENT
MEDIUM…nAILab/tests/unit/torch/test_quantsim_instantiation.py27 # Create a module hierarchy that mimics a real modelCOMMENT
MEDIUMGenAILab/qai_hub_lm/backends/onnx/export_utils.py395 # Create the checkpoint directory if it does not exist.COMMENT
MEDIUMDocs/snippets/onnx/apply_seqmse.py74# Create the QuantizationSimModelCOMMENT
MEDIUMDocs/snippets/torch/apply_qwlora.py135# Create a QuantizationSimModelCOMMENT
MEDIUMExamples/onnx/quantize.py220 # Create a generator object to accurately simulate inference with static graph constraints while maintaining theCOMMENT
MEDIUMExamples/torch/quantize.py215 # Create a generator object to accurately simulate inference with static graph constraints while maintaining theCOMMENT
MEDIUMExamples/torch/evaluate.py210 # Create a generator object to accurately simulate inference with static graph constraints while maintaining theCOMMENT
MEDIUM…ples/torch/quantization/qat_range_learning_ddp_eval.py179 # Create an instance of DDP in order to perform distributed evalCOMMENT
MEDIUM…tization/qat_range_learning_ddp_training_lightining.py217 # Define the trainer here.COMMENT
MEDIUMExamples/torch/v2/quickstart_guide.py108# Create a modelCOMMENT
MEDIUMAIMETRegression/configs/_defaults.yaml3# This file defines default settings inherited by all tests.COMMENT
MEDIUMTrainingExtensions/onnx/test/python/test_quantsim.py1693 # Create a new quantsim modelCOMMENT
MEDIUMTrainingExtensions/onnx/test/python/test_quantsim.py2140 # Create a model with very high total activation memory usageCOMMENT
MEDIUMTrainingExtensions/onnx/test/python/test_quantsim.py4307 # Create an identical QuantizationSimModelCOMMENT
MEDIUM…ingExtensions/onnx/test/python/test_mixed_precision.py498 # Create an accuracy listCOMMENT
MEDIUM…ingExtensions/onnx/test/python/test_mixed_precision.py592 # Create an accuracy listCOMMENT
MEDIUM…ningExtensions/onnx/test/python/test_qc_quantize_op.py1953 # Create a new per-tensor quantizerCOMMENT
MEDIUM⚡…iningExtensions/onnx/test/python/test_libquant_info.py98 # Create a BlockTensorQuantizerCOMMENT
MEDIUMTrainingExtensions/onnx/test/python/test_adascale.py1327 # Create a copy of the weights before applying AdaScaleCOMMENT
MEDIUM…Extensions/onnx/test/python/models/test_models_onnx.py50 # Create the initializer tensor for the weights.COMMENT
MEDIUM…Extensions/onnx/test/python/models/test_models_onnx.py99 # Create the initializer tensor for the weights.COMMENT
MEDIUM…Extensions/onnx/test/python/models/test_models_onnx.py158 # Create the model (ModelProto)COMMENT
MEDIUM…Extensions/onnx/test/python/models/test_models_onnx.py195 # Create the initializer tensor for the weights.COMMENT
MEDIUM…Extensions/onnx/test/python/models/test_models_onnx.py244 # Create the initializer tensor for the weights.COMMENT
MEDIUM…Extensions/onnx/test/python/models/test_models_onnx.py307 # Create the model (ModelProto)COMMENT
MEDIUM⚡…Extensions/onnx/test/python/models/models_for_tests.py2998 # Define the fixed shape input tensorCOMMENT
MEDIUM⚡…Extensions/onnx/test/python/models/models_for_tests.py3006 # Define the constant 1D vector to be added to the inputCOMMENT
MEDIUM⚡…Extensions/onnx/test/python/models/models_for_tests.py3012 # Define the weights for both matmulsCOMMENT
MEDIUM⚡…Extensions/onnx/test/python/models/models_for_tests.py3020 # Define the Add nodeCOMMENT
MEDIUM⚡…Extensions/onnx/test/python/models/models_for_tests.py3028 # Define the MatMul nodesCOMMENT
MEDIUM⚡…Extensions/onnx/test/python/models/models_for_tests.py3043 # Define the output tensorsCOMMENT
MEDIUM⚡…Extensions/onnx/test/python/models/models_for_tests.py3051 # Create the graphCOMMENT
MEDIUM⚡…Extensions/onnx/test/python/models/models_for_tests.py3060 # Create the modelCOMMENT
MEDIUM…rc/python/aimet_onnx/experimental/lora/prepare_lora.py1360 # Create a new initializer with unique name (use full module_pathCOMMENT
MEDIUM…ython/aimet_onnx/analysis/quant_stats_visualization.py757 # Defining the default values of plotting parametersSTRING
MEDIUM⚡…ython/aimet_onnx/analysis/quant_stats_visualization.py789 # Defining the table objects and name filter viewsSTRING
MEDIUM⚡…ython/aimet_onnx/analysis/quant_stats_visualization.py795 # Defining a hover functionality to see layer details on hovering on the marker points and selectionsSTRING
MEDIUM⚡…ython/aimet_onnx/analysis/quant_stats_visualization.py800 # Creating the input widgetsSTRING
MEDIUM…ython/aimet_onnx/analysis/quant_stats_visualization.py812 # Define the formattingSTRING
MEDIUM…onnx/src/python/aimet_onnx/sequential_mse/transform.py138 # Create a new input tensor with symbolic dimensions and same nameCOMMENT
MEDIUM…x/src/python/aimet_onnx/adascale/adascale_optimizer.py502 ] # Create a new tensorCODE
MEDIUM…x/src/python/aimet_onnx/adascale/adascale_optimizer.py571 ] # Create a new tensorCODE
MEDIUMTrainingExtensions/torch/test/python/test_utils.py542 # Create a model with a layer with multi-outputsCOMMENT
MEDIUM…Extensions/torch/test/python/test_comp_ratio_select.py197 # Create a layer databaseCOMMENT
MEDIUMTrainingExtensions/torch/test/python/test_weight_svd.py219 # Create a layer databaseCOMMENT
MEDIUM…ainingExtensions/torch/test/python/test_spatial_svd.py152 # Create a layer databaseCOMMENT
MEDIUM…ainingExtensions/torch/test/python/test_spatial_svd.py198 # Create a layer databaseCOMMENT
MEDIUM…ngExtensions/torch/test/python/test_channel_pruning.py784 # Create a layer databaseCOMMENT
MEDIUM…ngExtensions/torch/test/python/test_channel_pruning.py831 # Create a layer databaseCOMMENT
MEDIUM…ngExtensions/torch/test/python/test_channel_pruning.py895 # Create a layer databaseCOMMENT
MEDIUM…ngExtensions/torch/test/python/test_channel_pruning.py952 # Create a layer databaseCOMMENT
MEDIUM…ngExtensions/torch/test/python/test_cost_calculator.py323 # Create a list of tuples of (layer, comp_ratio)COMMENT
MEDIUM…ngExtensions/torch/test/python/test_cost_calculator.py348 # Create a list of tuples of (layer, comp_ratio)COMMENT
MEDIUM…ngExtensions/torch/test/python/test_cost_calculator.py364 # Create a list of tuples of (layer, comp_ratio)COMMENT
MEDIUM…ngExtensions/torch/test/python/test_cost_calculator.py435 # Create a list of tuples of (layer, comp_ratio)COMMENT
MEDIUM⚡…ngExtensions/torch/test/python/test_cost_calculator.py464 # Create a list of tuples of (layer, comp_ratio)COMMENT
MEDIUM⚡…ngExtensions/torch/test/python/test_cost_calculator.py474 # Create the Input channel prunerCOMMENT
MEDIUM⚡…ions/torch/test/python/experimental/test_transforms.py50 # Create a diagonal matrix with positive singular valuesCOMMENT
MEDIUM…ions/torch/test/python/experimental/test_transforms.py172 # Create a matrix transform opCOMMENT
53 more matches not shown…
Deep Nesting405 hits · 338 pts
SeverityFileLineSnippetContext
LOWpackaging/plugins/local/aimet.py87CODE
LOWGenAILab/__main__.py339CODE
LOWGenAILab/bench/metrics.py2486CODE
LOWGenAILab/bench/yaml_config_parser.py451CODE
LOWGenAILab/bench/yaml_config_parser.py562CODE
LOWGenAILab/bench/yaml_config_parser.py668CODE
LOWGenAILab/bench/recipe_cache.py76CODE
LOWGenAILab/bench/recipe_cache.py417CODE
LOWGenAILab/bench/recipe_cache.py446CODE
LOWGenAILab/bench/recipe_chain.py24CODE
LOWGenAILab/bench/precision.py243CODE
LOWGenAILab/bench/onnx/quant_recipes.py79CODE
LOWGenAILab/bench/torch/test_genai.py40CODE
LOWGenAILab/tests/unit/models/test_components.py276CODE
LOWGenAILab/tests/unit/schema/test_import_closure.py40CODE
LOWGenAILab/qai_hub_lm/backends/onnx/vlm.py66CODE
LOWGenAILab/qai_hub_lm/backends/onnx/quantsim_utils.py164CODE
LOW…AILab/qai_hub_lm/backends/onnx/torch_onnx_interface.py64CODE
LOWGenAILab/qai_hub_lm/backends/onnx/generator_utils.py147CODE
LOWGenAILab/qai_hub_lm/backends/torch/gemma4.py163CODE
LOWGenAILab/qai_hub_lm/backends/torch/gemma4.py185CODE
LOWGenAILab/qai_hub_lm/backends/torch/vlm.py50CODE
LOWGenAILab/qai_hub_lm/backends/torch/generator_utils.py57CODE
LOWGenAILab/qai_hub_lm/backends/torch/generator_utils.py42CODE
LOWGenAILab/qai_hub_lm/models/qwen3_vl.py385CODE
LOWGenAILab/qai_hub_lm/models/generator.py444CODE
LOWGenAILab/qai_hub_lm/models/generator.py1145CODE
LOWGenAILab/qai_hub_lm/schema/precision.py188CODE
LOWGenAILab/qai_hub_lm/schema/recipe.py227CODE
LOWGenAILab/qai_hub_lm/schema/recipe.py253CODE
LOWGenAILab/qai_hub_lm/transforms/exportable_moe.py496CODE
LOWGenAILab/qai_hub_lm/transforms/exportable_moe.py503CODE
LOWscripts/all/build_and_test.py1240CODE
LOWscripts/all/build_and_test.py247CODE
LOWscripts/all/build_and_test.py356CODE
LOWAIMETRegression/suite_runner.py103CODE
LOWAIMETRegression/baseline_comparison.py996CODE
LOWAIMETRegression/baseline_comparison.py376CODE
LOWAIMETRegression/runner.py130CODE
LOWAIMETRegression/runner.py337CODE
LOWAIMETRegression/runner.py747CODE
LOWAIMETRegression/features/onnx/_common.py246CODE
LOWAIMETRegression/features/onnx/mixed_precision_runner.py67CODE
LOW…METRegression/features/torch/mixed_precision_runner.py103CODE
LOWAIMETRegression/features/torch/utils.py91CODE
LOWAIMETRegression/features/torch/utils.py158CODE
LOWAIMETRegression/workflow/summary.py83CODE
LOWAIMETRegression/workflow/utils.py87CODE
LOWAIMETRegression/workflow/utils.py166CODE
LOWAIMETRegression/evaluation/eval_qnn.py171CODE
LOWAIMETRegression/evaluation/eval_qnn.py246CODE
LOWAIMETRegression/evaluation/eval_torch.py64CODE
LOWAIMETRegression/evaluation/metrics_utils.py216CODE
LOWAIMETRegression/evaluation/metrics_utils.py319CODE
LOWAIMETRegression/evaluation/metrics_utils.py217CODE
LOWAIMETRegression/evaluation/metrics_utils.py348CODE
LOWNightlyTests/onnx/test_mixed_precision.py157CODE
LOWNightlyTests/torch/dependencies.py120CODE
LOWNightlyTests/torch/models/mobilenet.py206CODE
LOWNightlyTests/torch/models/mobilenet.py279CODE
345 more matches not shown…
Over-Commented Block171 hits · 151 pts
SeverityFileLineSnippetContext
LOWpackaging/INSTALL.txt1# ==================================================================================COMMENT
LOWpackaging/NOTICE.txt61COMMENT
LOWpackaging/NOTICE.txt81// distribution.COMMENT
LOWpackaging/NOTICE.txt101#COMMENT
LOWpackaging/NOTICE.txt121# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTCOMMENT
LOWpackaging/NOTICE.txt141// in the documentation and/or other materials provided with theCOMMENT
LOWpackaging/NOTICE.txt161// Copyright 2008, Google Inc.COMMENT
LOWpackaging/NOTICE.txt181// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTCOMMENT
LOWpackaging/NOTICE.txt201// * Redistributions in binary form must reproduce the aboveCOMMENT
LOWpackaging/NOTICE.txt221=================================================================================COMMENT
LOWpackaging/NOTICE.txt281//COMMENT
LOWpackaging/NOTICE.txt301// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTCOMMENT
LOWpackaging/convert_wheel_format.sh1#!/bin/bashCOMMENT
LOW…ions/DlQuantization/test/TestQuantizationFunctions.cpp1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOW…izations/DlQuantization/test/test_quantization_lib.hpp1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOW…ions/DlQuantization/src/PercentileEncodingAnalyzer.cpp1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOW…delOptimizations/DlQuantization/src/math_functions.cpp1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOW…delOptimizations/DlQuantization/src/trim_functions.hpp1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOW…delOptimizations/DlQuantization/src/trim_functions.cpp1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOW…elOptimizations/DlQuantization/src/TensorQuantizer.cpp1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOW…izations/DlQuantization/src/MinMaxEncodingAnalyzer.cpp1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOW…ptimizations/DlQuantization/src/quantization_utils.cpp1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOWGenAILab/bench/yaml_config_parser.py701 #COMMENT
LOWGenAILab/bench/onnx/__init__.py1# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOWGenAILab/bench/onnx/quant_recipes.py321 num_batches: int = 32,COMMENT
LOWGenAILab/bench/onnx/test_genai.py121 audio_frames=audio_frames,COMMENT
LOWGenAILab/bench/utils/__init__.py1# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOWGenAILab/bench/prompts/calibration_prompts.yaml1# Hand-curated seed prompts for SELF-GENERATED CALIBRATION data.COMMENT
LOWGenAILab/bench/prompts/multimodal_prompts.yaml1# Prompts for evaluating quantized VLM generation quality.COMMENT
LOWGenAILab/tests/__init__.py1# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOWGenAILab/tests/integration/__init__.py1# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOWGenAILab/qai_hub_lm/__init__.py1# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOWGenAILab/qai_hub_lm/models/__init__.py1# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOWGenAILab/qai_hub_lm/models/qwen3_5.py1# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOWGenAILab/qai_hub_lm/models/components.py61 # --- input-encoder only -------------------------------------------------COMMENT
LOWGenAILab/qai_hub_lm/models/utils/compat.py1# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOWGenAILab/qai_hub_lm/models/utils/__init__.py1# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.COMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py201 g = g * maskCOMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py601COMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py621# * Run them AFTER quantsim export. They delete and rewrite nodes; runningCOMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py641# Everything else depends on this producing genuinely static shapes.COMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py661# 3. Re-run shape inference, then constant-fold (pass 1).COMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py681# consume. They remove no arithmetic (the MAC count is unchanged; the ops areCOMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py701# and ~14 elementwise ops per layer computing nothing, for 44 MACs of realCOMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py721#COMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py741# cannot reach the Mul. State that precondition explicitly in the pass -- it isCOMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py761#COMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py781# for free from a backend.COMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py801# Appendix A -- The conv roll is NOT a graph rewriteCOMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py821# hardened, both specializations : 625 nodesCOMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py841# ===========================================================================COMMENT
LOW…b/qai_hub_lm/transforms/exportable_linear_attention.py861# on a small fixture graph. They are specified here only because this is whereCOMMENT
LOWGenAILab/qai_hub_lm/transforms/expert_subselection.py221# each running whichever expert is selected (``ElementWiseMux`` over theCOMMENT
LOWGenAILab/qai_hub_lm/transforms/expert_subselection.py241# with a ``force_all`` switch and an input mask. passes 4-5COMMENT
LOWGenAILab/qai_hub_lm/transforms/expert_subselection.py261# ``pkg.torch.onnx.name_scopes`` metadata (128/128 on the dense block), soCOMMENT
LOWGenAILab/qai_hub_lm/transforms/expert_subselection.py281# P0 The subselect chain (ConstantOfShape, ScatterElements, masking Mul)COMMENT
LOWGenAILab/qai_hub_lm/transforms/expert_subselection.py301# per slot is open (A2) -- no pass can fix that.COMMENT
LOWGenAILab/qai_hub_lm/transforms/expert_subselection.py321# ``ORT_ENABLE_BASIC``, with the same warning as linear attention: notCOMMENT
LOWGenAILab/qai_hub_lm/transforms/expert_subselection.py341# WHAT. Inside the ``gate`` scope, the chain is the Softmax output's ReduceMaxCOMMENT
LOWGenAILab/qai_hub_lm/transforms/expert_subselection.py361# For Qwen3-/Qwen3.5-MoE the indices come from a TopK over the expert axis, soCOMMENT
111 more matches not shown…
Redundant / Tautological Comments81 hits · 126 pts
SeverityFileLineSnippetContext
LOWpackaging/plugins/local/aimet.py61 # Check if ARM64 is specified in CMAKE_ARGS or if running natively on ARM64COMMENT
LOWGenAILab/bench/profiler.py437 # Check if the file existsCOMMENT
LOWGenAILab/bench/profiler.py439 # Open the file and load the existing dataCOMMENT
LOWDocs/legacy/torch_code_examples/mixed_precision.py87# Set clean_start to False to start from an existing cacheCOMMENT
LOWDocs/legacy/torch_code_examples/mixed_precision.py88# Set allowed_accuracy_drop to 0.9 to export the 90% drop point in pareto listCOMMENT
LOWscripts/posix/install_macos_deps.sh18# Check if Homebrew is installedCOMMENT
LOW⚡scripts/all/build_and_test.py357 # Check if we can skip the buildCOMMENT
LOWscripts/all/build_and_test.py617 # Check if we can skip wheel installationCOMMENT
LOWscripts/kube/dev.sh85 # Check if it's a pod name or a workflow nameCOMMENT
LOWscripts/kube/launch_pod.sh109 # Check if workflow has failedCOMMENT
LOW.github/workflows/dco.yml34 # Check if author is indeed signing off commitCOMMENT
LOWAIMETRegression/features/onnx/lite_mp_runner.py89 # Check if already a valid symbolCOMMENT
LOW…METRegression/features/torch/mixed_precision_runner.py202 # Check if user requested unsupported candidatesCOMMENT
LOWAIMETRegression/features/torch/utils.py110 # Check if already patched by another mechanismCOMMENT
LOWAIMETRegression/models/ai_hub_loader.py77 # Check if it's a class and subclass of BaseModelCOMMENT
LOWNightlyTests/torch/dependencies.py35# Check if we need to generate the .pth for CPU or GPU. If not, returnCOMMENT
LOW⚡TrainingExtensions/onnx/test/python/test_quantsim.py290 # Check if qc quantize op node is correctly connect to the corresponding onnx nodeCOMMENT
LOW⚡TrainingExtensions/onnx/test/python/test_quantsim.py297 # Check if op_mode is set correctly for each qc quantize op nodeCOMMENT
LOW…ingExtensions/onnx/test/python/test_mixed_precision.py253 # Check if quantizer group is set to maximum bitwidthCOMMENT
LOW…ingExtensions/onnx/test/python/test_mixed_precision.py320 # Check if accuracy list is in descending orderCOMMENT
LOW…ningExtensions/onnx/test/python/test_quant_analyzer.py194 # Check if it is exported to correct html file.COMMENT
LOW…ningExtensions/onnx/test/python/test_quant_analyzer.py231 # Check if it is exported to correct html file.COMMENT
LOW…ningExtensions/onnx/test/python/test_quant_analyzer.py438 # Check if it is exported to correct html file.COMMENT
LOW⚡…ons/onnx/test/python/test_graph_passes/test_rmsnorm.py43 # Check if quantization is disabled for RMSNormalization intermediate op outputsCOMMENT
LOW⚡…ons/onnx/test/python/test_graph_passes/test_rmsnorm.py45 # Check if quantization is enabled for last op of RMSNormalization sub-graphCOMMENT
LOW⚡…ons/onnx/test/python/test_graph_passes/test_rmsnorm.py48 # Check if quantization is disabled for RMSNormalization sub-graph constant ops except weightCOMMENT
LOW⚡…s/onnx/test/python/test_graph_passes/test_layernorm.py35 # Check if quantization is disabled for LayerNormalization intermediate op outputsCOMMENT
LOW⚡…s/onnx/test/python/test_graph_passes/test_layernorm.py37 # Check if quantization is enabled for last op of LayerNormalization sub-graphCOMMENT
LOW⚡…s/onnx/test/python/test_graph_passes/test_layernorm.py40 # Check if quantization is disabled for LayerNormalization sub-graph constant ops except layernorm.weightCOMMENT
LOW⚡…s/onnx/test/python/test_graph_passes/test_layernorm.py68 # Check if quantization is disabled for LayerNormalization intermediate op outputsCOMMENT
LOW⚡…s/onnx/test/python/test_graph_passes/test_layernorm.py70 # Check if quantization is enabled for last op of LayerNormalization sub-graphCOMMENT
LOW⚡…s/onnx/test/python/test_graph_passes/test_layernorm.py72 # Check if quantization is disabled for LayerNormalization sub-graph constant ops except layernorm.weightCOMMENT
LOW…iningExtensions/onnx/src/python/aimet_onnx/quantsim.py4616 # Check if encoding corresponds to non-quantizable tensor typeCOMMENT
LOW…iningExtensions/onnx/src/python/aimet_onnx/quantsim.py886 # Check if the tensor is param to certain ops (eg: Resize)STRING
LOW…iningExtensions/onnx/src/python/aimet_onnx/quantsim.py906 # Check if the tensor is output of certain opsSTRING
LOW…iningExtensions/onnx/src/python/aimet_onnx/quantsim.py1196 # Check if weights are constantSTRING
LOWTrainingExtensions/onnx/src/python/aimet_onnx/utils.py177 # Check if other node takes input from removed nodeCOMMENT
LOWTrainingExtensions/onnx/src/python/aimet_onnx/utils.py434 # Check if the weight is transposed before entering the nodeCOMMENT
LOW…tensions/onnx/src/python/aimet_onnx/batch_norm_fold.py220 # Check if this is actually a fully connected layer or a dynamic matmulCOMMENT
LOW…x/src/python/aimet_onnx/adaround/adaround_optimizer.py97 # Check if we can cache intermediate activation data.COMMENT
LOW…rc/python/aimet_onnx/experimental/lora/prepare_lora.py431 # Check if input comes from an Identity whose input is an initializerCOMMENT
LOW…rc/python/aimet_onnx/experimental/lora/prepare_lora.py471 # Check if this Mul's inputs include a scale (Constant or init)COMMENT
LOW…rc/python/aimet_onnx/experimental/lora/prepare_lora.py1503 # Check if scale is already a named initializerCOMMENT
LOW…rc/python/aimet_onnx/experimental/lora/peft_to_onnx.py806 # Check if this input comes from a Constant nodeCOMMENT
LOW…/python/aimet_onnx/experimental/lora/lora_configure.py632 # Check if this input comes from a Constant nodeCOMMENT
LOW…x/src/python/aimet_onnx/graph_passes/passes/rmsnorm.py68 # Check if weights are present, skipping any Cast ops (e.g. fromCOMMENT
LOW…src/python/aimet_onnx/graph_passes/passes/layernorm.py93 # Check if affine_transform is set.COMMENT
LOW…nnx/graph_passes/cleanup/remove_duplicate_qdq_pairs.py121 # Check if Q1/DQ1 params match Q2/DQ2 paramsCOMMENT
LOW…onnx/src/python/aimet_onnx/sequential_mse/transform.py475 # Check if this is a Transpose opCOMMENT
LOW…onnx/src/python/aimet_onnx/sequential_mse/transform.py491 # Check if input is a leaf initializer (unquantized case)COMMENT
LOW…xtensions/torch/test/python/test_layer_output_utils.py168 # Check if every layer-name has corresponding onnx layer-output-nameCOMMENT
LOW⚡…tensions/torch/test/python/v1/test_quantizer_groups.py39 # Check if there is one parent and one childCOMMENT
LOW…/torch/test/python/experimental/test_let_quantizers.py244 # Set scale to 2COMMENT
LOW…sions/torch/test/python/experimental/test_omniquant.py342 # Set model to lora modelCOMMENT
LOW⚡…xtensions/torch/test/python/v2/test_mixed_precision.py397 # Check if accuracy list is in descending orderCOMMENT
LOW⚡…xtensions/torch/test/python/v2/test_mixed_precision.py435 # Check if parsed list is sortedCOMMENT
LOW…xtensions/torch/test/python/v2/test_mixed_precision.py287 # Check if quantizer group is set to maximum bitwidthCOMMENT
LOW…xtensions/torch/test/python/v2/test_mixed_precision.py327 # Check if accuracy list is in descending orderCOMMENT
LOW…xtensions/torch/test/python/v2/test_mixed_precision.py357 # Check if quantizer group is set to maximum bitwidthCOMMENT
LOW…xtensions/torch/test/python/v2/test_mixed_precision.py476 # Check if parsed list is sortedCOMMENT
21 more matches not shown…
Hallucination Indicators8 hits · 105 pts
SeverityFileLineSnippetContext
CRITICAL…iningExtensions/onnx/src/python/aimet_onnx/quantsim.py1570 self.model.model.graph.node.extend(sim_nodes)STRING
CRITICAL⚡…ensions/torch/test/python/v2/ab_test/test_quantizer.py1036 grad_single_gpu = sim.model.conv1.weight.grad.clone().detach()CODE
CRITICAL⚡…ensions/torch/test/python/v2/ab_test/test_quantizer.py1041 weight_multi_gpu = sim.model.module.conv1.weight.clone().detach()CODE
CRITICAL⚡…ensions/torch/test/python/v2/ab_test/test_quantizer.py1045 grad_multi_gpu = sim.model.module.conv1.weight.grad.clone().detach()CODE
CRITICAL⚡…ensions/torch/test/python/v2/ab_test/test_quantizer.py2994 grad_single_gpu = sim.model.conv1.weight.grad.clone().detach()CODE
CRITICAL⚡…ensions/torch/test/python/v2/ab_test/test_quantizer.py2999 weight_multi_gpu = sim.model.module.conv1.weight.clone().detach()CODE
CRITICAL⚡…ensions/torch/test/python/v2/ab_test/test_quantizer.py3003 grad_multi_gpu = sim.model.module.conv1.weight.grad.clone().detach()CODE
CRITICAL…rc/python/aimet_torch/spinquant/spinquant_optimizer.py759 visual_encoder.patch_embed.proj.weight.data.clone()CODE
Cross-Language Confusion22 hits · 95 pts
SeverityFileLineSnippetContext
HIGH⚡GenAILab/bench/metrics.py609 """KL divergence KL(P_fp || P_quant) over answer choice distributions."""STRING
HIGH⚡GenAILab/bench/metrics.py619 """Reverse KL divergence KL(P_quant || P_fp) over answer choice distributions."""STRING
HIGHGenAILab/bench/metrics.py653 """KL divergence KL(P_fp || P_quant) over MMLU answer choice distributions."""STRING
HIGHGenAILab/bench/metrics.py658 """Reverse KL divergence KL(P_quant || P_fp) over MMLU answer choice distributions."""STRING
HIGHGenAILab/bench/metrics.py866 """KL divergence KL(P_fp || P_quant) over MMMU answer choice distributions."""STRING
HIGHGenAILab/bench/metrics.py871 """Reverse KL divergence KL(P_quant || P_fp) over MMMU answer choice distributions."""STRING
HIGHGenAILab/bench/metrics.py1048 """KL divergence KL(P_fp || P_quant) over ERQA answer choice distributions."""STRING
HIGHGenAILab/bench/metrics.py1053 """Reverse KL divergence KL(P_quant || P_fp) over ERQA answer choice distributions."""STRING
HIGH…mples/torch/quantization/zero_bit_quantization_demo.py56 - Compression ratio: infinity (original_size / 0 = undefined, but trust us)STRING
HIGH…ython/aimet_onnx/analysis/quant_stats_visualization.py522 if (Math.abs(value) < 1e-3 || Math.abs(value) > 1e5) {CODE
HIGH…ython/aimet_onnx/analysis/quant_stats_visualization.py550 if (Math.abs(value) < 1e-3 || Math.abs(value) > 1e5) {CODE
HIGH…h/src/python/aimet_torch/quantization/affine/_utils.py69 undefined, & \text{otherwise}CODE
HIGH…h/src/python/aimet_torch/quantization/affine/_utils.py130 undefined, & \text{otherwise}CODE
HIGH…torch/visualization_tools/quant_stats_visualization.py843 if (Math.abs(value) < 1e-3 || Math.abs(value) > 1e5) {CODE
HIGH…torch/visualization_tools/quant_stats_visualization.py871 if (Math.abs(value) < 1e-3 || Math.abs(value) > 1e5) {CODE
HIGH…ningExtensions/common/src/python/_aimet_common/defs.py360 param_dtype: QuantizationDataType = QuantizationDataType.undefined,CODE
HIGH…ensions/common/src/python/_aimet_common/winnow/mask.py750 :param is_null_connectivity: True if op is null connectivity, False otherwiseSTRING
HIGH⚡…common/src/python/_aimet_common/winnow/winnow_utils.py58 "Conv": ConnectivityType.null,CODE
HIGH⚡…common/src/python/_aimet_common/winnow/winnow_utils.py59 "ConvTranspose": ConnectivityType.null,CODE
HIGH⚡…common/src/python/_aimet_common/winnow/winnow_utils.py60 "Linear": ConnectivityType.null,CODE
HIGH⚡…common/src/python/_aimet_common/winnow/winnow_utils.py61 "Gemm": ConnectivityType.null,CODE
HIGH…common/src/python/_aimet_common/winnow/winnow_utils.py91 "index_select": ConnectivityType.null,CODE
Docstring Block Structure17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHAIMETRegression/suite_runner.py54 Load and validate a suite configuration file. Suite files define: - profile: Which runtime profile to use STRING
HIGHAIMETRegression/config_loader.py42 Load and merge configuration from multiple sources. This is the main entry point for config loading. It mergesSTRING
HIGHAIMETRegression/config_loader.py171 List all test names defined in a model configuration. This is useful for: - Discovering what tests exist iSTRING
HIGHAIMETRegression/features/onnx/quantsim_runner.py53 Apply AIMET QuantSim to simulate INT8 quantization on an FP32 ONNX model. QuantSim creates a simulation model STRING
HIGHAIMETRegression/features/onnx/_common.py59 Select available ORT execution providers from a preference list. This function ensures explicit provider selecSTRING
HIGHAIMETRegression/features/onnx/_common.py154 Construct an AIMET QuantizationSimModel from an ONNX file. CRITICAL DESIGN DECISION: This function loads tSTRING
HIGHAIMETRegression/features/onnx/adaround_runner.py137 Apply AdaRound optimization for improved weight quantization. AdaRound optimizes the rounding of weights durinSTRING
HIGHAIMETRegression/features/onnx/mixed_precision_runner.py153 Apply automatic mixed-precision optimization using AIMET's search algorithm. This technique uses AIMET's choosSTRING
HIGHAIMETRegression/features/onnx/lite_mp_runner.py70 Convert configuration value to AIMET's required precision symbol. AIMET's flip_layers_to_higher_precision API STRING
HIGHAIMETRegression/features/onnx/lite_mp_runner.py129 Apply Lite Mixed-Precision quantization to an FP32 ONNX model. This technique provides an optimal accuracy-perSTRING
HIGHAIMETRegression/features/torch/_common.py72 Map configuration string to AIMET QuantScheme enum. Args: scheme_str: Scheme name from config (e.g., "STRING
HIGHAIMETRegression/features/torch/adaround_runner.py71 Apply AdaRound optimization for improved weight quantization on PyTorch models. AdaRound optimizes the roundinSTRING
HIGHAIMETRegression/models/ai_hub_loader.py39 Find and return the appropriate model class from a module. QAI Hub Models modules may contain the model class STRING
HIGHAIMETRegression/models/ai_hub_loader.py133 Load a model from QAI Hub Models with its associated dataset and specifications. This is the main entry point STRING
HIGHAIMETRegression/evaluation/metrics_utils.py71 Format duration with automatic unit selection for readability. This function chooses the most appropriate formSTRING
HIGH…iningExtensions/onnx/src/python/aimet_onnx/quantsim.py3202 Returns graph path from a tensor to the "effective" quantizer associated with it (if any). Node Q is tSTRING
HIGH…iningExtensions/onnx/src/python/aimet_onnx/quantsim.py4200 Convert an ONNX model and its AIMET encodings into an ONNX QDQ model. This is a direct translation: the encodiSTRING
Excessive Try-Catch Wrapping70 hits · 67 pts
SeverityFileLineSnippetContext
LOWpackaging/plugins/local/aimet.py186 except Exception:CODE
LOW⚡GenAILab/bench/yaml_config_parser.py535 except Exception as e:CODE
LOWGenAILab/bench/model_cache.py128 except Exception:CODE
LOWGenAILab/bench/model_cache.py245 except Exception:CODE
LOW⚡GenAILab/qai_hub_lm/backends/onnx/export_utils.py40 except Exception:CODE
LOW⚡scripts/all/build_and_test.py349 except Exception:CODE
LOW⚡scripts/all/build_and_test.py351 except Exception as e:CODE
LOWscripts/all/build_and_test.py281 except Exception:CODE
LOWscripts/all/build_and_test.py283 except Exception as e:CODE
LOWscripts/all/build_and_test.py316 except Exception:CODE
LOWscripts/all/build_and_test.py318 except Exception as e:CODE
LOWscripts/all/build_and_test.py1334 except Exception as e:CODE
LOWscripts/all/util.py47 except Exception:CODE
LOWscripts/all/util.py69 except Exception:CODE
LOWscripts/all/util.py101 except Exception:CODE
LOWscripts/all/util.py117 except Exception:CODE
LOWAIMETRegression/suite_runner.py269 except Exception as e:STRING
LOWAIMETRegression/suite_runner.py276 except Exception as e:STRING
LOWAIMETRegression/suite_runner.py374 except Exception as e:STRING
LOWAIMETRegression/runner.py108 except Exception as e:CODE
LOWAIMETRegression/runner.py191 except Exception as e:CODE
LOWAIMETRegression/runner.py211 except Exception as e2:CODE
LOWAIMETRegression/runner.py227 except Exception as e:CODE
LOWAIMETRegression/runner.py568 except Exception as e:CODE
LOWAIMETRegression/runner.py645 except Exception as e:CODE
LOWAIMETRegression/runner.py678 except Exception as e:CODE
LOWAIMETRegression/runner.py814 except Exception as e:CODE
LOWAIMETRegression/features/torch/_common.py277 except Exception as error: # pylint: disable=broad-exceptCODE
LOWAIMETRegression/features/torch/_common.py291 except Exception as error: # pylint: disable=broad-exceptCODE
LOW…METRegression/features/torch/mixed_precision_runner.py152 except Exception as e:CODE
LOW…METRegression/features/torch/mixed_precision_runner.py317 except Exception as e:CODE
LOWAIMETRegression/features/torch/utils.py144 except Exception:CODE
LOWAIMETRegression/features/torch/utils.py181 except Exception:CODE
LOWAIMETRegression/workflow/utils.py228 except Exception as e:STRING
LOWAIMETRegression/workflow/artifacts.py528 except Exception as e:CODE
LOWAIMETRegression/workflow/artifacts.py592 except Exception as e:CODE
LOWAIMETRegression/evaluation/eval_qnn.py52 except Exception:CODE
LOWAIMETRegression/evaluation/eval_qnn.py67 except Exception:CODE
LOWAIMETRegression/evaluation/eval_qnn.py88 except Exception:CODE
LOWAIMETRegression/evaluation/eval_qnn.py226 except Exception:CODE
LOWAIMETRegression/evaluation/eval_qnn.py236 except Exception:CODE
LOWAIMETRegression/evaluation/eval_qnn.py287 except Exception as e:CODE
LOWAIMETRegression/evaluation/eval_qnn.py299 except Exception as e:CODE
LOWAIMETRegression/evaluation/metrics_utils.py128 except Exception:CODE
LOWAIMETRegression/evaluation/metrics_utils.py159 except Exception:CODE
LOWAIMETRegression/evaluation/metrics_utils.py166 except Exception:CODE
LOWAIMETRegression/evaluation/metrics_utils.py249 except Exception:CODE
LOWAIMETRegression/evaluation/metrics_utils.py339 except Exception:CODE
LOWAIMETRegression/evaluation/metrics_utils.py381 except Exception:CODE
LOWAIMETRegression/evaluation/metrics_utils.py412 except Exception:CODE
LOWAIMETRegression/report/report_writer.py114 except Exception:CODE
LOWTrainingExtensions/onnx/test/python/test_lora.py1788 except Exception:CODE
LOW…iningExtensions/onnx/src/python/aimet_onnx/quantsim.py4148 except Exception as e:CODE
LOWTrainingExtensions/onnx/src/python/aimet_onnx/utils.py666 except Exception as e: # pylint: disable=broad-exceptCODE
LOWTrainingExtensions/onnx/src/python/aimet_onnx/utils.py757 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…onnx/src/python/aimet_onnx/adascale/model_converter.py41 except Exception:CODE
LOW…nsions/torch/src/python/aimet_torch/deepspeed_utils.py96except Exception as e:CODE
LOWTrainingExtensions/torch/src/python/aimet_torch/onnx.py191 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOW…ainingExtensions/torch/src/python/aimet_torch/utils.py1260 except Exception:CODE
LOW…ions/torch/src/python/aimet_torch/blockwise_sampler.py88 except Exception as e:CODE
10 more matches not shown…
Structural Annotation Overuse40 hits · 65 pts
SeverityFileLineSnippetContext
LOW⚡GenAILab/bench/onnx/quant_recipes.py285 # Step 1: Collect calibration inputs in FP mode.COMMENT
LOW⚡GenAILab/bench/onnx/quant_recipes.py288 # Step 2: Pre-compute param encodings with a real input so thatCOMMENT
LOW⚡GenAILab/bench/onnx/quant_recipes.py295 # Step 3: Optimize weight quantization parameters to minimize layer-wise MSE.COMMENT
LOW⚡GenAILab/bench/onnx/quant_recipes.py326 # Step 1: Collect calibration inputs in FP mode.COMMENT
LOW⚡GenAILab/bench/onnx/quant_recipes.py329 # Step 2: Pre-compute param encodings with a real input (sameCOMMENT
LOW⚡GenAILab/bench/onnx/quant_recipes.py333 # Step 3: Optimize quantization parameters using AdaScale. The decoder-stackCOMMENT
LOW⚡GenAILab/bench/torch/quant_recipes.py246 # Step 1: Collect calibration inputs in FP mode.COMMENT
LOW⚡GenAILab/bench/torch/quant_recipes.py251 # Step 2: Optimize weight quantization parameters to minimize layer-wise MSE.COMMENT
LOW⚡GenAILab/bench/torch/quant_recipes.py273 # Step 1: Collect calibration inputs in FP mode.COMMENT
LOW⚡GenAILab/bench/torch/quant_recipes.py278 # Step 2: Optimize quantization parameters using AdaScale.COMMENT
LOWscripts/README.md76# Step 1: Set up environment without installing AIMETCOMMENT
LOWscripts/README.md79# Step 2: Build from source (interactive — prompts for variant selection)COMMENT
LOWAIMETRegression/config_loader.py82 # Step 1: Load defaults (foundation for all configs)COMMENT
LOWAIMETRegression/config_loader.py96 # Step 2: Merge profile (if specified)COMMENT
LOWAIMETRegression/config_loader.py119 # Step 3: Load model configurationCOMMENT
LOWAIMETRegression/config_loader.py150 # Step 4: Find and merge specific test configurationCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py108 # Step 1: Find LoRA patterns via topology-based graph traversalCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py116 # Step 2: Validate against adapter config target_modulesCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py137 # Step 3: Split shared initializers (dynamo=False shares zero-init tensors)COMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py140 # Step 4: Rename inits to PEFT convention + insert Transpose for shape compatCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py176 # Step 5: Convert scale Constants to named initializersCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py179 # Step 6: Trace LoRA activationsCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py182 # Step 7: Build lora_names structureCOMMENT
LOW⚡…et_onnx/experimental/lora/lora_adapter_quantization.py946 # Step 3: Set quantizer encodingsCOMMENT
LOW⚡…et_onnx/experimental/lora/lora_adapter_quantization.py949 # Step 4: Set bitwidthsCOMMENT
LOW⚡…et_onnx/experimental/lora/lora_adapter_quantization.py952 # Step 5: Rebuild session to pick up new initializer dataCOMMENT
LOW…et_onnx/experimental/lora/lora_adapter_quantization.py514 # Step 1: Multi-adapter name insertion (lora_A.weight → lora_A.{adapter}.weight)COMMENT
LOW…et_onnx/experimental/lora/lora_adapter_quantization.py528 # Step 2: If ONNX param names provided, match by suffix for anyCOMMENT
LOW…et_onnx/experimental/lora/lora_adapter_quantization.py573 # Step 3: Transpose PEFT-convention weights to MatMul conventionCOMMENT
LOW…et_onnx/experimental/lora/lora_adapter_quantization.py904 # Step 1: Remap safetensors keys → ONNX init names (with transposition)COMMENT
LOW…et_onnx/experimental/lora/lora_adapter_quantization.py915 # Step 2: Update initializer dataCOMMENT
LOW⚡…thon/aimet_onnx/experimental/lora/lora_graph_passes.py163 # Step 1: Identify the "Add" nodes where the 1st adapter branches merge back into the main graphCOMMENT
LOW⚡…thon/aimet_onnx/experimental/lora/lora_graph_passes.py177 # Step 2: Identify all LoRA adapter chainsCOMMENT
LOW⚡…thon/aimet_onnx/experimental/lora/lora_graph_passes.py188 # Step 3: Create a dictionary of Add nodes in the chain to the full chain for quick lookupCOMMENT
LOW⚡…thon/aimet_onnx/experimental/lora/lora_graph_passes.py196 # Step 4: Create a map of attach point to the corresponding adapter chainsCOMMENT
LOW…ensions/torch/test/python/v2/quantsim/test_quantsim.py1277 # NOTE: This module will ALWAYS fail when forward is called,COMMENT
LOW⚡…/src/python/_aimet_common/amp/convert_ops_reduction.py715 # # Step 1: get a list of conversion costs in phase 2 solutionCOMMENT
LOW⚡…/src/python/_aimet_common/amp/convert_ops_reduction.py724 # Step 2: sort the conversion costs listCOMMENT
LOW⚡…/src/python/_aimet_common/amp/convert_ops_reduction.py728 # Step 3: compute cumulative sums for the sorted conversion costs and determine the thresholdCOMMENT
LOW…/src/python/_aimet_common/amp/convert_ops_reduction.py739 # Step 4: Enforce the constraintCOMMENT
Verbosity Indicators37 hits · 61 pts
SeverityFileLineSnippetContext
LOW⚡GenAILab/bench/onnx/quant_recipes.py285 # Step 1: Collect calibration inputs in FP mode.COMMENT
LOW⚡GenAILab/bench/onnx/quant_recipes.py288 # Step 2: Pre-compute param encodings with a real input so thatCOMMENT
LOW⚡GenAILab/bench/onnx/quant_recipes.py295 # Step 3: Optimize weight quantization parameters to minimize layer-wise MSE.COMMENT
LOW⚡GenAILab/bench/onnx/quant_recipes.py326 # Step 1: Collect calibration inputs in FP mode.COMMENT
LOW⚡GenAILab/bench/onnx/quant_recipes.py329 # Step 2: Pre-compute param encodings with a real input (sameCOMMENT
LOW⚡GenAILab/bench/onnx/quant_recipes.py333 # Step 3: Optimize quantization parameters using AdaScale. The decoder-stackCOMMENT
LOW⚡GenAILab/bench/torch/quant_recipes.py246 # Step 1: Collect calibration inputs in FP mode.COMMENT
LOW⚡GenAILab/bench/torch/quant_recipes.py251 # Step 2: Optimize weight quantization parameters to minimize layer-wise MSE.COMMENT
LOW⚡GenAILab/bench/torch/quant_recipes.py273 # Step 1: Collect calibration inputs in FP mode.COMMENT
LOW⚡GenAILab/bench/torch/quant_recipes.py278 # Step 2: Optimize quantization parameters using AdaScale.COMMENT
LOWAIMETRegression/config_loader.py82 # Step 1: Load defaults (foundation for all configs)COMMENT
LOWAIMETRegression/config_loader.py96 # Step 2: Merge profile (if specified)COMMENT
LOWAIMETRegression/config_loader.py119 # Step 3: Load model configurationCOMMENT
LOWAIMETRegression/config_loader.py150 # Step 4: Find and merge specific test configurationCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py108 # Step 1: Find LoRA patterns via topology-based graph traversalCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py116 # Step 2: Validate against adapter config target_modulesCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py137 # Step 3: Split shared initializers (dynamo=False shares zero-init tensors)COMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py140 # Step 4: Rename inits to PEFT convention + insert Transpose for shape compatCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py176 # Step 5: Convert scale Constants to named initializersCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py179 # Step 6: Trace LoRA activationsCOMMENT
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py182 # Step 7: Build lora_names structureCOMMENT
LOW⚡…et_onnx/experimental/lora/lora_adapter_quantization.py946 # Step 3: Set quantizer encodingsCOMMENT
LOW⚡…et_onnx/experimental/lora/lora_adapter_quantization.py949 # Step 4: Set bitwidthsCOMMENT
LOW⚡…et_onnx/experimental/lora/lora_adapter_quantization.py952 # Step 5: Rebuild session to pick up new initializer dataCOMMENT
LOW…et_onnx/experimental/lora/lora_adapter_quantization.py514 # Step 1: Multi-adapter name insertion (lora_A.weight → lora_A.{adapter}.weight)COMMENT
LOW…et_onnx/experimental/lora/lora_adapter_quantization.py528 # Step 2: If ONNX param names provided, match by suffix for anyCOMMENT
LOW…et_onnx/experimental/lora/lora_adapter_quantization.py573 # Step 3: Transpose PEFT-convention weights to MatMul conventionCOMMENT
LOW…et_onnx/experimental/lora/lora_adapter_quantization.py904 # Step 1: Remap safetensors keys → ONNX init names (with transposition)COMMENT
LOW…et_onnx/experimental/lora/lora_adapter_quantization.py915 # Step 2: Update initializer dataCOMMENT
LOW⚡…thon/aimet_onnx/experimental/lora/lora_graph_passes.py163 # Step 1: Identify the "Add" nodes where the 1st adapter branches merge back into the main graphCOMMENT
LOW⚡…thon/aimet_onnx/experimental/lora/lora_graph_passes.py177 # Step 2: Identify all LoRA adapter chainsCOMMENT
LOW⚡…thon/aimet_onnx/experimental/lora/lora_graph_passes.py188 # Step 3: Create a dictionary of Add nodes in the chain to the full chain for quick lookupCOMMENT
LOW⚡…thon/aimet_onnx/experimental/lora/lora_graph_passes.py196 # Step 4: Create a map of attach point to the corresponding adapter chainsCOMMENT
LOW⚡…/src/python/_aimet_common/amp/convert_ops_reduction.py715 # # Step 1: get a list of conversion costs in phase 2 solutionCOMMENT
LOW⚡…/src/python/_aimet_common/amp/convert_ops_reduction.py724 # Step 2: sort the conversion costs listCOMMENT
LOW⚡…/src/python/_aimet_common/amp/convert_ops_reduction.py728 # Step 3: compute cumulative sums for the sorted conversion costs and determine the thresholdCOMMENT
LOW…/src/python/_aimet_common/amp/convert_ops_reduction.py739 # Step 4: Enforce the constraintCOMMENT
Modern Structural Boilerplate52 hits · 52 pts
SeverityFileLineSnippetContext
LOWpackaging/plugins/local/aimet.py14__all__ = ["dynamic_metadata"]CODE
LOWGenAILab/qai_hub_lm/backends/torch/gemma4.py285 def _set_qdq(owner, kind: str, idx: int, scale, num_bits: int) -> None:CODE
LOWGenAILab/qai_hub_lm/models/components.py32__all__ = [CODE
LOWGenAILab/qai_hub_lm/schema/__init__.py64__all__ = [CODE
LOWscripts/all/build_and_test.py71logger = logging.getLogger(__name__)CODE
LOWAIMETRegression/features/onnx/_common.py45__all__ = [CODE
LOWAIMETRegression/features/torch/_common.py48__all__ = [CODE
LOWAIMETRegression/workflow/__init__.py16__all__ = [CODE
LOWAIMETRegression/workflow/artifacts.py533 def _set_github_output(name: str, value: str) -> None:CODE
LOWAIMETRegression/evaluation/calibration.py29__all__ = [CODE
LOW…iningExtensions/onnx/src/python/aimet_onnx/ir_utils.py33def set_static_tensor(value: onnx_ir.Value, array: np.ndarray) -> None:CODE
LOW⚡…rc/python/aimet_onnx/experimental/lora/prepare_lora.py51logger = logging.getLogger(__name__)CODE
LOW…rc/python/aimet_onnx/experimental/lora/peft_to_onnx.py19logger = logging.getLogger(__name__)CODE
LOW…nx/src/python/aimet_onnx/experimental/lora/__init__.py94__all__ = [CODE
LOW⚡…et_onnx/experimental/lora/lora_adapter_quantization.py22logger = logging.getLogger(__name__)CODE
LOW⚡…/python/aimet_onnx/experimental/lora/lora_configure.py24logger = logging.getLogger(__name__)CODE
LOW…thon/aimet_onnx/experimental/lora/lora_graph_passes.py21logger = logging.getLogger(__name__)CODE
LOW…x/src/python/aimet_onnx/llm_topology/norm_detection.py263__all__ = [CODE
LOW…x/src/python/aimet_onnx/llm_topology/topology_types.py230__all__ = [CODE
LOW…ns/onnx/src/python/aimet_onnx/llm_topology/__init__.py27__all__ = [CODE
LOW…ns/onnx/src/python/aimet_onnx/llm_topology/topology.py993__all__ = [CODE
LOW…src/python/aimet_onnx/llm_topology/block_boundaries.py292__all__ = [CODE
LOW…onnx/src/python/aimet_onnx/llm_topology/layer_roles.py124__all__ = [CODE
LOW…/onnx/src/python/aimet_onnx/llm_topology/ir_adapter.py366__all__ = [CODE
LOW…onnx/src/python/aimet_onnx/llm_topology/hf_patterns.py682__all__ = [CODE
LOW…nnx/src/python/aimet_onnx/llm_configurator/__init__.py8__all__ = ["configure_llm"]CODE
LOW…sions/onnx/src/python/aimet_onnx/spinquant/__init__.py7__all__ = [CODE
LOW…nnx/src/python/aimet_onnx/spinquant/passes/__init__.py27__all__ = [CODE
LOW…src/python/aimet_onnx/spinquant/transforms/__init__.py28__all__ = [CODE
LOW…met_onnx/spinquant/model_analysis/attention_anchors.py407__all__ = ["BlockR3Anchors", "find_r3_anchors"]CODE
LOW…python/aimet_onnx/spinquant/model_analysis/__init__.py26__all__ = [CODE
LOW…nsions/onnx/src/python/aimet_onnx/analysis/__init__.py22__all__ = [CODE
LOW…nsions/onnx/src/python/aimet_onnx/adascale/__init__.py13__all__ = [CODE
LOW…ningExtensions/torch/src/python/aimet_torch/seq_mse.py35__all__ = [CODE
LOW…nsions/torch/src/python/aimet_torch/batch_norm_fold.py19__all__ = [CODE
LOW…rch/src/python/aimet_torch/adaround/adaround_weight.py25__all__ = [CODE
LOW…sions/torch/src/python/aimet_torch/experimental/pgs.py7__all__ = [CODE
LOW…h/src/python/aimet_torch/experimental/export/export.py24__all__ = ["export"]CODE
LOW…ons/torch/src/python/aimet_torch/spinquant/__init__.py8__all__ = ["apply_spinquant"]CODE
LOW…ningExtensions/torch/src/python/aimet_torch/nn/lora.py10__all__ = [CODE
LOW…ions/torch/src/python/aimet_torch/quantsim/quantsim.py77__all__ = [CODE
LOW…ns/torch/src/python/aimet_torch/quantization/tensor.py20__all__ = [CODE
LOW…src/python/aimet_torch/quantization/affine/encoding.py30__all__ = ["AffineEncoding", "VectorEncoding", "GroupedBlockEncoding"]CODE
LOW…rc/python/aimet_torch/quantization/affine/quantizer.py61__all__ = [CODE
LOW…thon/aimet_torch/quantization/affine/backends/utils.py117__all__ = ["set_backend", "get_backend", "add_backend"]CODE
LOW…/src/python/aimet_torch/quantization/float/encoding.py21__all__ = ["FloatEncoding"]CODE
LOW…src/python/aimet_torch/quantization/float/quantizer.py41__all__ = ["QuantizeDequantize", "FloatQuantizeDequantize"]CODE
LOW…h/src/python/aimet_torch/quantization/base/encoding.py18__all__ = ["EncodingBase"]CODE
LOW…/src/python/aimet_torch/quantization/base/quantizer.py27__all__ = ["QuantizerBase"]CODE
LOW…ions/torch/src/python/aimet_torch/adascale/__init__.py9__all__ = ["apply_adascale"]CODE
LOW…rch/src/python/aimet_torch/_base/nn/modules/_spconv.py10__all__ = [CODE
LOW…s/common/src/python/_aimet_common/hadamard/__init__.py17__all__ = [CODE
AI Slop Vocabulary18 hits · 41 pts
SeverityFileLineSnippetContext
LOWpackaging/plugins/local/aimet.py199 # For PyPi releases, just return the version without appending the variant stringCOMMENT
MEDIUM…Lab/bench/prompts/text_prompts_autograder_harness.yaml1# Autograder harness configuration for scoring LLM prompt responses.COMMENT
MEDIUM…nch/prompts/multimodal_prompts_autograder_harness.yaml1# Autograder harness configuration for scoring VLM prompt responses.COMMENT
LOW⚡GenAILab/qai_hub_lm/backends/onnx/export_utils.py51 # user has passed in a local path, verify that .onnx file and .config files exist and just return the pathCOMMENT
MEDIUM…b/qai_hub_lm/transforms/exportable_linear_attention.py616# specialization. That does not weaken the single-graph paradigm: bothCOMMENT
LOWDocs/snippets/onnx/apply_litemp.py114# If CUDA acceleration is not available, simply use providers = ["CPUExecutionProvider"]COMMENT
MEDIUMExamples/torch/compression/channel_pruning.py36# This script utilize AIMET to perform channel pruning compression (0.5% ratio) on a resnet18COMMENT
MEDIUMExamples/torch/compression/weight_svd.py35# This script utilize AIMET do perform weight svd compression (50% ratio) on a resnet18COMMENT
MEDIUMExamples/torch/compression/spatial_svd_cp.py39# This script utilize AIMET do perform spatial svd and channel pruning compression on a resnet18COMMENT
MEDIUMExamples/torch/compression/spatial_svd.py35# This script utilize AIMET do perform spatial svd compression (50% compression ratio) on aCOMMENT
MEDIUM…rc/python/aimet_onnx/experimental/lora/peft_to_onnx.py107 # Build suffix → PEFT key index for robust matching.COMMENT
MEDIUM…sions/torch/test/python/experimental/test_spinquant.py164) # hidden_size 192 will utilize hadamard matrix size 12 with factor 16CODE
LOW…nsions/torch/src/python/aimet_torch/data_subsampler.py158 # just return the input and output data as it is. No sub sampling neededCOMMENT
MEDIUM…ainingExtensions/torch/src/python/aimet_torch/utils.py1936 # Stage 1: robust median seed.COMMENT
MEDIUM…ainingExtensions/torch/src/python/aimet_torch/utils.py1903 """Recover the per-block scale in two stages: a robust median seed followed bySTRING
MEDIUM…ions/torch/src/python/aimet_torch/blockwise_sampler.py317 """Exception raised in order to stop forward execution through the model. Holds module input data."""STRING
LOW…gExtensions/torch/src/python/aimet_torch/onnx_utils.py208 # 2) If the next token don't have "." then simply add current token to the updated_tokens list.COMMENT
LOW⚡…s/common/src/python/_aimet_common/comp_ratio_select.py210 # If the user already passed in a previously saved eval scores dict, we just use thatCOMMENT
AI Structural Patterns37 hits · 35 pts
SeverityFileLineSnippetContext
LOWGenAILab/bench/metrics.py2121CODE
LOWGenAILab/qai_hub_lm/models/internvl.py173CODE
LOWGenAILab/qai_hub_lm/models/gemma4.py370CODE
LOWGenAILab/qai_hub_lm/models/gemma4.py402CODE
LOWGenAILab/qai_hub_lm/models/generator.py1015CODE
LOWGenAILab/qai_hub_lm/models/generator.py1319CODE
LOWGenAILab/qai_hub_lm/models/generator.py1451CODE
LOWGenAILab/qai_hub_lm/models/gemma3.py108CODE
LOWGenAILab/qai_hub_lm/models/gemma3.py135CODE
LOWscripts/all/build_and_test.py214CODE
LOWTrainingExtensions/onnx/test/python/test_lora.py1989CODE
LOW…tensions/onnx/test/python/models/transformer_blocks.py496CODE
LOW…tensions/onnx/test/python/models/transformer_blocks.py552CODE
LOW…iningExtensions/onnx/src/python/aimet_onnx/quantsim.py207CODE
LOW…iningExtensions/onnx/src/python/aimet_onnx/quantsim.py426CODE
LOW…/src/python/aimet_onnx/graph_passes/fusions/rmsnorm.py139CODE
LOW…/src/python/aimet_onnx/graph_passes/fusions/rmsnorm.py255CODE
LOW…rc/python/aimet_onnx/graph_passes/fusions/layernorm.py166CODE
LOW…c/python/aimet_onnx/graph_passes/fusions/matmul_add.py126CODE
LOW…sions/onnx/src/python/aimet_onnx/adascale/quantizer.py236CODE
LOW…Extensions/torch/test/python/test_blockwise_sampler.py33CODE
LOW…sions/torch/test/python/experimental/test_omniquant.py173CODE
LOW…ningExtensions/torch/test/python/models/test_models.py1196CODE
LOW…ningExtensions/torch/test/python/models/test_models.py1220CODE
LOW…Extensions/torch/test/python/v2/models_/test_models.py1077CODE
LOW…Extensions/torch/test/python/v2/models_/test_models.py1101CODE
LOWTrainingExtensions/torch/src/python/aimet_torch/peft.py92CODE
LOW…tensions/torch/src/python/aimet_torch/nn/true_quant.py1354CODE
LOW…tensions/torch/src/python/aimet_torch/nn/true_quant.py1397CODE
LOW…c/python/aimet_torch/quantization/encoding_analyzer.py921CODE
LOW…src/python/aimet_torch/quantization/float/quantizer.py105CODE
LOW…orch/src/python/aimet_torch/_base/nn/modules/custom.py329CODE
LOW…orch/src/python/aimet_torch/_base/nn/modules/custom.py350CODE
LOW…orch/src/python/aimet_torch/_base/nn/modules/custom.py666CODE
LOW…orch/src/python/aimet_torch/_base/nn/modules/custom.py765CODE
LOW…rch/src/python/aimet_torch/_base/nn/modules/_spconv.py103CODE
LOW…rch/src/python/aimet_torch/_base/nn/modules/_spconv.py194CODE
Fake / Example Data11 hits · 10 pts
SeverityFileLineSnippetContext
LOW…gacy/onnx_code_examples/quant_analyzer_code_example.py77 dummy_data = np.random.randn(*input_shape).astype(np.float32)CODE
LOW…gacy/onnx_code_examples/quant_analyzer_code_example.py78 dummy_input = {'input': dummy_data}CODE
LOWTrainingExtensions/onnx/test/python/test_quantsim.py8213 name="placeholder",CODE
LOW…sions/torch/test/python/v2/experimental/test_export.py174 assert inp_node.op == "placeholder"CODE
LOW…on/aimet_torch/experimental/export/exported_program.py82 if node.op == "placeholder"CODE
LOW…on/aimet_torch/experimental/export/exported_program.py335 if node.op != "placeholder":CODE
LOW…h/src/python/aimet_torch/experimental/export/export.py362 and q_dq_node.all_input_nodes[1].op != "placeholder"CODE
LOW…h/src/python/aimet_torch/experimental/export/export.py376 and q_dq_node.all_input_nodes[2].op != "placeholder"CODE
LOW…h/src/python/aimet_torch/experimental/export/_utils.py151 for input_node in ep.graph.find_nodes(op="placeholder", sort=False)CODE
LOW…h/src/python/aimet_torch/experimental/export/_utils.py176 op="placeholder",CODE
LOW…h/src/python/aimet_torch/experimental/export/_utils.py216 if node.op == "placeholder":CODE
Example Usage Blocks6 hits · 8 pts
SeverityFileLineSnippetContext
LOWpackaging/convert_wheel_format.sh9# Usage:COMMENT
LOWscripts/all/download_genai_checkpoint.sh7# Usage:COMMENT
LOWscripts/all/resolve_genai_config.sh10# Usage:COMMENT
LOWscripts/environment/setup_genai.sh8# Usage:COMMENT
LOWscripts/environment/build_aimet.sh7# Usage:COMMENT
LOW.github/actions/genai-test/action.yml13# Usage:COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…ns/torch/src/python/aimet_torch/meta/connectedgraph.py1589 # In this version of the Winnower, the Product class represents the following entities in a model.COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMGenAILab/bench/datasets.py684 # Build user prompt with optional few-shot examplesCOMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWTrainingExtensions/onnx/test/python/test_quantsim.py6426 # TODO: Add tests with GroupNormalizationCOMMENT
LOW…hon/aimet_torch/experimental/quantsim/_export_utils.py20# TODO: implement direct 1.0.0 export for v1 quantsim so this function can be removed.COMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…ions/onnx/test/python/test_llm_topology_integration.py500# architecture, make sure to extend the role module names in this dict.COMMENT
LOW…ions/torch/src/python/aimet_torch/quantsim/quantsim.py755 # In case of any exception, make sure to restoreCOMMENT
Synthetic Comment Markers1 hit · 2 pts
SeverityFileLineSnippetContext
HIGH…Lab/qai_hub_lm/backends/onnx/adaptations/hub_models.py4"""ONNX-specific model adaptations to use checkpoints generated by AI Hub Models."""STRING
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOW…ingExtensions/common/src/python/_aimet_common/utils.py396 >>> def do_something():STRING