AI Slop Code RIsk Monitor

ModelTC/LightX2V

Lightweight Image Video Action Generation Inference Framework

16.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ModelTC/LightX2V, a Python project with 2,897 GitHub stars. SynthScan examined 373,548 lines of code across 2998 source files, recording 4201 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 16.7 (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.

16.7
Adjusted Signal
16.7
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
2.9K
Stars
Python
Language
373.5K
Lines of Code
3.0K
Files
4.2K
Pattern Hits
2026-10-12
Scan Date
0.08
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 25.9/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 13.4/100 · LOW

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

Agent Over-Engineering Ratio 44.5/100 · MEDIUM

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

PR Review Velocity Impact 56.7/100 · HIGH

Which changes need focused human review? 4201 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 11HIGH 217MEDIUM 434LOW 3539

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 4201 distinct pattern matches across 24 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 Separators386 hits · 1294 pts
SeverityFileLineSnippetContext
MEDIUMtools/preprocess/dwpose_onnx.py28# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/preprocess/dwpose_onnx.py30# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/preprocess/dwpose_onnx.py143# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/preprocess/dwpose_onnx.py145# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/preprocess/dwpose_onnx.py253# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/preprocess/dwpose_onnx.py255# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/preprocess/dwpose_onnx.py411# -----------------------------------------------------------------------------COMMENT
MEDIUMtools/preprocess/dwpose_onnx.py413# -----------------------------------------------------------------------------COMMENT
MEDIUMlightx2v_platform/ops/attn/intel_xpu/xpu_flash_attn.py110 # ── normalise 4-D input [B, S, H, D] → [B*S, H, D] ──────────────────COMMENT
MEDIUMlightx2v_platform/ops/attn/intel_xpu/xpu_flash_attn.py123 # ── fast single-sequence path ─────────────────────────────────────COMMENT
MEDIUMlightx2v_platform/ops/attn/intel_xpu/xpu_flash_attn.py130 # ── varlen path: one SDPA call per sequence in the batch ──────────────COMMENT
MEDIUMlightx2v_platform/ops/mm/template.py122 # =========================COMMENT
MEDIUMlightx2v_platform/ops/mm/template.py124 # =========================COMMENT
MEDIUMlightx2v_platform/ops/mm/template.py410 # =========================COMMENT
MEDIUMlightx2v_platform/ops/mm/template.py412 # =========================COMMENT
MEDIUM…x2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py39# ---------------------------------------------------------------------------COMMENT
MEDIUM…x2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py42# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡lightx2v/models/networks/worldmirror/model.py717 # ------------------------------------------------------------------COMMENT
MEDIUM⚡lightx2v/models/networks/worldmirror/model.py721 # ------------------------------------------------------------------COMMENT
MEDIUM⚡lightx2v/models/networks/worldmirror/model.py991 # ------------------------------------------------------------------COMMENT
MEDIUM⚡lightx2v/models/networks/worldmirror/model.py994 # ------------------------------------------------------------------COMMENT
MEDIUM⚡lightx2v/models/networks/worldmirror/model.py1004 # ------------------------------------------------------------------COMMENT
MEDIUM⚡lightx2v/models/networks/worldmirror/model.py1006 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py40# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py155# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py158# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py188# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py190# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py286 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py289 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py337 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py339 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py374 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py376 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py467 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py478 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py566 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py568 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py966 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py968 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py425 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py431 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py465 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py472 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py499 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py501 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…v/models/networks/worldmirror/utils/inference_utils.py183# ============================================================COMMENT
MEDIUM⚡…v/models/networks/worldmirror/utils/inference_utils.py185# ============================================================COMMENT
MEDIUM…v/models/networks/worldmirror/utils/inference_utils.py37# ============================================================COMMENT
MEDIUM…v/models/networks/worldmirror/utils/inference_utils.py39# ============================================================COMMENT
MEDIUM…v/models/networks/worldmirror/utils/inference_utils.py118# ============================================================COMMENT
MEDIUM…v/models/networks/worldmirror/utils/inference_utils.py120# ============================================================COMMENT
MEDIUM…v/models/networks/worldmirror/utils/inference_utils.py341# ============================================================COMMENT
MEDIUM…v/models/networks/worldmirror/utils/inference_utils.py343# ============================================================COMMENT
MEDIUM…v/models/networks/worldmirror/utils/inference_utils.py528# ============================================================COMMENT
MEDIUM…v/models/networks/worldmirror/utils/inference_utils.py530# ============================================================COMMENT
MEDIUM…v/models/networks/worldmirror/utils/inference_utils.py810# ============================================================COMMENT
MEDIUM…v/models/networks/worldmirror/utils/inference_utils.py812# ============================================================COMMENT
MEDIUM…els/networks/flux2/infer/pipefusion/pipeline_driver.py39 # ==================================================================COMMENT
326 more matches not shown…
Hyper-Verbose Identifiers1234 hits · 1236 pts
SeverityFileLineSnippetContext
LOWtools/cache_minimax_h3_adaln/builder.py169def build_persistent_adaln_cache(config) -> Path:CODE
LOWtools/preprocess/retarget_pose.py357def fix_lack_keypoints_use_sym(skeleton):CODE
LOWtools/preprocess/process_pipepline.py72 def _get_valid_body_keypoint_mask(cls, pose_meta, keypoint_indices=None):CODE
LOWtools/preprocess/process_pipepline.py90 def _count_valid_body_keypoints(cls, pose_meta):CODE
LOWtools/preprocess/process_pipepline.py105 def _trim_tail_invalid_frames(frames, pose_metas, pose_valid_flags, mode_name):CODE
LOWtools/preprocess/utils.py27def skip_replace_frame_outputs(frame):CODE
LOWtools/preprocess/pose2d_utils.py740def keypoints_from_regression(regression_preds, center, scale, img_size):CODE
LOWtools/preprocess/pose2d_utils.py932def multilabel_classification_accuracy(pred, gt, mask, thr=0.5):CODE
LOWtools/profile/analyze_torch_trace_gap.py127def _collect_gpu_activity_intervals(events: Iterable[dict]) -> list[Interval]:CODE
LOWtools/benchmarks/sp_bench.py177def derive_replicated_prefix_split(total_sequence: int, conditioner_tokens: int, sp_size: int) -> tuple[int, int]:CODE
LOWtools/benchmarks/sp_bench.py289def _packed_tensor_description(name: str, shape: list[int], quant_scheme: str | None) -> dict[str, Any]:CODE
LOWtools/benchmarks/sp_bench.py562def enumerate_sparse_candidates(CODE
LOWtools/benchmarks/sp_bench.py866def _sparse_attention_operator(backend: str, keep_ratio: float) -> Any:CODE
LOWtools/benchmarks/sp_bench.py1008def _result_correctness_policy(case: dict[str, Any], candidate: dict[str, Any], *, allow_missing: bool = False) -> dict[CODE
LOWtools/benchmarks/sp_bench.py1025def _result_correctness_tolerance(case: dict[str, Any], candidate: dict[str, Any]) -> float:CODE
LOWtools/benchmarks/sp_bench.py1167def _bulk_reference_candidate(candidate: dict[str, Any]) -> dict[str, Any]:CODE
LOWtools/benchmarks/sp_bench.py1173def _reference_validation_candidates(case: dict[str, Any], candidates: list[dict[str, Any]]) -> list[dict[str, Any]]:CODE
LOWtools/benchmarks/sp_bench.py1853def _validate_report_record_identities(CODE
LOWtools/benchmarks/sp_bench.py1912def validate_existing_records(CODE
LOWtools/benchmarks/sp_bench.py2515def render_diagnostic_markdown(report: dict[str, Any]) -> str:CODE
LOWtools/benchmarks/sp_bench.py2600def diagnostic_candidates_from_report(path: Path, suite: dict[str, Any]) -> dict[str, str]:CODE
LOWtools/benchmarks/operator_backends.py654def _prepare_dynamic_sparse_replay(CODE
LOWtools/benchmarks/operator_backends.py693def _prepare_production_sparse_replay(CODE
LOWtools/benchmarks/operator_backends.py755def _prepare_production_dense_replay(CODE
LOWtools/benchmarks/operator_backends.py815def _prepare_production_dense(CODE
LOWtools/benchmarks/operator_backends.py1011def build_backend_catalog_report(CODE
LOWtools/benchmarks/operator_bench.py273def parse_backend_assignments(values: list[str]) -> dict[str, list[str]]:CODE
LOWtools/benchmarks/operator_bench.py648def build_recommendation_report(CODE
LOWtools/extract/lora_merger.py350def _find_source_key_from_diff(diff_key: str, source_weights: Dict[str, torch.Tensor]) -> Optional[str]:CODE
LOWtools/postprocess/postprocess_paint.py15def get_postprocess_paint_parser():CODE
LOWtools/postprocess/torchvision_fix.py7def fix_torchvision_functional_tensor():CODE
LOWtools/postprocess/paint_pipeline.py90def _load_texture_gen_pipeline_module(hy3dpaint_root: str) -> ModuleType:CODE
LOWtools/postprocess/paint_pipeline.py110def resolve_paint_output_paths(save_path: str) -> tuple[str, str]:CODE
LOWtools/postprocess/paint_pipeline.py120def _resolve_local_paint_hf_root(model_path: str) -> str:CODE
LOWtools/postprocess/paint_pipeline.py131def _paint_model_source_overlay(model_path: str, hy3dpaint_root: str) -> Iterator[str]:CODE
LOWtools/convert/export_dummy_meta.py43def write_dummy_meta_safetensors(tensor_meta: dict, output_path: str, source_filename: str = ""):CODE
LOWtools/convert/seko_talk_converter.py132def checkpoint_to_safetensors(ckpt_path: Path, output_path: Path, description: str = ""):CODE
LOWlightx2v_platform/ops/rope/rope_template.py70 def load_state_dict_from_disk(self, block_index, adapter_block_index=None):CODE
LOWlightx2v_platform/ops/rope/biren_supa/wan_rope.py53 def prepare_cos_sin_from_freqs(freqs, grid_sizes, head_size, seq_p_group=None):CODE
LOWlightx2v_platform/ops/rope/biren_supa/wan_rope.py95 def _get_seq_parallel_world_size(self):CODE
LOWlightx2v_platform/ops/rope/biren_supa/qwen_rope.py18 def prepare_cos_sin_from_complex(rotary_emb):CODE
LOWlightx2v_platform/ops/rope/metax_cuda/metax_rope.py11def _load_metax_rotary_embedding_op():CODE
LOWlightx2v_platform/ops/rope/metax_cuda/metax_rope.py38def _metax_rotary_embedding_fake(query, key, positions, freqs, head_size, split_half):CODE
LOWlightx2v_platform/ops/rope/metax_cuda/metax_rope.py47def metax_rotary_embedding_single(CODE
LOWlightx2v_platform/ops/rope/metax_cuda/metax_rope.py61def _metax_rotary_embedding_single_fake(tensor, positions, freqs, head_size, split_half):CODE
LOWlightx2v_platform/ops/rope/metax_cuda/metax_rope.py66def _register_metax_rotary_embedding_lowering():CODE
LOWlightx2v_platform/ops/rope/metax_cuda/metax_rope.py122 def _metax_rotary_embedding_lowering(query, key, positions, freqs, head_size, split_half):CODE
LOWlightx2v_platform/ops/rope/metax_cuda/metax_rope.py129 def _metax_rotary_embedding_single_lowering(tensor, positions, freqs, head_size, split_half):CODE
LOWlightx2v_platform/ops/norm/norm_template.py153 def load_state_dict_from_disk(self, block_index, adapter_block_index=None):CODE
LOWlightx2v_platform/ops/norm/norm_template.py327 def load_state_dict_from_disk(self, block_index, adapter_block_index=None):CODE
LOWlightx2v_platform/ops/norm/metax_cuda/metax_rms_norm.py36def _register_metax_rms_norm_lowering():CODE
LOWlightx2v_platform/ops/attn/biren_supa/ulysses_attn.py104 def _distributed_attention_sbp(self, q, k, v, shard_seq, attention_module, seq_p_group, world_size, num_heads, head_CODE
LOWlightx2v_platform/ops/attn/intel_xpu/xpu_sla_attn.py38def apply_intel_xpu_cute_attn(CODE
LOWlightx2v_platform/ops/attn/amd_rocm/sage_attn.py151def _force_inductor_single_thread():CODE
LOWlightx2v_platform/ops/mm/template.py496 def load_state_dict_from_disk(self, block_index, adapter_block_index=None):CODE
LOWlightx2v_platform/ops/mm/biren_supa/mm_weight.py172 def _offload_to_pinned_cpu_refs(self):CODE
LOWlightx2v_platform/ops/mm/biren_supa/mm_weight.py183 def _move_row_bias_after_reduce(self):CODE
LOWlightx2v_platform/ops/mm/intel_xpu/mm_weight.py45def _get_intel_tensor_parallel_class():CODE
LOWlightx2v_platform/ops/mm/intel_xpu/mm_weight.py198def _get_tensor_parallel_rms_class():CODE
LOWlightx2v_platform/ops/moe/template.py48 def load_state_dict_from_disk(self, block_index, adapter_block_index=None):CODE
1174 more matches not shown…
Unused Imports852 hits · 833 pts
SeverityFileLineSnippetContext
LOWtools/preprocess/dwpose_onnx.py13CODE
LOWtools/preprocess/sam_utils.py13CODE
LOWtools/preprocess/__init__.py2CODE
LOWtools/preprocess/__init__.py3CODE
LOWtools/profile/analyze_torch_trace_gap.py24CODE
LOWtools/benchmarks/sp_bench.py3CODE
LOWtools/benchmarks/sp_bench.py717CODE
LOWtools/benchmarks/sp_bench.py894CODE
LOWtools/benchmarks/operator_backends.py3CODE
LOWtools/benchmarks/operator_backends.py453CODE
LOWtools/benchmarks/operator_backends.py1092CODE
LOWtools/benchmarks/operator_backends.py1093CODE
LOWtools/benchmarks/operator_bench.py3CODE
LOWtools/postprocess/torchvision_fix.py9CODE
LOWtools/postprocess/paint_pipeline.py3CODE
LOWtools/postprocess/paint_pipeline.py67CODE
LOWtools/convert/quant_adapter.py15CODE
LOWtools/convert/converter.py31CODE
LOWtools/convert/quant/__init__.py1CODE
LOWlightx2v_platform/__init__.py1CODE
LOWlightx2v_platform/set_ai_device.py5CODE
LOWlightx2v_platform/test/test_device.py8CODE
LOWlightx2v_platform/ops/__init__.py3CODE
LOWlightx2v_platform/ops/__init__.py7CODE
LOWlightx2v_platform/ops/__init__.py8CODE
LOWlightx2v_platform/ops/__init__.py9CODE
LOWlightx2v_platform/ops/__init__.py10CODE
LOWlightx2v_platform/ops/__init__.py12CODE
LOWlightx2v_platform/ops/__init__.py13CODE
LOWlightx2v_platform/ops/__init__.py18CODE
LOWlightx2v_platform/ops/__init__.py19CODE
LOWlightx2v_platform/ops/__init__.py26CODE
LOWlightx2v_platform/ops/__init__.py27CODE
LOWlightx2v_platform/ops/__init__.py28CODE
LOWlightx2v_platform/ops/__init__.py29CODE
LOWlightx2v_platform/ops/__init__.py30CODE
LOWlightx2v_platform/ops/__init__.py31CODE
LOWlightx2v_platform/ops/__init__.py37CODE
LOWlightx2v_platform/ops/__init__.py38CODE
LOWlightx2v_platform/ops/__init__.py39CODE
LOWlightx2v_platform/ops/__init__.py40CODE
LOWlightx2v_platform/ops/__init__.py43CODE
LOWlightx2v_platform/ops/__init__.py44CODE
LOWlightx2v_platform/ops/__init__.py45CODE
LOWlightx2v_platform/ops/__init__.py49CODE
LOWlightx2v_platform/ops/__init__.py50CODE
LOWlightx2v_platform/ops/__init__.py51CODE
LOWlightx2v_platform/ops/__init__.py52CODE
LOWlightx2v_platform/ops/__init__.py54CODE
LOWlightx2v_platform/ops/__init__.py55CODE
LOWlightx2v_platform/ops/__init__.py56CODE
LOWlightx2v_platform/ops/__init__.py57CODE
LOWlightx2v_platform/ops/__init__.py59CODE
LOWlightx2v_platform/ops/__init__.py64CODE
LOWlightx2v_platform/ops/__init__.py65CODE
LOWlightx2v_platform/ops/__init__.py66CODE
LOWlightx2v_platform/ops/__init__.py67CODE
LOWlightx2v_platform/ops/a2a/ascend_npu/__init__.py1CODE
LOWlightx2v_platform/ops/rope/biren_supa/__init__.py1CODE
LOWlightx2v_platform/ops/rope/biren_supa/__init__.py2CODE
792 more matches not shown…
Cross-File Repetition107 hits · 535 pts
SeverityFileLineSnippetContext
HIGHlightx2v/utils/ltx2_utils.py0protocol for model loader classes that instantiates models from a configuration dictionary.STRING
HIGH…htx2v/models/video_encoders/hf/ltx2/upsampler/model.py0protocol for model loader classes that instantiates models from a configuration dictionary.STRING
HIGHlightx2v/models/input_encoders/hf/ltx2/utils.py0protocol for model loader classes that instantiates models from a configuration dictionary.STRING
HIGH…video_encoders/hf/ltx2/video_vae/timestep_embedding.py0this matches the implementation in denoising diffusion probabilistic models: create sinusoidal timestep embeddings. argsSTRING
HIGHlightx2v/models/networks/ltx2/infer/utils.py0this matches the implementation in denoising diffusion probabilistic models: create sinusoidal timestep embeddings. argsSTRING
HIGHlightx2v/models/schedulers/qwen_image/scheduler.py0this matches the implementation in denoising diffusion probabilistic models: create sinusoidal timestep embeddings. argsSTRING
HIGHlightx2v/models/schedulers/z_image/scheduler.py0this matches the implementation in denoising diffusion probabilistic models: create sinusoidal timestep embeddings. argsSTRING
HIGHlightx2v/models/video_encoders/hf/wan/vae_2_2.py0fix bfloat16 support for nearest neighbor interpolation.STRING
HIGHlightx2v/models/video_encoders/hf/wan/vae.py0fix bfloat16 support for nearest neighbor interpolation.STRING
HIGH…ain/lightx2v_train/model_zoo/native/wan/modules/vae.py0fix bfloat16 support for nearest neighbor interpolation.STRING
HIGHlightx2v/models/networks/bagel/model.py0create sinusoidal timestep embeddings. :param t: a 1-d tensor of n indices, one per batch element. these may be fractionSTRING
HIGHlightx2v/models/networks/bagel/modeling_utils.py0create sinusoidal timestep embeddings. :param t: a 1-d tensor of n indices, one per batch element. these may be fractionSTRING
HIGHlightx2v/models/networks/neopp/infer/pre_infer.py0create sinusoidal timestep embeddings. :param t: a 1-d tensor of n indices, one per batch element. these may be fractionSTRING
HIGHlightx2v/models/networks/worldplay/model.py0initialize inference modules and connect action weights.STRING
HIGHlightx2v/models/networks/worldplay/ar_model.py0initialize inference modules and connect action weights.STRING
HIGHlightx2v/models/networks/worldplay/bi_model.py0initialize inference modules and connect action weights.STRING
HIGHlightx2v/models/networks/worldplay/model.py0run inference with action and camera pose conditioning. args: inputs: dict containing: - text_encoder_output: text encodSTRING
HIGHlightx2v/models/networks/worldplay/ar_model.py0run inference with action and camera pose conditioning. args: inputs: dict containing: - text_encoder_output: text encodSTRING
HIGHlightx2v/models/networks/worldplay/bi_model.py0run inference with action and camera pose conditioning. args: inputs: dict containing: - text_encoder_output: text encodSTRING
HIGH…odels/networks/worldplay/infer/ar_transformer_infer.py0modulate with per-token scale and shift (no unsqueeze). args: x: [l, c] tensor scale: [b, l, c] or [b, c] tensor shift: STRING
HIGH…v/models/networks/worldplay/infer/transformer_infer.py0modulate with per-token scale and shift (no unsqueeze). args: x: [l, c] tensor scale: [b, l, c] or [b, c] tensor shift: STRING
HIGH…odels/networks/worldplay/infer/bi_transformer_infer.py0modulate with per-token scale and shift (no unsqueeze). args: x: [l, c] tensor scale: [b, l, c] or [b, c] tensor shift: STRING
HIGH…odels/networks/worldplay/infer/ar_transformer_infer.py0apply projective positional encoding to q, k, v. args: q: query tensor [b, l, h, d] or [b, h, l, d] k: key tensor v: valSTRING
HIGH…v/models/networks/worldplay/infer/transformer_infer.py0apply projective positional encoding to q, k, v. args: q: query tensor [b, l, h, d] or [b, h, l, d] k: key tensor v: valSTRING
HIGH…odels/networks/worldplay/infer/bi_transformer_infer.py0apply projective positional encoding to q, k, v. args: q: query tensor [b, l, h, d] or [b, h, l, d] k: key tensor v: valSTRING
HIGH…models/schedulers/hidream_o1_image/fm_solvers_unipc.py0the index counter for current timestep. it will increase 1 after each scheduler step.STRING
HIGH…ghtx2v/models/schedulers/hunyuan3d/flow_match_euler.py0the index counter for current timestep. it will increase 1 after each scheduler step.STRING
HIGHlightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py0the index counter for current timestep. it will increase 1 after each scheduler step.STRING
HIGH…odel_zoo/native/lingbot_video/scheduling_flow_unipc.py0the index counter for current timestep. it will increase 1 after each scheduler step.STRING
HIGH…ightx2v_train/model_zoo/native/wan/utils/fm_solvers.py0the index counter for current timestep. it will increase 1 after each scheduler step.STRING
HIGH…v_train/model_zoo/native/wan/utils/fm_solvers_unipc.py0the index counter for current timestep. it will increase 1 after each scheduler step.STRING
HIGH…models/schedulers/hidream_o1_image/fm_solvers_unipc.py0the index for the first timestep. it should be set from pipeline with `set_begin_index` method.STRING
HIGH…ghtx2v/models/schedulers/hunyuan3d/flow_match_euler.py0the index for the first timestep. it should be set from pipeline with `set_begin_index` method.STRING
HIGHlightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py0the index for the first timestep. it should be set from pipeline with `set_begin_index` method.STRING
HIGH…odel_zoo/native/lingbot_video/scheduling_flow_unipc.py0the index for the first timestep. it should be set from pipeline with `set_begin_index` method.STRING
HIGH…ightx2v_train/model_zoo/native/wan/utils/fm_solvers.py0the index for the first timestep. it should be set from pipeline with `set_begin_index` method.STRING
HIGH…v_train/model_zoo/native/wan/utils/fm_solvers_unipc.py0the index for the first timestep. it should be set from pipeline with `set_begin_index` method.STRING
HIGH…models/schedulers/hidream_o1_image/fm_solvers_unipc.py0sets the begin index for the scheduler. this function should be run from pipeline before the inference. args: begin_indeSTRING
HIGH…ghtx2v/models/schedulers/hunyuan3d/flow_match_euler.py0sets the begin index for the scheduler. this function should be run from pipeline before the inference. args: begin_indeSTRING
HIGHlightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py0sets the begin index for the scheduler. this function should be run from pipeline before the inference. args: begin_indeSTRING
HIGH…odel_zoo/native/lingbot_video/scheduling_flow_unipc.py0sets the begin index for the scheduler. this function should be run from pipeline before the inference. args: begin_indeSTRING
HIGH…ightx2v_train/model_zoo/native/wan/utils/fm_solvers.py0sets the begin index for the scheduler. this function should be run from pipeline before the inference. args: begin_indeSTRING
HIGH…v_train/model_zoo/native/wan/utils/fm_solvers_unipc.py0sets the begin index for the scheduler. this function should be run from pipeline before the inference. args: begin_indeSTRING
HIGH…models/schedulers/hidream_o1_image/fm_solvers_unipc.py0sets the discrete timesteps used for the diffusion chain (to be run before inference). args: num_inference_steps (`int`)STRING
HIGHlightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py0sets the discrete timesteps used for the diffusion chain (to be run before inference). args: num_inference_steps (`int`)STRING
HIGH…odel_zoo/native/lingbot_video/scheduling_flow_unipc.py0sets the discrete timesteps used for the diffusion chain (to be run before inference). args: num_inference_steps (`int`)STRING
HIGH…ightx2v_train/model_zoo/native/wan/utils/fm_solvers.py0sets the discrete timesteps used for the diffusion chain (to be run before inference). args: num_inference_steps (`int`)STRING
HIGH…v_train/model_zoo/native/wan/utils/fm_solvers_unipc.py0sets the discrete timesteps used for the diffusion chain (to be run before inference). args: num_inference_steps (`int`)STRING
HIGH…models/schedulers/hidream_o1_image/fm_solvers_unipc.py0"dynamic thresholding: at each sampling step we set s to a certain percentile absolute pixel value in xt0 (the predictioSTRING
HIGHlightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py0"dynamic thresholding: at each sampling step we set s to a certain percentile absolute pixel value in xt0 (the predictioSTRING
HIGH…odel_zoo/native/lingbot_video/scheduling_flow_unipc.py0"dynamic thresholding: at each sampling step we set s to a certain percentile absolute pixel value in xt0 (the predictioSTRING
HIGH…ightx2v_train/model_zoo/native/wan/utils/fm_solvers.py0"dynamic thresholding: at each sampling step we set s to a certain percentile absolute pixel value in xt0 (the predictioSTRING
HIGH…v_train/model_zoo/native/wan/utils/fm_solvers_unipc.py0"dynamic thresholding: at each sampling step we set s to a certain percentile absolute pixel value in xt0 (the predictioSTRING
HIGH…models/schedulers/hidream_o1_image/fm_solvers_unipc.py0convert the model output to the corresponding type the unipc algorithm needs. args: model_output (`torch.tensor`): the dSTRING
HIGHlightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py0convert the model output to the corresponding type the unipc algorithm needs. args: model_output (`torch.tensor`): the dSTRING
HIGH…odel_zoo/native/lingbot_video/scheduling_flow_unipc.py0convert the model output to the corresponding type the unipc algorithm needs. args: model_output (`torch.tensor`): the dSTRING
HIGH…v_train/model_zoo/native/wan/utils/fm_solvers_unipc.py0convert the model output to the corresponding type the unipc algorithm needs. args: model_output (`torch.tensor`): the dSTRING
HIGH…models/schedulers/hidream_o1_image/fm_solvers_unipc.py0one step for the unip (b(h) version). alternatively, `self.solver_p` is used if is specified. args: model_output (`torchSTRING
HIGHlightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py0one step for the unip (b(h) version). alternatively, `self.solver_p` is used if is specified. args: model_output (`torchSTRING
HIGH…odel_zoo/native/lingbot_video/scheduling_flow_unipc.py0one step for the unip (b(h) version). alternatively, `self.solver_p` is used if is specified. args: model_output (`torchSTRING
47 more matches not shown…
Excessive Try-Catch Wrapping412 hits · 456 pts
SeverityFileLineSnippetContext
LOWtools/preprocess/pose2d_utils.py1052 except Exception as e:CODE
LOWtools/preprocess/ltx2.3_preprocess_data.py271 except Exception:CODE
LOWtools/benchmarks/sp_bench.py1232 except Exception as exc:CODE
LOWtools/benchmarks/sp_bench.py1263 except Exception as exc:CODE
LOWtools/benchmarks/sp_bench.py2170 except Exception as exc:CODE
LOWtools/benchmarks/sp_bench.py2189 except Exception as exc:CODE
LOWtools/benchmarks/sp_bench.py2697 except Exception as exc:CODE
LOWtools/benchmarks/operator_backends.py996 except Exception as exc:CODE
LOWtools/benchmarks/operator_bench.py451 except Exception as exc:CODE
LOWtools/extract/lora_merger.py412 except Exception as e:CODE
MEDIUMtools/extract/lora_merger.py413 print(f"Error: {e}")CODE
LOWtools/extract/convert_lightning_to_x2v_lora.py267 except Exception as e:CODE
MEDIUMtools/extract/convert_lightning_to_x2v_lora.py268 print(f"Error: {e}")CODE
LOWtools/extract/convert_vigen_to_x2v_model.py176 except Exception as e:CODE
MEDIUMtools/extract/convert_vigen_to_x2v_model.py177 print(f"Error: {e}")CODE
LOW⚡tools/extract/lora_extractor.py372 except Exception as e:CODE
MEDIUM⚡tools/extract/lora_extractor.py373 print(f"Error: {e}")CODE
MEDIUM⚡tools/extract/lora_extractor.py377 print(f"Error: {key} is not a 2D weight tensor")CODE
LOWtools/extract/lora_extractor.py450 except Exception as e:CODE
MEDIUMtools/extract/lora_extractor.py451 print(f"Error: {e}")CODE
LOWtools/postprocess/torchvision_fix.py68 except Exception:CODE
LOWtools/postprocess/paint_pipeline.py249 except Exception as exc:CODE
LOWtools/convert/seko_talk_converter.py408 except Exception as e:CODE
LOWtools/convert/converter.py947 except Exception as e:CODE
LOWtools/convert/converter.py1034 except Exception as e:CODE
LOWlightx2v_platform/set_ai_device.py28 except Exception: # pragma: no cover - importlib.metadata is stdlib on 3.8+CODE
LOWlightx2v_platform/set_ai_device.py43 except Exception as e:CODE
LOWlightx2v_platform/set_ai_device.py67 except Exception as error:CODE
LOW…2v_platform/ops/rope/ascend_npu/minimax_h3_npu_rope.py32 except Exception as exc:CODE
MEDIUM…2v_platform/ops/rope/ascend_npu/minimax_h3_npu_rope.py24def _load_mindiesd_rope():CODE
LOWlightx2v_platform/ops/utils/biren_supa/sbp_utils.py12 except Exception:CODE
LOWlightx2v_platform/ops/utils/biren_supa/sbp_utils.py31 except Exception:CODE
MEDIUMlightx2v_platform/ops/utils/biren_supa/sbp_utils.py16def _tensor_sbp_axis(input_tensor):CODE
LOWlightx2v_platform/ops/attn/amd_rocm/sage_attn.py90 except Exception:CODE
LOWlightx2v_platform/ops/attn/amd_rocm/sage_attn.py108 except Exception as e:CODE
LOWlightx2v_platform/ops/attn/amd_rocm/sage_attn.py143 except Exception:CODE
LOWlightx2v_platform/ops/mm/amd_rocm/mm_weight.py19 except Exception:CODE
MEDIUMlightx2v_platform/ops/mm/amd_rocm/mm_weight.py16def _gcn_arch():CODE
LOWlightx2v_platform/compilation/ascend_npu/mindie.py11 except Exception as exc:CODE
LOWlightx2v_platform/base/biren_supa.py72 except Exception:CODE
MEDIUMlightx2v_platform/base/biren_supa.py69def is_available() -> bool:CODE
LOWlightx2v_platform/base/enflame_gcu.py94 except Exception:CODE
LOWlightx2v/server/task_manager.py325 except Exception as e:CODE
LOWlightx2v/server/main.py83 except Exception as e:CODE
LOWlightx2v/server/api/files.py69 except Exception as e:CODE
LOWlightx2v/server/api/files.py84 except Exception as e:CODE
LOWlightx2v/server/api/deps.py57 except Exception as e:CODE
LOWlightx2v/server/api/server.py50 except Exception as e:CODE
LOWlightx2v/server/api/server.py154 except Exception as e:CODE
LOWlightx2v/server/api/openai_images.py139 except Exception as e:CODE
LOWlightx2v/server/api/tasks/common.py74 except Exception as e:CODE
LOWlightx2v/server/api/tasks/common.py133 except Exception as e:CODE
LOWlightx2v/server/api/tasks/common.py149 except Exception as e:CODE
LOWlightx2v/server/api/tasks/common.py163 except Exception as e:CODE
MEDIUMlightx2v/server/api/tasks/common.py155def stop_all_running_tasks():CODE
LOWlightx2v/server/api/tasks/video.py31 except Exception as e:CODE
LOWlightx2v/server/api/tasks/image.py112 except Exception as e:CODE
LOWlightx2v/server/api/tasks/image.py174 except Exception as e:CODE
LOWlightx2v/server/services/file_service.py72 except Exception as e:CODE
LOWlightx2v/server/services/file_service.py119 except Exception as e:CODE
352 more matches not shown…
Empty Error Handlers87 hits · 435 pts
SeverityFileLineSnippetContext
HIGHtools/preprocess/ltx2.3_preprocess_data.py271except Exception:CODE
HIGHtools/postprocess/torchvision_fix.py62except ImportError:CODE
HIGHtools/convert/quant/quant.py15except ImportError:CODE
HIGHlightx2v_platform/ops/utils/biren_supa/sbp_utils.py31except Exception:CODE
HIGHlightx2v_platform/ops/attn/amd_rocm/sage_attn.py143except Exception:CODE
HIGHlightx2v_platform/ops/mm/intel_xpu/mm_weight.py177except RuntimeError:CODE
HIGHlightx2v_platform/base/enflame_gcu.py7except ImportError:CODE
HIGHlightx2v/server/main.py81except KeyboardInterrupt:CODE
HIGHlightx2v/server/services/distributed_utils.py73except Exception:CODE
HIGHlightx2v/utils/va_recorder.py541except OSError:CODE
HIGHlightx2v/utils/va_recorder.py550except OSError:CODE
HIGHlightx2v/utils/video_recorder.py312except OSError:CODE
HIGHlightx2v/utils/profiler.py125except (RuntimeError, NotImplementedError):CODE
HIGHlightx2v/models/networks/worldmirror/model.py854except Exception:CODE
HIGH…htx2v/models/networks/worldmirror/utils/video_utils.py526except Exception:CODE
HIGH…htx2v/models/networks/worldmirror/utils/visual_util.py260except (ValueError, IndexError):CODE
HIGH…htx2v/models/networks/neopp/infer/transformer_infer.py72except ImportError:CODE
HIGH…x2v/models/networks/hunyuan3d/utils/torchvision_fix.py77except ImportError:CODE
HIGHlightx2v/models/networks/seedvr/model.py146except Exception:CODE
HIGHlightx2v/models/runners/base_runner.py350except Exception:CODE
HIGHlightx2v/models/runners/base_runner.py357except Exception:CODE
HIGHlightx2v/models/runners/base_runner.py366except Exception:CODE
HIGHlightx2v/models/runners/wan/wan_matrix_game2_runner.py93except Exception as e:CODE
HIGHlightx2v/models/runners/wan/wan_matrix_game2_runner.py121except Exception as e:CODE
HIGHlightx2v/models/runners/wan/wan_matrix_game2_runner.py145except Exception as e:CODE
HIGHlightx2v/models/runners/wan/wan_animate2_runner.py135except OSError:CODE
HIGHlightx2v/models/runners/wan/wan_animate2_runner.py139except OSError:CODE
HIGHlightx2v/models/runners/wan/wan_animate2_runner.py154except OSError:CODE
HIGHlightx2v/models/runners/wan/wan_infinitetalk_runner.py332except OSError:CODE
HIGHlightx2v/disagg/rdma_server.py154except Exception:CODE
HIGHlightx2v/disagg/rdma_server.py186except Exception:CODE
HIGHlightx2v/disagg/disagg_mixin.py1219except Exception:CODE
HIGHlightx2v/disagg/disagg_mixin.py1223except Exception:CODE
HIGHlightx2v/disagg/disagg_mixin.py1228except Exception:CODE
HIGHlightx2v/disagg/disagg_mixin.py1237except Exception:CODE
HIGHlightx2v/disagg/disagg_mixin.py1243except Exception:CODE
HIGHlightx2v/disagg/disagg_mixin.py1254except Exception:CODE
HIGHlightx2v/disagg/disagg_mixin.py1262except Exception:CODE
HIGHlightx2v/disagg/rdma_client.py121except Exception:CODE
HIGHlightx2v/disagg/rdma_client.py146except Exception:CODE
HIGHlightx2v/disagg/rdma_client.py195except Exception:CODE
HIGHlightx2v/disagg/mooncake.py21except Exception:CODE
HIGHlightx2v/disagg/mooncake.py28except Exception:CODE
HIGHlightx2v/disagg/rdma_utils.py22except Exception:CODE
HIGHlightx2v/disagg/rdma_utils.py34except Exception:CODE
HIGHlightx2v/disagg/rdma_utils.py41except Exception:CODE
HIGHlightx2v/disagg/rdma_utils.py59except ValueError:CODE
HIGHlightx2v/disagg/rdma_utils.py207except Exception:CODE
HIGHlightx2v/disagg/rdma_utils.py110except Exception:CODE
HIGHlightx2v/disagg/examples/run_controller.py190except OSError:CODE
HIGHlightx2v/disagg/services/controller.py117except Exception:CODE
HIGHlightx2v/disagg/services/controller.py141except Exception:CODE
HIGHlightx2v/disagg/services/controller.py716except Exception:CODE
HIGHlightx2v/disagg/services/controller.py1072except Exception:CODE
HIGHlightx2v/disagg/services/encoder.py260except Exception:CODE
HIGHlightx2v/disagg/services/encoder.py317except Exception:CODE
HIGHlightx2v/disagg/services/transformer.py288except Exception:CODE
HIGHlightx2v/disagg/services/transformer.py331except Exception:CODE
HIGHlightx2v/disagg/services/transformer.py915except Exception:CODE
HIGHlightx2v/disagg/services/transformer.py484except Exception:CODE
27 more matches not shown…
Deep Nesting387 hits · 368 pts
SeverityFileLineSnippetContext
LOWtools/cache_minimax_h3_adaln/builder.py104CODE
LOWtools/preprocess/pose2d.py205CODE
LOWtools/preprocess/pose2d.py347CODE
LOWtools/preprocess/retarget_pose.py153CODE
LOWtools/preprocess/retarget_pose.py357CODE
LOWtools/preprocess/retarget_pose.py765CODE
LOWtools/preprocess/process_pipepline.py159CODE
LOWtools/preprocess/process_pipepline.py435CODE
LOWtools/preprocess/pose2d_utils.py10CODE
LOWtools/preprocess/pose2d_utils.py773CODE
LOWtools/benchmarks/sp_bench.py1181CODE
LOWtools/benchmarks/sp_bench.py1940CODE
LOWtools/benchmarks/sp_bench.py2071CODE
LOWtools/benchmarks/sp_bench.py2327CODE
LOWtools/benchmarks/sp_bench.py2515CODE
LOWtools/benchmarks/sp_bench.py2613CODE
LOWtools/benchmarks/operator_backends.py255CODE
LOWtools/benchmarks/operator_bench.py476CODE
LOWtools/benchmarks/operator_bench.py648CODE
LOWtools/extract/lora_merger.py66CODE
LOWtools/extract/lora_merger.py199CODE
LOWtools/extract/convert_lightning_to_x2v_lora.py33CODE
LOWtools/extract/convert_lightning_to_x2v_lora.py91CODE
LOWtools/extract/lora_extractor.py68CODE
LOWtools/extract/lora_extractor.py287CODE
LOWtools/postprocess/torchvision_fix.py7CODE
LOWtools/postprocess/paint_pipeline.py131CODE
LOWtools/convert/seko_talk_converter.py334CODE
LOWtools/convert/converter.py336CODE
LOWtools/convert/converter.py618CODE
LOWtools/convert/converter.py738CODE
LOWtools/convert/converter.py1018CODE
LOWlightx2v_platform/ops/rope/ascend_npu/npu_rope.py46CODE
LOWlightx2v_platform/ops/mm/intel_xpu/mm_weight.py45CODE
LOWlightx2v_platform/ops/mm/intel_xpu/mm_weight.py198CODE
LOWlightx2v/pipeline.py18CODE
LOWlightx2v/pipeline.py250CODE
LOWlightx2v/pipeline.py301CODE
LOWlightx2v/shot_runner/utils.py175CODE
LOWlightx2v/server/metrics/metrics.py379CODE
LOWlightx2v/server/api/openai_images.py54CODE
LOWlightx2v/server/services/file_service.py45CODE
LOWlightx2v/server/services/inference/worker.py73CODE
LOWlightx2v/server/services/inference/worker.py144CODE
LOWlightx2v/server/services/inference/worker.py185CODE
LOWlightx2v/server/services/generation/image.py17CODE
LOWlightx2v/server/media/audio.py33CODE
LOWlightx2v/server/media/image.py31CODE
LOWlightx2v/server/media/base.py33CODE
LOWlightx2v/utils/set_config.py69CODE
LOWlightx2v/utils/va_reader_omni.py205CODE
LOWlightx2v/utils/va_reader_omni.py476CODE
LOWlightx2v/utils/va_reader_omni.py766CODE
LOWlightx2v/utils/va_recorder.py87CODE
LOWlightx2v/utils/va_recorder.py123CODE
LOWlightx2v/utils/va_recorder.py467CODE
LOWlightx2v/utils/va_recorder_x264.py57CODE
LOWlightx2v/utils/va_recorder_x264.py177CODE
LOWlightx2v/utils/ggml_tensor.py341CODE
LOWlightx2v/utils/utils.py218CODE
327 more matches not shown…
AI Structural Patterns230 hits · 230 pts
SeverityFileLineSnippetContext
LOWtools/preprocess/pose2d.py56CODE
LOWtools/preprocess/human_visualization.py255CODE
LOWtools/preprocess/human_visualization.py575CODE
LOWtools/preprocess/human_visualization.py728CODE
LOWtools/preprocess/retarget_pose.py762CODE
LOWtools/preprocess/process_pipepline.py159CODE
LOWtools/benchmarks/operator_bench.py476CODE
LOWtools/postprocess/paint_pipeline.py200CODE
LOWtools/postprocess/paint_pipeline.py231CODE
LOWtools/convert/converter.py336CODE
LOWlightx2v_platform/ops/norm/norm_template.py42CODE
LOWlightx2v_platform/ops/norm/norm_template.py171CODE
LOWlightx2v_platform/ops/norm/biren_supa/br_rms_norm.py14CODE
LOWlightx2v_platform/ops/norm/biren_supa/supa_rms_norm.py10CODE
LOWlightx2v_platform/ops/norm/metax_cuda/metax_rms_norm.py51CODE
LOWlightx2v_platform/ops/norm/ascend_npu/npu_layer_norm.py14CODE
LOWlightx2v_platform/ops/norm/ascend_npu/npu_layer_norm.py47CODE
LOW…ghtx2v_platform/ops/norm/cambricon_mlu/mlu_rms_norm.py12CODE
LOW…v_platform/ops/norm/iluvatar_cuda/iluvatar_rms_norm.py18CODE
LOWlightx2v_platform/ops/norm/enflame_gcu/layer_norm.py9CODE
LOWlightx2v_platform/ops/attn/biren_supa/flash_attn.py96CODE
LOWlightx2v_platform/ops/attn/biren_supa/supa_sdpa.py15CODE
LOWlightx2v_platform/ops/attn/biren_supa/ulysses_attn.py39CODE
LOWlightx2v_platform/ops/attn/biren_supa/ulysses_attn.py137CODE
LOWlightx2v_platform/ops/attn/hygon_dcu/flash_attn.py52CODE
LOWlightx2v_platform/ops/attn/hygon_dcu/flash_attn.py183CODE
LOWlightx2v_platform/ops/attn/enflame_gcu/flash_attn.py60CODE
LOWlightx2v_platform/ops/attn/enflame_gcu/flash_attn.py247CODE
LOWlightx2v_platform/ops/mm/biren_supa/mm_weight.py74CODE
LOWlightx2v_platform/ops/mm/mthreads_musa/mm_weight.py17CODE
LOWlightx2v_platform/ops/mm/intel_xpu/mm_weight.py314CODE
LOWlightx2v_platform/ops/mm/intel_xpu/mm_weight.py404CODE
LOWlightx2v_platform/ops/mm/amd_rocm/mm_weight.py103CODE
LOWlightx2v/pipeline.py18CODE
LOWlightx2v/pipeline.py110CODE
LOWlightx2v/pipeline.py250CODE
LOWlightx2v/pipeline.py355CODE
LOWlightx2v/pipeline.py390CODE
LOWlightx2v/training/worldplay_ar_pipeline.py246CODE
LOWlightx2v/server/api/openai_images.py252CODE
LOWlightx2v/server/api/tasks/video.py37CODE
LOWlightx2v/server/api/tasks/image.py180CODE
LOWlightx2v/utils/va_reader_omni.py295CODE
LOWlightx2v/utils/va_reader_omni.py563CODE
LOWlightx2v/utils/torch_trace_profiler.py180CODE
LOWlightx2v/utils/ggml_tensor.py18CODE
LOW…htx2v/models/video_encoders/hf/ltx2/upsampler/model.py35CODE
LOW…x2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py324CODE
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py142CODE
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py362CODE
LOW…models/video_encoders/hf/ltx2/video_vae/convolution.py11CODE
LOW…v/models/video_encoders/hf/ltx2/video_vae/video_vae.py268CODE
LOW…v/models/video_encoders/hf/ltx2/video_vae/video_vae.py522CODE
LOW…_encoders/hf/ltx2/video_vae/diffusion_video_decoder.py605CODE
LOW…tx2v/models/video_encoders/hf/ltx2/video_vae/resnet.py24CODE
LOW…tx2v/models/video_encoders/hf/ltx2/video_vae/resnet.py200CODE
LOWlightx2v/models/video_encoders/hf/lingbot_video/vae.py54CODE
LOWlightx2v/models/video_encoders/hf/lingbot_video/vae.py127CODE
LOW…ders/hf/hunyuan3d/autoencoders/attention_processors.py32CODE
LOW…encoders/hf/hunyuan3d/autoencoders/attention_blocks.py415CODE
170 more matches not shown…
Modern Structural Boilerplate205 hits · 205 pts
SeverityFileLineSnippetContext
LOWlightx2v_platform/ops/a2a/ascend_npu/__init__.py3__all__ = ["HcclEagerUlyssesA2A"]CODE
LOWlightx2v_platform/ops/rope/metax_cuda/__init__.py3__all__ = ["MetaxRope"]CODE
LOWlightx2v_platform/ops/rope/metax_cuda/metax_rope.py227__all__ = ["MetaxRope"]CODE
LOWlightx2v_platform/ops/rope/ascend_npu/__init__.py4__all__ = ["NpuRope", "MiniMaxH3NpuRope"]CODE
LOWlightx2v_platform/ops/rope/cambricon_mlu/__init__.py3__all__ = ["MluRope"]CODE
LOWlightx2v_platform/ops/rope/iluvatar_cuda/__init__.py3__all__ = ["IluvatarWanRope"]CODE
LOWlightx2v_platform/ops/rope/enflame_gcu/__init__.py3__all__ = ["GcuWanRope"]CODE
LOWlightx2v_platform/ops/utils/biren_supa/__init__.py3__all__ = ["convBB", "convSB"]CODE
LOWlightx2v_platform/ops/norm/metax_cuda/__init__.py3__all__ = ["MetaxRmsNormWeight"]CODE
LOWlightx2v_platform/ops/norm/metax_cuda/metax_rms_norm.py108__all__ = ["MetaxRmsNormWeight"]CODE
LOWlightx2v_platform/ops/norm/ascend_npu/__init__.py4__all__ = ["NpuRmsNormWeight", "NpuLayerNormWeight"]CODE
LOWlightx2v_platform/ops/norm/iluvatar_cuda/__init__.py3__all__ = ["IluvatarRmsNormWeight"]CODE
LOWlightx2v_platform/ops/norm/enflame_gcu/__init__.py3__all__ = ["GcuLayerNormWeight"]CODE
LOW…htx2v_platform/ops/attn/metax_cuda/metax_flash_attn.py180__all__ = ["MetaxFlashAttn2Weight"]CODE
LOWlightx2v_platform/ops/attn/metax_cuda/__init__.py4__all__ = ["MetaxFlashAttn2Weight", "MetaxSageAttn2Weight"]CODE
LOWlightx2v_platform/ops/mm/mthreads_musa/__init__.py4__all__ = [CODE
LOWlightx2v_platform/ops/mm/mthreads_musa/fp8_scaled_mm.py188__all__ = ["FP8_DTYPE", "fp8_linear", "fp8_scaled_mm", "per_token_quant_fp8"]CODE
LOWlightx2v_platform/ops/mm/mthreads_musa/mm_weight.py63__all__ = ["MMWeightWfp8channelAfp8tokendynamicMusa"]CODE
LOWlightx2v_platform/ops/moe/__init__.py3__all__ = ["FusedMoEActivation", "FusedMoETemplate"]CODE
LOWlightx2v_platform/ops/moe/template.py143__all__ = ["FusedMoEActivation", "FusedMoETemplate"]CODE
LOW…htx2v_platform/ops/moe/metax_cuda/metax_mctlass_moe.py275__all__ = ["MetaxMctlassFusedMoE"]CODE
LOWlightx2v_platform/ops/moe/metax_cuda/__init__.py3__all__ = ["MetaxMctlassFusedMoE"]CODE
LOWlightx2v_platform/ops/moe/ascend_npu/__init__.py3__all__ = ["NpuGroupedMMFusedMoE"]CODE
LOWlightx2v_platform/ops/moe/ascend_npu/npu_grouped_mm.py169__all__ = ["NpuGroupedMMFusedMoE"]CODE
LOWlightx2v_platform/compilation/ascend_npu/__init__.py3__all__ = ["create_mindie_backend"]CODE
LOWlightx2v_platform/base/__init__.py16__all__ = [CODE
LOWlightx2v_platform/base/amd_rocm.py158__all__ = [CODE
LOWlightx2v/__init__.py9__all__ = [CODE
LOWlightx2v/training/__init__.py10__all__ = [CODE
LOWlightx2v/server/api/__init__.py4__all__ = [CODE
LOWlightx2v/server/api/tasks/__init__.py5__all__ = [CODE
LOWlightx2v/server/services/__init__.py5__all__ = [CODE
LOWlightx2v/server/services/inference/__init__.py4__all__ = [CODE
LOWlightx2v/server/services/generation/__init__.py5__all__ = [CODE
LOWlightx2v/server/media/__init__.py5__all__ = [CODE
LOWlightx2v/utils/ltx2_media_io.py24logger = logging.getLogger(__name__)CODE
LOW…2v/models/video_encoders/hf/ltx2/audio_vae/__init__.py15__all__ = [CODE
LOW…v/models/video_encoders/hf/ltx2/video_vae/triton_na.py168__all__ = ["na3d"]CODE
LOW…2v/models/video_encoders/hf/ltx2/video_vae/__init__.py15__all__ = [CODE
LOW…_encoders/hf/ltx2/video_vae/diffusion_video_decoder.py30logger = logging.getLogger(__name__)CODE
LOW…_encoders/hf/ltx2/video_vae/diffusion_video_decoder.py998__all__ = ["DiffusionVideoDecoder"]CODE
LOW…dels/video_encoders/hf/ltx2/video_vae/triton_swiglu.py233__all__ = ["residual_modulating_mlp", "swiglu_tiled", "triton_swiglu_available"]CODE
LOW…s/video_encoders/hf/ltx2/video_vae/diffusion_tiling.py189__all__ = [CODE
LOW…htx2v/models/video_encoders/hf/minimax_h3/video_vae.py903 def set_decode_tile_shape(self, tile_height: int, tile_width: int) -> None:CODE
LOWlightx2v/models/video_encoders/hf/wan/vae_2_2.py16__all__ = [CODE
LOWlightx2v/models/video_encoders/hf/wan/vae.py17__all__ = [CODE
LOW…x2v/models/video_encoders/hf/longcat_image/__init__.py3__all__ = ["LongCatImageVAE"]CODE
LOWlightx2v/models/video_encoders/hf/seedvr/__init__.py3__all__ = ["attn_video_vae_v3_s8_c16_t4_inflation_sd3_init"]CODE
LOW⚡…ideo_encoders/hf/seedvr/common/distributed/advanced.py77def set_sequence_parallel_group(group: Optional[dist.ProcessGroup]) -> None:CODE
LOW…els/video_encoders/hf/seedvr/common/distributed/ops.py29def set_sequence_parallel_a2a_backend(backend: str) -> None:CODE
LOW…odels/networks/qwen_image_21/infer/offload/__init__.py3__all__ = ["QwenImage21OffloadTransformerInfer"]CODE
LOWlightx2v/models/networks/hunyuan_image3/config.py273__all__ = [CODE
LOW…2v/models/networks/hunyuan_image3/custom_all_reduce.py177__all__ = ["HunyuanImage3CustomAllReduce", "HunyuanImage3CustomAllReduceConfig"]CODE
LOWlightx2v/models/networks/hunyuan_image3/__init__.py1__all__ = ["HunyuanImage3Model"]CODE
LOW…2v/models/networks/hunyuan_image3/weights/hybrid_tp.py310__all__ = [CODE
LOW…x2v/models/networks/hunyuan_image3/weights/__init__.py5__all__ = [CODE
LOW…ghtx2v/models/networks/worldmirror/weights/__init__.py6__all__ = [CODE
LOW…tworks/worldmirror/models/models/visual_transformer.py15logger = logging.getLogger(__name__)CODE
LOWlightx2v/models/networks/flux2/__init__.py3__all__ = ["Flux2KleinTransformerModel", "Flux2DevTransformerModel"]CODE
LOWlightx2v/models/networks/flux2/weights/__init__.py5__all__ = [CODE
145 more matches not shown…
Hallucination Indicators11 hits · 150 pts
SeverityFileLineSnippetContext
CRITICALlightx2v/server/services/generation/base.py31 task_type = self.inference_service.worker.runner.config.get("task", "t2v")CODE
CRITICAL⚡…/models/networks/wan/infer/s2v/causal_audio_encoder.py22 dst.conv1_local.conv.weight.data.copy_(src.conv1_local_weight.tensor)CODE
CRITICAL⚡…/models/networks/wan/infer/s2v/causal_audio_encoder.py23 dst.conv1_local.conv.bias.data.copy_(src.conv1_local_bias.tensor)CODE
CRITICAL⚡…/models/networks/wan/infer/s2v/causal_audio_encoder.py24 dst.conv2.conv.weight.data.copy_(src.conv2_weight.tensor)CODE
CRITICAL⚡…/models/networks/wan/infer/s2v/causal_audio_encoder.py25 dst.conv2.conv.bias.data.copy_(src.conv2_bias.tensor)CODE
CRITICAL⚡…/models/networks/wan/infer/s2v/causal_audio_encoder.py26 dst.conv3.conv.weight.data.copy_(src.conv3_weight.tensor)CODE
CRITICAL⚡…/models/networks/wan/infer/s2v/causal_audio_encoder.py27 dst.conv3.conv.bias.data.copy_(src.conv3_bias.tensor)CODE
CRITICAL⚡…/models/networks/wan/infer/s2v/causal_audio_encoder.py30 dst.conv1_global.conv.weight.data.copy_(src.conv1_global_weight.tensor)CODE
CRITICAL⚡…/models/networks/wan/infer/s2v/causal_audio_encoder.py31 dst.conv1_global.conv.bias.data.copy_(src.conv1_global_bias.tensor)CODE
CRITICALlightx2v/models/runners/flux2/flux2_runner.py458 bn_mean = self.vae.vae.bn.running_mean.view(1, -1, 1, 1).to(latents.device, latents.dtype)CODE
CRITICALlightx2v/models/runners/flux2/flux2_runner.py459 bn_std = torch.sqrt(self.vae.vae.bn.running_var.view(1, -1, 1, 1) + self.vae.vae.config.batch_norm_eps).to(latenCODE
Over-Commented Block143 hits · 137 pts
SeverityFileLineSnippetContext
LOW…s/cache_minimax_h3_adaln/run_cache_minimax_h3_adaln.sh21# Apple MPSCOMMENT
LOW…s/cache_minimax_h3_adaln/run_cache_minimax_h3_adaln.sh41# export PLATFORM=hygon_dcuCOMMENT
LOWtools/preprocess/human_visualization.py301 # kp2ds_body = kp2ds_body[:18]COMMENT
LOWtools/preprocess/human_visualization.py321 [15, 17],COMMENT
LOWtools/preprocess/human_visualization.py461 kp2ds = kp2ds.copy()COMMENT
LOWtools/preprocess/human_visualization.py481 # [12, 13],COMMENT
LOWtools/preprocess/human_visualization.py501 # [0, 255, 170],COMMENT
LOWtools/preprocess/human_visualization.py521 # keypoint2 = kp2ds_body[k2_index - 1]COMMENT
LOWtools/preprocess/ltx2.3_preprocess_data.py1# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved.COMMENT
LOWtools/convert/h3_video_vae_encoder.py1# Copyright 2026 The LightX2V Team.COMMENT
LOWlightx2v/utils/va_reader_omni.py601COMMENT
LOWlightx2v/utils/va_reader_omni.py621 # ...COMMENT
LOW…2v/models/video_encoders/hf/ltx2/audio_vae/upsample.py21 self.causality_axis = causality_axisCOMMENT
LOW…ders/hf/hunyuan3d/autoencoders/attention_processors.py1# Hunyuan 3D is licensed under the TENCENT HUNYUAN NON-COMMERCIAL LICENSE AGREEMENTCOMMENT
LOW…s/video_encoders/hf/hunyuan3d/autoencoders/__init__.py1# Hunyuan 3D is licensed under the TENCENT HUNYUAN NON-COMMERCIAL LICENSE AGREEMENTCOMMENT
LOW…encoders/hf/hunyuan3d/autoencoders/attention_blocks.py1# Open Source Model Licensed under the Apache License Version 2.0COMMENT
LOW…dels/video_encoders/hf/hunyuan3d/autoencoders/model.py1# Open Source Model Licensed under the Apache License Version 2.0COMMENT
LOW…coders/hf/hunyuan3d/autoencoders/surface_extractors.py1# Hunyuan 3D is licensed under the TENCENT HUNYUAN NON-COMMERCIAL LICENSE AGREEMENTCOMMENT
LOW…_encoders/hf/hunyuan3d/autoencoders/volume_decoders.py1# Hunyuan 3D is licensed under the TENCENT HUNYUAN NON-COMMERCIAL LICENSE AGREEMENTCOMMENT
LOW…htx2v/models/video_encoders/hf/minimax_h3/video_vae.py1# Copyright 2026 The MiniMax and HuggingFace Teams. All rights reserved.COMMENT
LOW…ideo_encoders/hf/minimax_h3/fp8_encoder_conv_policy.py1# Copyright 2026 The LightX2V Team.COMMENT
LOWlightx2v/models/video_encoders/hf/minimax_h3/weights.py1# Copyright 2026 The LightX2V Team.COMMENT
LOWlightx2v/models/networks/worldmirror/model.py221 config has no concept of quantization.COMMENT
LOWlightx2v/models/networks/worldmirror/model.py261 # per block per forward (cheap in practice for single-sceneCOMMENT
LOWlightx2v/models/networks/worldmirror/model.py461 if src is not None and src.shape == tensor.shape:COMMENT
LOW…ls/networks/worldmirror/weights/transformer_weights.py241 self.cam_trunk_depth = cam_trunk_depthCOMMENT
LOW…ls/networks/worldmirror/weights/transformer_weights.py521 # Quantized leaves own their storage dtype (fp8/int8/nvfp4/...).COMMENT
LOWlightx2v/models/networks/worldmirror/comm/padding.py21 # 计算需要填充的长度COMMENT
LOWlightx2v/models/networks/worldmirror/comm/padding.py41COMMENT
LOW…v/models/networks/worldmirror/models/utils/sh_utils.py1# Copyright 2021 The PlenOctree Authors.COMMENT
LOW…models/networks/worldmirror/models/heads/dense_head.py141COMMENT
LOWlightx2v/models/networks/bagel/modeling_utils.py1# Copyright (c) 2022 Facebook, Inc. and its affiliates.COMMENT
LOWlightx2v/models/networks/worldplay/prope/camera_rope.py1# MIT LicenseCOMMENT
LOW…x2v/models/networks/hunyuan3d/utils/hy3dshape/utils.py1# Hunyuan 3D is licensed under the TENCENT HUNYUAN NON-COMMERCIAL LICENSE AGREEMENTCOMMENT
LOW…/models/input_encoders/hf/hunyuan3d/image_processor.py1# Hunyuan 3D is licensed under the TENCENT HUNYUAN NON-COMMERCIAL LICENSE AGREEMENTCOMMENT
LOW…tx2v/models/input_encoders/hf/hunyuan3d/conditioner.py1# Open Source Model Licensed under the Apache License Version 2.0COMMENT
LOWlightx2v/models/input_encoders/hf/hunyuan3d/rembg.py1# Hunyuan 3D is licensed under the TENCENT HUNYUAN NON-COMMERCIAL LICENSE AGREEMENTCOMMENT
LOW…htx2v/models/audio_encoders/hf/minimax_h3/audio_vae.py1# Copyright 2025 The MiniMax authors and The HuggingFace Team. All rights reserved.COMMENT
LOW…htx2v/models/runners/worldmirror/worldmirror_runner.py281 # Build the wrapped model (nn.Module + side-car WeightModule) andCOMMENT
LOWlightx2v/models/schedulers/neopp/scheduler.py61 self.timesteps = self._apply_time_schedule(timesteps, timestep_shift=shift)COMMENT
LOW…ghtx2v/models/schedulers/hunyuan3d/flow_match_euler.py1# Copyright 2024 Stability AI, Katherine Crowson and The HuggingFace Team. All rights reserved.COMMENT
LOWlightx2v/disagg/rdma_server.py281 # 单边写通常不需要接收方做额外操作,除非使用了带立即数或原子操作需要确认COMMENT
LOWlightx2v/disagg/rdma_server.py301# conn = srv.handshake(host=args.listen_host, port=args.listen_port)COMMENT
LOWlightx2v/disagg/rdma_client.py461# # msg = b"Hello RDMA!"COMMENT
LOWlightx2v/disagg/rdma_client.py481# print(f"FAA old value: {old_value}")COMMENT
LOWlightx2v/common/ops/attn/svg2_attn_utils.py1161 # --- End of loop over K blocks ---COMMENT
LOWlightx2v/common/ops/mm/mm_weight.py2581 # just materialize ``weight`` and ``weight_scale`` here.COMMENT
LOW…d256/assets/rev256_onednn_v2_84tflops_pipelined_qk.cpp1#include <sycl/sycl.hpp>COMMENT
LOW…-hd256/assets/rev256_onednn_v2_83tflops_mad_fusion.cpp1#include <sycl/sycl.hpp>COMMENT
LOW…sdp-hd256/assets/rev256_onednn_v2_88tflops_s_scatter.h1// Approach 2: Eliminate S Register Transpose via lsc_slm_scatter Write + Block ReadCOMMENT
LOW…sdp-hd256/assets/rev256_onednn_v2_88tflops_s_scatter.h361 // Four scatter calls per qp: kv groups 0..3, 4..7, 8..11, 12..15.COMMENT
LOW…hd256/assets/rev256_onednn_v2_86tflops_qk_pipeline.cpp1#include <sycl/sycl.hpp>COMMENT
LOW…p-hd256/assets/rev256_onednn_v2_88tflops_s_scatter.cpp1#include <sycl/sycl.hpp>COMMENT
LOW…dp-hd256/assets/rev256_onednn_v2_83tflops_mad_fusion.h1// oneDNN-inspired Flash Attention v2 kernel for HD=256COMMENT
LOW…ls/xe2-sdp-hd256/assets/flash.attn.b.mha256.fp16.opt.h1// Optimized FP16 Flash Attention kernel for HD=256COMMENT
LOW…p-hd256/assets/rev256_onednn_v2_86tflops_qk_pipeline.h1// oneDNN-inspired Flash Attention v2 kernel for HD=256COMMENT
LOW…_skills/xe2-sdp-hd256/assets/test_rev256_onednn_v2.cpp1#include <sycl/sycl.hpp>COMMENT
LOW…-hd256/assets/rev256_onednn_v2_84tflops_pipelined_qk.h1// oneDNN-inspired Flash Attention v2 kernel for HD=256COMMENT
LOW…d256/assets/rev256_onednn_v2_82tflops_fp16_transpose.h1// oneDNN-inspired Flash Attention v2 kernel for HD=256COMMENT
LOW…skills/onednn-fp8-gemm/assets/fp16xfp8_per_n_scale.cpp1// =============================================================================COMMENT
83 more matches not shown…
Structural Annotation Overuse48 hits · 93 pts
SeverityFileLineSnippetContext
LOW⚡…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py522 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW⚡…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py525 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW⚡…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py529 # Step 3: Apply padding if neededCOMMENT
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py541 # Step 4: Final safety crop to ensure exact target shapeCOMMENT
LOWlightx2v/models/networks/ltx2/infer/triton_ops.py53 # Step 1: RMSNormCOMMENT
LOWlightx2v/models/networks/ltx2/infer/triton_ops.py68 # Step 2: Load scale and shift based on formatCOMMENT
LOWlightx2v/models/networks/ltx2/infer/triton_ops.py87 # Step 3: Apply modulation: x_hat * (1 + scale) + shiftCOMMENT
LOW…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py233 # Step 1: Cache text KV (called once at generation start)COMMENT
LOW⚡…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py259 # Step 2: For non-first chunks, cache context frame KVCOMMENT
LOW⚡…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py264 # Step 3: Run denoising for this chunkCOMMENT
LOW…ic_skills/xe2-esimd-gemv/references/kernel-patterns.md109 // Step 1: init SLM — MUST be firstCOMMENT
LOW…ic_skills/xe2-esimd-gemv/references/kernel-patterns.md122 // Step 2: compute partial dot productCOMMENT
LOW⚡…ic_skills/xe2-esimd-gemv/references/kernel-patterns.md137 // Step 3: store partial sum to SLMCOMMENT
LOW⚡…ic_skills/xe2-esimd-gemv/references/kernel-patterns.md144 // Step 4: synchronizeCOMMENT
LOW⚡…ic_skills/xe2-esimd-gemv/references/kernel-patterns.md147 // Step 5: reduce and write output (k_thread_id == 0 only)COMMENT
LOW⚡docs/EN/source/getting_started/quickstart.md68#### Step 1: Clone RepositoryCOMMENT
LOW⚡docs/EN/source/getting_started/quickstart.md76#### Step 2: Create Conda Virtual EnvironmentCOMMENT
LOW⚡docs/EN/source/getting_started/quickstart.md84#### Step 3: Install DependenciesCOMMENT
LOW⚡docs/EN/source/getting_started/quickstart.md90#### Step 4: Install Attention OperatorsCOMMENT
LOWdocs/EN/source/getting_started/quickstart.md109#### Step 4: Install Quantization Operators (Optional)COMMENT
LOWdocs/EN/source/getting_started/quickstart.md149#### Step 5: Verify InstallationCOMMENT
LOWdocs/EN/source/getting_started/quickstart.md162#### Step 1: Check CUDA VersionCOMMENT
LOWdocs/EN/source/getting_started/quickstart.md172#### Step 2: Create Python EnvironmentCOMMENT
LOWdocs/EN/source/getting_started/quickstart.md184#### Step 3: Install PyTorch FrameworkCOMMENT
LOWdocs/EN/source/getting_started/quickstart.md211#### Step 4: Install Windows Version vLLMCOMMENT
LOWdocs/EN/source/getting_started/quickstart.md225#### Step 5: Install Attention Mechanism OperatorsCOMMENT
LOWdocs/EN/source/getting_started/quickstart.md246#### Step 6: Clone RepositoryCOMMENT
LOWdocs/EN/source/getting_started/quickstart.md258#### Step 7: Install Quantization Operators (Optional)COMMENT
LOWexamples/BeginnerGuide/EN/02.Wan21-1.3B.md219# Step 1: Create LightX2VPipelineCOMMENT
LOWexamples/BeginnerGuide/EN/02.Wan21-1.3B.md226# Step 2: Set runtime parametersCOMMENT
LOWexamples/BeginnerGuide/EN/02.Wan21-1.3B.md246# Step 3: Start generating videos, can generate multiple timesCOMMENT
LOWscripts/server/post_multi_servers.py50 # Step 2: Monitor task status until completionCOMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_t2i.py52 # Step 1: Send to Decoder first (sets up Phase2 receiver)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_t2i.py59 # Step 2: Send to Transformer (Phase1 receiver + Phase2 sender)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_t2i.py66 # Step 3: Send to Encoder (text encoding + Phase1 send)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_t2i.py72 # Step 4: Poll Decoder for completion (image saved on Decoder node)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_i2i.py60 # Step 1: Send to Decoder first (sets up Phase2 receiver)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_i2i.py67 # Step 2: Send to Transformer (Phase1 receiver + Phase2 sender)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_i2i.py74 # Step 3: Send to Encoder (text + image encoding + Phase1 send)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_i2i.py80 # Step 4: Poll Decoder for completion (image saved on Decoder node)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_t2v.py46 # Step 1: Send to Decoder first (sets up Phase2 receiver, starts blocking)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_t2v.py53 # Step 2: Send to Transformer (sets up Phase1 receiver + Phase2 sender)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_t2v.py60 # Step 3: Send to Encoder (triggers T5 encoding + Phase1 Mooncake send)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_t2v.py66 # Step 4: Poll Decoder for final completion (video is saved on Decoder node)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_i2v.py57 # Step 1: Send to Decoder first (sets up Phase2 receiver, starts blocking)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_i2v.py64 # Step 2: Send to Transformer (sets up Phase1 receiver + Phase2 sender)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_i2v.py71 # Step 3: Send to Encoder (triggers T5/CLIP/VAE encoding + Phase1 Mooncake send)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_i2v.py77 # Step 4: Poll Decoder for final completion (video is saved on Decoder node)COMMENT
Cross-Language Confusion12 hits · 72 pts
SeverityFileLineSnippetContext
HIGH…/runners/minimax_h3_causal/minimax_h3_causal_runner.py254 for frames in decoder.push(video):CODE
HIGH⚡lightx2v/disagg/services/controller.py657 " kill -TERM ${pid} >/dev/null 2>&1 || true",CODE
HIGH⚡lightx2v/disagg/services/controller.py661 " kill -KILL ${pid} >/dev/null 2>&1 || true",CODE
HIGH…ualization/visualization/image_web_viewer_node/page.py174 let lastState = null;CODE
HIGH…ualization/visualization/image_web_viewer_node/page.py232 const seedMatches = expected.seed === null || Number(statusData.seed) === expected.seed;CODE
HIGH…ualization/visualization/image_web_viewer_node/page.py238 if (sawSwitching && statusData.state === "failure") {CODE
HIGH…ualization/visualization/image_web_viewer_node/page.py256 if (configMatches && statusData.state === "ready" &&CODE
HIGH…ualization/visualization/image_web_viewer_node/page.py260 if (sawSwitching && statusData.state === "failure") {CODE
HIGH⚡…ualization/visualization/image_web_viewer_node/page.py324 if (opt && typeof opt === "object") {CODE
HIGH⚡…ualization/visualization/image_web_viewer_node/page.py326 o.textContent = String(opt.label || opt.value);CODE
HIGH⚡…ualization/visualization/image_web_viewer_node/page.py333 if (current && Array.from(select.options).some(o => o.value === String(current))) {CODE
HIGH…ualization/visualization/image_web_viewer_node/page.py350 if (stats && stats.episodes > 0) {CODE
Verbosity Indicators27 hits · 56 pts
SeverityFileLineSnippetContext
LOW⚡…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py522 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW⚡…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py525 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW⚡…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py529 # Step 3: Apply padding if neededCOMMENT
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py541 # Step 4: Final safety crop to ensure exact target shapeCOMMENT
LOWlightx2v/models/networks/ltx2/infer/triton_ops.py53 # Step 1: RMSNormCOMMENT
LOWlightx2v/models/networks/ltx2/infer/triton_ops.py68 # Step 2: Load scale and shift based on formatCOMMENT
LOWlightx2v/models/networks/ltx2/infer/triton_ops.py87 # Step 3: Apply modulation: x_hat * (1 + scale) + shiftCOMMENT
LOW…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py233 # Step 1: Cache text KV (called once at generation start)COMMENT
LOW⚡…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py259 # Step 2: For non-first chunks, cache context frame KVCOMMENT
LOW⚡…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py264 # Step 3: Run denoising for this chunkCOMMENT
LOWscripts/server/post_multi_servers.py50 # Step 2: Monitor task status until completionCOMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_t2i.py52 # Step 1: Send to Decoder first (sets up Phase2 receiver)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_t2i.py59 # Step 2: Send to Transformer (Phase1 receiver + Phase2 sender)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_t2i.py66 # Step 3: Send to Encoder (text encoding + Phase1 send)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_t2i.py72 # Step 4: Poll Decoder for completion (image saved on Decoder node)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_i2i.py60 # Step 1: Send to Decoder first (sets up Phase2 receiver)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_i2i.py67 # Step 2: Send to Transformer (Phase1 receiver + Phase2 sender)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_i2i.py74 # Step 3: Send to Encoder (text + image encoding + Phase1 send)COMMENT
LOW⚡scripts/server/disagg/qwen/post_qwen_i2i.py80 # Step 4: Poll Decoder for completion (image saved on Decoder node)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_t2v.py46 # Step 1: Send to Decoder first (sets up Phase2 receiver, starts blocking)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_t2v.py53 # Step 2: Send to Transformer (sets up Phase1 receiver + Phase2 sender)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_t2v.py60 # Step 3: Send to Encoder (triggers T5 encoding + Phase1 Mooncake send)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_t2v.py66 # Step 4: Poll Decoder for final completion (video is saved on Decoder node)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_i2v.py57 # Step 1: Send to Decoder first (sets up Phase2 receiver, starts blocking)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_i2v.py64 # Step 2: Send to Transformer (sets up Phase1 receiver + Phase2 sender)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_i2v.py71 # Step 3: Send to Encoder (triggers T5/CLIP/VAE encoding + Phase1 Mooncake send)COMMENT
LOW⚡scripts/server/disagg/wan/post_wan_i2v.py77 # Step 4: Poll Decoder for final completion (video is saved on Decoder node)COMMENT
Docstring Block Structure11 hits · 55 pts
SeverityFileLineSnippetContext
HIGHtools/preprocess/pose2d.py348 Load images from various input types. Args: inputs (Union[str, np.ndarray, List[np.ndarraySTRING
HIGHlightx2v/utils/input_info.py475Calculate num_frames from video duration using the formula: num_frames = (fps * seconds + 3) // 4 * 4 + 1 This STRING
HIGH…coders/hf/hunyuan3d/autoencoders/surface_extractors.py135 Extract surface mesh using Differentiable Marching Cubes (DMC) algorithm. Args: grid_logitSTRING
HIGHlightx2v/models/networks/worldmirror/utils/geometry.py124 Create a sliding window view of the input array along a specified axis. This function creates a memory-efficieSTRING
HIGH…htx2v/models/networks/worldmirror/utils/visual_util.py229 Converts model predictions to a 3D scene represented as a GLB file. Args: predictions (dict): DictionaSTRING
HIGH…tx2v/models/networks/worldmirror/models/layers/rope.py232Applies 2D rotary position embeddings to input tokens. Args: tokens: Input tensor of shape (batch_sSTRING
HIGH…odels/networks/wan/infer/matrix_game2/posemb_layers.py71 Reshape frequency tensor for broadcasting it with another tensor. This function reshapes the frequency tensor STRING
HIGH…ghtx2v/models/input_encoders/hf/vace/vace_processor.py28 Resize, center crop and normalize for decord loaded video (torch.Tensor type) Parameters: viSTRING
HIGHlightx2v_kernel/python/lightx2v_kernel/utils.py39 Compute SNR between y_pred(tensor) and y_real(tensor) SNR can be calcualted as following equation: SNSTRING
HIGH…ain/lightx2v_train/model_zoo/native/wan/utils/utils.py69 Convert a string to a boolean. Supported true values: 'yes', 'true', 't', 'y', '1' Supported false values:STRING
HIGH…tx2v_train/model_zoo/native/wan/utils/qwen_vl_utils.py129calculate the number of frames for video used for model inputs. Args: ele (dict): a dict contains the confiSTRING
Self-Referential Comments9 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMlightx2v/utils/generate_task_id.py22 # Create an independent random instanceCOMMENT
MEDIUM…models/video_encoders/hf/ltx2/video_vae/convolution.py124 # Define the size of the channels after the first convolutionCOMMENT
MEDIUM…tx2v/models/networks/worldmirror/models/layers/rope.py3# This module provides a clean implementation of 2D Rotary Position Embeddings,COMMENT
MEDIUM…models/networks/worldmirror/models/heads/dense_head.py142 # This module implements the DPT (Dense Prediction Transformer) head as proposed inSTRING
MEDIUMlightx2v/models/networks/neopp/infer/pre_infer.py34 # Create the batch index for each patch (B x patch count)COMMENT
MEDIUM…x2v/models/networks/hunyuan3d/utils/torchvision_fix.py20 # Create a mock functional_tensor module with the required functionsCOMMENT
MEDIUM…x2v/models/networks/hunyuan3d/utils/torchvision_fix.py82 # Create the mock module instanceCOMMENT
MEDIUM…x2v/models/input_encoders/hf/hunyuan15/qwen25/model.py324 # Create a deep copy to avoid modifying the original templateCOMMENT
MEDIUM⚡…htx2v_train/lightx2v_train/schedulers/flow_matching.py108 # The following methods are for inference onlyCOMMENT
Redundant / Tautological Comments15 hits · 24 pts
SeverityFileLineSnippetContext
LOW⚡tools/extract/lora_extractor.py213 # Check if tensor shapes matchCOMMENT
LOW⚡tools/extract/lora_extractor.py217 # Check if tensor data types matchCOMMENT
LOW⚡tools/extract/lora_extractor.py224 # Check if there are actual changesCOMMENT
LOWtools/extract/lora_extractor.py250 # Check if rank is reasonableCOMMENT
LOWtools/convert/converter.py387 # Check if key matches target modulesCOMMENT
LOWlightx2v/utils/lora_loader.py157 # Check if down weight existsCOMMENT
LOW…v/models/video_encoders/hf/ltx2/video_vae/video_vae.py798 # Check if current temporal slice overlaps with previous temporal sliceSTRING
LOW…2v/models/networks/ltx2/weights/transformer_weights.py183 # Check if tensor parallel is enabledCOMMENT
LOW…odels/networks/worldplay/infer/ar_transformer_infer.py751 # Check if ProPE is enabledCOMMENT
LOWlightx2v/models/networks/worldplay/infer/pre_infer.py63 # Check if we have per-frame timestep from BI runnerCOMMENT
LOWlightx2v/models/networks/longcat_image/model.py122 # Check if CFG parallel should be usedCOMMENT
LOW…v/models/runners/longcat_image/longcat_image_runner.py235 # Check if prompt rewrite is enabledCOMMENT
LOWlightx2v/common/ops/attn/svg2_attn_utils.py940 # Check if this block needs computationCOMMENT
LOWlightx2v/common/ops/attn/svg2_attn.py186 # Check if block_col_sz and block_row_sz are the same for each headCOMMENT
LOWlightx2v/common/ops/attn/kernels/sla_kernel.py240 # Increment pointersCOMMENT
Fake / Example Data16 hits · 16 pts
SeverityFileLineSnippetContext
LOWlightx2v_ros/src/visualization/package.xml7 <maintainer email="user@example.com">user</maintainer>CODE
LOWlightx2v_ros/src/visualization/setup.py16 maintainer_email="user@example.com",CODE
LOWlightx2v_ros/src/common/package.xml7 <maintainer email="user@example.com">user</maintainer>CODE
LOWlightx2v_ros/src/common/setup.py16 maintainer_email="user@example.com",CODE
LOWlightx2v_ros/src/simulator/package.xml7 <maintainer email="user@example.com">user</maintainer>CODE
LOWlightx2v_ros/src/simulator/setup.py16 maintainer_email="user@example.com",CODE
LOWlightx2v_ros/src/inference/package.xml7 <maintainer email="user@example.com">user</maintainer>CODE
LOWlightx2v_ros/src/inference/setup.py16 maintainer_email="user@example.com",CODE
LOWscripts/platforms/mlu/openai_image/post_i2i_openai.sh9--api_key "dummy-key" \CODE
LOWscripts/platforms/mlu/openai_image/post_t2i_openai.sh9--api_key "dummy-key" \CODE
LOWscripts/server/openai_image/post_i2i_openai.sh9--api_key "dummy-key" \CODE
LOW…ripts/server/openai_image/test_openai_images_client.py100 parser.add_argument("--api_key", type=str, default="dummy-key", help="OpenAI API key placeholder")CODE
LOWscripts/server/openai_image/post_t2i_openai.sh9--api_key "dummy-key" \CODE
LOWscripts/hidream_o1_image/post_i2i_openai.sh11--api_key "dummy-key" \CODE
LOWscripts/hidream_o1_image/test_openai_images_client.py324 parser.add_argument("--api_key", type=str, default="dummy-key", help="OpenAI API key placeholder")CODE
LOWscripts/hidream_o1_image/post_t2i_openai.sh12--api_key "dummy-key" \CODE
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtools/preprocess/human_visualization.py1263CODE
MEDIUM…tx2v/models/input_encoders/hf/hunyuan3d/conditioner.py269CODE
MEDIUM…tx2v/models/input_encoders/hf/hunyuan3d/conditioner.py272CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMlightx2v/models/runners/wan/wan_dancer_runner.py55 # two-stage orchestration in run_pipeline and never calls the binding.COMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…orms/intel_xpu/run_minimax_h3_fl2av_turbo_sla_4step.sh13# Usage:COMMENT
LOW…pts/server/disagg/qwen/start_qwen_t2i_decentralized.sh9# Usage:COMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…htx2v/models/runners/worldmirror/worldmirror_runner.py324 # fp8-pertensor auto-quant path consumes. Keys just pass through toCOMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMlightx2v/models/networks/base_model.py686 This is a basic implementation. Subclasses may override for moreSTRING
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlightx2v_ros/src/simulator/simulator/sim/evaluator.py68def run_task(cfg, task, policy):CODE