Transformers-compatible library for applying various compression algorithms to LLMs for optimized deployment with vLLM
This report presents the forensic synthetic code analysis of vllm-project/llm-compressor, a Python project with 3,541 GitHub stars. SynthScan v2.0 examined 64,721 lines of code across 706 source files, recording 940 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 21.4 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 940 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/conftest.py | 28 | def _build_emulated_is_accelerator_type(fake_type: str, real_type: str): | CODE |
| LOW⚡ | tests/conftest.py | 29 | def patched_is_accelerator_type(device_type: str) -> bool: | CODE |
| LOW | tests/testing_utils.py | 364 | def requires_compute_capability(major: int, minor: int = 0) -> pytest.MarkDecorator: | CODE |
| LOW | tests/sparsity/test_sparse.py | 34 | def test_module_quantization_info(): | CODE |
| LOW | tests/sparsity/test_sparse.py | 67 | def test_module_sparsity_info(): | CODE |
| LOW | tests/sparsity/test_module.py | 25 | def test_expand_special_targets(): | CODE |
| LOW | tests/sparsity/test_module.py | 69 | def test_build_parameterized_layers(simple_model): | CODE |
| LOW | tests/sparsity/test_helpers.py | 37 | def test_tensors_to_device_cpu(tensors): | CODE |
| LOW | tests/sparsity/test_helpers.py | 72 | def test_tensors_to_device_cuda(tensors): | CODE |
| LOW | tests/sparsity/test_helpers.py | 106 | def test_tensors_to_precision_full_cpu(tensors): | CODE |
| LOW | tests/sparsity/test_helpers.py | 140 | def test_tensors_to_precision_half_cpu(tensors): | CODE |
| LOW | tests/sparsity/test_helpers.py | 177 | def test_tensors_to_precision_full_cuda(tensors): | CODE |
| LOW | tests/sparsity/test_helpers.py | 215 | def test_tensors_to_precision_half_cuda(tensors): | CODE |
| LOW | tests/sparsity/test_helpers.py | 360 | def test_tensors_module_forward(module, tensors, check_feat_lab_inp): | CODE |
| LOW | tests/sparsity/test_helpers.py | 424 | def test_tensors_module_forward_cuda(module, tensors, check_feat_lab_inp): | CODE |
| LOW | tests/sparsity/test_helpers.py | 497 | def test_tensor_sparsity_cuda(tensor, dim, expected_sparsity): | CODE |
| LOW | tests/sparsity/test_sparsity_helpers.py | 56 | def test_reduce_targets_and_ignores_into_lists( | CODE |
| LOW | tests/sparsity/test_sparsity_helpers.py | 66 | def _assert_list_contents_match(list1, list2): | CODE |
| LOW | tests/sparsity/constant/test_pytorch.py | 144 | def test_constant_pruning_pytorch_is_registered(): | CODE |
| LOW | tests/sparsity/sparsegpt/test_consecutive_runs.py | 26 | def test_consecutive_runs_small(config, tmp_path): | CODE |
| LOW | tests/sparsity/sparsegpt/test_consecutive_runs.py | 40 | def test_consecutive_runs_gpu(config, tmp_path): | CODE |
| LOW | …sparsity/sparsegpt/test_mask_structure_preservation.py | 50 | def test_mask_structure_preserved(args_to_test, tmp_path): | CODE |
| LOW | tests/sparsity/sparsegpt/test_oneshot_with_modifier.py | 15 | def test_oneshot_with_modifier_object(tmp_path, config): | CODE |
| LOW | tests/sparsity/sparsegpt/test_base.py | 11 | def test_sparse_gpt_is_registered(): | CODE |
| LOW | tests/sparsity/sparsegpt/test_base.py | 36 | def test_invalid_layerwise_recipes_raise_exceptions(sparsity, targets): | CODE |
| LOW | tests/sparsity/sparsegpt/test_base.py | 50 | def test_successful_layerwise_recipe(): | CODE |
| LOW | tests/sparsity/sparsegpt/test_sparsegpt_completion.py | 61 | def test_oneshot_completion_gpu(config, tmp_path): | CODE |
| LOW | tests/sparsity/sparsegpt/test_sparsegpt_owl.py | 15 | def test_infer_owl_layer_sparsity(): | CODE |
| LOW | tests/unit/test_logger.py | 14 | def test_default_logger_settings(capsys): | CODE |
| LOW | tests/unit/test_logger.py | 26 | def test_configure_logger_console_settings(capsys): | CODE |
| LOW | tests/unit/test_logger.py | 38 | def test_configure_logger_file_settings(tmp_path): | CODE |
| LOW | tests/unit/test_logger.py | 52 | def test_configure_logger_console_and_file(capsys, tmp_path): | CODE |
| LOW | tests/unit/test_logger.py | 72 | def test_environment_variable_override(monkeypatch, capsys, tmp_path): | CODE |
| LOW | tests/unit/test_logger.py | 95 | def test_environment_variable_disable_logging(monkeypatch, capsys): | CODE |
| LOW | tests/unit/test_logger.py | 108 | def test_environment_variable_enable_logging(monkeypatch, capsys): | CODE |
| LOW | tests/unit/core/test_state.py | 7 | def test_state_initialization(): | CODE |
| LOW | tests/unit/core/test_state.py | 20 | def test_modified_state_initialization(): | CODE |
| LOW | tests/unit/core/test_state.py | 61 | def test_state_sparsification_ready(): | CODE |
| LOW | tests/tools/test_lint_cuda.py | 17 | def test_detect_torch_cuda_is_available(): | CODE |
| LOW | tests/tools/test_lint_cuda.py | 36 | def test_detect_torch_cuda_stream(): | STRING |
| LOW | tests/tools/test_lint_cuda.py | 54 | def test_detect_torch_cuda_event(): | STRING |
| LOW | tests/tools/test_lint_cuda.py | 72 | def test_detect_torch_cuda_context_manager(): | STRING |
| LOW | tests/tools/test_lint_cuda.py | 92 | def test_detect_memory_functions(): | STRING |
| LOW | tests/tools/test_lint_cuda.py | 126 | def test_ignore_non_cuda_torch(): | STRING |
| LOW | tests/tools/test_lint_cuda.py | 164 | def test_lint_file_integration(): | STRING |
| LOW | tests/tools/test_lint_cuda.py | 185 | def test_no_duplicate_reports(): | STRING |
| LOW | tests/llmcompressor/modifiers/conf.py | 33 | def trigger_modifier_for_epochs(self, modifier, num_epochs): | CODE |
| LOW | …sts/llmcompressor/modifiers/calibration/test_frozen.py | 15 | def test_set_module_for_calibration(): | CODE |
| LOW | …/llmcompressor/modifiers/calibration/test_lifecycle.py | 123 | def test_static_weight_quantization( | CODE |
| LOW | …/llmcompressor/modifiers/calibration/test_lifecycle.py | 219 | def test_static_activation_quantization( | CODE |
| LOW | …/llmcompressor/modifiers/calibration/test_lifecycle.py | 310 | def test_static_attention_quantization( | CODE |
| LOW | …/llmcompressor/modifiers/calibration/test_observers.py | 106 | def test_observer_min_max_vals(name, kwargs, observed, exp_min_vals, exp_max_vals): | CODE |
| LOW | …sor/modifiers/utils/test_update_fused_layer_weights.py | 80 | def test_fused_observers_produce_identical_global_scale(module_class, layer_names): | CODE |
| LOW | …sor/modifiers/utils/test_update_fused_layer_weights.py | 132 | def test_unfused_observers_produce_different_global_scale(module_class, layer_names): | CODE |
| LOW | …sor/modifiers/utils/test_update_fused_layer_weights.py | 159 | def test_non_tensor_group_not_affected(): | CODE |
| LOW | …sor/modifiers/utils/test_update_fused_layer_weights.py | 180 | def test_fused_recompute_after_weight_change(): | CODE |
| LOW | tests/llmcompressor/modifiers/utils/test_hooks.py | 67 | def test_remove_hooks_parameterized(): | CODE |
| LOW | tests/llmcompressor/modifiers/utils/test_hooks.py | 132 | def test_disable_hooks_composable(): | CODE |
| LOW | …r/modifiers/quantization/test_group_size_validation.py | 32 | def test_get_layers_indivisible_by_group_size_empty(): | CODE |
| LOW | …r/modifiers/quantization/test_group_size_validation.py | 58 | def test_get_layers_indivisible_by_group_size_finds_layer(): | CODE |
| 331 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/conftest.py | 23 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/conftest.py | 25 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/testing_utils.py | 160 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/testing_utils.py | 162 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/testing_utils.py | 166 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/testing_utils.py | 168 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/testing_utils.py | 203 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/testing_utils.py | 205 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/testing_utils.py | 227 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/testing_utils.py | 229 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/testing_utils.py | 251 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/testing_utils.py | 253 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/testing_utils.py | 263 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/testing_utils.py | 265 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 18 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 20 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 201 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 203 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 479 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 481 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 525 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 527 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 660 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 662 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …essor/transformers/compression/test_compression_ddp.py | 48 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …essor/transformers/compression/test_compression_ddp.py | 50 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …essor/transformers/compression/test_compression_ddp.py | 191 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …essor/transformers/compression/test_compression_ddp.py | 193 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …essor/transformers/compression/test_compression_ddp.py | 367 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …essor/transformers/compression/test_compression_ddp.py | 369 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ansformers/smoothquant/test_smoothquant_distributed.py | 22 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ansformers/smoothquant/test_smoothquant_distributed.py | 24 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/llmcompressor/observers/test_imatrix.py | 8 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/llmcompressor/observers/test_imatrix.py | 10 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/llmcompressor/observers/test_imatrix.py | 44 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/llmcompressor/observers/test_imatrix.py | 46 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/llmcompressor/observers/test_imatrix.py | 194 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/llmcompressor/observers/test_imatrix.py | 196 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/llmcompressor/observers/test_imatrix.py | 238 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/llmcompressor/observers/test_imatrix.py | 240 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/llmcompressor/observers/test_imatrix.py | 331 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/llmcompressor/observers/test_imatrix.py | 333 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/observers/test_imatrix.py | 91 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/llmcompressor/observers/test_imatrix.py | 93 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | docs/scripts/zensical_gen_files.py | 20 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | docs/scripts/zensical_gen_files.py | 22 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | docs/scripts/zensical_gen_files.py | 29 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | docs/scripts/zensical_gen_files.py | 31 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/scripts/zensical_gen_files.py | 45 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/scripts/zensical_gen_files.py | 47 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/scripts/zensical_gen_files.py | 127 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/scripts/zensical_gen_files.py | 129 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/scripts/zensical_gen_files.py | 193 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/scripts/zensical_gen_files.py | 195 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/scripts/zensical_gen_files.py | 428 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/scripts/zensical_gen_files.py | 430 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …es/quantization_w8a8_int8/benchmark_smoothquant_ddp.py | 30 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …es/quantization_w8a8_int8/benchmark_smoothquant_ddp.py | 32 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …es/quantization_w8a8_int8/benchmark_smoothquant_ddp.py | 55 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …es/quantization_w8a8_int8/benchmark_smoothquant_ddp.py | 57 | # ------------------------------------------------------------------ | COMMENT |
| 30 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …essor/transformers/compression/test_compression_ddp.py | 19 | CODE | |
| LOW | …ansformers/smoothquant/test_smoothquant_distributed.py | 14 | CODE | |
| LOW | tests/test_timer/__init__.py | 3 | CODE | |
| LOW | tests/examples/test_example_scripts.py | 1 | CODE | |
| LOW | src/llmcompressor/__init__.py | 12 | CODE | |
| LOW | src/llmcompressor/__init__.py | 12 | CODE | |
| LOW | src/llmcompressor/__init__.py | 12 | CODE | |
| LOW | src/llmcompressor/__init__.py | 13 | CODE | |
| LOW | src/llmcompressor/__init__.py | 13 | CODE | |
| LOW | src/llmcompressor/__init__.py | 23 | CODE | |
| LOW | src/llmcompressor/__init__.py | 23 | CODE | |
| LOW | src/llmcompressor/__init__.py | 23 | CODE | |
| LOW | src/llmcompressor/__init__.py | 23 | CODE | |
| LOW | src/llmcompressor/__init__.py | 29 | CODE | |
| LOW | src/llmcompressor/__init__.py | 29 | CODE | |
| LOW | src/llmcompressor/__init__.py | 29 | CODE | |
| LOW | src/llmcompressor/modifiers/__init__.py | 10 | CODE | |
| LOW | src/llmcompressor/modifiers/__init__.py | 11 | CODE | |
| LOW | src/llmcompressor/modifiers/__init__.py | 12 | CODE | |
| LOW | …pressor/modifiers/logarithmic_equalization/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/awq/__init__.py | 42 | CODE | |
| LOW | src/llmcompressor/modifiers/awq/__init__.py | 42 | CODE | |
| LOW | src/llmcompressor/modifiers/awq/__init__.py | 42 | CODE | |
| LOW | src/llmcompressor/modifiers/awq/__init__.py | 42 | CODE | |
| LOW | src/llmcompressor/modifiers/awq/__init__.py | 42 | CODE | |
| LOW | src/llmcompressor/modifiers/quantization/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/quantization/__init__.py | 4 | CODE | |
| LOW | …ressor/modifiers/quantization/group_size_validation.py | 25 | CODE | |
| LOW | …ressor/modifiers/quantization/quantization/__init__.py | 3 | CODE | |
| LOW | …ressor/modifiers/quantization/quantization/__init__.py | 4 | CODE | |
| LOW | …/llmcompressor/modifiers/quantization/gptq/__init__.py | 11 | CODE | |
| LOW | src/llmcompressor/modifiers/pruning/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/pruning/__init__.py | 4 | CODE | |
| LOW | src/llmcompressor/modifiers/pruning/__init__.py | 5 | CODE | |
| LOW | src/llmcompressor/modifiers/pruning/__init__.py | 6 | CODE | |
| LOW | src/llmcompressor/modifiers/pruning/__init__.py | 7 | CODE | |
| LOW | src/llmcompressor/modifiers/pruning/reap/__init__.py | 3 | CODE | |
| LOW | …compressor/modifiers/pruning/utils/pytorch/__init__.py | 3 | CODE | |
| LOW | …compressor/modifiers/pruning/utils/pytorch/__init__.py | 4 | CODE | |
| LOW | src/llmcompressor/modifiers/pruning/wanda/__init__.py | 3 | CODE | |
| LOW | …c/llmcompressor/modifiers/pruning/constant/__init__.py | 3 | CODE | |
| LOW | …/llmcompressor/modifiers/pruning/magnitude/__init__.py | 3 | CODE | |
| LOW | …/llmcompressor/modifiers/pruning/sparsegpt/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/autoround/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/gptq/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/gptq/__init__.py | 4 | CODE | |
| LOW | src/llmcompressor/modifiers/obcq/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/__init__.py | 4 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/__init__.py | 5 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/__init__.py | 6 | CODE | |
| LOW | …lmcompressor/modifiers/transform/spinquant/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/awq/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/awq/__init__.py | 4 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/awq/__init__.py | 5 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/utils/__init__.py | 1 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/utils/__init__.py | 1 | CODE | |
| LOW | …/llmcompressor/modifiers/transform/imatrix/__init__.py | 3 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/quip/__init__.py | 3 | CODE | |
| LOW | …compressor/modifiers/transform/smoothquant/__init__.py | 3 | CODE | |
| 112 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_timer/timer.py | 9 | __all__ = ["Timer"] | CODE |
| LOW | tests/test_timer/timer_utils.py | 5 | __all__ = ["log_time", "get_singleton_manager"] | CODE |
| LOW | src/llmcompressor/__init__.py | 15 | __all__ = [ | CODE |
| LOW | src/llmcompressor/logger.py | 44 | __all__ = ["LoggerConfig", "configure_logger", "logger", "configure_distributed_logger"] | CODE |
| LOW | src/llmcompressor/modifiers/interface.py | 6 | __all__ = ["ModifierInterface"] | CODE |
| LOW | src/llmcompressor/modifiers/modifier.py | 11 | __all__ = ["Modifier"] | CODE |
| LOW | src/llmcompressor/modifiers/__init__.py | 14 | __all__ = [ | CODE |
| LOW | src/llmcompressor/modifiers/factory.py | 6 | __all__ = ["ModifierFactory"] | CODE |
| LOW | …mcompressor/modifiers/logarithmic_equalization/base.py | 5 | __all__ = ["LogarithmicEqualizationModifier"] | CODE |
| LOW | src/llmcompressor/modifiers/awq/__init__.py | 50 | __all__ = [ | CODE |
| LOW | src/llmcompressor/modifiers/utils/hooks.py | 16 | __all__ = ["HooksMixin"] | CODE |
| LOW | src/llmcompressor/modifiers/utils/pytorch_helpers.py | 13 | __all__ = [ | CODE |
| LOW | …ressor/modifiers/quantization/group_size_validation.py | 32 | __all__ = [ | CODE |
| LOW | src/llmcompressor/modifiers/quantization/calibration.py | 21 | __all__ = [ | CODE |
| LOW | …ompressor/modifiers/quantization/quantization/mixin.py | 52 | __all__ = ["QuantizationMixin"] | CODE |
| LOW | …compressor/modifiers/quantization/quantization/base.py | 21 | __all__ = ["QuantizationModifier"] | CODE |
| LOW | src/llmcompressor/modifiers/pruning/helpers.py | 17 | __all__ = [ | CODE |
| LOW | src/llmcompressor/modifiers/pruning/reap/utils.py | 20 | __all__ = [ | CODE |
| LOW | src/llmcompressor/modifiers/pruning/reap/base.py | 27 | __all__ = ["REAPPruningModifier"] | CODE |
| LOW | …ressor/modifiers/pruning/utils/pytorch/mask_factory.py | 9 | __all__ = [ | CODE |
| LOW | …mpressor/modifiers/pruning/utils/pytorch/layer_mask.py | 9 | __all__ = ["LayerParamMasking", "param_mask_name"] | CODE |
| LOW | src/llmcompressor/modifiers/pruning/wanda/base.py | 19 | __all__ = ["WandaPruningModifier"] | CODE |
| LOW | src/llmcompressor/modifiers/pruning/constant/base.py | 11 | __all__ = ["ConstantPruningModifier"] | CODE |
| LOW | src/llmcompressor/modifiers/pruning/magnitude/base.py | 21 | __all__ = ["MagnitudePruningModifier"] | CODE |
| LOW | …/llmcompressor/modifiers/pruning/sparsegpt/__init__.py | 5 | __all__ = ["SparseGPTModifier"] | CODE |
| LOW | src/llmcompressor/modifiers/pruning/sparsegpt/base.py | 21 | __all__ = ["SparseGPTModifier"] | CODE |
| LOW | src/llmcompressor/modifiers/autoround/utils.py | 3 | __all__ = ["fix_attention_mask"] | CODE |
| LOW | src/llmcompressor/modifiers/autoround/base.py | 30 | __all__ = ["AutoRoundModifier", "fix_batch_if_needed"] | CODE |
| LOW | src/llmcompressor/modifiers/gptq/gptq_quantize.py | 16 | __all__ = ["make_empty_hessian", "accumulate_hessian", "quantize_weight"] | CODE |
| LOW | src/llmcompressor/modifiers/gptq/base.py | 41 | __all__ = ["GPTQModifier"] | CODE |
| LOW | src/llmcompressor/modifiers/obcq/sgpt_base.py | 7 | __all__ = ["SparseGPTModifier"] | CODE |
| LOW | …pressor/modifiers/transform/spinquant/norm_mappings.py | 5 | __all__ = ["infer_norm_mapping_from_model"] | CODE |
| LOW | …lmcompressor/modifiers/transform/spinquant/mappings.py | 5 | __all__ = ["SpinQuantMapping", "infer_mapping_from_model"] | CODE |
| LOW | …compressor/modifiers/transform/awq/dynamic_mappings.py | 26 | __all__ = ["AWQ_DYNAMIC_MAPPING_REGISTRY", "get_layer_mappings_from_model"] | CODE |
| LOW | src/llmcompressor/modifiers/transform/awq/__init__.py | 7 | __all__ = [ | CODE |
| LOW | src/llmcompressor/modifiers/transform/awq/base.py | 52 | __all__ = ["AWQModifier"] | CODE |
| LOW | src/llmcompressor/modifiers/transform/awq/base.py | 279 | def _set_resolved_mappings(self, model: Module) -> None: | CODE |
| LOW | src/llmcompressor/modifiers/transform/awq/base.py | 387 | def _setup_activation_cache_hooks(self) -> None: | CODE |
| LOW | src/llmcompressor/modifiers/transform/awq/mappings.py | 5 | __all__ = [ | CODE |
| LOW | src/llmcompressor/modifiers/transform/utils/__init__.py | 6 | __all__ = [ | CODE |
| LOW | src/llmcompressor/modifiers/transform/imatrix/base.py | 9 | __all__ = ["IMatrixGatherer"] | CODE |
| LOW | src/llmcompressor/modifiers/transform/quip/base.py | 22 | __all__ = ["QuIPModifier"] | CODE |
| LOW | …or/modifiers/transform/smoothquant/dynamic_mappings.py | 19 | __all__ = ["SMOOTHQUANT_DYNAMIC_MAPPING_REGISTRY", "get_layer_mappings_from_model"] | CODE |
| LOW | …llmcompressor/modifiers/transform/smoothquant/utils.py | 6 | __all__ = [ | CODE |
| LOW | …/llmcompressor/modifiers/transform/smoothquant/base.py | 29 | __all__ = ["SmoothQuantScale", "SmoothQuantMapping", "SmoothQuantModifier"] | CODE |
| LOW | src/llmcompressor/modifiers/smoothquant/__init__.py | 23 | __all__ = ["SmoothQuantModifier"] | CODE |
| LOW | src/llmcompressor/core/model_layer.py | 12 | __all__ = ["ModelParameterizedLayer"] | CODE |
| LOW | src/llmcompressor/core/session.py | 19 | __all__ = [ | CODE |
| LOW | src/llmcompressor/core/__init__.py | 22 | __all__ = [ | CODE |
| LOW | src/llmcompressor/core/session_functions.py | 22 | __all__ = [ | CODE |
| LOW | src/llmcompressor/core/lifecycle.py | 17 | __all__ = ["CompressionLifecycle"] | CODE |
| LOW | src/llmcompressor/core/state.py | 15 | __all__ = ["State", "Data", "Hardware", "ModifiedState"] | CODE |
| LOW | src/llmcompressor/core/events/event.py | 15 | __all__ = [ | CODE |
| LOW | src/llmcompressor/core/events/__init__.py | 12 | __all__ = ["Event", "EventType"] | CODE |
| LOW | src/llmcompressor/recipe/metadata.py | 13 | __all__ = [ | CODE |
| LOW | src/llmcompressor/recipe/__init__.py | 13 | __all__ = [ | CODE |
| LOW | src/llmcompressor/recipe/recipe.py | 19 | __all__ = [ | CODE |
| LOW | src/llmcompressor/pipelines/registry.py | 15 | __all__ = ["CalibrationPipeline"] | CODE |
| LOW | src/llmcompressor/pipelines/data_free/pipeline.py | 14 | __all__ = ["DataFreePipeline"] | CODE |
| LOW | src/llmcompressor/pipelines/sequential/ast_helpers.py | 14 | __all__ = ["autowrap_forwards", "append_autowrap_source_on_fail"] | CODE |
| 45 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/quantization_kv_cache/llama3_fp8_kv_example.py | 0 | quant_stage: quant_modifiers: quantizationmodifier: ignore: ["lm_head"] config_groups: group_0: weights: num_bits: 8 typ | STRING |
| HIGH | examples/quantization_kv_cache/phi3.5_fp8_kv_example.py | 0 | quant_stage: quant_modifiers: quantizationmodifier: ignore: ["lm_head"] config_groups: group_0: weights: num_bits: 8 typ | STRING |
| HIGH | examples/quantization_kv_cache/README.md | 0 | quant_stage: quant_modifiers: quantizationmodifier: ignore: ["lm_head"] config_groups: group_0: weights: num_bits: 8 typ | STRING |
| HIGH | examples/quantization_kv_cache/gemma2_fp8_kv_example.py | 0 | quant_stage: quant_modifiers: quantizationmodifier: ignore: ["lm_head"] config_groups: group_0: weights: num_bits: 8 typ | STRING |
| HIGH | …compressor/modifiers/quantization/quantization/base.py | 0 | finish calibrating by removing observers and calibration hooks | STRING |
| HIGH | src/llmcompressor/modifiers/autoround/base.py | 0 | finish calibrating by removing observers and calibration hooks | STRING |
| HIGH | src/llmcompressor/modifiers/gptq/base.py | 0 | finish calibrating by removing observers and calibration hooks | STRING |
| HIGH | src/llmcompressor/modifiers/pruning/wanda/base.py | 0 | calibration hook used to accumulate the hessian of the input to the module :param module: module being calibrated :param | STRING |
| HIGH | src/llmcompressor/modifiers/pruning/sparsegpt/base.py | 0 | calibration hook used to accumulate the hessian of the input to the module :param module: module being calibrated :param | STRING |
| HIGH | src/llmcompressor/modifiers/gptq/base.py | 0 | calibration hook used to accumulate the hessian of the input to the module :param module: module being calibrated :param | STRING |
| HIGH | src/llmcompressor/transformers/data/c4.py | 0 | text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :par | STRING |
| HIGH | src/llmcompressor/transformers/data/open_platypus.py | 0 | text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :par | STRING |
| HIGH | src/llmcompressor/transformers/data/wikitext.py | 0 | text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :par | STRING |
| HIGH | src/llmcompressor/transformers/data/ultrachat_200k.py | 0 | text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :par | STRING |
| HIGH | src/llmcompressor/transformers/data/evolcodealpaca.py | 0 | text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :par | STRING |
| HIGH | src/llmcompressor/transformers/data/cnn_dailymail.py | 0 | text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :par | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/llmcompressor/modifiers/transform/awq/base.py | 49 | from llmcompressor.utils.helpers import calibration_forward_context | CODE |
| CRITICAL | src/llmcompressor/pipelines/sequential/pipeline.py | 18 | from llmcompressor.utils.helpers import DisableQuantization, calibration_forward_context | CODE |
| CRITICAL | src/llmcompressor/pipelines/sequential/helpers.py | 23 | from llmcompressor.utils.helpers import calibration_forward_context | CODE |
| CRITICAL | src/llmcompressor/pipelines/basic/pipeline.py | 14 | from llmcompressor.utils.helpers import DisableQuantization | CODE |
| CRITICAL | src/llmcompressor/utils/dist.py | 9 | from compressed_tensors.utils.helpers import deprecated | CODE |
| CRITICAL | …ressor/entrypoints/model_free/reindex_fused_weights.py | 3 | from compressed_tensors.utils.helpers import deprecated | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/collect_env.py | 18 | CODE | |
| LOW | tools/lint_cuda.py | 96 | CODE | |
| LOW | tools/lint_cuda.py | 250 | CODE | |
| LOW | tests/testing_utils.py | 565 | CODE | |
| LOW | tests/sparsity/test_helpers.py | 37 | CODE | |
| LOW | tests/sparsity/test_helpers.py | 72 | CODE | |
| LOW | tests/sparsity/test_helpers.py | 106 | CODE | |
| LOW | tests/sparsity/test_helpers.py | 140 | CODE | |
| LOW | tests/sparsity/test_helpers.py | 177 | CODE | |
| LOW | tests/sparsity/test_helpers.py | 215 | CODE | |
| LOW | …mpressor/transformers/compression/test_quantization.py | 36 | CODE | |
| LOW | tests/llmcompressor/observers/test_mse_vs_minmax.py | 205 | CODE | |
| LOW | docs/scripts/zensical_gen_files.py | 198 | CODE | |
| LOW | docs/scripts/zensical_gen_files.py | 280 | CODE | |
| LOW | docs/scripts/zensical_gen_files.py | 293 | CODE | |
| LOW | docs/scripts/zensical_gen_files.py | 340 | CODE | |
| LOW | docs/scripts/zensical_gen_files.py | 364 | CODE | |
| LOW | examples/quantizing_moe/deepseek_v4_example.py | 52 | CODE | |
| LOW | src/llmcompressor/modifiers/factory.py | 38 | CODE | |
| LOW | src/llmcompressor/modifiers/factory.py | 75 | CODE | |
| LOW | src/llmcompressor/modifiers/factory.py | 50 | CODE | |
| LOW | …compressor/modifiers/quantization/quantization/base.py | 119 | CODE | |
| LOW | src/llmcompressor/modifiers/pruning/reap/utils.py | 52 | CODE | |
| LOW | …ompressor/modifiers/pruning/sparsegpt/sgpt_sparsify.py | 58 | CODE | |
| LOW | src/llmcompressor/modifiers/autoround/base.py | 396 | CODE | |
| LOW | src/llmcompressor/modifiers/autoround/base.py | 412 | CODE | |
| LOW | src/llmcompressor/modifiers/autoround/base.py | 513 | CODE | |
| LOW | src/llmcompressor/modifiers/gptq/gptq_quantize.py | 65 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/awq/base.py | 279 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/awq/base.py | 477 | CODE | |
| LOW | src/llmcompressor/modifiers/transform/awq/base.py | 866 | CODE | |
| LOW | …/llmcompressor/modifiers/transform/smoothquant/base.py | 320 | CODE | |
| LOW | src/llmcompressor/recipe/utils.py | 112 | CODE | |
| LOW | src/llmcompressor/recipe/recipe.py | 88 | CODE | |
| LOW | src/llmcompressor/recipe/recipe.py | 168 | CODE | |
| LOW | src/llmcompressor/pipelines/cache.py | 299 | CODE | |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 356 | CODE | |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 821 | CODE | |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 1018 | CODE | |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 1239 | CODE | |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 1326 | CODE | |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 1386 | CODE | |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 1427 | CODE | |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 1331 | CODE | |
| LOW | src/llmcompressor/pipelines/sequential/pipeline.py | 55 | CODE | |
| LOW | src/llmcompressor/pipelines/sequential/helpers.py | 204 | CODE | |
| LOW | src/llmcompressor/pipelines/sequential/helpers.py | 252 | CODE | |
| LOW | src/llmcompressor/pipelines/sequential/helpers.py | 66 | CODE | |
| LOW | src/llmcompressor/utils/helpers.py | 141 | CODE | |
| LOW | src/llmcompressor/utils/pytorch/module.py | 29 | CODE | |
| LOW | src/llmcompressor/modeling/moe/helpers.py | 46 | CODE | |
| LOW | src/llmcompressor/transformers/data/data_helpers.py | 40 | CODE | |
| LOW | src/llmcompressor/entrypoints/utils.py | 41 | CODE | |
| LOW | src/llmcompressor/entrypoints/model_free/save_utils.py | 71 | CODE | |
| LOW | src/llmcompressor/entrypoints/model_free/process.py | 239 | CODE | |
| LOW | src/llmcompressor/entrypoints/model_free/helpers.py | 34 | CODE | |
| LOW | …ompressor/pytorch/utils/sparsification_info/configs.py | 345 | CODE | |
| LOW | …ompressor/pytorch/utils/sparsification_info/helpers.py | 87 | CODE | |
| LOW | src/llmcompressor/observers/helpers.py | 174 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 640 | # Create a config with text_config wrapper | COMMENT |
| MEDIUM | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 463 | # Create a mock moe_attrs with group info | COMMENT |
| MEDIUM | …sts/llmcompressor/modifiers/transform/awq/test_base.py | 187 | # Create a simplified MoE model structure | COMMENT |
| MEDIUM | …sts/llmcompressor/modifiers/transform/awq/test_base.py | 262 | # Create a Qwen3Next-like MoE model structure with shared_expert | COMMENT |
| MEDIUM | …sts/llmcompressor/modifiers/transform/awq/test_base.py | 354 | # Create a Qwen3Next-like model with both self_attn and linear_attn layers | COMMENT |
| MEDIUM | tests/llmcompressor/pipelines/test_cache.py | 147 | # Create a cache with GPU as model device and CPU as offload device | COMMENT |
| MEDIUM | tests/llmcompressor/modeling/test_linear_experts.py | 20 | # Create a Qwen3MoeConfig | COMMENT |
| MEDIUM | …mcompressor/transformers/test_tokenizer_parallelism.py | 27 | # Create a minimal Oneshot instance to trigger __init__ | COMMENT |
| MEDIUM | examples/multimodal_vision/qwen2_vl_example.py | 74 | # Define a oneshot data collator for multimodal inputs. | COMMENT |
| MEDIUM | examples/multimodal_vision/phi3_vision_example.py | 67 | # Define a oneshot data collator for multimodal inputs. | COMMENT |
| MEDIUM | examples/multimodal_vision/idefics3_example.py | 23 | # Define a oneshot data collator for multimodal inputs. | COMMENT |
| MEDIUM | examples/multimodal_vision/qwen_2_5_vl_example.py | 68 | # Define a oneshot data collator for multimodal inputs. | COMMENT |
| MEDIUM | examples/multimodal_vision/qwen3_vl_example.py | 69 | # Define a oneshot data collator for multimodal inputs. | COMMENT |
| MEDIUM | src/llmcompressor/pipelines/cache.py | 219 | # Create a dedicated CUDA stream for H2D transfers so they run on a | COMMENT |
| MEDIUM | …ompressor/pipelines/sequential/transformers_helpers.py | 1487 | # Creating a random input shape to generate dummy inputs. | COMMENT |
| MEDIUM | src/llmcompressor/modeling/deepseekv32/config.py | 1 | # This file contains code copied from the DeepSeek-V3.2-Exp project. | COMMENT |
| MEDIUM | src/llmcompressor/modeling/deepseekv32/kernel.py | 1 | # This file contains code copied from the DeepSeek-V3.2-Exp project. | COMMENT |
| MEDIUM | src/llmcompressor/modeling/deepseekv32/model.py | 1 | # This file contains code copied from the DeepSeek-V3.2-Exp project. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/lint_cuda.py | 164 | except Exception as e: | CODE |
| MEDIUM | tools/lint_cuda.py | 166 | print(f"Error applying fixes to {filepath}: {e}", file=sys.stderr) | CODE |
| LOW | tools/lint_cuda.py | 198 | except Exception as e: | CODE |
| MEDIUM | tools/lint_cuda.py | 200 | print(f"Error processing {filepath}: {e}", file=sys.stderr) | CODE |
| MEDIUM | tools/lint_cuda.py | 282 | print(f"Error: Path '{path}' does not exist", file=sys.stderr) | CODE |
| LOW | tests/testing_utils.py | 754 | except Exception as e: | CODE |
| LOW | tests/testing_utils.py | 790 | except Exception as e: | CODE |
| LOW | tests/tools/test_lint_cuda.py | 272 | except Exception as e: | CODE |
| LOW | …r/modifiers/quantization/test_group_size_validation.py | 107 | except Exception: | CODE |
| LOW | tests/llmcompressor/observers/test_mse_vs_minmax.py | 237 | except Exception as e: | CODE |
| LOW | docs/scripts/zensical_gen_files.py | 215 | except Exception: | CODE |
| LOW | src/llmcompressor/modifiers/factory.py | 68 | except Exception: | CODE |
| LOW | src/llmcompressor/modifiers/factory.py | 121 | except Exception as err: | CODE |
| LOW | src/llmcompressor/modifiers/factory.py | 124 | except Exception as module_err: | CODE |
| LOW | …ressor/modifiers/pruning/utils/pytorch/mask_factory.py | 57 | except Exception: | CODE |
| LOW | …llmcompressor/modifiers/transform/smoothquant/utils.py | 174 | except Exception as original_exception: | CODE |
| MEDIUM | …llmcompressor/modifiers/transform/smoothquant/utils.py | 171 | def wrapper(*args, **kwargs): | CODE |
| LOW | src/llmcompressor/core/lifecycle.py | 67 | except Exception as e: | CODE |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 1314 | except Exception as e: | CODE |
| LOW | src/llmcompressor/pipelines/sequential/ast_helpers.py | 95 | except Exception as exception: | CODE |
| MEDIUM | src/llmcompressor/pipelines/sequential/ast_helpers.py | 92 | def append_autowrap_source_on_fail(): | CODE |
| LOW | …pressor/pipelines/sequential/ast_utils/auto_wrapper.py | 120 | except Exception: | CODE |
| LOW | …pressor/pipelines/sequential/ast_utils/auto_wrapper.py | 159 | except Exception: | CODE |
| LOW | src/llmcompressor/transformers/utils/helpers.py | 136 | except Exception as e: # TODO: narrow acceptable exceptions | CODE |
| LOW | src/llmcompressor/entrypoints/utils.py | 71 | except Exception as e: | CODE |
| LOW | src/llmcompressor/entrypoints/model_free/lifecycle.py | 34 | except Exception as exc: | CODE |
| LOW | src/llmcompressor/pytorch/utils/helpers.py | 15 | except Exception as _err: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/guides/entrypoints/convert.md | 171 | # Step 1: convert to bfloat16 | COMMENT |
| LOW | docs/guides/entrypoints/convert.md | 184 | # Step 2: re-quantize with oneshot | COMMENT |
| LOW | examples/quantizing_moe/README.md | 25 | ### Step 1: Load the Model and Tokenizer | COMMENT |
| LOW | examples/quantizing_moe/README.md | 39 | ### Step 2: Prepare the Calibration Dataset | COMMENT |
| LOW | examples/quantizing_moe/README.md | 81 | ### Step 3: Configure the Quantization Recipe | COMMENT |
| LOW | examples/quantizing_moe/README.md | 109 | ### Step 4: Run Quantization with `oneshot` | COMMENT |
| LOW | examples/quantizing_moe/README.md | 130 | ### Step 5: Save the Quantized Model | COMMENT |
| LOW | examples/multimodal_vision/README_internvl3.md | 4 | ## Step 1: Compressing Your Own Model | COMMENT |
| LOW | examples/multimodal_vision/README_internvl3.md | 12 | ## Step 2: Load datasets | COMMENT |
| LOW | examples/multimodal_vision/README_internvl3.md | 23 | ## Step 3: Preprocess and tokenize | COMMENT |
| LOW | examples/multimodal_vision/README_internvl3.md | 43 | ## Step 4: Adding Your Own Data Collator | COMMENT |
| LOW | examples/multimodal_vision/README_internvl3.md | 56 | ## Step 5: Define the recipe | COMMENT |
| LOW | examples/multimodal_vision/README_internvl3.md | 65 | ## Step 6: Oneshot and save | COMMENT |
| LOW | examples/multimodal_vision/README_internvl3.md | 81 | ## Step 7: Evaluate | COMMENT |
| LOW | examples/transform/README.md | 25 | ### Step 1: Select a Model, Dataset, and Recipe | COMMENT |
| LOW | examples/transform/README.md | 48 | ### Step 2: Run Quantization Using Oneshot | COMMENT |
| LOW | examples/transform/README.md | 64 | ### Step 3: Run optimized model in vLLM | COMMENT |
| LOW⚡ | src/llmcompressor/modeling/offset_norm.py | 121 | # Step 1: Collect all offset-norm modules that need replacement | COMMENT |
| LOW⚡ | src/llmcompressor/modeling/offset_norm.py | 129 | # Step 2: Replace modules | COMMENT |
| LOW | src/llmcompressor/modeling/offset_norm.py | 144 | # Step 3: Restore original modules with updated weights | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/lmeval/test_lmeval.py | 315 | # Check if within ±5% relative tolerance | COMMENT |
| LOW | tests/examples/test_example_scripts.py | 212 | # Check if this is a multi-GPU test | COMMENT |
| LOW | src/llmcompressor/modifiers/gptq/base.py | 297 | # Assign modules to ranks | COMMENT |
| LOW | src/llmcompressor/modifiers/transform/awq/base.py | 181 | # Check if we have a MoE model | COMMENT |
| LOW | src/llmcompressor/modifiers/transform/awq/base.py | 316 | # Check if at least one layer is targeted for quantization | COMMENT |
| LOW | src/llmcompressor/modifiers/transform/awq/base.py | 877 | # Check if this is an up_proj -> down_proj mapping | COMMENT |
| LOW | …/llmcompressor/modifiers/transform/smoothquant/base.py | 224 | # Check if at least one layer would be smoothed (not ignored) | COMMENT |
| LOW | src/llmcompressor/pipelines/cache.py | 390 | # Check if the operation is equality | COMMENT |
| LOW | src/llmcompressor/transformers/utils/helpers.py | 114 | # Check if offline mode is enabled | COMMENT |
| LOW | …ompressor/transformers/compression/sparsity_helpers.py | 45 | # Check if the number of zeros in each chunk atleast n | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/sparsity/test_helpers.py | 250 | CODE | |
| LOW | tests/sparsity/test_helpers.py | 281 | CODE | |
| LOW | tests/llmcompressor/modifiers/pruning/reap/test_base.py | 170 | CODE | |
| LOW | src/llmcompressor/modifiers/quantization/calibration.py | 179 | CODE | |
| LOW | src/llmcompressor/core/session.py | 74 | CODE | |
| LOW | src/llmcompressor/core/state.py | 122 | CODE | |
| LOW | src/llmcompressor/modeling/deepseekv32/config.py | 94 | CODE | |
| LOW | src/llmcompressor/transformers/data/base.py | 297 | CODE | |
| LOW | src/llmcompressor/entrypoints/oneshot.py | 265 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/disk_offloading/qwen3_example.py | 12 | # In this example, we emulate large model quantization with disk offloading by | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ssor/entrypoints/model_free/test_convert_checkpoint.py | 22 | # here to leverage llm-compressor's nightly testing CI/CD. | COMMENT |
| MEDIUM | …ization_non_uniform/quantization_multiple_modifiers.py | 62 | # only include mappings pertaining to target layers | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/llmcompressor/modeling/offset_norm.py | 121 | # Step 1: Collect all offset-norm modules that need replacement | COMMENT |
| LOW⚡ | src/llmcompressor/modeling/offset_norm.py | 129 | # Step 2: Replace modules | COMMENT |
| LOW | src/llmcompressor/modeling/offset_norm.py | 144 | # Step 3: Restore original modules with updated weights | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/multimodal_audio/qwen2_audio.py | 44 | {"type": "audio", "audio_url": "placeholder"}, | CODE |
| LOW | examples/multimodal_audio/qwen2_audio.py | 104 | {"type": "audio", "audio_url": "placeholder"}, | CODE |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 1253 | if kind == "placeholder" and target in self.meta_args: | CODE |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 1544 | if node.op == "placeholder": | CODE |
| LOW | src/llmcompressor/pipelines/sequential/helpers.py | 384 | input_names = set(node.name for node in graph.nodes if node.op == "placeholder") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/llmcompressor/modeling/deepseekv32/model.py | 56 | Forward pass for parallel embedding layer. Args: x (torch.Tensor): Input tensor containing | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/llmcompressor/modeling/deepseekv32/README.md | 16 | - add `bf16_index` kernel that mimics the `fp8_index` tilelang kernel (in original model definition's kernel.py). `b | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/quantization_w4a4_fp4/qwen_30b_a3b.py | 61 | ) | COMMENT |
| LOW | examples/model_free_ptq/deepseek_r1_nvfp4_fp8_block.py | 41 | # - model.layers.0.mlp.down_proj.weight | COMMENT |
| LOW | …ompressor/pipelines/sequential/transformers_helpers.py | 1 | # ruff: noqa | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/transform/quip_example.py | 15 | # example, you can use additional GPUs to support larger models | COMMENT |