AI Slop Code RIsk Monitor

deepseek-ai/DeepGEMM

DeepGEMM: clean and efficient BLAS kernel library on GPU

9.9 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for deepseek-ai/DeepGEMM, a Cuda project with 8,926 GitHub stars. SynthScan examined 19,045 lines of code across 99 source files, recording 211 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 9.9 (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.

9.9
Adjusted Signal
9.9
Raw Pattern Score
100%
Time Factor
2026-09-30
Last Push
8.9K
Stars
Cuda
Language
19.0K
Lines of Code
99
Files
211
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 21.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 20.0/100 · LOW

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

Agent Over-Engineering Ratio 13.2/100 · LOW

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

PR Review Velocity Impact 43.6/100 · MEDIUM

Which changes need focused human review? 211 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 1MEDIUM 1LOW 209

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 211 distinct pattern matches across 10 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 Imports114 hits · 85 pts
SeverityFileLineSnippetContext
LOWdeep_gemm/__init__.py3CODE
LOWdeep_gemm/__init__.py17CODE
LOWdeep_gemm/__init__.py17CODE
LOWdeep_gemm/__init__.py17CODE
LOWdeep_gemm/__init__.py17CODE
LOWdeep_gemm/__init__.py17CODE
LOWdeep_gemm/__init__.py17CODE
LOWdeep_gemm/__init__.py17CODE
LOWdeep_gemm/__init__.py17CODE
LOWdeep_gemm/__init__.py17CODE
LOWdeep_gemm/__init__.py31CODE
LOWdeep_gemm/__init__.py31CODE
LOWdeep_gemm/__init__.py31CODE
LOWdeep_gemm/__init__.py31CODE
LOWdeep_gemm/__init__.py31CODE
LOWdeep_gemm/__init__.py31CODE
LOWdeep_gemm/__init__.py31CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
LOWdeep_gemm/__init__.py39CODE
54 more matches not shown…
Hyper-Verbose Identifiers41 hits · 40 pts
SeverityFileLineSnippetContext
LOWdeep_gemm/mega/__init__.py87def get_symm_buffer_for_mega_moe(group: dist.ProcessGroup,CODE
LOWdeep_gemm/mega/__init__.py146def transform_weights_for_mega_moe(CODE
LOWtests/test_mega_moe.py36def _to_shared_mega_moe_sf_layout(sf: torch.Tensor, block_m: int, num_max_sf_tokens: int) -> torch.Tensor:CODE
LOWtests/test_lazy_init.py116 def test_real_cublaslt_shutdown(self):STRING
LOWtests/test_lazy_init.py141 def test_cuda_workspaces_are_released(self):STRING
LOWtests/test_mega_gate.py258def test_mega_gate_api_contract() -> None:CODE
LOWtests/generators.py176def enumerate_batched_syrk_symm() -> Generator:CODE
LOWtests/generators.py194def enumerate_m_grouped_contiguous(dtype: torch.dtype) -> Generator:CODE
LOWtests/generators.py213def enumerate_m_grouped_masked(dtype: torch.dtype) -> Generator:CODE
LOWtests/generators.py229def enumerate_k_grouped_contiguous(dtype: torch.dtype):CODE
LOWtests/generators.py265def enumerate_k_grouped_contiguous_test_variants(real_ks_cpu: List[int]):CODE
LOWtests/generators.py293def enumerate_k_grouped_sf_layout():CODE
LOWtests/generators.py303def enumerate_k_grouped_psum_sf_layout():CODE
LOWtests/generators.py378def generate_m_grouped_contiguous(num_groups: int, expected_m_per_group: int, n: int, k: int,CODE
LOWtests/generators.py434def masked_valid_mask_to_psum(masked_m: torch.Tensor, psum_m: torch.Tensor) -> torch.Tensor:CODE
LOWtests/generators.py446def generate_m_grouped_masked(num_groups: int, max_m: int, expected_m_per_group: int, n: int, k: int,CODE
LOWtests/generators.py542def build_psum_layout_from_ks(real_ks: List[int], k_alignment: int) -> List[int]:CODE
LOWtests/generators.py551def generate_k_grouped_contiguous(num_groups: int, m: int, n: int, major_a: MajorTypeAB, major_b: MajorTypeAB, logical_kCODE
LOWtests/test_fp8_fp4.py114def test_m_grouped_gemm_contiguous() -> None:CODE
LOWtests/test_fp8_fp4.py178def test_m_grouped_gemm_masked() -> None:CODE
LOWtests/test_fp8_fp4.py241def test_k_grouped_gemm_contiguous() -> None:CODE
LOWtests/test_attention.py304 def enumerate_paged_mqa_logits():CODE
LOWtests/test_attention.py442def make_sparse_kv_block_indices(context_lens: List[int], request_indices: List[int] | None,CODE
LOWtests/test_attention.py480 def enumerate_sparse_mqa_logits():CODE
LOWtests/test_legacy.py14def test_m_grouped_gemm_contiguous_tl() -> None:CODE
LOWtests/test_legacy.py50def test_k_grouped_gemm_contiguous_tl() -> None:CODE
LOWtests/test_bf16.py69def test_m_grouped_gemm_contiguous() -> None:CODE
LOWtests/test_bf16.py111def test_m_grouped_gemm_masked() -> None:CODE
LOWtests/test_bf16.py158def test_k_grouped_gemm_contiguous() -> None:CODE
LOWtests/test_bf16.py247def test_cublaslt_batched_syrk() -> None:CODE
LOWtests/test_bf16.py283def test_cublaslt_batched_symm() -> None:CODE
LOWtests/test_layout.py83def test_k_grouped_sf_layout_kernels() -> None:CODE
LOWtests/test_layout.py118def test_k_grouped_psum_sf_layout_kernels() -> None:CODE
LOWtests/test_mega_mhc.py243def test_mega_mhc_api_contract() -> None:CODE
LOWscripts/generate_pyi.py135 def _in_top_level_of_other_brackets(self):CODE
LOWscripts/generate_pyi.py345def extract_cpp_signature_from_content(cpp_func_name, content):CODE
LOWscripts/generate_pyi.py389def parse_mdef_and_attach_cpp_signatures(item, func_index):CODE
LOWscripts/generate_pyi.py494def parse_parameter_declaration(decl: str):CODE
LOWscripts/generate_pyi.py581def extract_cpp_signature_details(item):CODE
LOWscripts/generate_pyi.py723def cpp_default_to_python_default(cpp_default: str):CODE
LOWscripts/generate_pyi.py828def generate_pyi_file_content(enhanced_results, module_name: str = 'my_module'):CODE
Deep Nesting31 hits · 30 pts
SeverityFileLineSnippetContext
LOWdeep_gemm/testing/bench.py79CODE
LOWtests/test_lazy_init.py141CODE
LOWtests/generators.py122CODE
LOWtests/generators.py194CODE
LOWtests/generators.py213CODE
LOWtests/generators.py229CODE
LOWtests/generators.py276CODE
LOWtests/test_fp8_fp4.py26CODE
LOWtests/test_fp8_fp4.py241CODE
LOWtests/test_attention.py104CODE
LOWtests/test_attention.py299CODE
LOWtests/test_attention.py442CODE
LOWtests/test_attention.py477CODE
LOWtests/test_attention.py123CODE
LOWtests/test_attention.py304CODE
LOWtests/test_attention.py480CODE
LOWtests/test_legacy.py14CODE
LOWtests/test_bf16.py23CODE
LOWtests/test_bf16.py158CODE
LOWtests/test_bf16.py247CODE
LOWtests/test_bf16.py283CODE
LOWtests/test_einsum.py44CODE
LOWtests/test_einsum.py75CODE
LOWtests/test_einsum.py128CODE
LOWtests/test_mega_mhc.py320CODE
LOWscripts/generate_pyi.py5CODE
LOWscripts/generate_pyi.py151CODE
LOWscripts/generate_pyi.py225CODE
LOWscripts/generate_pyi.py345CODE
LOWscripts/generate_pyi.py828CODE
LOWscripts/generate_pyi.py112CODE
Excessive Try-Catch Wrapping8 hits · 8 pts
SeverityFileLineSnippetContext
LOWsetup.py68 except Exception:CODE
LOWdeep_gemm/__init__.py118except Exception as e:CODE
LOWdeep_gemm/mega/__init__.py12except Exception as exception:CODE
LOWtests/test_mega_moe.py30 except Exception as ex:CODE
LOWscripts/generate_pyi.py25 except Exception as e:CODE
LOWscripts/generate_pyi.py170 except Exception as e:CODE
LOWscripts/generate_pyi.py594 except Exception as e:CODE
LOWscripts/generate_pyi.py846 except Exception as e:CODE
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWcsrc/python_api.cpp1#include <pybind11/pybind11.h>COMMENT
LOWcsrc/apis/einsum.hpp1#pragma onceCOMMENT
LOWcsrc/runtime/runtime.hpp1#pragma onceCOMMENT
LOWcsrc/utils/layout.hpp1#pragma onceCOMMENT
LOWcsrc/jit_kernels/heuristics/mega_gate.hpp1#pragma onceCOMMENT
LOWcsrc/jit_kernels/heuristics/mega_moe.hpp1#pragma onceCOMMENT
LOWcsrc/jit_kernels/impls/epilogue_class.hpp1#pragma onceCOMMENT
LOWcsrc/jit_kernels/impls/runtime_utils.hpp1#pragma onceCOMMENT
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/generate_pyi.py517 # Instead of simple splitting, we'll use a more robust approachCOMMENT
LOWscripts/generate_pyi.py523 # No parameter name found, just return the typeCOMMENT
LOWscripts/generate_pyi.py574 # Fallback: if we can't find a clear parameter name, just return the typeCOMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdeep_gemm/__init__.py12except ImportError:CODE
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/scaling-factor-format.md411# Step 1: pack to the Section 3 int32 layout (mandatory; float32 SFs are rejected)COMMENT
LOWdocs/scaling-factor-format.md414# Step 2: mega-MoE weight/SF shuffle (gate-up interleave + UTCCP SF transpose; mandatory)COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/generate_pyi.py182 # Check if it's a commentCOMMENT
LOWscripts/generate_pyi.py549 # Check if this might be part of a type keyword (like 'int', 'bool', etc.)COMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/generators.py551CODE