Repository Analysis

vllm-project/llm-compressor

Transformers-compatible library for applying various compression algorithms to LLMs for optimized deployment with vLLM

21.4 Moderate AI signal View on GitHub

Analysis Overview

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).

21.4
Adjusted Score
21.4
Raw Score
100%
Time Factor
2026-07-13
Last Push
3.5K
Stars
Python
Language
64.7K
Lines of Code
706
Files
940
Pattern Hits
2026-07-14
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 6HIGH 19MEDIUM 116LOW 799

Directory Score Breakdown

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.

Pattern Findings

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.

Hyper-Verbose Identifiers391 hits · 398 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py28def _build_emulated_is_accelerator_type(fake_type: str, real_type: str):CODE
LOWtests/conftest.py29 def patched_is_accelerator_type(device_type: str) -> bool:CODE
LOWtests/testing_utils.py364def requires_compute_capability(major: int, minor: int = 0) -> pytest.MarkDecorator: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.py106def test_observer_min_max_vals(name, kwargs, observed, exp_min_vals, exp_max_vals):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…r/modifiers/quantization/test_group_size_validation.py32def test_get_layers_indivisible_by_group_size_empty():CODE
LOW…r/modifiers/quantization/test_group_size_validation.py58def test_get_layers_indivisible_by_group_size_finds_layer():CODE
331 more matches not shown…
Decorative Section Separators90 hits · 332 pts
SeverityFileLineSnippetContext
MEDIUMtests/conftest.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py160 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py162 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py166 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py168 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py203 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py205 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py227 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py229 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py251 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py253 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py263 # -------------------------------------------------------------------------COMMENT
MEDIUMtests/testing_utils.py265 # -------------------------------------------------------------------------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.py660# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py662# ---------------------------------------------------------------------------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.py191# ---------------------------------------------------------------------------COMMENT
MEDIUM…essor/transformers/compression/test_compression_ddp.py193# ---------------------------------------------------------------------------COMMENT
MEDIUM…essor/transformers/compression/test_compression_ddp.py367# ---------------------------------------------------------------------------COMMENT
MEDIUM…essor/transformers/compression/test_compression_ddp.py369# ---------------------------------------------------------------------------COMMENT
MEDIUM…ansformers/smoothquant/test_smoothquant_distributed.py22# ---------------------------------------------------------------------------COMMENT
MEDIUM…ansformers/smoothquant/test_smoothquant_distributed.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py8# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py10# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py44# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py46# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py194# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py196# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py238# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py240# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py331# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py333# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py91# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/llmcompressor/observers/test_imatrix.py93# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/scripts/zensical_gen_files.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/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
MEDIUM…es/quantization_w8a8_int8/benchmark_smoothquant_ddp.py32# ---------------------------------------------------------------------------COMMENT
MEDIUM…es/quantization_w8a8_int8/benchmark_smoothquant_ddp.py55 # ------------------------------------------------------------------COMMENT
MEDIUM…es/quantization_w8a8_int8/benchmark_smoothquant_ddp.py57 # ------------------------------------------------------------------COMMENT
30 more matches not shown…
Unused Imports172 hits · 172 pts
SeverityFileLineSnippetContext
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
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__.py42CODE
LOWsrc/llmcompressor/modifiers/awq/__init__.py42CODE
LOWsrc/llmcompressor/modifiers/awq/__init__.py42CODE
LOWsrc/llmcompressor/modifiers/awq/__init__.py42CODE
LOWsrc/llmcompressor/modifiers/awq/__init__.py42CODE
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/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
LOWsrc/llmcompressor/modifiers/transform/utils/__init__.py1CODE
LOW…/llmcompressor/modifiers/transform/imatrix/__init__.py3CODE
LOWsrc/llmcompressor/modifiers/transform/quip/__init__.py3CODE
LOW…compressor/modifiers/transform/smoothquant/__init__.py3CODE
112 more matches not shown…
Modern Structural Boilerplate105 hits · 106 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__.py50__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.py52__all__ = ["QuantizationMixin"]CODE
LOW…compressor/modifiers/quantization/quantization/base.py21__all__ = ["QuantizationModifier"]CODE
LOWsrc/llmcompressor/modifiers/pruning/helpers.py17__all__ = [CODE
LOWsrc/llmcompressor/modifiers/pruning/reap/utils.py20__all__ = [CODE
LOWsrc/llmcompressor/modifiers/pruning/reap/base.py27__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.py3__all__ = ["fix_attention_mask"]CODE
LOWsrc/llmcompressor/modifiers/autoround/base.py30__all__ = ["AutoRoundModifier", "fix_batch_if_needed"]CODE
LOWsrc/llmcompressor/modifiers/gptq/gptq_quantize.py16__all__ = ["make_empty_hessian", "accumulate_hessian", "quantize_weight"]CODE
LOWsrc/llmcompressor/modifiers/gptq/base.py41__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.py279 def _set_resolved_mappings(self, model: Module) -> None:CODE
LOWsrc/llmcompressor/modifiers/transform/awq/base.py387 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/imatrix/base.py9__all__ = ["IMatrixGatherer"]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.py15__all__ = ["CalibrationPipeline"]CODE
LOWsrc/llmcompressor/pipelines/data_free/pipeline.py14__all__ = ["DataFreePipeline"]CODE
LOWsrc/llmcompressor/pipelines/sequential/ast_helpers.py14__all__ = ["autowrap_forwards", "append_autowrap_source_on_fail"]CODE
45 more matches not shown…
Cross-File Repetition16 hits · 80 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/cnn_dailymail.py0text generation class for the cnn/dailymail dataset :param dataset_args: configuration settings for dataset loading :parSTRING
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALsrc/llmcompressor/modifiers/transform/awq/base.py49from llmcompressor.utils.helpers import calibration_forward_contextCODE
CRITICALsrc/llmcompressor/pipelines/sequential/pipeline.py18from llmcompressor.utils.helpers import DisableQuantization, calibration_forward_contextCODE
CRITICALsrc/llmcompressor/pipelines/sequential/helpers.py23from llmcompressor.utils.helpers import calibration_forward_contextCODE
CRITICALsrc/llmcompressor/pipelines/basic/pipeline.py14from llmcompressor.utils.helpers import DisableQuantizationCODE
CRITICALsrc/llmcompressor/utils/dist.py9from compressed_tensors.utils.helpers import deprecatedCODE
CRITICAL…ressor/entrypoints/model_free/reindex_fused_weights.py3from compressed_tensors.utils.helpers import deprecatedCODE
Deep Nesting59 hits · 56 pts
SeverityFileLineSnippetContext
LOWtools/collect_env.py18CODE
LOWtools/lint_cuda.py96CODE
LOWtools/lint_cuda.py250CODE
LOWtests/testing_utils.py565CODE
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…mpressor/transformers/compression/test_quantization.py36CODE
LOWtests/llmcompressor/observers/test_mse_vs_minmax.py205CODE
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
LOWsrc/llmcompressor/modifiers/factory.py38CODE
LOWsrc/llmcompressor/modifiers/factory.py75CODE
LOWsrc/llmcompressor/modifiers/factory.py50CODE
LOW…compressor/modifiers/quantization/quantization/base.py119CODE
LOWsrc/llmcompressor/modifiers/pruning/reap/utils.py52CODE
LOW…ompressor/modifiers/pruning/sparsegpt/sgpt_sparsify.py58CODE
LOWsrc/llmcompressor/modifiers/autoround/base.py396CODE
LOWsrc/llmcompressor/modifiers/autoround/base.py412CODE
LOWsrc/llmcompressor/modifiers/autoround/base.py513CODE
LOWsrc/llmcompressor/modifiers/gptq/gptq_quantize.py65CODE
LOWsrc/llmcompressor/modifiers/transform/awq/base.py279CODE
LOWsrc/llmcompressor/modifiers/transform/awq/base.py477CODE
LOWsrc/llmcompressor/modifiers/transform/awq/base.py866CODE
LOW…/llmcompressor/modifiers/transform/smoothquant/base.py320CODE
LOWsrc/llmcompressor/recipe/utils.py112CODE
LOWsrc/llmcompressor/recipe/recipe.py88CODE
LOWsrc/llmcompressor/recipe/recipe.py168CODE
LOWsrc/llmcompressor/pipelines/cache.py299CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py356CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py821CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1018CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1239CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1326CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1386CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1427CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1331CODE
LOWsrc/llmcompressor/pipelines/sequential/pipeline.py55CODE
LOWsrc/llmcompressor/pipelines/sequential/helpers.py204CODE
LOWsrc/llmcompressor/pipelines/sequential/helpers.py252CODE
LOWsrc/llmcompressor/pipelines/sequential/helpers.py66CODE
LOWsrc/llmcompressor/utils/helpers.py141CODE
LOWsrc/llmcompressor/utils/pytorch/module.py29CODE
LOWsrc/llmcompressor/modeling/moe/helpers.py46CODE
LOWsrc/llmcompressor/transformers/data/data_helpers.py40CODE
LOWsrc/llmcompressor/entrypoints/utils.py41CODE
LOWsrc/llmcompressor/entrypoints/model_free/save_utils.py71CODE
LOWsrc/llmcompressor/entrypoints/model_free/process.py239CODE
LOWsrc/llmcompressor/entrypoints/model_free/helpers.py34CODE
LOW…ompressor/pytorch/utils/sparsification_info/configs.py345CODE
LOW…ompressor/pytorch/utils/sparsification_info/helpers.py87CODE
LOWsrc/llmcompressor/observers/helpers.py174CODE
Self-Referential Comments18 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUMtests/llmcompressor/modifiers/pruning/reap/test_base.py640 # 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.py147 # 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/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.py219 # Create a dedicated CUDA stream for H2D transfers so they run on aCOMMENT
MEDIUM…ompressor/pipelines/sequential/transformers_helpers.py1487 # 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 Wrapping27 hits · 32 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.py754 except Exception as e:CODE
LOWtests/testing_utils.py790 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
LOWdocs/scripts/zensical_gen_files.py215 except Exception: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
LOW…llmcompressor/modifiers/transform/smoothquant/utils.py174 except Exception as original_exception:CODE
MEDIUM…llmcompressor/modifiers/transform/smoothquant/utils.py171def wrapper(*args, **kwargs):CODE
LOWsrc/llmcompressor/core/lifecycle.py67 except Exception as e:CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1314 except Exception as e:CODE
LOWsrc/llmcompressor/pipelines/sequential/ast_helpers.py95 except Exception as exception:CODE
MEDIUMsrc/llmcompressor/pipelines/sequential/ast_helpers.py92def append_autowrap_source_on_fail():CODE
LOW…pressor/pipelines/sequential/ast_utils/auto_wrapper.py120 except Exception:CODE
LOW…pressor/pipelines/sequential/ast_utils/auto_wrapper.py159 except Exception:CODE
LOWsrc/llmcompressor/transformers/utils/helpers.py136 except Exception as e: # TODO: narrow acceptable exceptionsCODE
LOWsrc/llmcompressor/entrypoints/utils.py71 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 Overuse20 hits · 32 pts
SeverityFileLineSnippetContext
LOWdocs/guides/entrypoints/convert.md171# Step 1: convert to bfloat16COMMENT
LOWdocs/guides/entrypoints/convert.md184# 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
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
LOWsrc/llmcompressor/modeling/offset_norm.py121 # Step 1: Collect all offset-norm modules that need replacementCOMMENT
LOWsrc/llmcompressor/modeling/offset_norm.py129 # Step 2: Replace modulesCOMMENT
LOWsrc/llmcompressor/modeling/offset_norm.py144 # Step 3: Restore original modules with updated weightsCOMMENT
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWtests/lmeval/test_lmeval.py315 # Check if within ±5% relative toleranceCOMMENT
LOWtests/examples/test_example_scripts.py212 # Check if this is a multi-GPU testCOMMENT
LOWsrc/llmcompressor/modifiers/gptq/base.py297 # Assign modules to ranksCOMMENT
LOWsrc/llmcompressor/modifiers/transform/awq/base.py181 # Check if we have a MoE modelCOMMENT
LOWsrc/llmcompressor/modifiers/transform/awq/base.py316 # Check if at least one layer is targeted for quantizationCOMMENT
LOWsrc/llmcompressor/modifiers/transform/awq/base.py877 # Check if this is an up_proj -> down_proj mappingCOMMENT
LOW…/llmcompressor/modifiers/transform/smoothquant/base.py224 # Check if at least one layer would be smoothed (not ignored)COMMENT
LOWsrc/llmcompressor/pipelines/cache.py390 # 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
AI Structural Patterns9 hits · 8 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.py179CODE
LOWsrc/llmcompressor/core/session.py74CODE
LOWsrc/llmcompressor/core/state.py122CODE
LOWsrc/llmcompressor/modeling/deepseekv32/config.py94CODE
LOWsrc/llmcompressor/transformers/data/base.py297CODE
LOWsrc/llmcompressor/entrypoints/oneshot.py265CODE
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
AI Slop Vocabulary2 hits · 6 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.py62# only include mappings pertaining to target layersCOMMENT
Verbosity Indicators3 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/llmcompressor/modeling/offset_norm.py121 # Step 1: Collect all offset-norm modules that need replacementCOMMENT
LOWsrc/llmcompressor/modeling/offset_norm.py129 # Step 2: Replace modulesCOMMENT
LOWsrc/llmcompressor/modeling/offset_norm.py144 # Step 3: Restore original modules with updated weightsCOMMENT
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.py1253 if kind == "placeholder" and target in self.meta_args:CODE
LOW…ompressor/pipelines/sequential/transformers_helpers.py1544 if node.op == "placeholder":CODE
LOWsrc/llmcompressor/pipelines/sequential/helpers.py384 input_names = set(node.name for node in graph.nodes if node.op == "placeholder")CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/llmcompressor/modeling/deepseekv32/model.py56 Forward pass for parallel embedding layer. Args: x (torch.Tensor): Input tensor containingSTRING
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
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWexamples/quantization_w4a4_fp4/qwen_30b_a3b.py61)COMMENT
LOWexamples/model_free_ptq/deepseek_r1_nvfp4_fp8_block.py41 # - model.layers.0.mlp.down_proj.weightCOMMENT
LOW…ompressor/pipelines/sequential/transformers_helpers.py1# ruff: noqaCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexamples/transform/quip_example.py15# example, you can use additional GPUs to support larger modelsCOMMENT