AI Slop Code RIsk Monitor

vllm-project/llm-compressor

State-of-the-art LLM compression, built for production inference with vLLM

21.5 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for vllm-project/llm-compressor, a Python project with 3,864 GitHub stars. SynthScan examined 84,397 lines of code across 809 source files, recording 1256 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 21.5 (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.

21.5
Adjusted Signal
21.5
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
3.9K
Stars
Python
Language
84.4K
Lines of Code
809
Files
1.3K
Pattern Hits
2026-10-12
Scan Date
0.04
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 39.7/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 16.0/100 · LOW

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

Agent Over-Engineering Ratio 53.3/100 · HIGH

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

PR Review Velocity Impact 64.7/100 · HIGH

Which changes need focused human review? 1256 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 10HIGH 26MEDIUM 140LOW 1080

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 1256 distinct pattern matches across 22 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 Identifiers599 hits · 598 pts
SeverityFileLineSnippetContext
LOWtests/testing_utils.py381def requires_compute_capability(major: int, minor: int = 0) -> pytest.MarkDecorator:CODE
LOWtests/test_testing_utils.py7def test_requires_compute_capability_skips_non_cuda_accelerator():CODE
LOWtests/sparsity/test_sparse.py34def test_module_quantization_info():CODE
LOWtests/sparsity/test_sparse.py67def test_module_sparsity_info():CODE
LOWtests/sparsity/test_module.py25def test_expand_special_targets():CODE
LOWtests/sparsity/test_module.py69def test_build_parameterized_layers(simple_model):CODE
LOWtests/sparsity/test_helpers.py37def test_tensors_to_device_cpu(tensors):CODE
LOWtests/sparsity/test_helpers.py72def test_tensors_to_device_cuda(tensors):CODE
LOWtests/sparsity/test_helpers.py106def test_tensors_to_precision_full_cpu(tensors):CODE
LOWtests/sparsity/test_helpers.py140def test_tensors_to_precision_half_cpu(tensors):CODE
LOWtests/sparsity/test_helpers.py177def test_tensors_to_precision_full_cuda(tensors):CODE
LOWtests/sparsity/test_helpers.py215def test_tensors_to_precision_half_cuda(tensors):CODE
LOWtests/sparsity/test_helpers.py360def test_tensors_module_forward(module, tensors, check_feat_lab_inp):CODE
LOWtests/sparsity/test_helpers.py424def test_tensors_module_forward_cuda(module, tensors, check_feat_lab_inp):CODE
LOWtests/sparsity/test_helpers.py497def test_tensor_sparsity_cuda(tensor, dim, expected_sparsity):CODE
LOWtests/sparsity/test_sparsity_helpers.py56def test_reduce_targets_and_ignores_into_lists(CODE
LOWtests/sparsity/test_sparsity_helpers.py66def _assert_list_contents_match(list1, list2):CODE
LOWtests/sparsity/constant/test_pytorch.py144def test_constant_pruning_pytorch_is_registered():CODE
LOWtests/sparsity/sparsegpt/test_consecutive_runs.py26def test_consecutive_runs_small(config, tmp_path):CODE
LOWtests/sparsity/sparsegpt/test_consecutive_runs.py40def test_consecutive_runs_gpu(config, tmp_path):CODE
LOW…sparsity/sparsegpt/test_mask_structure_preservation.py50def test_mask_structure_preserved(args_to_test, tmp_path):CODE
LOWtests/sparsity/sparsegpt/test_oneshot_with_modifier.py15def test_oneshot_with_modifier_object(tmp_path, config):CODE
LOWtests/sparsity/sparsegpt/test_base.py11def test_sparse_gpt_is_registered():CODE
LOWtests/sparsity/sparsegpt/test_base.py36def test_invalid_layerwise_recipes_raise_exceptions(sparsity, targets):CODE
LOWtests/sparsity/sparsegpt/test_base.py50def test_successful_layerwise_recipe():CODE
LOWtests/sparsity/sparsegpt/test_sparsegpt_completion.py61def test_oneshot_completion_gpu(config, tmp_path):CODE
LOWtests/sparsity/sparsegpt/test_sparsegpt_owl.py15def test_infer_owl_layer_sparsity():CODE
LOWtests/unit/test_logger.py14def test_default_logger_settings(capsys):CODE
LOWtests/unit/test_logger.py26def test_configure_logger_console_settings(capsys):CODE
LOWtests/unit/test_logger.py38def test_configure_logger_file_settings(tmp_path):CODE
LOWtests/unit/test_logger.py52def test_configure_logger_console_and_file(capsys, tmp_path):CODE
LOWtests/unit/test_logger.py72def test_environment_variable_override(monkeypatch, capsys, tmp_path):CODE
LOWtests/unit/test_logger.py95def test_environment_variable_disable_logging(monkeypatch, capsys):CODE
LOWtests/unit/test_logger.py108def test_environment_variable_enable_logging(monkeypatch, capsys):CODE
LOWtests/unit/core/test_state.py7def test_state_initialization():CODE
LOWtests/unit/core/test_state.py20def test_modified_state_initialization():CODE
LOWtests/unit/core/test_state.py61def test_state_sparsification_ready():CODE
LOWtests/tools/test_lint_cuda.py17def test_detect_torch_cuda_is_available():CODE
LOWtests/tools/test_lint_cuda.py36def test_detect_torch_cuda_stream():STRING
LOWtests/tools/test_lint_cuda.py54def test_detect_torch_cuda_event():STRING
LOWtests/tools/test_lint_cuda.py72def test_detect_torch_cuda_context_manager():STRING
LOWtests/tools/test_lint_cuda.py92def test_detect_memory_functions():STRING
LOWtests/tools/test_lint_cuda.py126def test_ignore_non_cuda_torch():STRING
LOWtests/tools/test_lint_cuda.py164def test_lint_file_integration():STRING
LOWtests/tools/test_lint_cuda.py185def test_no_duplicate_reports():STRING
LOWtests/llmcompressor/modifiers/conf.py33 def trigger_modifier_for_epochs(self, modifier, num_epochs):CODE
LOW…sts/llmcompressor/modifiers/calibration/test_frozen.py15def test_set_module_for_calibration():CODE
LOW…/llmcompressor/modifiers/calibration/test_lifecycle.py123def test_static_weight_quantization(CODE
LOW…/llmcompressor/modifiers/calibration/test_lifecycle.py219def test_static_activation_quantization(CODE
LOW…/llmcompressor/modifiers/calibration/test_lifecycle.py310def test_static_attention_quantization(CODE
LOW…/llmcompressor/modifiers/calibration/test_observers.py114def test_observer_min_max_vals(name, kwargs, observed, exp_min_vals, exp_max_vals):CODE
LOW…/llmcompressor/modifiers/calibration/test_observers.py134def test_observe_skips_container_modules():CODE
LOW…sor/modifiers/utils/test_update_fused_layer_weights.py80def test_fused_observers_produce_identical_global_scale(module_class, layer_names):CODE
LOW…sor/modifiers/utils/test_update_fused_layer_weights.py132def test_unfused_observers_produce_different_global_scale(module_class, layer_names):CODE
LOW…sor/modifiers/utils/test_update_fused_layer_weights.py159def test_non_tensor_group_not_affected():CODE
LOW…sor/modifiers/utils/test_update_fused_layer_weights.py180def test_fused_recompute_after_weight_change():CODE
LOWtests/llmcompressor/modifiers/utils/test_hooks.py67def test_remove_hooks_parameterized():CODE
LOWtests/llmcompressor/modifiers/utils/test_hooks.py132def test_disable_hooks_composable():CODE
LOW…essor/modifiers/quantization/test_observer_defaults.py4def test_observer_defaults_are_based_on_scheme_location():CODE
LOW…essor/modifiers/quantization/test_observer_defaults.py22def test_scheme_observer_is_preserved():CODE
539 more matches not shown…
Decorative Section Separators108 hits · 396 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/testing_utils.py163 # -------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/testing_utils.py165 # -------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/testing_utils.py171 # -------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/testing_utils.py173 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py208 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py210 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py230 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py232 # -------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/testing_utils.py254 # -------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/testing_utils.py256 # -------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/testing_utils.py266 # -------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/testing_utils.py268 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py201# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py203# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py479# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py481# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py525# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py527# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py682# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py684# ---------------------------------------------------------------------------COMMENT
MEDIUM…essor/transformers/compression/test_compression_ddp.py48# ---------------------------------------------------------------------------COMMENT
MEDIUM…essor/transformers/compression/test_compression_ddp.py50# ---------------------------------------------------------------------------COMMENT
MEDIUM…essor/transformers/compression/test_compression_ddp.py171# ---------------------------------------------------------------------------COMMENT
MEDIUM…essor/transformers/compression/test_compression_ddp.py173# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…essor/transformers/compression/test_compression_ddp.py346# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…essor/transformers/compression/test_compression_ddp.py348# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ansformers/smoothquant/test_smoothquant_distributed.py22# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…ansformers/smoothquant/test_smoothquant_distributed.py24# ---------------------------------------------------------------------------COMMENT
MEDIUM…essor/entrypoints/model_free/test_dynamic_multi_gpu.py84# ── helpers ──────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py57# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py59# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py111# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py113# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py278# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py280# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py322# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py324# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py418# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py420# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py474# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/llmcompressor/observers/test_imatrix.py476# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py14# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py16# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py162# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡docs/scripts/zensical_gen_files.py20# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡docs/scripts/zensical_gen_files.py22# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡docs/scripts/zensical_gen_files.py29# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡docs/scripts/zensical_gen_files.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py45# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py47# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py127# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py129# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py193# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py195# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py428# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py430# ---------------------------------------------------------------------------COMMENT
MEDIUM…es/quantization_w8a8_int8/benchmark_smoothquant_ddp.py30# ---------------------------------------------------------------------------COMMENT
48 more matches not shown…
Unused Imports190 hits · 190 pts
SeverityFileLineSnippetContext
LOWtests/llmcompressor/modifiers/pruning/reap/test_ddp.py12CODE
LOW…essor/transformers/compression/test_compression_ddp.py19CODE
LOW…ansformers/smoothquant/test_smoothquant_distributed.py14CODE
LOWtests/test_timer/__init__.py3CODE
LOWtests/examples/test_example_scripts.py1CODE
LOWbenchmarks/trace_subgraphs/benchmark.py16CODE
LOWsrc/llmcompressor/__init__.py12CODE
LOWsrc/llmcompressor/__init__.py12CODE
LOWsrc/llmcompressor/__init__.py12CODE
LOWsrc/llmcompressor/__init__.py13CODE
LOWsrc/llmcompressor/__init__.py13CODE
LOWsrc/llmcompressor/__init__.py23CODE
LOWsrc/llmcompressor/__init__.py23CODE
LOWsrc/llmcompressor/__init__.py23CODE
LOWsrc/llmcompressor/__init__.py23CODE
LOWsrc/llmcompressor/__init__.py29CODE
LOWsrc/llmcompressor/__init__.py29CODE
LOWsrc/llmcompressor/__init__.py29CODE
LOWsrc/llmcompressor/modifiers/__init__.py10CODE
LOWsrc/llmcompressor/modifiers/__init__.py11CODE
LOWsrc/llmcompressor/modifiers/__init__.py12CODE
LOW…pressor/modifiers/logarithmic_equalization/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/awq/__init__.py40CODE
LOWsrc/llmcompressor/modifiers/awq/__init__.py40CODE
LOWsrc/llmcompressor/modifiers/awq/__init__.py40CODE
LOWsrc/llmcompressor/modifiers/awq/__init__.py40CODE
LOWsrc/llmcompressor/modifiers/awq/__init__.py40CODE
LOWsrc/llmcompressor/modifiers/quantization/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/quantization/__init__.py4CODE
LOW…ressor/modifiers/quantization/group_size_validation.py25CODE
LOW…ressor/modifiers/quantization/quantization/__init__.py3CODE
LOW…ressor/modifiers/quantization/quantization/__init__.py4CODE
LOW…/llmcompressor/modifiers/quantization/gptq/__init__.py11CODE
LOWsrc/llmcompressor/modifiers/pruning/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/pruning/__init__.py4CODE
LOWsrc/llmcompressor/modifiers/pruning/__init__.py5CODE
LOWsrc/llmcompressor/modifiers/pruning/__init__.py6CODE
LOWsrc/llmcompressor/modifiers/pruning/__init__.py7CODE
LOWsrc/llmcompressor/modifiers/pruning/reap/__init__.py3CODE
LOW…compressor/modifiers/pruning/utils/pytorch/__init__.py3CODE
LOW…compressor/modifiers/pruning/utils/pytorch/__init__.py4CODE
LOWsrc/llmcompressor/modifiers/pruning/wanda/__init__.py3CODE
LOW…c/llmcompressor/modifiers/pruning/constant/__init__.py3CODE
LOW…/llmcompressor/modifiers/pruning/magnitude/__init__.py3CODE
LOW…/llmcompressor/modifiers/pruning/sparsegpt/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/autoround/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/autoround/__init__.py4CODE
LOWsrc/llmcompressor/modifiers/qad/__init__.py1CODE
LOWsrc/llmcompressor/modifiers/gptq/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/gptq/__init__.py4CODE
LOWsrc/llmcompressor/modifiers/obcq/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/transform/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/transform/__init__.py4CODE
LOWsrc/llmcompressor/modifiers/transform/__init__.py5CODE
LOWsrc/llmcompressor/modifiers/transform/__init__.py6CODE
LOW…lmcompressor/modifiers/transform/spinquant/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/transform/awq/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/transform/awq/__init__.py4CODE
LOWsrc/llmcompressor/modifiers/transform/awq/__init__.py5CODE
LOWsrc/llmcompressor/modifiers/transform/utils/__init__.py1CODE
130 more matches not shown…
Modern Structural Boilerplate112 hits · 114 pts
SeverityFileLineSnippetContext
LOWtests/test_timer/timer.py9__all__ = ["Timer"]CODE
LOWtests/test_timer/timer_utils.py5__all__ = ["log_time", "get_singleton_manager"]CODE
LOWsrc/llmcompressor/__init__.py15__all__ = [CODE
LOWsrc/llmcompressor/logger.py44__all__ = ["LoggerConfig", "configure_logger", "logger", "configure_distributed_logger"]CODE
LOWsrc/llmcompressor/modifiers/interface.py6__all__ = ["ModifierInterface"]CODE
LOWsrc/llmcompressor/modifiers/modifier.py11__all__ = ["Modifier"]CODE
LOWsrc/llmcompressor/modifiers/__init__.py14__all__ = [CODE
LOWsrc/llmcompressor/modifiers/factory.py6__all__ = ["ModifierFactory"]CODE
LOW…mcompressor/modifiers/logarithmic_equalization/base.py5__all__ = ["LogarithmicEqualizationModifier"]CODE
LOWsrc/llmcompressor/modifiers/awq/__init__.py48__all__ = [CODE
LOWsrc/llmcompressor/modifiers/utils/hooks.py16__all__ = ["HooksMixin"]CODE
LOWsrc/llmcompressor/modifiers/utils/pytorch_helpers.py13__all__ = [CODE
LOW…ressor/modifiers/quantization/group_size_validation.py32__all__ = [CODE
LOWsrc/llmcompressor/modifiers/quantization/calibration.py21__all__ = [CODE
LOW…ompressor/modifiers/quantization/quantization/mixin.py55__all__ = ["QuantizationMixin"]CODE
LOW…compressor/modifiers/quantization/quantization/base.py19__all__ = ["QuantizationModifier"]CODE
LOWsrc/llmcompressor/modifiers/pruning/helpers.py17__all__ = [CODE
LOWsrc/llmcompressor/modifiers/pruning/reap/utils.py27__all__ = [CODE
LOWsrc/llmcompressor/modifiers/pruning/reap/base.py35__all__ = ["REAPPruningModifier"]CODE
LOW…ressor/modifiers/pruning/utils/pytorch/mask_factory.py9__all__ = [CODE
LOW…mpressor/modifiers/pruning/utils/pytorch/layer_mask.py9__all__ = ["LayerParamMasking", "param_mask_name"]CODE
LOWsrc/llmcompressor/modifiers/pruning/wanda/base.py19__all__ = ["WandaPruningModifier"]CODE
LOWsrc/llmcompressor/modifiers/pruning/constant/base.py11__all__ = ["ConstantPruningModifier"]CODE
LOWsrc/llmcompressor/modifiers/pruning/magnitude/base.py21__all__ = ["MagnitudePruningModifier"]CODE
LOW…/llmcompressor/modifiers/pruning/sparsegpt/__init__.py5__all__ = ["SparseGPTModifier"]CODE
LOWsrc/llmcompressor/modifiers/pruning/sparsegpt/base.py21__all__ = ["SparseGPTModifier"]CODE
LOWsrc/llmcompressor/modifiers/autoround/utils.py7__all__ = [CODE
LOWsrc/llmcompressor/modifiers/autoround/base.py38__all__ = ["AutoRoundModifier", "fix_batch_if_needed"]CODE
LOWsrc/llmcompressor/modifiers/qad/__init__.py3__all__ = ["QADModifier"]CODE
LOWsrc/llmcompressor/modifiers/qad/base.py26__all__ = ["QADModifier"]CODE
LOWsrc/llmcompressor/modifiers/gptq/gptq_quantize.py23__all__ = [CODE
LOWsrc/llmcompressor/modifiers/gptq/base.py45__all__ = ["GPTQModifier"]CODE
LOWsrc/llmcompressor/modifiers/obcq/sgpt_base.py7__all__ = ["SparseGPTModifier"]CODE
LOW…pressor/modifiers/transform/spinquant/norm_mappings.py5__all__ = ["infer_norm_mapping_from_model"]CODE
LOW…lmcompressor/modifiers/transform/spinquant/mappings.py5__all__ = ["SpinQuantMapping", "infer_mapping_from_model"]CODE
LOW…compressor/modifiers/transform/awq/dynamic_mappings.py26__all__ = ["AWQ_DYNAMIC_MAPPING_REGISTRY", "get_layer_mappings_from_model"]CODE
LOWsrc/llmcompressor/modifiers/transform/awq/__init__.py7__all__ = [CODE
LOWsrc/llmcompressor/modifiers/transform/awq/base.py52__all__ = ["AWQModifier"]CODE
LOWsrc/llmcompressor/modifiers/transform/awq/base.py281 def _set_resolved_mappings(self, model: Module) -> None:CODE
LOWsrc/llmcompressor/modifiers/transform/awq/base.py389 def _setup_activation_cache_hooks(self) -> None:CODE
LOWsrc/llmcompressor/modifiers/transform/awq/mappings.py5__all__ = [CODE
LOWsrc/llmcompressor/modifiers/transform/utils/__init__.py6__all__ = [CODE
LOWsrc/llmcompressor/modifiers/transform/quip/base.py22__all__ = ["QuIPModifier"]CODE
LOW…or/modifiers/transform/smoothquant/dynamic_mappings.py19__all__ = ["SMOOTHQUANT_DYNAMIC_MAPPING_REGISTRY", "get_layer_mappings_from_model"]CODE
LOW…llmcompressor/modifiers/transform/smoothquant/utils.py6__all__ = [CODE
LOW…/llmcompressor/modifiers/transform/smoothquant/base.py29__all__ = ["SmoothQuantScale", "SmoothQuantMapping", "SmoothQuantModifier"]CODE
LOWsrc/llmcompressor/modifiers/smoothquant/__init__.py23__all__ = ["SmoothQuantModifier"]CODE
LOWsrc/llmcompressor/core/model_layer.py12__all__ = ["ModelParameterizedLayer"]CODE
LOWsrc/llmcompressor/core/session.py19__all__ = [CODE
LOWsrc/llmcompressor/core/__init__.py22__all__ = [CODE
LOWsrc/llmcompressor/core/session_functions.py22__all__ = [CODE
LOWsrc/llmcompressor/core/lifecycle.py17__all__ = ["CompressionLifecycle"]CODE
LOWsrc/llmcompressor/core/state.py15__all__ = ["State", "Data", "Hardware", "ModifiedState"]CODE
LOWsrc/llmcompressor/core/events/event.py15__all__ = [CODE
LOWsrc/llmcompressor/core/events/__init__.py12__all__ = ["Event", "EventType"]CODE
LOWsrc/llmcompressor/recipe/metadata.py13__all__ = [CODE
LOWsrc/llmcompressor/recipe/__init__.py13__all__ = [CODE
LOWsrc/llmcompressor/recipe/recipe.py19__all__ = [CODE
LOWsrc/llmcompressor/pipelines/registry.py14__all__ = ["CalibrationPipeline"]CODE
LOWsrc/llmcompressor/pipelines/data_free/pipeline.py14__all__ = ["DataFreePipeline"]CODE
52 more matches not shown…
Hallucination Indicators10 hits · 100 pts
SeverityFileLineSnippetContext
CRITICALtests/llmcompressor/modifiers/qad/test_teacher.py14from llmcompressor.utils.helpers import DisableQuantizationCODE
CRITICALtests/llmcompressor/modifiers/qad/test_reobserve.py7from llmcompressor.utils.helpers import DisableQuantizationCODE
CRITICALtests/llmcompressor/modifiers/qad/test_base.py24from llmcompressor.utils.helpers import DisableQuantizationCODE
CRITICALsrc/llmcompressor/modifiers/transform/awq/base.py49from llmcompressor.utils.helpers import calibration_forward_contextCODE
CRITICALsrc/llmcompressor/pipelines/sequential/pipeline.py33from llmcompressor.utils.helpers import DisableQuantization, calibration_forward_contextCODE
CRITICALsrc/llmcompressor/pipelines/sequential/helpers.py24from llmcompressor.utils.helpers import calibration_forward_contextCODE
CRITICALsrc/llmcompressor/pipelines/basic/pipeline.py14from llmcompressor.utils.helpers import DisableQuantizationCODE
CRITICALsrc/llmcompressor/utils/dist.py14from compressed_tensors.utils.helpers import deprecatedCODE
CRITICALsrc/llmcompressor/entrypoints/oneshot.py42from llmcompressor.utils.helpers import use_eager_attentionCODE
CRITICAL…ressor/entrypoints/model_free/reindex_fused_weights.py3from compressed_tensors.utils.helpers import deprecatedCODE
Cross-File Repetition17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHexamples/quantization_kv_cache/llama3_fp8_kv_example.py0quant_stage: quant_modifiers: quantizationmodifier: ignore: ["lm_head"] config_groups: group_0: weights: num_bits: 8 typSTRING
HIGHexamples/quantization_kv_cache/phi3.5_fp8_kv_example.py0quant_stage: quant_modifiers: quantizationmodifier: ignore: ["lm_head"] config_groups: group_0: weights: num_bits: 8 typSTRING
HIGHexamples/quantization_kv_cache/README.md0quant_stage: quant_modifiers: quantizationmodifier: ignore: ["lm_head"] config_groups: group_0: weights: num_bits: 8 typSTRING
HIGHexamples/quantization_kv_cache/gemma2_fp8_kv_example.py0quant_stage: quant_modifiers: quantizationmodifier: ignore: ["lm_head"] config_groups: group_0: weights: num_bits: 8 typSTRING
HIGH…compressor/modifiers/quantization/quantization/base.py0finish calibrating by removing observers and calibration hooksSTRING
HIGHsrc/llmcompressor/modifiers/autoround/base.py0finish calibrating by removing observers and calibration hooksSTRING
HIGHsrc/llmcompressor/modifiers/gptq/base.py0finish calibrating by removing observers and calibration hooksSTRING
HIGHsrc/llmcompressor/modifiers/pruning/wanda/base.py0calibration hook used to accumulate the hessian of the input to the module :param module: module being calibrated :paramSTRING
HIGHsrc/llmcompressor/modifiers/pruning/sparsegpt/base.py0calibration hook used to accumulate the hessian of the input to the module :param module: module being calibrated :paramSTRING
HIGHsrc/llmcompressor/modifiers/gptq/base.py0calibration hook used to accumulate the hessian of the input to the module :param module: module being calibrated :paramSTRING
HIGHsrc/llmcompressor/transformers/data/c4.py0text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :parSTRING
HIGHsrc/llmcompressor/transformers/data/open_platypus.py0text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :parSTRING
HIGHsrc/llmcompressor/transformers/data/wikitext.py0text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :parSTRING
HIGHsrc/llmcompressor/transformers/data/ultrachat_200k.py0text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :parSTRING
HIGHsrc/llmcompressor/transformers/data/evolcodealpaca.py0text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :parSTRING
HIGHsrc/llmcompressor/transformers/data/perfectblend.py0text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :parSTRING
HIGHsrc/llmcompressor/transformers/data/cnn_dailymail.py0text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :parSTRING
Deep Nesting79 hits · 76 pts
SeverityFileLineSnippetContext
LOWtools/collect_env.py18CODE
LOWtools/lint_cuda.py96CODE
LOWtools/lint_cuda.py250CODE
LOWtests/testing_utils.py640CODE
LOWtests/sparsity/test_helpers.py37CODE
LOWtests/sparsity/test_helpers.py72CODE
LOWtests/sparsity/test_helpers.py106CODE
LOWtests/sparsity/test_helpers.py140CODE
LOWtests/sparsity/test_helpers.py177CODE
LOWtests/sparsity/test_helpers.py215CODE
LOW…essor/modifiers/transform/awq/test_dynamic_mappings.py645CODE
LOW…sts/llmcompressor/pipelines/sequential/test_helpers.py126CODE
LOW…mpressor/transformers/compression/test_quantization.py37CODE
LOWtests/llmcompressor/observers/test_mse_vs_minmax.py205CODE
LOWtests/e2e/e2e_utils.py221CODE
LOWdocs/scripts/zensical_gen_files.py198CODE
LOWdocs/scripts/zensical_gen_files.py280CODE
LOWdocs/scripts/zensical_gen_files.py293CODE
LOWdocs/scripts/zensical_gen_files.py340CODE
LOWdocs/scripts/zensical_gen_files.py364CODE
LOWexamples/quantizing_moe/deepseek_v4_example.py52CODE
LOWexamples/quantizing_moe/deepseek_v4_pro_example.py58CODE
LOW…amples/quantizing_moe/deepseek_v4_mixed_mxfp4_mxfp8.py52CODE
LOWexamples/qad/modelopt_mix.py107CODE
LOWexamples/qad/modelopt_mix.py131CODE
LOWsrc/llmcompressor/modifiers/factory.py38CODE
LOWsrc/llmcompressor/modifiers/factory.py75CODE
LOWsrc/llmcompressor/modifiers/factory.py50CODE
LOW…ompressor/modifiers/quantization/quantization/mixin.py420CODE
LOWsrc/llmcompressor/modifiers/pruning/reap/utils.py59CODE
LOW…ompressor/modifiers/pruning/sparsegpt/sgpt_sparsify.py58CODE
LOWsrc/llmcompressor/modifiers/autoround/base.py265CODE
LOWsrc/llmcompressor/modifiers/autoround/base.py493CODE
LOWsrc/llmcompressor/modifiers/autoround/base.py509CODE
LOWsrc/llmcompressor/modifiers/autoround/base.py615CODE
LOWsrc/llmcompressor/modifiers/autoround/base.py785CODE
LOWsrc/llmcompressor/modifiers/gptq/gptq_quantize.py345CODE
LOWsrc/llmcompressor/modifiers/gptq/helpers.py283CODE
LOWsrc/llmcompressor/modifiers/gptq/helpers.py343CODE
LOWsrc/llmcompressor/modifiers/gptq/base.py308CODE
LOWsrc/llmcompressor/modifiers/transform/awq/base.py281CODE
LOWsrc/llmcompressor/modifiers/transform/awq/base.py483CODE
LOWsrc/llmcompressor/modifiers/transform/awq/base.py885CODE
LOW…/llmcompressor/modifiers/transform/smoothquant/base.py322CODE
LOWsrc/llmcompressor/recipe/utils.py112CODE
LOWsrc/llmcompressor/recipe/recipe.py88CODE
LOWsrc/llmcompressor/recipe/recipe.py168CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py356CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py821CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1020CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1241CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1392CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1433CODE
LOWsrc/llmcompressor/pipelines/sequential/pipeline.py81CODE
LOWsrc/llmcompressor/pipelines/sequential/helpers.py285CODE
LOWsrc/llmcompressor/utils/helpers.py165CODE
LOWsrc/llmcompressor/utils/dist.py55CODE
LOWsrc/llmcompressor/utils/pytorch/module.py29CODE
LOWsrc/llmcompressor/modeling/kimi_k3/encoding_k3.py292CODE
LOWsrc/llmcompressor/modeling/kimi_k3/encoding_k3.py384CODE
19 more matches not shown…
Self-Referential Comments19 hits · 58 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/llmcompressor/modifiers/pruning/reap/test_base.py662 # Create a config with text_config wrapperCOMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py463 # Create a mock moe_attrs with group infoCOMMENT
MEDIUM…sts/llmcompressor/modifiers/transform/awq/test_base.py187 # Create a simplified MoE model structureCOMMENT
MEDIUM…sts/llmcompressor/modifiers/transform/awq/test_base.py262 # Create a Qwen3Next-like MoE model structure with shared_expertCOMMENT
MEDIUM…sts/llmcompressor/modifiers/transform/awq/test_base.py354 # Create a Qwen3Next-like model with both self_attn and linear_attn layersCOMMENT
MEDIUMtests/llmcompressor/pipelines/test_cache.py150 # Create a cache with GPU as model device and CPU as offload deviceCOMMENT
MEDIUMtests/llmcompressor/modeling/test_linear_experts.py20 # Create a Qwen3MoeConfigCOMMENT
MEDIUM…mcompressor/transformers/test_tokenizer_parallelism.py27 # Create a minimal Oneshot instance to trigger __init__COMMENT
MEDIUMexamples/quantizing_moe/qwen3_vl_moe_example.py70# Define a oneshot data collator for multimodal inputs.COMMENT
MEDIUMexamples/multimodal_vision/qwen2_vl_example.py74# Define a oneshot data collator for multimodal inputs.COMMENT
MEDIUMexamples/multimodal_vision/phi3_vision_example.py67# Define a oneshot data collator for multimodal inputs.COMMENT
MEDIUMexamples/multimodal_vision/idefics3_example.py23# Define a oneshot data collator for multimodal inputs.COMMENT
MEDIUMexamples/multimodal_vision/qwen_2_5_vl_example.py68# Define a oneshot data collator for multimodal inputs.COMMENT
MEDIUMexamples/multimodal_vision/qwen3_vl_example.py69# Define a oneshot data collator for multimodal inputs.COMMENT
MEDIUMsrc/llmcompressor/pipelines/cache.py277 # Create a dedicated CUDA stream for H2D transfers so they run on aCOMMENT
MEDIUM…ompressor/pipelines/sequential/transformers_helpers.py1493 # Creating a random input shape to generate dummy inputs.COMMENT
MEDIUMsrc/llmcompressor/modeling/deepseekv32/config.py1# This file contains code copied from the DeepSeek-V3.2-Exp project.COMMENT
MEDIUMsrc/llmcompressor/modeling/deepseekv32/kernel.py1# This file contains code copied from the DeepSeek-V3.2-Exp project.COMMENT
MEDIUMsrc/llmcompressor/modeling/deepseekv32/model.py1# This file contains code copied from the DeepSeek-V3.2-Exp project.COMMENT
Excessive Try-Catch Wrapping34 hits · 40 pts
SeverityFileLineSnippetContext
LOWtools/lint_cuda.py164 except Exception as e:CODE
MEDIUMtools/lint_cuda.py166 print(f"Error applying fixes to {filepath}: {e}", file=sys.stderr)CODE
LOWtools/lint_cuda.py198 except Exception as e:CODE
MEDIUMtools/lint_cuda.py200 print(f"Error processing {filepath}: {e}", file=sys.stderr)CODE
MEDIUMtools/lint_cuda.py282 print(f"Error: Path '{path}' does not exist", file=sys.stderr)CODE
LOWtests/testing_utils.py832 except Exception as e:CODE
LOWtests/testing_utils.py868 except Exception as e:CODE
LOWtests/tools/test_lint_cuda.py272 except Exception as e:CODE
LOW…r/modifiers/quantization/test_group_size_validation.py107 except Exception:CODE
LOWtests/llmcompressor/observers/test_mse_vs_minmax.py237 except Exception as e:CODE
LOWtests/e2e/test_vllm.py171 except Exception as e:CODE
LOWdocs/scripts/zensical_gen_files.py215 except Exception:CODE
LOWexamples/qad/modelopt_mix.py182 except Exception as error:CODE
LOWsrc/llmcompressor/modifiers/factory.py68 except Exception:CODE
LOWsrc/llmcompressor/modifiers/factory.py121 except Exception as err:CODE
LOWsrc/llmcompressor/modifiers/factory.py124 except Exception as module_err:CODE
LOW…ressor/modifiers/pruning/utils/pytorch/mask_factory.py57 except Exception:CODE
LOWsrc/llmcompressor/modifiers/gptq/helpers.py194 except Exception:CODE
LOW…llmcompressor/modifiers/transform/smoothquant/utils.py205 except Exception as original_exception:CODE
MEDIUM…llmcompressor/modifiers/transform/smoothquant/utils.py202def wrapper(*args, **kwargs):CODE
LOWsrc/llmcompressor/core/lifecycle.py67 except Exception as e:CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1316 except Exception as e:CODE
LOWsrc/llmcompressor/pipelines/sequential/ast_helpers.py142 except Exception as exception:CODE
MEDIUMsrc/llmcompressor/pipelines/sequential/ast_helpers.py139def append_autowrap_source_on_fail():CODE
LOW…pressor/pipelines/sequential/ast_utils/auto_wrapper.py121 except Exception:CODE
LOW…pressor/pipelines/sequential/ast_utils/auto_wrapper.py169 except Exception:CODE
LOW…llmcompressor/modeling/kimi_k3/modeling_kimi_linear.py427 except Exception as e:CODE
LOWsrc/llmcompressor/transformers/utils/helpers.py136 except Exception as e: # TODO: narrow acceptable exceptionsCODE
LOW…r/transformers/compression/compressed_tensors_utils.py293 except Exception:CODE
LOW…r/transformers/compression/compressed_tensors_utils.py303 except Exception:CODE
LOWsrc/llmcompressor/entrypoints/utils.py71 except Exception as e:CODE
LOW⚡src/llmcompressor/entrypoints/higgs/utils.py91 except Exception as e:CODE
LOWsrc/llmcompressor/entrypoints/model_free/lifecycle.py34 except Exception as exc:CODE
LOWsrc/llmcompressor/pytorch/utils/helpers.py15except Exception as _err:CODE
Structural Annotation Overuse22 hits · 34 pts
SeverityFileLineSnippetContext
LOWdocs/guides/entrypoints/convert.md169# Step 1: convert to bfloat16COMMENT
LOWdocs/guides/entrypoints/convert.md181# Step 2: re-quantize with oneshotCOMMENT
LOWexamples/quantizing_moe/README.md25### Step 1: Load the Model and TokenizerCOMMENT
LOWexamples/quantizing_moe/README.md39### Step 2: Prepare the Calibration DatasetCOMMENT
LOWexamples/quantizing_moe/README.md81### Step 3: Configure the Quantization RecipeCOMMENT
LOWexamples/quantizing_moe/README.md109### Step 4: Run Quantization with `oneshot`COMMENT
LOWexamples/quantizing_moe/README.md130### Step 5: Save the Quantized ModelCOMMENT
LOW…es/quantization_higgs/higgs_nvfp4a16_fp8_model_free.py52 # Step 1: get optimal mixed-precision config (model-free)COMMENT
LOW…es/quantization_higgs/higgs_nvfp4a16_fp8_model_free.py66 # Step 2: apply the mixed-precision config without loading the modelCOMMENT
LOWexamples/multimodal_vision/README_internvl3.md4## Step 1: Compressing Your Own ModelCOMMENT
LOWexamples/multimodal_vision/README_internvl3.md12## Step 2: Load datasetsCOMMENT
LOWexamples/multimodal_vision/README_internvl3.md23## Step 3: Preprocess and tokenizeCOMMENT
LOWexamples/multimodal_vision/README_internvl3.md43## Step 4: Adding Your Own Data CollatorCOMMENT
LOWexamples/multimodal_vision/README_internvl3.md56## Step 5: Define the recipeCOMMENT
LOWexamples/multimodal_vision/README_internvl3.md65## Step 6: Oneshot and saveCOMMENT
LOWexamples/multimodal_vision/README_internvl3.md81## Step 7: EvaluateCOMMENT
LOWexamples/transform/README.md25### Step 1: Select a Model, Dataset, and RecipeCOMMENT
LOWexamples/transform/README.md48### Step 2: Run Quantization Using OneshotCOMMENT
LOWexamples/transform/README.md64### Step 3: Run optimized model in vLLMCOMMENT
LOW⚡src/llmcompressor/modeling/offset_norm.py122 # Step 1: Collect all offset-norm modules that need replacementCOMMENT
LOW⚡src/llmcompressor/modeling/offset_norm.py130 # Step 2: Replace modulesCOMMENT
LOWsrc/llmcompressor/modeling/offset_norm.py145 # Step 3: Restore original modules with updated weightsCOMMENT
Empty Error Handlers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtests/llmcompressor/conftest.py42except FileNotFoundError:CODE
HIGHdocs/scripts/zensical_gen_files.py215except Exception:CODE
HIGHsrc/llmcompressor/modifiers/factory.py68except Exception:CODE
HIGH…ressor/modifiers/pruning/utils/pytorch/mask_factory.py57except Exception:CODE
HIGHsrc/llmcompressor/modeling/moe/helpers.py174except (ImportError, AttributeError):CODE
AI Structural Patterns17 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/sparsity/test_helpers.py250CODE
LOWtests/sparsity/test_helpers.py281CODE
LOWtests/llmcompressor/modifiers/pruning/reap/test_base.py170CODE
LOWsrc/llmcompressor/modifiers/quantization/calibration.py203CODE
LOWsrc/llmcompressor/core/session.py74CODE
LOWsrc/llmcompressor/core/state.py120CODE
LOWsrc/llmcompressor/modeling/deepseekv32/config.py94CODE
LOWsrc/llmcompressor/modeling/kimi_k3/modeling_kimi_k3.py295CODE
LOWsrc/llmcompressor/modeling/kimi_k3/modeling_kimi_k3.py299CODE
LOWsrc/llmcompressor/modeling/kimi_k3/modeling_kimi_k3.py475CODE
LOWsrc/llmcompressor/modeling/kimi_k3/modeling_kimi_k3.py1143CODE
LOWsrc/llmcompressor/modeling/kimi_k3/tokenization_kimi.py374CODE
LOW…lmcompressor/modeling/kimi_k3/configuration_kimi_k3.py10CODE
LOW…lmcompressor/modeling/kimi_k3/configuration_kimi_k3.py160CODE
LOW…llmcompressor/modeling/kimi_k3/modeling_kimi_linear.py1434CODE
LOWsrc/llmcompressor/transformers/data/base.py338CODE
LOWsrc/llmcompressor/entrypoints/oneshot.py330CODE
Redundant / Tautological Comments11 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/lmeval/test_lmeval.py328 # Check if within ±5% relative toleranceCOMMENT
LOWtests/examples/test_example_scripts.py220 # Check if this is a multi-GPU testCOMMENT
LOW…ts/skills/create-tiny-model/scripts/save_tiny_model.py12# Check if the model is multimodal.COMMENT
LOWsrc/llmcompressor/modifiers/gptq/base.py293 # Assign modules to ranksCOMMENT
LOWsrc/llmcompressor/modifiers/transform/awq/base.py183 # Check if we have a MoE modelCOMMENT
LOWsrc/llmcompressor/modifiers/transform/awq/base.py318 # Check if at least one layer is targeted for quantizationCOMMENT
LOWsrc/llmcompressor/modifiers/transform/awq/base.py896 # Check if this is an up_proj -> down_proj mappingCOMMENT
LOW…/llmcompressor/modifiers/transform/smoothquant/base.py226 # Check if at least one layer would be smoothed (not ignored)COMMENT
LOWsrc/llmcompressor/pipelines/cache.py471 # Check if the operation is equalityCOMMENT
LOWsrc/llmcompressor/transformers/utils/helpers.py114 # Check if offline mode is enabledCOMMENT
LOW…ompressor/transformers/compression/sparsity_helpers.py45 # Check if the number of zeros in each chunk atleast nCOMMENT
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippetContext
LOWtests/lmeval/configs/qwen36_nvfp4_fp8.yaml21 # Note: recovery will be dependent on COMMENT
LOWdocs/developer-tutorials/add-modifier.md61 def on_start(self, state: State, event: Event, **kwargs):COMMENT
LOWexamples/quantization_w4a4_fp4/qwen_30b_a3b.py21recipe = QuantizationModifier(COMMENT
LOWexamples/model_free_ptq/deepseek_r1_nvfp4_fp8_block.py41 # - model.layers.0.mlp.gate_proj.weightCOMMENT
LOWsrc/llmcompressor/modifiers/transform/awq/mappings.py201]COMMENT
LOW…ompressor/pipelines/sequential/transformers_helpers.py1# ruff: noqaCOMMENT
LOWsrc/llmcompressor/pipelines/sequential/pipeline.py161COMMENT
LOWsrc/llmcompressor/modeling/kimi_k3/modeling_kimi_k3.py1# coding=utf-8COMMENT
LOW…llmcompressor/modeling/kimi_k3/modeling_kimi_linear.py1# coding=utf-8COMMENT
LOW…llmcompressor/modeling/kimi_k3/modeling_kimi_linear.py21# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.COMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/llmcompressor/modeling/deepseekv32/model.py56 Forward pass for parallel embedding layer. Args: x (torch.Tensor): Input tensor containingSTRING
HIGHsrc/llmcompressor/entrypoints/higgs/ilp_solver.py33 Solve ILP to select optimal quantization scheme for each layer. Formulation: Decision variables: x[laySTRING
Dead Code5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMsrc/llmcompressor/modeling/kimi_k3/modeling_kimi_k3.py864CODE
MEDIUMsrc/llmcompressor/modeling/kimi_k3/modeling_kimi_k3.py870CODE
MEDIUMsrc/llmcompressor/modeling/kimi_k3/modeling_kimi_k3.py873CODE
MEDIUM…llmcompressor/modeling/kimi_k3/modeling_kimi_linear.py1199CODE
MEDIUM…llmcompressor/modeling/kimi_k3/modeling_kimi_linear.py1200CODE
Verbosity Indicators5 hits · 9 pts
SeverityFileLineSnippetContext
LOW…es/quantization_higgs/higgs_nvfp4a16_fp8_model_free.py52 # Step 1: get optimal mixed-precision config (model-free)COMMENT
LOW…es/quantization_higgs/higgs_nvfp4a16_fp8_model_free.py66 # Step 2: apply the mixed-precision config without loading the modelCOMMENT
LOW⚡src/llmcompressor/modeling/offset_norm.py122 # Step 1: Collect all offset-norm modules that need replacementCOMMENT
LOW⚡src/llmcompressor/modeling/offset_norm.py130 # Step 2: Replace modulesCOMMENT
LOWsrc/llmcompressor/modeling/offset_norm.py145 # Step 3: Restore original modules with updated weightsCOMMENT
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…ssor/entrypoints/model_free/test_convert_checkpoint.py22# here to leverage llm-compressor's nightly testing CI/CD.COMMENT
MEDIUM…ization_non_uniform/quantization_multiple_modifiers.py32# only include mappings pertaining to target layersCOMMENT
LOWsrc/llmcompressor/entrypoints/higgs/ilp_solver.py192 # just use actual performance numbers at the end of the day.COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHexamples/disk_offloading/qwen3_example.py12# In this example, we emulate large model quantization with disk offloading byCOMMENT
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippetContext
LOWexamples/multimodal_audio/qwen2_audio.py44 {"type": "audio", "audio_url": "placeholder"},CODE
LOWexamples/multimodal_audio/qwen2_audio.py104 {"type": "audio", "audio_url": "placeholder"},CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1255 if kind == "placeholder" and target in self.meta_args:CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1552 if node.op == "placeholder":CODE
LOWsrc/llmcompressor/pipelines/sequential/helpers.py468 input_names = set(node.name for node in graph.nodes if node.op == "placeholder")CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/llmcompressor/modeling/deepseekv32/README.md16 - add `bf16_index` kernel that mimics the `fp8_index` tilelang kernel (in original model definition's kernel.py). `bCODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexamples/transform/quip_example.py15# example, you can use additional GPUs to support larger modelsCOMMENT