AI Slop Code RIsk Monitor

lucidrains/vit-pytorch

Implementation of Vision Transformer, a simple way to achieve SOTA in vision classification with only a single transformer encoder, in Pytorch

5.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for lucidrains/vit-pytorch, a Python project with 25,543 GitHub stars. SynthScan examined 22,977 lines of code across 88 source files, recording 112 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 5.2 (Moderate pattern signal); it is not an authorship estimate.

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

5.2
Adjusted Signal
5.2
Raw Pattern Score
100%
Time Factor
2026-09-20
Last Push
25.5K
Stars
Python
Language
23.0K
Lines of Code
88
Files
112
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 10.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 11.3/100 · LOW

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

Agent Over-Engineering Ratio 12.6/100 · LOW

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

PR Review Velocity Impact 23.3/100 · LOW

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 2MEDIUM 0LOW 110

Directory Score Breakdown

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

Pattern Findings

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

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

Unused Imports55 hits · 55 pts
SeverityFileLineSnippetContext
LOWtrain_vit_decorr.py9CODE
LOWvit_pytorch/levjepa_nd.py4CODE
LOWvit_pytorch/max_vit.py1CODE
LOWvit_pytorch/max_vit.py6CODE
LOWvit_pytorch/levjepa.py3CODE
LOWvit_pytorch/cross_vit.py3CODE
LOWvit_pytorch/vit_nd.py1CODE
LOWvit_pytorch/vit_with_keel_post_ln.py1CODE
LOWvit_pytorch/look_vit.py6CODE
LOWvit_pytorch/nest.py1CODE
LOWvit_pytorch/vit_nd_pope.py1CODE
LOWvit_pytorch/na_vit_nested_tensor_3d.py1CODE
LOWvit_pytorch/crossformer.py5CODE
LOWvit_pytorch/deepvit.py3CODE
LOWvit_pytorch/efficient.py3CODE
LOWvit_pytorch/vat.py1CODE
LOWvit_pytorch/cvt.py3CODE
LOWvit_pytorch/cvt.py5CODE
LOWvit_pytorch/twins_svt.py3CODE
LOWvit_pytorch/twins_svt.py5CODE
LOWvit_pytorch/vit_5.py5CODE
LOWvit_pytorch/normalized_vit.py7CODE
LOWvit_pytorch/recorder.py1CODE
LOWvit_pytorch/levit.py5CODE
LOWvit_pytorch/levit.py7CODE
LOWvit_pytorch/vit_for_small_dataset.py1CODE
LOWvit_pytorch/accept_video_wrapper.py1CODE
LOWvit_pytorch/accept_video_wrapper.py12CODE
LOWvit_pytorch/__init__.py1CODE
LOWvit_pytorch/__init__.py2CODE
LOWvit_pytorch/__init__.py4CODE
LOWvit_pytorch/__init__.py5CODE
LOWvit_pytorch/na_vit_nested_tensor.py1CODE
LOWvit_pytorch/wwt.py1CODE
LOWvit_pytorch/wwt.py7CODE
LOWvit_pytorch/extractor.py1CODE
LOWvit_pytorch/scalable_vit.py5CODE
LOWvit_pytorch/scalable_vit.py6CODE
LOWvit_pytorch/local_vit.py4CODE
LOWvit_pytorch/vivit.py1CODE
LOWvit_pytorch/distill.py10CODE
LOWvit_pytorch/jet_vit.py1CODE
LOWvit_pytorch/vat_siglip.py1CODE
LOWvit_pytorch/vit_with_patch_merger.py4CODE
LOWvit_pytorch/vaat.py3CODE
LOWvit_pytorch/na_vit.py1CODE
LOWvit_pytorch/vit_detpool.py1CODE
LOWvit_pytorch/pit.py5CODE
LOWvit_pytorch/rvt.py1CODE
LOWvit_pytorch/cait.py4CODE
LOWvit_pytorch/vit_nd_rotary.py1CODE
LOWvit_pytorch/max_vit_with_registers.py1CODE
LOWvit_pytorch/simple_vit_with_specialized_cls.py1CODE
LOWvit_pytorch/vit_with_decorr.py6CODE
LOWvit_pytorch/simple_vit_attn_residual.py3CODE
AI Structural Patterns38 hits · 38 pts
SeverityFileLineSnippetContext
LOWvit_pytorch/levjepa_nd.py351CODE
LOWvit_pytorch/levjepa.py359CODE
LOWvit_pytorch/cross_vit.py205CODE
LOWvit_pytorch/look_vit.py141CODE
LOWvit_pytorch/vit_nd_pope.py195CODE
LOWvit_pytorch/lejepa.py211CODE
LOWvit_pytorch/crossformer.py209CODE
LOWvit_pytorch/deepvit.py70CODE
LOWvit_pytorch/simple_flash_attn_vit_3d.py79CODE
LOWvit_pytorch/vat.py261CODE
LOWvit_pytorch/cvt.py115CODE
LOWvit_pytorch/twins_svt.py179CODE
LOWvit_pytorch/cct.py160CODE
LOWvit_pytorch/cct.py163CODE
LOWvit_pytorch/cct.py210CODE
LOWvit_pytorch/cct.py307CODE
LOWvit_pytorch/accept_video_wrapper.py28CODE
LOWvit_pytorch/simple_flash_attn_vit.py84CODE
LOWvit_pytorch/wwt.py310CODE
LOWvit_pytorch/regionvit.py195CODE
LOWvit_pytorch/scalable_vit.py197CODE
LOWvit_pytorch/scalable_vit.py241CODE
LOWvit_pytorch/cct_3d.py160CODE
LOWvit_pytorch/cct_3d.py163CODE
LOWvit_pytorch/cct_3d.py229CODE
LOWvit_pytorch/cct_3d.py326CODE
LOWvit_pytorch/mpp.py80CODE
LOWvit_pytorch/vivit_with_moss.py279CODE
LOWvit_pytorch/vat_siglip.py171CODE
LOWvit_pytorch/t2t.py27CODE
LOWvit_pytorch/vaat.py209CODE
LOWvit_pytorch/vaat.py422CODE
LOWvit_pytorch/dino.py185CODE
LOWvit_pytorch/vit_nd_rotary.py171CODE
LOWvit_pytorch/max_vit_with_registers.py201CODE
LOWvit_pytorch/es_vit.py224CODE
LOWvit_pytorch/vit_with_decorr.py29CODE
LOWvit_pytorch/vit_with_decorr.py186CODE
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHvit_pytorch/levjepa_nd.py92except Exception:CODE
HIGHvit_pytorch/levjepa.py50except Exception:CODE
Hyper-Verbose Identifiers9 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/test_dino_loss.py42def test_loss_and_gradient_stay_finite_for_low_precision_logits(dtype):CODE
LOWtests/test_dino_loss.py63def test_loss_gradient_matches_log_softmax_reference():CODE
LOWvit_pytorch/levjepa_nd.py57def create_nd_block_causal_mask_fn(coords, causal_dims):CODE
LOWvit_pytorch/levjepa.py40def create_block_causal_mask_fn(frame_idx):CODE
LOWvit_pytorch/cvt.py18def group_by_key_prefix_and_remove_prefix(prefix, d):CODE
LOWvit_pytorch/twins_svt.py18def group_by_key_prefix_and_remove_prefix(prefix, d):CODE
LOWvit_pytorch/learnable_memory_vit.py18def set_module_requires_grad_(module, requires_grad):CODE
LOWvit_pytorch/mpp.py18def get_mask_subset_with_prob(patched_input, prob):CODE
LOWvit_pytorch/na_vit.py38def group_images_by_max_seq_len(CODE
AI Slop Vocabulary3 hits · 4 pts
SeverityFileLineSnippetContext
LOWvit_pytorch/vat.py278 add_self_attn = True, # in the paper, they didn't have any ways for the action token to exchange information wiCODE
LOWvit_pytorch/vaat.py441 add_self_attn = True, # in the paper, they didn't have any ways for the action token to exchange information wiCODE
LOWvit_pytorch/vit_with_decorr.py2# but instead of their decorr module updated with SGD, remove all projections and just return a decorrelation auxiliary COMMENT
Excessive Try-Catch Wrapping3 hits · 3 pts
SeverityFileLineSnippetContext
LOWvit_pytorch/levjepa_nd.py92 except Exception:CODE
LOWvit_pytorch/levjepa_nd.py317 except Exception:CODE
LOWvit_pytorch/levjepa.py50 except Exception:CODE
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWvit_pytorch/cct.py20__all__ = ['cct_2', 'cct_4', 'cct_6', 'cct_7', 'cct_8', 'cct_14', 'cct_16']CODE
LOWvit_pytorch/cct_3d.py20__all__ = ['cct_2', 'cct_4', 'cct_6', 'cct_7', 'cct_8', 'cct_14', 'cct_16']CODE