Repository Analysis

ModelTC/LightX2V

Lightweight Image Video Action Generation Inference Framework

16.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ModelTC/LightX2V, a Python project with 2,492 GitHub stars. SynthScan v2.0 examined 296,486 lines of code across 2275 source files, recording 3301 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 16.9 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

16.9
Adjusted Score
16.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.5K
Stars
Python
Language
296.5K
Lines of Code
2.3K
Files
3.3K
Pattern Hits
2026-07-14
Scan Date
0.07
HC Hit Rate

What These Metrics Mean

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

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 11HIGH 146MEDIUM 410LOW 2734

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators366 hits · 1227 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.py96 # ── normalise 4-D input [B, S, H, D] → [B*S, H, D] ──────────────────COMMENT
MEDIUMlightx2v_platform/ops/attn/intel_xpu/xpu_flash_attn.py109 # ── fast single-sequence path ─────────────────────────────────────COMMENT
MEDIUMlightx2v_platform/ops/attn/intel_xpu/xpu_flash_attn.py116 # ── varlen path: one SDPA call per sequence in the batch ──────────────COMMENT
MEDIUMlightx2v_platform/ops/mm/template.py69 # =========================COMMENT
MEDIUMlightx2v_platform/ops/mm/template.py71 # =========================COMMENT
MEDIUMlightx2v_platform/ops/mm/template.py357 # =========================COMMENT
MEDIUMlightx2v_platform/ops/mm/template.py359 # =========================COMMENT
MEDIUM…x2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py23# ---------------------------------------------------------------------------COMMENT
MEDIUM…x2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py732 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py736 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py1006 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py1009 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py1019 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py1021 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py40# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py170# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py203# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py205# ---------------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py301 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py304 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py352 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py354 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py389 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py391 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py482 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py493 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py581 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py583 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py981 # ------------------------------------------------------------------COMMENT
MEDIUMlightx2v/models/networks/worldmirror/model.py983 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py421 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py427 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py461 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py468 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py495 # ------------------------------------------------------------------COMMENT
MEDIUM…ls/networks/worldmirror/weights/transformer_weights.py497 # ------------------------------------------------------------------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
MEDIUMlightx2v/models/networks/bagel/modeling_utils.py20# --------------------------------------------------------COMMENT
306 more matches not shown…
Hyper-Verbose Identifiers839 hits · 860 pts
SeverityFileLineSnippetContext
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/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.py10def get_postprocess_paint_parser():CODE
LOWtools/postprocess/torchvision_fix.py7def fix_torchvision_functional_tensor():CODE
LOWtools/postprocess/paint_pipeline.py39def _load_texture_gen_pipeline_module(hy3dpaint_root: str) -> ModuleType:CODE
LOWtools/postprocess/paint_pipeline.py59def resolve_paint_output_paths(save_path: str) -> tuple[str, str]:CODE
LOWtools/postprocess/paint_pipeline.py69def _resolve_local_paint_hf_root(model_path: str) -> 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
LOWapp/utils/model_utils.py458def is_distill_model_from_name(model_name):CODE
LOWapp/utils/video_page.py442 def update_image_path_and_gallery(files):CODE
LOWapp/utils/model_choices.py23def _filter_and_format_models(hf_models, model_path, is_valid_func, require_safetensors=True, additional_filters=None):CODE
LOWapp/utils/model_choices.py209def get_clip_tokenizer_choices(model_path):CODE
LOWapp/utils/model_choices.py230def get_qwen_image_dit_choices(model_path):CODE
LOWapp/utils/model_choices.py285def get_qwen_image_vae_choices(model_path):CODE
LOWapp/utils/model_choices.py321def get_qwen_image_scheduler_choices(model_path):CODE
LOWapp/utils/model_choices.py507def get_z_image_turbo_dit_choices(model_path):CODE
LOWapp/utils/model_choices.py562def get_z_image_turbo_vae_choices(model_path):CODE
LOWapp/utils/model_choices.py598def get_z_image_turbo_scheduler_choices(model_path):CODE
LOWapp/utils/image_page.py308 def update_image_path_and_gallery(files):CODE
LOWapp/utils/image_page.py362 def on_model_type_change_for_defaults(model_type_val):CODE
LOWapp/utils/model_components.py339def build_qwen_image_components(model_path, model_path_input, download_source_input, model_type_input, lang="zh"):CODE
LOWapp/utils/model_components.py369 def get_scheduler_choices_func(model_path_val):CODE
LOWapp/utils/model_components.py381 def get_initial_download_btn_visibility(choices, model_path_val, model_type_val, base_category):CODE
LOWapp/utils/model_components.py506 def update_choices_on_model_type_change(model_type_val, model_path_val):CODE
LOWapp/utils/model_components.py550 def download_qwen_image_scheduler(model_path_val, model_name, download_source_val, progress=gr.Progress()):CODE
LOWapp/utils/model_components.py645def build_z_image_turbo_components(model_path, model_path_input, download_source_input, model_type_input, lang="zh"):CODE
LOWapp/utils/model_components.py780 def download_z_image_turbo_dit(model_path_val, model_name, download_source_val, progress=gr.Progress()):CODE
LOWapp/utils/model_components.py783 def download_z_image_turbo_vae(model_path_val, model_name, download_source_val, progress=gr.Progress()):CODE
LOWapp/utils/model_components.py786 def download_z_image_turbo_scheduler(model_path_val, model_name, download_source_val, progress=gr.Progress()):CODE
LOWapp/utils/model_handlers.py541def download_tokenizer_handler(model_path_val, tokenizer_type, download_source_val, progress=gr.Progress()):CODE
LOWapp/utils/model_handlers.py566def create_update_status_wrappers():CODE
LOWapp/utils/model_handlers.py585 def update_clip_tokenizer_status(model_path_val):CODE
LOWapp/utils/model_handlers.py591 def update_vae_encoder_status(model_path_val, model_name):CODE
LOWapp/utils/model_handlers.py594 def update_vae_decoder_status(model_path_val, model_name):CODE
LOWapp/utils/model_handlers.py603 def update_qwen_image_dit_status(model_path_val, model_name):CODE
LOWapp/utils/model_handlers.py606 def update_qwen_image_vae_status(model_path_val, model_name):CODE
LOWapp/utils/model_handlers.py609 def update_qwen_image_scheduler_status(model_path_val, model_name):CODE
LOWapp/utils/model_handlers.py676 def download_high_noise_model(model_path_val, model_name, task_type_val, download_source_val, progress=gr.Progress()CODE
LOWapp/utils/model_handlers.py706 def download_qwen_image_scheduler(model_path_val, model_name, download_source_val, progress=gr.Progress()):CODE
LOWlightx2v_platform/ops/norm/norm_template.py136 def load_state_dict_from_disk(self, block_index, adapter_block_index=None):CODE
LOWlightx2v_platform/ops/norm/norm_template.py290 def load_state_dict_from_disk(self, block_index, adapter_block_index=None):CODE
LOWlightx2v_platform/ops/mm/template.py443 def load_state_dict_from_disk(self, block_index, adapter_block_index=None):CODE
LOWtest_cases/test_wan_mxfp8_fuse_forwarding.py85 def test_offload_phase_two_forwards_c_gate_msa(self):CODE
LOWtest_cases/test_wan_mxfp8_fuse_forwarding.py112 def test_self_forcing_forwards_c_gate_msa(self):CODE
LOWtest_cases/test_wan_mxfp8_fuse_forwarding.py143 def test_lingbot_forwards_c_gate_msa(self):CODE
LOWtest_cases/test_wan_mxfp8_fuse_forwarding.py173 def test_audio_forwards_c_gate_msa(self):CODE
LOWtest_cases/test_wan_mxfp8_fuse_forwarding.py205 def test_feature_caching_variants_forward_c_gate_msa(self):CODE
LOWtest_cases/test_wan_feature_cache_cfg_state.py12 def test_first_block_reads_cfg_state_from_scheduler(self):CODE
LOWtest_cases/test_bagel_t2i_support.py89 def test_default_aspect_ratio(self):CODE
LOWtest_cases/test_bagel_t2i_support.py92 def test_official_aspect_ratios(self):CODE
LOWtest_cases/test_bagel_t2i_support.py98 def test_target_shape_overrides_aspect_ratio(self):CODE
LOWtest_cases/test_bagel_t2i_support.py102 def test_invalid_target_shape_raises(self):CODE
779 more matches not shown…
Unused Imports702 hits · 672 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/postprocess/torchvision_fix.py9CODE
LOWtools/postprocess/paint_pipeline.py3CODE
LOWtools/convert/quant_adapter.py15CODE
LOWtools/convert/converter.py25CODE
LOWtools/convert/quant/__init__.py1CODE
LOWlightx2v_platform/__init__.py1CODE
LOWlightx2v_platform/set_ai_device.py5CODE
LOWlightx2v_platform/set_ai_device.py52CODE
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__.py11CODE
LOWlightx2v_platform/ops/__init__.py12CODE
LOWlightx2v_platform/ops/__init__.py14CODE
LOWlightx2v_platform/ops/__init__.py16CODE
LOWlightx2v_platform/ops/__init__.py17CODE
LOWlightx2v_platform/ops/__init__.py18CODE
LOWlightx2v_platform/ops/__init__.py19CODE
LOWlightx2v_platform/ops/__init__.py21CODE
LOWlightx2v_platform/ops/__init__.py23CODE
LOWlightx2v_platform/ops/__init__.py24CODE
LOWlightx2v_platform/ops/__init__.py25CODE
LOWlightx2v_platform/ops/__init__.py27CODE
LOWlightx2v_platform/ops/__init__.py28CODE
LOWlightx2v_platform/ops/__init__.py30CODE
LOWlightx2v_platform/ops/__init__.py31CODE
LOWlightx2v_platform/ops/__init__.py32CODE
LOWlightx2v_platform/ops/__init__.py33CODE
LOWlightx2v_platform/ops/rope/ascend_npu/__init__.py1CODE
LOWlightx2v_platform/ops/rope/iluvatar_cuda/__init__.py1CODE
LOWlightx2v_platform/ops/rope/enflame_gcu/__init__.py1CODE
LOWlightx2v_platform/ops/norm/ascend_npu/__init__.py1CODE
LOWlightx2v_platform/ops/norm/ascend_npu/__init__.py2CODE
LOWlightx2v_platform/ops/norm/cambricon_mlu/__init__.py1CODE
LOWlightx2v_platform/ops/norm/iluvatar_cuda/__init__.py1CODE
LOWlightx2v_platform/ops/norm/enflame_gcu/__init__.py1CODE
LOWlightx2v_platform/ops/attn/intel_xpu/__init__.py1CODE
LOWlightx2v_platform/ops/attn/amd_rocm/__init__.py1CODE
LOWlightx2v_platform/ops/attn/metax_cuda/__init__.py1CODE
LOWlightx2v_platform/ops/attn/hygon_dcu/__init__.py1CODE
LOWlightx2v_platform/ops/attn/ascend_npu/__init__.py1CODE
LOWlightx2v_platform/ops/attn/ascend_npu/__init__.py2CODE
LOWlightx2v_platform/ops/attn/cambricon_mlu/__init__.py1CODE
LOWlightx2v_platform/ops/attn/cambricon_mlu/__init__.py2CODE
LOWlightx2v_platform/ops/attn/iluvatar_cuda/__init__.py1CODE
LOWlightx2v_platform/ops/attn/enflame_gcu/__init__.py1CODE
LOWlightx2v_platform/ops/mm/intel_xpu/__init__.py6CODE
LOWlightx2v_platform/ops/mm/intel_xpu/__init__.py7CODE
LOWlightx2v_platform/ops/mm/intel_xpu/__init__.py7CODE
LOWlightx2v_platform/ops/mm/intel_xpu/__init__.py10CODE
LOWlightx2v_platform/ops/mm/hygon_dcu/__init__.py1CODE
LOWlightx2v_platform/ops/mm/ascend_npu/__init__.py1CODE
LOWlightx2v_platform/ops/mm/cambricon_mlu/__init__.py1CODE
642 more matches not shown…
Cross-File Repetition129 hits · 645 pts
SeverityFileLineSnippetContext
HIGHREADME.md0wan2.2 distilled model with lora image-to-video generation example. this example demonstrates how to use lightx2v with wSTRING
HIGHREADME_zh.md0wan2.2 distilled model with lora image-to-video generation example. this example demonstrates how to use lightx2v with wSTRING
HIGHexamples/wan/wan_i2v.py0wan2.2 distilled model with lora image-to-video generation example. this example demonstrates how to use lightx2v with wSTRING
HIGHexamples/wan/wan_i2v_distilled.py0wan2.2 distilled model with lora image-to-video generation example. this example demonstrates how to use lightx2v with wSTRING
HIGHexamples/wan/wan_i2v_nvfp4.py0wan2.2 distilled model with lora image-to-video generation example. this example demonstrates how to use lightx2v with wSTRING
HIGHexamples/wan/wan_i2v_with_distill_loras.py0wan2.2 distilled model with lora image-to-video generation example. this example demonstrates how to use lightx2v with wSTRING
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
HIGH…/lightx2v_train/model_zoo/native/wan/modules/vae2_2.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…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py0load worldplay transformer with action conditioning.STRING
HIGH…ghtx2v/models/runners/worldplay/worldplay_bi_runner.py0load worldplay transformer with action conditioning.STRING
HIGH…v/models/runners/worldplay/worldplay_distill_runner.py0load worldplay transformer with action conditioning.STRING
HIGH…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py0convert pose string/json to action tensors. args: pose_data: pose string (e.g., "w-3, right-0.5") or json path or dict lSTRING
HIGH…ghtx2v/models/runners/worldplay/worldplay_bi_runner.py0convert pose string/json to action tensors. args: pose_data: pose string (e.g., "w-3, right-0.5") or json path or dict lSTRING
HIGH…v/models/runners/worldplay/worldplay_distill_runner.py0convert pose string/json to action tensors. args: pose_data: pose string (e.g., "w-3, right-0.5") or json path or dict lSTRING
HIGHlightx2v/models/schedulers/worldplay/ar_scheduler.py0initialize latents and timesteps with optional pose conditioning. args: seed: random seed for latent initialization lateSTRING
HIGHlightx2v/models/schedulers/worldplay/bi_scheduler.py0initialize latents and timesteps with optional pose conditioning. args: seed: random seed for latent initialization lateSTRING
HIGHlightx2v/models/schedulers/worldplay/scheduler.py0initialize latents and timesteps with optional pose conditioning. args: seed: random seed for latent initialization lateSTRING
HIGH…models/schedulers/hidream_o1_image/fm_solvers_unipc.py0`unipcmultistepscheduler` is a training-free framework designed for the fast sampling of diffusion models. this model inSTRING
HIGHlightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py0`unipcmultistepscheduler` is a training-free framework designed for the fast sampling of diffusion models. this model inSTRING
HIGH…v_train/model_zoo/native/wan/utils/fm_solvers_unipc.py0`unipcmultistepscheduler` is a training-free framework designed for the fast sampling of diffusion models. this model inSTRING
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…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…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…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
69 more matches not shown…
Excessive Try-Catch Wrapping351 hits · 400 pts
SeverityFileLineSnippetContext
MEDIUMtools/download_rife.py93 print("Error: flownet.pkl file not found")CODE
LOWtools/download_rife.py99 except Exception as e:CODE
MEDIUMtools/download_rife.py100 print(f"Error: {e}")CODE
LOWtools/download_rife.py111 except Exception as e:CODE
MEDIUMtools/download_rife.py112 print(f"Error deleting zip file: {e}")CODE
LOWtools/download_rife.py120 except Exception as e:CODE
MEDIUMtools/download_rife.py121 print(f"Error deleting directory {item}: {e}")CODE
LOWtools/download_rife.py128 except Exception as e:CODE
MEDIUMtools/download_rife.py129 print(f"Error deleting temp directory: {e}")CODE
LOWtools/preprocess/pose2d_utils.py1052 except Exception as e:CODE
LOWtools/preprocess/ltx2.3_preprocess_data.py271 except Exception: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
LOWtools/extract/lora_extractor.py372 except Exception as e:CODE
MEDIUMtools/extract/lora_extractor.py373 print(f"Error: {e}")CODE
MEDIUMtools/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.py149 except Exception as exc:CODE
LOWtools/convert/seko_talk_converter.py408 except Exception as e:CODE
LOWtools/convert/converter.py649 except Exception as e:CODE
LOWtools/convert/converter.py736 except Exception as e:CODE
LOWapp/utils/model_utils.py178 except Exception as e:CODE
LOWapp/utils/model_handlers.py534 except Exception as e:CODE
LOWlightx2v_platform/set_ai_device.py27 except Exception: # pragma: no cover - importlib.metadata is stdlib on 3.8+CODE
LOWlightx2v_platform/set_ai_device.py40 except Exception as e:CODE
LOWlightx2v_platform/base/enflame_gcu.py94 except Exception:CODE
LOWlightx2v/server/task_manager.py318 except Exception as e:CODE
LOWlightx2v/server/main.py83 except Exception as e:CODE
LOWlightx2v/server/api/files.py52 except Exception as e:CODE
LOWlightx2v/server/api/files.py67 except Exception as e:CODE
LOWlightx2v/server/api/deps.py52 except Exception as e:CODE
LOWlightx2v/server/api/server.py50 except Exception as e:CODE
LOWlightx2v/server/api/server.py151 except Exception as e:CODE
LOWlightx2v/server/api/openai_images.py143 except Exception as e:CODE
LOWlightx2v/server/api/tasks/common.py56 except Exception as e:CODE
LOWlightx2v/server/api/tasks/common.py115 except Exception as e:CODE
LOWlightx2v/server/api/tasks/common.py131 except Exception as e:CODE
LOWlightx2v/server/api/tasks/common.py145 except Exception as e:CODE
MEDIUMlightx2v/server/api/tasks/common.py137def stop_all_running_tasks():CODE
LOWlightx2v/server/api/tasks/video.py37 except Exception as e:CODE
LOWlightx2v/server/api/tasks/video.py113 except Exception as e:CODE
LOWlightx2v/server/api/tasks/image.py118 except Exception as e:CODE
LOWlightx2v/server/api/tasks/image.py180 except Exception as e:CODE
LOWlightx2v/server/api/tasks/image.py241 except Exception as e:CODE
LOWlightx2v/server/services/file_service.py72 except Exception as e:CODE
LOWlightx2v/server/services/file_service.py123 except Exception as e:CODE
LOWlightx2v/server/services/file_service.py181 except Exception as e:CODE
LOWlightx2v/server/services/distributed_utils.py56 except Exception as e:CODE
LOWlightx2v/server/services/distributed_utils.py73 except Exception:CODE
MEDIUMlightx2v/server/services/distributed_utils.py33def init_process_group(self) -> bool:CODE
MEDIUMlightx2v/server/services/distributed_utils.py70def _destroy():CODE
LOWlightx2v/server/services/inference/worker.py64 except Exception as e:CODE
LOWlightx2v/server/services/inference/worker.py104 except Exception as e:CODE
LOWlightx2v/server/services/inference/worker.py176 except Exception as e:CODE
291 more matches not shown…
Deep Nesting306 hits · 297 pts
SeverityFileLineSnippetContext
LOWtools/download_rife.py19CODE
LOWtools/download_rife.py57CODE
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/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/convert/seko_talk_converter.py334CODE
LOWtools/convert/converter.py314CODE
LOWtools/convert/converter.py474CODE
LOWtools/convert/converter.py720CODE
LOWapp/gradio_demo.py52CODE
LOWapp/utils/model_utils.py201CODE
LOWapp/utils/model_utils.py239CODE
LOWapp/utils/model_utils.py311CODE
LOWapp/utils/model_utils.py397CODE
LOWapp/utils/model_utils.py803CODE
LOWapp/utils/model_utils.py409CODE
LOWapp/utils/video_page.py36CODE
LOWapp/utils/image_page.py32CODE
LOWapp/utils/model_components.py62CODE
LOWapp/utils/model_components.py339CODE
LOWapp/utils/model_components.py645CODE
LOWapp/utils/model_handlers.py155CODE
LOWapp/utils/model_handlers.py335CODE
LOWapp/utils/model_handlers.py443CODE
LOWtest_cases/test_int8_triton_kernels.py77CODE
LOWtest_cases/test_int8_triton_kernels.py92CODE
LOWtest_cases/test_int8_triton_kernels.py122CODE
LOWlightx2v/pipeline.py74CODE
LOWlightx2v/pipeline.py290CODE
LOWlightx2v/pipeline.py328CODE
LOWlightx2v/shot_runner/utils.py175CODE
LOWlightx2v/server/metrics/metrics.py379CODE
LOWlightx2v/server/api/openai_images.py58CODE
LOWlightx2v/server/services/file_service.py45CODE
LOWlightx2v/server/services/inference/worker.py68CODE
LOWlightx2v/server/services/inference/worker.py147CODE
LOWlightx2v/server/services/inference/worker.py188CODE
LOWlightx2v/server/services/generation/image.py21CODE
LOWlightx2v/server/media/audio.py33CODE
LOWlightx2v/server/media/image.py31CODE
LOWlightx2v/server/media/base.py33CODE
LOWlightx2v/utils/set_config.py59CODE
LOWlightx2v/utils/va_reader_omni.py205CODE
LOWlightx2v/utils/va_reader_omni.py476CODE
LOWlightx2v/utils/va_recorder.py87CODE
LOWlightx2v/utils/va_recorder.py123CODE
LOWlightx2v/utils/va_recorder.py467CODE
246 more matches not shown…
AI Structural Patterns213 hits · 210 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/postprocess/paint_pipeline.py109CODE
LOWtools/postprocess/paint_pipeline.py135CODE
LOWtools/convert/converter.py314CODE
LOWapp/gradio_demo.py52CODE
LOWlightx2v_platform/ops/norm/norm_template.py41CODE
LOWlightx2v_platform/ops/norm/norm_template.py152CODE
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/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/intel_xpu/__init__.py114CODE
LOWlightx2v_platform/ops/mm/intel_xpu/__init__.py204CODE
LOWlightx2v/pipeline.py74CODE
LOWlightx2v/pipeline.py159CODE
LOWlightx2v/pipeline.py290CODE
LOWlightx2v/pipeline.py401CODE
LOWlightx2v/pipeline.py433CODE
LOWlightx2v/training/worldplay_ar_pipeline.py246CODE
LOWlightx2v/server/api/openai_images.py250CODE
LOWlightx2v/server/api/tasks/video.py43CODE
LOWlightx2v/server/api/tasks/image.py186CODE
LOWlightx2v/utils/va_reader_omni.py295CODE
LOWlightx2v/utils/torch_trace_profiler.py180CODE
LOWlightx2v/utils/ggml_tensor.py18CODE
LOW…htx2v/models/vfi/rife/model/pytorch_msssim/__init__.py166CODE
LOW…htx2v/models/video_encoders/hf/ltx2/upsampler/model.py35CODE
LOW…x2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py308CODE
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py142CODE
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py359CODE
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…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
LOW…encoders/hf/hunyuan3d/autoencoders/attention_blocks.py198CODE
LOW…encoders/hf/hunyuan3d/autoencoders/attention_blocks.py289CODE
LOW…dels/video_encoders/hf/hunyuan3d/autoencoders/model.py217CODE
LOWlightx2v/models/video_encoders/hf/wan/vae_2_2.py995CODE
LOWlightx2v/models/video_encoders/hf/wan/vae_2_2.py854CODE
LOWlightx2v/models/video_encoders/hf/wan/vae_2_2.py1050CODE
LOWlightx2v/models/video_encoders/hf/wan/vae_sf.py12CODE
LOWlightx2v/models/video_encoders/hf/wan/vae_sf.py82CODE
LOWlightx2v/models/video_encoders/hf/wan/vae.py846CODE
LOWlightx2v/models/video_encoders/hf/wan/vae.py283CODE
LOWlightx2v/models/video_encoders/hf/wan/vae.py387CODE
153 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.py343 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.py344 bn_std = torch.sqrt(self.vae.vae.bn.running_var.view(1, -1, 1, 1) + self.vae.vae.config.batch_norm_eps).to(latenCODE
Modern Structural Boilerplate120 hits · 120 pts
SeverityFileLineSnippetContext
LOWlightx2v_platform/ops/rope/ascend_npu/__init__.py3__all__ = ["NpuRope"]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/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
LOWlightx2v_platform/base/__init__.py14__all__ = [CODE
LOWlightx2v_platform/base/amd_rocm.py147__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.py19logger = logging.getLogger(__name__)CODE
LOW…2v/models/video_encoders/hf/ltx2/audio_vae/__init__.py15__all__ = [CODE
LOW…2v/models/video_encoders/hf/ltx2/video_vae/__init__.py12__all__ = [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…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
LOWlightx2v/models/networks/flux2/infer/__init__.py6__all__ = [CODE
LOWlightx2v/models/networks/motus/__init__.py4__all__ = [CODE
LOWlightx2v/models/networks/motus/infer/__init__.py5__all__ = ["MotusPreInfer", "MotusTransformerInfer", "MotusPostInfer"]CODE
LOWlightx2v/models/networks/worldplay/__init__.py11__all__ = [CODE
LOWlightx2v/models/networks/worldplay/weights/__init__.py6__all__ = [CODE
LOWlightx2v/models/networks/worldplay/infer/__init__.py11__all__ = [CODE
LOWlightx2v/models/networks/worldplay/prope/__init__.py3__all__ = ["prope_qkv"]CODE
LOWlightx2v/models/networks/hunyuan3d/utils/__init__.py113__all__ = ["get_logger", "logger", "smart_load_model", "synchronize_timer"]CODE
LOW…ghtx2v/models/networks/wan/weights/fastwam/__init__.py4__all__ = ["FastWAMPreWeights", "FastWAMTransformerWeights"]CODE
LOWlightx2v/models/networks/wan/weights/motus/__init__.py23__all__ = [CODE
LOW…ghtx2v/models/networks/wan/weights/lingbot/__init__.py4__all__ = ["WanLingbotPreWeights", "WanLingbotTransformerWeights"]CODE
LOWlightx2v/models/networks/wan/weights/dancer/__init__.py4__all__ = ["WanDancerPreWeights", "WanDancerTransformerWeights"]CODE
LOW…x2v/models/networks/wan/weights/lingbot_va/__init__.py4__all__ = ["LingbotVAPreWeights", "LingbotVATransformerWeights"]CODE
LOWlightx2v/models/networks/wan/infer/fastwam/__init__.py4__all__ = ["FastWAMPreInfer", "FastWAMTransformerInfer"]CODE
LOWlightx2v/models/networks/wan/infer/dancer/__init__.py5__all__ = [CODE
LOW…htx2v/models/networks/wan/infer/lingbot_va/__init__.py4__all__ = ["LingbotVAPreInfer", "LingbotVATransformerInfer"]CODE
LOWlightx2v/models/networks/longcat_image/__init__.py4__all__ = ["LongCatImageTransformerModel"]CODE
LOW…tx2v/models/networks/longcat_image/weights/__init__.py6__all__ = ["LongCatImagePreWeights", "LongCatImageTransformerWeights", "LongCatImagePostWeights"]CODE
LOW…ghtx2v/models/networks/longcat_image/infer/__init__.py7__all__ = [CODE
LOWlightx2v/models/networks/seedvr/__init__.py3__all__ = ["SeedVRNaDiTModel"]CODE
LOWlightx2v/models/networks/seedvr/utils/__init__.py4__all__ = ["na", "classifier_free_guidance", "classifier_free_guidance_dispatcher"]CODE
LOWlightx2v/models/input_encoders/lightllm/__init__.py13__all__ = [CODE
LOW…ghtx2v/models/input_encoders/hf/ltx2/gemma/__init__.py16__all__ = [CODE
LOW…x2v/models/input_encoders/hf/hunyuan15/qwen25/model.py49__all__ = [CODE
LOWlightx2v/models/input_encoders/hf/wan/t5/model.py46__all__ = [CODE
LOWlightx2v/models/input_encoders/hf/wan/t5/tokenizer.py9__all__ = ["HuggingfaceTokenizer"]CODE
LOW…tx2v/models/input_encoders/hf/wan/xlm_roberta/model.py29__all__ = [CODE
LOW…odels/input_encoders/hf/wan/matrix_game2/tokenizers.py9__all__ = ["HuggingfaceTokenizer"]CODE
LOWlightx2v/models/input_encoders/hf/longcat/__init__.py4__all__ = ["LongCatImageTextEncoder", "SYSTEM_PROMPT_EN", "SYSTEM_PROMPT_ZH"]CODE
LOWlightx2v/models/runners/worldmirror/__init__.py3__all__ = ["WorldMirrorRunner"]CODE
LOWlightx2v/models/runners/worldplay/__init__.py5__all__ = ["WorldPlayDistillRunner", "WorldPlayARRunner", "WorldPlayBIRunner"]CODE
LOWlightx2v/models/runners/longcat_image/__init__.py4__all__ = ["LongCatImageRunner"]CODE
LOWlightx2v/models/runners/seedvr/__init__.py3__all__ = ["SeedVRRunner"]CODE
60 more matches not shown…
Over-Commented Block120 hits · 114 pts
SeverityFileLineSnippetContext
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
LOWapp/run_gradio.sh1#!/bin/bashCOMMENT
LOWlightx2v/utils/set_config.py101 # alongside model.safetensors. The runner loads this config directly; here weCOMMENT
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
LOWlightx2v/models/networks/worldmirror/model.py241 # Peek at actual depths so WeightModule names track WorldMirror.COMMENT
LOWlightx2v/models/networks/worldmirror/model.py261 cam_qk_norm=False, # CameraHead refine_net uses default qk_norm=FalseCOMMENT
LOWlightx2v/models/networks/worldmirror/model.py281 self._lazy_file_keys = None # cached key set for the handleCOMMENT
LOWlightx2v/models/networks/worldmirror/model.py481COMMENT
LOW…ls/networks/worldmirror/weights/transformer_weights.py241 # absmax. Inference accuracy is intentionally identical to DefaultCOMMENT
LOW…ls/networks/worldmirror/weights/transformer_weights.py261 # ``fp32_first_n_blocks`` and last ``fp32_last_n_blocks`` of eachCOMMENT
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/runners/worldmirror/worldmirror_runner.py261 model_cfg["enable_bf16"] = TrueCOMMENT
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.py2341 # ``weight_scale_granularity`` in the caller's runtime config: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
LOW…specific_skills/onednn-fp8-gemm/assets/test_onednn.cpp1// Pure C++ ULT for oneDNN matmul primitives on Intel XPU (SYCL)COMMENT
LOW…pecific_skills/xe2-sdp-kernels/assets/decode_sdp_gqa.h1// decode_sdp_gqa.hCOMMENT
LOW…pecific_skills/xe2-sdp-kernels/assets/decode_sdp_gqa.h201 block_store<fp32, HD>(out + chunk_idx * headQ * HD + (q_head_idx + h) * HD,COMMENT
LOW…pecific_skills/xe2-sdp-kernels/assets/sdp_perf_all.cpp1// sdp_perf_all.cppCOMMENT
LOW…_skills/xe2-sdp-kernels/assets/sdp_correctness_all.cpp1// sdp_correctness_all.cppCOMMENT
LOW…ills/xe2-sdp-bf16/references/barrier-interleave-opt.md121COMMENT
LOW…_specific_skills/xe2-sdp-bf16/assets/test_sdp_best.cpp1#include <sycl/sycl.hpp>COMMENT
60 more matches not shown…
Structural Annotation Overuse48 hits · 93 pts
SeverityFileLineSnippetContext
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py519 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py522 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py526 # Step 3: Apply padding if neededCOMMENT
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py538 # 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.py257 # Step 1: Cache text KV (called once at generation start)COMMENT
LOW…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py283 # Step 2: For non-first chunks, cache context frame KVCOMMENT
LOW…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py288 # 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
LOWdocs/EN/source/getting_started/quickstart.md68#### Step 1: Clone RepositoryCOMMENT
LOWdocs/EN/source/getting_started/quickstart.md76#### Step 2: Create Conda Virtual EnvironmentCOMMENT
LOWdocs/EN/source/getting_started/quickstart.md84#### Step 3: Install DependenciesCOMMENT
LOWdocs/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.md222# Step 1: Create LightX2VPipelineCOMMENT
LOWexamples/BeginnerGuide/EN/02.Wan21-1.3B.md229# Step 2: Set runtime parametersCOMMENT
LOWexamples/BeginnerGuide/EN/02.Wan21-1.3B.md250# Step 3: Start generating videos, can generate multiple timesCOMMENT
LOWscripts/server/post_multi_servers.py48 # Step 2: Monitor task status until completionCOMMENT
LOWscripts/server/disagg/qwen/post_qwen_t2i.py48 # Step 1: Send to Decoder first (sets up Phase2 receiver)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_t2i.py54 # Step 2: Send to Transformer (Phase1 receiver + Phase2 sender)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_t2i.py60 # Step 3: Send to Encoder (text encoding + Phase1 send)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_t2i.py65 # Step 4: Poll Decoder for completion (image saved on Decoder node)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_i2i.py57 # Step 1: Send to Decoder first (sets up Phase2 receiver)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_i2i.py63 # Step 2: Send to Transformer (Phase1 receiver + Phase2 sender)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_i2i.py69 # Step 3: Send to Encoder (text + image encoding + Phase1 send)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_i2i.py74 # Step 4: Poll Decoder for completion (image saved on Decoder node)COMMENT
LOWscripts/server/disagg/wan/post_wan_t2v.py44 # Step 1: Send to Decoder first (sets up Phase2 receiver, starts blocking)COMMENT
LOWscripts/server/disagg/wan/post_wan_t2v.py50 # Step 2: Send to Transformer (sets up Phase1 receiver + Phase2 sender)COMMENT
LOWscripts/server/disagg/wan/post_wan_t2v.py56 # Step 3: Send to Encoder (triggers T5 encoding + Phase1 Mooncake send)COMMENT
LOWscripts/server/disagg/wan/post_wan_t2v.py61 # Step 4: Poll Decoder for final completion (video is saved on Decoder node)COMMENT
LOWscripts/server/disagg/wan/post_wan_i2v.py55 # Step 1: Send to Decoder first (sets up Phase2 receiver, starts blocking)COMMENT
LOWscripts/server/disagg/wan/post_wan_i2v.py61 # Step 2: Send to Transformer (sets up Phase1 receiver + Phase2 sender)COMMENT
LOWscripts/server/disagg/wan/post_wan_i2v.py67 # Step 3: Send to Encoder (triggers T5/CLIP/VAE encoding + Phase1 Mooncake send)COMMENT
LOWscripts/server/disagg/wan/post_wan_i2v.py72 # Step 4: Poll Decoder for final completion (video is saved on Decoder node)COMMENT
Docstring Block Structure12 hits · 60 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.py504Calculate target_video_length from video duration using the formula: target_video_length = (fps * seconds + 3) // 4 STRING
HIGH…coders/hf/hunyuan3d/autoencoders/surface_extractors.py132 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.py149Applies 2D rotary position embeddings to input tokens. Args: tokens: Input tensor of shape (batch_sSTRING
HIGH…v/models/networks/hunyuan_video/infer/posemb_layers.py72 Reshape frequency tensor for broadcasting it with another tensor. This function reshapes the frequency tensor STRING
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
Verbosity Indicators27 hits · 56 pts
SeverityFileLineSnippetContext
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py519 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py522 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py526 # Step 3: Apply padding if neededCOMMENT
LOW…v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py538 # 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.py257 # Step 1: Cache text KV (called once at generation start)COMMENT
LOW…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py283 # Step 2: For non-first chunks, cache context frame KVCOMMENT
LOW…ghtx2v/models/runners/worldplay/worldplay_ar_runner.py288 # Step 3: Run denoising for this chunkCOMMENT
LOWscripts/server/post_multi_servers.py48 # Step 2: Monitor task status until completionCOMMENT
LOWscripts/server/disagg/qwen/post_qwen_t2i.py48 # Step 1: Send to Decoder first (sets up Phase2 receiver)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_t2i.py54 # Step 2: Send to Transformer (Phase1 receiver + Phase2 sender)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_t2i.py60 # Step 3: Send to Encoder (text encoding + Phase1 send)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_t2i.py65 # Step 4: Poll Decoder for completion (image saved on Decoder node)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_i2i.py57 # Step 1: Send to Decoder first (sets up Phase2 receiver)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_i2i.py63 # Step 2: Send to Transformer (Phase1 receiver + Phase2 sender)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_i2i.py69 # Step 3: Send to Encoder (text + image encoding + Phase1 send)COMMENT
LOWscripts/server/disagg/qwen/post_qwen_i2i.py74 # Step 4: Poll Decoder for completion (image saved on Decoder node)COMMENT
LOWscripts/server/disagg/wan/post_wan_t2v.py44 # Step 1: Send to Decoder first (sets up Phase2 receiver, starts blocking)COMMENT
LOWscripts/server/disagg/wan/post_wan_t2v.py50 # Step 2: Send to Transformer (sets up Phase1 receiver + Phase2 sender)COMMENT
LOWscripts/server/disagg/wan/post_wan_t2v.py56 # Step 3: Send to Encoder (triggers T5 encoding + Phase1 Mooncake send)COMMENT
LOWscripts/server/disagg/wan/post_wan_t2v.py61 # Step 4: Poll Decoder for final completion (video is saved on Decoder node)COMMENT
LOWscripts/server/disagg/wan/post_wan_i2v.py55 # Step 1: Send to Decoder first (sets up Phase2 receiver, starts blocking)COMMENT
LOWscripts/server/disagg/wan/post_wan_i2v.py61 # Step 2: Send to Transformer (sets up Phase1 receiver + Phase2 sender)COMMENT
LOWscripts/server/disagg/wan/post_wan_i2v.py67 # Step 3: Send to Encoder (triggers T5/CLIP/VAE encoding + Phase1 Mooncake send)COMMENT
LOWscripts/server/disagg/wan/post_wan_i2v.py72 # Step 4: Poll Decoder for final completion (video is saved on Decoder node)COMMENT
Self-Referential Comments11 hits · 32 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
MEDIUMlightx2v/models/networks/wan/infer/transformer_infer.py47 # Create a wrapper function that matches the expected signatureCOMMENT
MEDIUM…x2v/models/networks/z_image/infer/transformer_infer.py41 # Create a wrapper function that matches the expected signatureCOMMENT
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.py73 # The following methods are for inference onlyCOMMENT
Cross-Language Confusion5 hits · 30 pts
SeverityFileLineSnippetContext
HIGHlightx2v/disagg/services/controller.py663 " kill -TERM ${pid} >/dev/null 2>&1 || true",CODE
HIGHlightx2v/disagg/services/controller.py667 " kill -KILL ${pid} >/dev/null 2>&1 || true",CODE
HIGH…ualization/visualization/image_web_viewer_node/page.py168 let lastState = null;CODE
HIGH…ualization/visualization/image_web_viewer_node/page.py211 if (current && options.includes(current)) select.value = current;CODE
HIGH…ualization/visualization/image_web_viewer_node/page.py226 if (stats && stats.episodes > 0) {CODE
Redundant / Tautological Comments17 hits · 27 pts
SeverityFileLineSnippetContext
LOWtools/extract/lora_extractor.py213 # Check if tensor shapes matchCOMMENT
LOWtools/extract/lora_extractor.py217 # Check if tensor data types matchCOMMENT
LOWtools/extract/lora_extractor.py224 # Check if there are actual changesCOMMENT
LOWtools/extract/lora_extractor.py250 # Check if rank is reasonableCOMMENT
LOWtools/convert/converter.py363 # Check if key matches target modulesCOMMENT
LOWapp/run_gradio.sh106# Check if model path existsCOMMENT
LOWapp/run_gradio.sh122# Check if demo file existsCOMMENT
LOWlightx2v/utils/lora_loader.py156 # 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.py162 # Check if tensor parallel is enabledCOMMENT
LOW…odels/networks/worldplay/infer/ar_transformer_infer.py750 # 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.py245 # 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.py243 # Check if block_col_sz and block_row_sz are the same for each headCOMMENT
LOWlightx2v/common/ops/attn/kernels/sla_kernel.py232 # 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.py92 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.py255CODE
MEDIUM…tx2v/models/input_encoders/hf/hunyuan3d/conditioner.py258CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMlightx2v/models/runners/wan/wan_dancer_runner.py45 # two-stage orchestration in run_pipeline and never calls the binding.COMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWlightx2v_ros/scripts/run_robotwin_service.sh16# 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.py311 # fp8-pertensor auto-quant path consumes. Keys just pass through toCOMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMlightx2v/models/networks/base_model.py547 This is a basic implementation. Subclasses may override for moreSTRING