AI Slop Code RIsk Monitor

Tencent-Hunyuan/HunyuanVideo

HunyuanVideo: A Systematic Framework For Large Video Generation Model

20.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for Tencent-Hunyuan/HunyuanVideo, a Python project with 12,611 GitHub stars. SynthScan examined 8,923 lines of code across 44 source files, recording 106 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 20.1 (Elevated pattern signal); it is not an authorship estimate.

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

20.1
Adjusted Signal
20.1
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
12.6K
Stars
Python
Language
8.9K
Lines of Code
44
Files
106
Pattern Hits
2026-10-12
Scan Date
0.11
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 27.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 11.1/100 · LOW

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

Agent Over-Engineering Ratio 52.0/100 · HIGH

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

PR Review Velocity Impact 64.5/100 · HIGH

Which changes need focused human review? 106 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 5MEDIUM 27LOW 74

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 106 distinct pattern matches across 11 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.

Decorative Section Separators26 hits · 83 pts
SeverityFileLineSnippetContext
MEDIUMhyvideo/constants.py32# --------------------------------------------------------------------COMMENT
MEDIUM⚡hyvideo/inference.py612 # ========================================================================COMMENT
MEDIUM⚡hyvideo/inference.py614 # ========================================================================COMMENT
MEDIUM⚡hyvideo/inference.py622 # ========================================================================COMMENT
MEDIUM⚡hyvideo/inference.py624 # ========================================================================COMMENT
MEDIUM⚡hyvideo/inference.py630 # ========================================================================COMMENT
MEDIUM⚡hyvideo/inference.py632 # ========================================================================COMMENT
MEDIUMhyvideo/inference.py153 # ========================================================================COMMENT
MEDIUMhyvideo/inference.py535 # ========================================================================COMMENT
MEDIUMhyvideo/inference.py537 # ========================================================================COMMENT
MEDIUMhyvideo/inference.py572 # ========================================================================COMMENT
MEDIUMhyvideo/inference.py574 # ========================================================================COMMENT
MEDIUMhyvideo/inference.py594 # ========================================================================COMMENT
MEDIUMhyvideo/inference.py596 # ========================================================================COMMENT
MEDIUMhyvideo/inference.py648 # ========================================================================COMMENT
MEDIUMhyvideo/inference.py650 # ========================================================================COMMENT
MEDIUMhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py14# ==============================================================================COMMENT
MEDIUMhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py18# ==============================================================================COMMENT
MEDIUMhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py181 # ==========================================================================================STRING
MEDIUMhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py189 # ==========================================================================================STRING
MEDIUM…diffusion/schedulers/scheduling_flow_match_discrete.py14# ==============================================================================COMMENT
MEDIUM…diffusion/schedulers/scheduling_flow_match_discrete.py18# ==============================================================================COMMENT
MEDIUMhyvideo/vae/unet_causal_3d_blocks.py14# ==============================================================================COMMENT
MEDIUMhyvideo/vae/unet_causal_3d_blocks.py18# ==============================================================================COMMENT
MEDIUMhyvideo/vae/autoencoder_kl_causal_3d.py14# ==============================================================================COMMENT
MEDIUMhyvideo/vae/autoencoder_kl_causal_3d.py18# ==============================================================================COMMENT
AI Structural Patterns23 hits · 22 pts
SeverityFileLineSnippetContext
LOWhyvideo/inference.py502CODE
LOWhyvideo/text_encoder/__init__.py103CODE
LOWhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py238CODE
LOWhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py664CODE
LOWhyvideo/modules/attenion.py175CODE
LOWhyvideo/modules/attenion.py60CODE
LOWhyvideo/modules/models.py449CODE
LOWhyvideo/modules/embed_layers.py23CODE
LOWhyvideo/modules/mlp_layers.py16CODE
LOWhyvideo/modules/token_refiner.py17CODE
LOWhyvideo/modules/token_refiner.py104CODE
LOWhyvideo/modules/token_refiner.py168CODE
LOWhyvideo/vae/unet_causal_3d_blocks.py418CODE
LOWhyvideo/vae/unet_causal_3d_blocks.py471CODE
LOWhyvideo/vae/unet_causal_3d_blocks.py82CODE
LOWhyvideo/vae/unet_causal_3d_blocks.py190CODE
LOWhyvideo/vae/unet_causal_3d_blocks.py254CODE
LOWhyvideo/vae/unet_causal_3d_blocks.py531CODE
LOWhyvideo/vae/unet_causal_3d_blocks.py632CODE
LOWhyvideo/vae/unet_causal_3d_blocks.py698CODE
LOWhyvideo/vae/autoencoder_kl_causal_3d.py64CODE
LOWhyvideo/vae/vae.py37CODE
LOWhyvideo/vae/vae.py141CODE
Unused Imports21 hits · 21 pts
SeverityFileLineSnippetContext
LOWgradio_server.py6CODE
LOWgradio_server.py11CODE
LOWutils/collect_env.py36CODE
LOWhyvideo/config.py2CODE
LOWhyvideo/inference.py5CODE
LOWhyvideo/inference.py5CODE
LOWhyvideo/inference.py5CODE
LOWhyvideo/utils/data_utils.py1CODE
LOWhyvideo/text_encoder/__init__.py3CODE
LOWhyvideo/diffusion/__init__.py1CODE
LOWhyvideo/diffusion/__init__.py2CODE
LOWhyvideo/diffusion/pipelines/__init__.py1CODE
LOWhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py25CODE
LOW…diffusion/schedulers/scheduling_flow_match_discrete.py23CODE
LOWhyvideo/diffusion/schedulers/__init__.py1CODE
LOWhyvideo/modules/attenion.py1CODE
LOWhyvideo/modules/attenion.py5CODE
LOWhyvideo/modules/models.py6CODE
LOWhyvideo/modules/embed_layers.py4CODE
LOWhyvideo/modules/embed_layers.py4CODE
LOWhyvideo/modules/token_refiner.py13CODE
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHutils/collect_env.py188except ModuleNotFoundError:CODE
HIGHutils/collect_env.py194except ImportError:CODE
HIGHutils/collect_env.py21except ImportError:CODE
Deep Nesting11 hits · 11 pts
SeverityFileLineSnippetContext
LOWgradio_server.py65CODE
LOWutils/collect_env.py64CODE
LOWhyvideo/inference.py280CODE
LOWhyvideo/inference.py502CODE
LOWhyvideo/text_encoder/__init__.py217CODE
LOWhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py238CODE
LOWhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py482CODE
LOWhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py664CODE
LOWhyvideo/modules/activation_layers.py4CODE
LOWhyvideo/modules/attenion.py60CODE
LOWhyvideo/vae/unet_causal_3d_blocks.py254CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py704 The call function to the pipeline for generation. Args: prompt (`str` or `List[str]`): STRING
HIGHhyvideo/modules/posemb_layers.py70 Reshape frequency tensor for broadcasting it with another tensor. This function reshapes the frequency tensor STRING
Hyper-Verbose Identifiers12 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/test_attention.py44def test_mm_double_stream_block_attention(rank, world_size):CODE
LOWtests/test_attention.py112def test_mm_single_stream_block_attention(rank, world_size):CODE
LOWhyvideo/config.py175def add_denoise_schedule_args(parser: argparse.ArgumentParser):CODE
LOW…video/utils/preprocess_text_encoder_tokenizer_utils.py9def preprocess_text_encoder_tokenizer(args):CODE
LOWhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py469 def prepare_extra_func_kwargs(self, func, kwargs):STRING
LOWhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py597 def get_guidance_scale_embedding(STRING
LOWhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py646 def do_classifier_free_guidance(self):STRING
LOWhyvideo/vae/unet_causal_3d_blocks.py37def prepare_causal_attention_mask(n_frame: int, n_hw: int, dtype, device, batch_size: int = None):CODE
LOWhyvideo/vae/autoencoder_kl_causal_3d.py134 def _set_gradient_checkpointing(self, module, value=False):STRING
LOWhyvideo/vae/autoencoder_kl_causal_3d.py192 def fn_recursive_add_processors(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor]):STRING
LOWhyvideo/vae/autoencoder_kl_causal_3d.py230 def fn_recursive_attn_processor(name: str, module: torch.nn.Module, processor):STRING
LOWhyvideo/vae/autoencoder_kl_causal_3d.py244 def set_default_attn_processor(self):STRING
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWscripts/run_sample_video_multigpu.sh1#!/bin/bashCOMMENT
LOWhyvideo/diffusion/pipelines/pipeline_hunyuan_video.py1# Copyright 2024 The HuggingFace Team. All rights reserved.COMMENT
LOW…diffusion/schedulers/scheduling_flow_match_discrete.py1# Copyright 2024 Stability AI, Katherine Crowson and The HuggingFace Team. All rights reserved.COMMENT
LOWhyvideo/vae/unet_causal_3d_blocks.py1# Copyright 2024 The HuggingFace Team. All rights reserved.COMMENT
LOWhyvideo/vae/autoencoder_kl_causal_3d.py1# Copyright 2024 The HuggingFace Team. All rights reserved.COMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWutils/collect_env.py38except Exception:CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWhyvideo/constants.py4__all__ = [CODE
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMhyvideo/prompt_rewrite.py51# Then you can use the normal_prompt or master_prompt to access the hunyuan-large rewrite model to get the final prompt.STRING