Repository Analysis

hao-ai-lab/FastVideo

A unified inference and post-training framework for accelerated video generation.

20.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of hao-ai-lab/FastVideo, a Python project with 3,837 GitHub stars. SynthScan v2.0 examined 369,480 lines of code across 1834 source files, recording 5220 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 20.4 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).

20.4
Adjusted Score
20.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
3.8K
Stars
Python
Language
369.5K
Lines of Code
1.8K
Files
5.2K
Pattern Hits
2026-07-14
Scan Date
0.08
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 0HIGH 139MEDIUM 792LOW 4289

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 5220 distinct pattern matches across 23 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 Separators711 hits · 2356 pts
SeverityFileLineSnippetContext
MEDIUMfastvideo-kernel/CMakeLists.txt32# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt44# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt128# ---------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt130# ---------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt253# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt255# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/build.sh13# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/build.sh23# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py11# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py13# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py55# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py57# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py107# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py109# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py237# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py239# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py367# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py369# ---------------------------------------------------------------------------COMMENT
MEDIUM…ideo_kernel/triton_kernels/block_sparse_attn_triton.py15# ──────────────────────────── SPARSE ADDITION BEGIN ───────────────────────────COMMENT
MEDIUM…ideo_kernel/triton_kernels/block_sparse_attn_triton.py17# ──────────────────────────── SPARSE ADDITION END ─────────────────────────────COMMENT
MEDIUM…ideo_kernel/triton_kernels/block_sparse_attn_triton.py31# ──────────────────────────── SPARSE ADDITION BEGIN ───────────────────────────COMMENT
MEDIUM…ideo_kernel/triton_kernels/block_sparse_attn_triton.py163# ──────────────────────────── SPARSE ADDITION END ─────────────────────────────COMMENT
MEDIUM…ideo_kernel/triton_kernels/block_sparse_attn_triton.py691# ──────────────────────────── SPARSE ADDITION BEGIN ───────────────────────────COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_infer.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_infer.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_infer.py96# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_infer.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1279 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1281 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1286 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1288 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1293 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1295 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1298 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1300 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1306 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1308 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1319 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1322 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1327 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1329 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1381 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1383 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1388 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1390 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1395 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1397 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1402 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1404 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1415 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1417 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1422 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1424 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1349 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1351 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1444 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1446 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_fused_compress_topk.py12# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_fused_compress_topk.py14# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_fused_compress_topk.py80# ---------------------------------------------------------------------------COMMENT
651 more matches not shown…
Hyper-Verbose Identifiers1925 hits · 1947 pts
SeverityFileLineSnippetContext
LOWcollect_env.py129def run_and_parse_first_match(run_lambda, command, regex):CODE
LOWcollect_env.py140def run_and_return_first_line(run_lambda, command):CODE
LOWcollect_env.py172def get_nvidia_driver_version(run_lambda):CODE
LOWcollect_env.py281def summarize_fastvideo_build_flags():CODE
LOWcollect_env.py496def get_cachingallocator_config():CODE
LOWcollect_env.py501def get_cuda_module_loading_config():CODE
LOWcomfyui/video_generator/video_generator.py127 def _monitor_for_interruption(self):CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vsa_utils.py29def get_tile_partition_indices(CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vsa_utils.py55def get_reverse_tile_partition_indices(CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vsa_utils.py65def construct_variable_block_sizes(CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py87def _invert_indices_for_backward(CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py141def _block_sparse_attn_triton_fake(CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py163def block_sparse_attn_backward_triton(CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py201def _block_sparse_attn_backward_triton_fake(CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py372def block_sparse_attn_from_indices(CODE
LOW…/python/fastvideo_kernel/block_sparse_attn_cute_fwd.py72def _choose_q_sparse_block_size(q_len: int, m_block_size: int = _M_BLOCK_SIZE_DEFAULT) -> int:CODE
LOW…/python/fastvideo_kernel/block_sparse_attn_cute_fwd.py199def block_sparse_attn_cute_fwd(CODE
LOW…/python/fastvideo_kernel/block_sparse_attn_cute_fwd.py236def block_sparse_attn_cute_fwd_bshd(CODE
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py205def _layer_norm_param_fwd_fused(CODE
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py305def _layer_norm_noparam_fwd_fused(CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py69def _select_threshold_query_head(gate: torch.Tensor,CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py216def _select_threshold_overall(gate: torch.Tensor, valid_gate_mask: torch.Tensor,CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py308def _select_threshold_head_global(gate: torch.Tensor,CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py935def test_attn_varlen_moba_speed(batch,CODE
LOW…fastvideo_kernel/triton_kernels/fused_compress_topk.py63def _fused_block_mean_bwd_kernel(CODE
LOW…fastvideo_kernel/triton_kernels/fused_compress_topk.py282def _pytorch_topk_mask_fallback(CODE
LOW…thon/fastvideo_kernel/triton_kernels/st_attn_triton.py20def get_common_autotune_config():CODE
LOW…thon/fastvideo_kernel/triton_kernels/st_attn_triton.py233def sliding_tile_attention_triton(CODE
LOW…ideo_kernel/triton_kernels/block_sparse_attn_triton.py692def triton_block_sparse_attn_forward(q, k, v, q2k_index, q2k_num,CODE
LOW…ideo_kernel/triton_kernels/block_sparse_attn_triton.py746def triton_block_sparse_attn_backward(do, q, k, v, o, M, q2k_index, q2k_num,CODE
LOW…thon/fastvideo_kernel/triton_kernels/attn_qat_train.py132def _host_descriptor_pre_hook(nargs):CODE
LOW…thon/fastvideo_kernel/triton_kernels/attn_qat_train.py454def _compute_cross_attn_pointer_offsets(bhid, H, N_CTX_Q, stride_z_q, stride_z_kv, stride_h_q, stride_h_kv):CODE
LOWfastvideo-kernel/tests/test_sta.py76def test_sliding_tile_attention():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py145def test_qat_attention_forward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py191def test_qat_attention_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py272def test_qat_attention_different_shapes():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py317def test_qat_attention_non_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py357def test_qat_attention_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py397def test_qat_attention_causal_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py458def test_qat_attention_different_seq_lengths():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py508def test_qat_attention_different_seq_lengths_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py592def test_fused_attention_forward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py637def test_fused_attention_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py717def test_fused_attention_different_shapes():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py763def test_fused_attention_non_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py803def test_fused_attention_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py843def test_fused_attention_causal_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py904def test_fused_vs_qat_attention_forward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py951def test_fused_vs_qat_attention_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1030def test_fused_vs_qat_attention_different_shapes():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1076def test_fused_vs_qat_attention_non_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1116def test_fused_vs_qat_attention_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1156def test_fused_vs_qat_attention_causal_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1219def test_qat_attention_wan_shape_forward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1268def test_qat_attention_wan_shape_backward():CODE
LOWfastvideo-kernel/tests/test_vsa_forward.py39def block_sparse_forward_test(CODE
LOWfastvideo-kernel/tests/test_vsa_forward.py213def test_video_sparse_attention_forward():CODE
LOWfastvideo-kernel/tests/test_fused_compress_topk.py52 def test_tie_at_boundary_various_topk(self):CODE
LOWfastvideo-kernel/tests/test_fused_compress_topk.py88 def test_random_scores_row_count(self):CODE
LOWfastvideo-kernel/tests/test_fused_compress_topk.py99 def test_random_scores_value_match(self):CODE
1865 more matches not shown…
Unused Imports1138 hits · 1070 pts
SeverityFileLineSnippetContext
LOWcomfyui/__init__.py1CODE
LOWcomfyui/__init__.py1CODE
LOWcomfyui/video_generator/video_generator.py1CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vsa_utils.py9CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py3CODE
LOW…ernel/python/fastvideo_kernel/block_sparse_attn_256.py19CODE
LOW…/python/fastvideo_kernel/block_sparse_attn_cute_fwd.py18CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py1CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py3CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py3CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py3CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py9CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py9CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py14CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py14CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py14CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py20CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py20CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py20CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py20CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py20CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py28CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py32CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py32CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py32CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py32CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py32CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py32CODE
LOW…el/python/fastvideo_kernel/block_sparse_attn_varlen.py8CODE
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py1CODE
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py3CODE
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py6CODE
LOW…hon/fastvideo_kernel/triton_kernels/fused_attention.py10CODE
LOWfastvideo-kernel/tests/test_vsa256_forward_vbs.py3CODE
LOWfastvideo-kernel/tests/test_vsa_forward.py1CODE
LOWfastvideo-kernel/tests/test_vsa_forward.py2CODE
LOWfastvideo-kernel/tests/test_turbodiffusion.py3CODE
LOWfastvideo-kernel/tests/test_turbodiffusion.py4CODE
LOWfastvideo-kernel/tests/test_vsa.py2CODE
LOWfastvideo-kernel/tests/test_vsa.py3CODE
LOWfastvideo-kernel/tests/test_vsa.py4CODE
LOWfastvideo-kernel/tests/test_vsa.py5CODE
LOWfastvideo-kernel/tests/test_vsa.py6CODE
LOWfastvideo-kernel/tests/test_vsa256_forward.py3CODE
LOWfastvideo-kernel/tests/test_vsa_utils.py11CODE
LOWfastvideo-kernel/tests/test_vsa256_triton.py7CODE
LOWfastvideo-kernel/tests/test_vsa256_forward_cross.py3CODE
LOWfastvideo-kernel/benchmarks/bench_vsa.py11CODE
LOW…stvideo-kernel/benchmarks/bench_fused_compress_topk.py20CODE
LOWfastvideo-kernel/attn_qat_infer/__init__.py16CODE
LOWtests/local_tests/test_trainer_managed_optimization.py1CODE
LOWtests/local_tests/test_trainer_managed_optimization.py1CODE
LOWtests/local_tests/ltx2/test_ltx2_pipeline_smoke.py308CODE
LOWtests/local_tests/ltx2/test_ltx2_pipeline_smoke.py317CODE
LOWtests/local_tests/ltx2/test_ltx2_pipeline_smoke.py317CODE
LOWtests/local_tests/ltx2/test_ltx2_pipeline_smoke.py317CODE
LOWtests/local_tests/ltx2/test_ltx2_pipeline_smoke.py317CODE
LOW…ts/local_tests/flux/test_flux_dev_component_loaders.py13CODE
LOW…ests/stable_audio/test_stable_audio_pipeline_parity.py36CODE
LOW…tests/stable_audio/test_stable_audio_pipeline_smoke.py3CODE
1078 more matches not shown…
Cross-File Repetition102 hits · 510 pts
SeverityFileLineSnippetContext
HIGHfastvideo-kernel/attn_qat_infer/__init__.py0copyright (c) 2025 by sageattention team. licensed under the apache license, version 2.0 (the "license"); you may not usSTRING
HIGHfastvideo-kernel/attn_qat_infer/api.py0copyright (c) 2025 by sageattention team. licensed under the apache license, version 2.0 (the "license"); you may not usSTRING
HIGH…nel/attn_qat_infer/quantization/bench/bench_quant_q.py0copyright (c) 2025 by sageattention team. licensed under the apache license, version 2.0 (the "license"); you may not usSTRING
HIGH…ernel/attn_qat_infer/quantization/bench/bench_utils.py0copyright (c) 2025 by sageattention team. licensed under the apache license, version 2.0 (the "license"); you may not usSTRING
HIGH…nel/attn_qat_infer/quantization/bench/bench_quant_k.py0copyright (c) 2025 by sageattention team. licensed under the apache license, version 2.0 (the "license"); you may not usSTRING
HIGH…nel/attn_qat_infer/quantization/bench/bench_quant_v.py0copyright (c) 2025 by sageattention team. licensed under the apache license, version 2.0 (the "license"); you may not usSTRING
HIGHdocs/inference/add_pipeline.md0set up pipeline stages with proper dependency injection.STRING
HIGH…lines/preprocess/preprocess_pipeline_ode_trajectory.py0set up pipeline stages with proper dependency injection.STRING
HIGH…video/pipelines/preprocess/preprocess_pipeline_text.py0set up pipeline stages with proper dependency injection.STRING
HIGH…video/pipelines/preprocess/preprocess_pipeline_base.py0set up pipeline stages with proper dependency injection.STRING
HIGH…ame2/matrixgame2_preprocess_pipeline_ode_trajectory.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/pipelines/basic/flux_2/flux_2_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGH…deo/pipelines/basic/hunyuan15/hunyuan15_sr_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGH…tvideo/pipelines/basic/hunyuan15/hunyuan15_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGH…eo/pipelines/basic/hunyuan15/hunyuan15_2sr_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGH…eo/pipelines/basic/hunyuan15/hunyuan15_i2v_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/pipelines/basic/cosmos/cosmos_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/pipelines/basic/gen3c/gen3c_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGH…elines/basic/turbodiffusion/turbodiffusion_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGH…es/basic/turbodiffusion/turbodiffusion_i2v_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGH…tvideo/pipelines/basic/gamecraft/gamecraft_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/pipelines/basic/hunyuan/hunyuan_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/pipelines/basic/wan/wan_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGH…stvideo/pipelines/basic/wan/wan_causal_dmd_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/pipelines/basic/wan/wan_i2v_dmd_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/pipelines/basic/wan/wan_v2v_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/pipelines/basic/wan/wan_i2v_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/pipelines/basic/wan/wan_dmd_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/pipelines/basic/longcat/longcat_pipeline.py0set up pipeline stages with proper dependency injection.STRING
HIGHfastvideo/distributed/parallel_state.py0note: we assume that the input tensor is on the same device across all the ranks. note: `dst` is the local rank of the dSTRING
HIGH…o/distributed/device_communicators/cpu_communicator.py0note: we assume that the input tensor is on the same device across all the ranks. note: `dst` is the local rank of the dSTRING
HIGH…buted/device_communicators/base_device_communicator.py0note: we assume that the input tensor is on the same device across all the ranks. note: `dst` is the local rank of the dSTRING
HIGHfastvideo/distributed/parallel_state.py0note: `dst` is the local rank of the destination rank.STRING
HIGH…/distributed/device_communicators/cuda_communicator.py0note: `dst` is the local rank of the destination rank.STRING
HIGH…buted/device_communicators/base_device_communicator.py0note: `dst` is the local rank of the destination rank.STRING
HIGH…o/distributed/device_communicators/npu_communicator.py0note: `dst` is the local rank of the destination rank.STRING
HIGHfastvideo/distributed/parallel_state.py0sends a tensor to the destination rank in a non-blocking waySTRING
HIGH…/distributed/device_communicators/cuda_communicator.py0sends a tensor to the destination rank in a non-blocking waySTRING
HIGH…buted/device_communicators/base_device_communicator.py0sends a tensor to the destination rank in a non-blocking waySTRING
HIGH…o/distributed/device_communicators/npu_communicator.py0sends a tensor to the destination rank in a non-blocking waySTRING
HIGHfastvideo/dataset/dataloader/record_schema.py0create a record for the parquet dataset with clip features.STRING
HIGH…tvideo/pipelines/preprocess/preprocess_pipeline_i2v.py0create a record for the parquet dataset with clip features.STRING
HIGH…process/matrixgame2/matrixgame2_preprocess_pipeline.py0create a record for the parquet dataset with clip features.STRING
HIGHfastvideo/training/training_pipeline.py0add visualization data to tracker logging and save frames to disk.STRING
HIGH…stvideo/training/self_forcing_distillation_pipeline.py0add visualization data to tracker logging and save frames to disk.STRING
HIGHfastvideo/training/distillation_pipeline.py0add visualization data to tracker logging and save frames to disk.STRING
HIGH…ning/matrixgame2_self_forcing_distillation_pipeline.py0override to properly handle i2v concatenation - call parent first, then concatenate image conditioning.STRING
HIGHfastvideo/training/wan_i2v_distillation_pipeline.py0override to properly handle i2v concatenation - call parent first, then concatenate image conditioning.STRING
HIGHfastvideo/training/wan_i2v_training_pipeline.py0override to properly handle i2v concatenation - call parent first, then concatenate image conditioning.STRING
HIGHfastvideo/training/matrixgame2_training_pipeline.py0override to properly handle i2v concatenation - call parent first, then concatenate image conditioning.STRING
HIGHfastvideo/pipelines/composed_pipeline_base.py0generate a video or image using the pipeline. args: batch: the batch to generate from. fastvideo_args: the inference argSTRING
HIGH…deo/pipelines/basic/hunyuan15/hunyuan15_sr_pipeline.py0generate a video or image using the pipeline. args: batch: the batch to generate from. fastvideo_args: the inference argSTRING
HIGH…eo/pipelines/basic/hunyuan15/hunyuan15_2sr_pipeline.py0generate a video or image using the pipeline. args: batch: the batch to generate from. fastvideo_args: the inference argSTRING
HIGH…deo/pipelines/basic/hunyuan15/hunyuan15_sr_pipeline.py0wan video-to-video diffusion pipeline implementation. this module contains an implementation of the wan video-to-video dSTRING
HIGH…tvideo/pipelines/basic/hunyuan15/hunyuan15_pipeline.py0wan video-to-video diffusion pipeline implementation. this module contains an implementation of the wan video-to-video dSTRING
HIGH…eo/pipelines/basic/hunyuan15/hunyuan15_2sr_pipeline.py0wan video-to-video diffusion pipeline implementation. this module contains an implementation of the wan video-to-video dSTRING
HIGH…eo/pipelines/basic/hunyuan15/hunyuan15_i2v_pipeline.py0wan video-to-video diffusion pipeline implementation. this module contains an implementation of the wan video-to-video dSTRING
HIGHfastvideo/pipelines/basic/hunyuan/hunyuan_pipeline.py0wan video-to-video diffusion pipeline implementation. this module contains an implementation of the wan video-to-video dSTRING
HIGHfastvideo/pipelines/basic/cosmos/cosmos_pipeline.py0wan video-to-video diffusion pipeline implementation. this module contains an implementation of the wan video-to-video dSTRING
HIGHfastvideo/pipelines/basic/wan/wan_pipeline.py0wan video-to-video diffusion pipeline implementation. this module contains an implementation of the wan video-to-video dSTRING
42 more matches not shown…
Excessive Try-Catch Wrapping366 hits · 388 pts
SeverityFileLineSnippetContext
LOWcomfyui/video_generator/video_generator.py145 except Exception as e:CODE
MEDIUMcomfyui/video_generator/video_generator.py146 print(f"Error sending interrupt signal: {e}")CODE
LOWcomfyui/video_generator/video_generator.py161 except Exception as e:CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py19 except Exception:CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py78 except Exception as e: # pragma: no cover - environment issueCODE
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py16def _get_sm90_ops():CODE
LOWfastvideo-kernel/tests/test_vmoba_correctness.py87 except Exception as e:CODE
LOWfastvideo-kernel/benchmarks/bench_vsa.py23except Exception as e: # pragma: no coverCODE
LOWtests/local_tests/ltx2/test_ltx2_gemma_parity.py143 except Exception:CODE
LOWtests/local_tests/ltx2/test_ltx2_gemma_encoder.py66 except Exception as exc:CODE
LOW…ests/stable_audio/test_stable_audio_pipeline_parity.py64 except Exception:CODE
MEDIUM…ests/stable_audio/test_stable_audio_pipeline_parity.py55def _stable_audio_tools_inference_available() -> bool:CODE
LOW…ts/local_tests/stable_audio/test_oobleck_vae_parity.py50 except Exception:CODE
MEDIUM…ts/local_tests/stable_audio/test_oobleck_vae_parity.py44def _stable_audio_tools_available() -> bool:CODE
LOW…cal_tests/stable_audio/test_stable_audio_a2a_parity.py34 except Exception:CODE
MEDIUM…cal_tests/stable_audio/test_stable_audio_a2a_parity.py29def _stable_audio_tools_inference_available() -> bool:CODE
LOW…tests/stable_audio/test_oobleck_vae_official_parity.py45 except Exception:CODE
MEDIUM…tests/stable_audio/test_oobleck_vae_official_parity.py41def _stable_audio_tools_available() -> bool:CODE
LOWtests/local_tests/stable_audio/_stable_audio_helpers.py39 except Exception:CODE
LOWtests/local_tests/glm_image/test_pipeline_parity.py123 except Exception:CODE
LOWtests/local_tests/glm_image/test_pipeline_parity.py138 except Exception:CODE
MEDIUMtests/local_tests/glm_image/test_pipeline_parity.py31def _upstream_glm_image_available() -> bool:CODE
LOWtests/local_tests/flux2/test_flux2_component_parity.py145 except Exception:CODE
LOWtests/local_tests/flux2/test_flux2_component_parity.py189 except Exception:CODE
LOWtests/local_tests/flux2/test_flux2_component_parity.py198 except Exception:CODE
LOW…_world/test_dreamx_world_camera_conditioning_parity.py41 except Exception as exc: # noqa: BLE001 - local parity should skip missing reference deps.CODE
LOW…reamx_world/test_dreamx_world_ar_transformer_parity.py60 except Exception as exc: # noqa: BLE001CODE
LOW…/dreamx_world/test_dreamx_world_text_encoder_parity.py96 except Exception as exc: # noqa: BLE001CODE
LOW…cal_tests/dreamx_world/test_dreamx_world_vae_parity.py160 except Exception as exc: # noqa: BLE001CODE
LOW…s/dreamx_world/test_dreamx_world_transformer_parity.py115 except Exception as exc: # noqa: BLE001 - local parity should skip missing refs.CODE
LOW…s/dreamx_world/test_dreamx_world_transformer_parity.py208 except Exception as exc: # noqa: BLE001CODE
LOWtests/local_tests/gen3c/test_gen3c.py384 except Exception as e:CODE
LOW…magi_human/test_magi_human_sa_audio_official_parity.py72 except Exception:CODE
LOW…cal_tests/magi_human/test_magi_human_distill_parity.py56 except Exception:CODE
LOWtests/local_tests/magi_human/test_magi_human_parity.py61 except Exception:CODE
LOW…al_tests/magi_human/test_magi_human_sa_audio_parity.py49 except Exception:CODE
LOW…al_tests/magi_human/test_magi_human_pipeline_parity.py87 except Exception:CODE
LOW…al_tests/magi_human/test_magi_human_pipeline_parity.py127 except Exception as exc:CODE
LOW…al_tests/magi_human/test_magi_human_pipeline_parity.py175 except Exception:CODE
LOW…s/local_tests/magi_human/test_magi_human_vae_parity.py65 except Exception as exc:CODE
LOW…cal_tests/magi_human/test_magi_human_pipeline_smoke.py182 except Exception:CODE
LOW…cal_tests/magi_human/test_magi_human_t5gemma_parity.py47 except Exception:CODE
LOW…/magi_human/test_magi_human_sr1080p_pipeline_parity.py62 except Exception:CODE
LOW…s/magi_human/test_magi_human_sr540p_pipeline_parity.py51 except Exception:CODE
LOWtests/local_tests/gamecraft/test_gamecraft_parity.py141 except Exception as e:CODE
LOW…ocal_tests/gamecraft/test_gamecraft_pipeline_parity.py285 except Exception as e:CODE
LOW…sts/local_tests/gamecraft/test_gamecraft_vae_parity.py178 except Exception:CODE
LOW…ocal_tests/gamecraft/test_gamecraft_encoders_parity.py102 except Exception as e:CODE
LOW…ocal_tests/gamecraft/test_gamecraft_encoders_parity.py172 except Exception as e:CODE
LOW…ocal_tests/gamecraft/test_gamecraft_encoders_parity.py240 except Exception as e:CODE
LOWtests/local_tests/sd35/test_sd35_component_parity.py80 except Exception:CODE
LOWtests/local_tests/sd35/test_sd35_component_parity.py124 except Exception:CODE
LOWtests/local_tests/sd35/test_sd35_component_parity.py131 except Exception:CODE
LOW…/kandinsky5/test_kandinsky5_lite_transformer_parity.py49 except Exception as exc:CODE
LOWtests/local_tests/helpers/magi_human_upstream.py131 except Exception:CODE
LOW…dd-model-09-pipeline/templates/pipeline_parity_test.py65 except Exception as exc: # pragma: no cover - scaffold guardCODE
LOW…add-model-02-parity/templates/component_parity_test.py75 except Exception as exc: # noqa: BLE001 - local parity should skip missing refs.CODE
LOW…kills/add-model-01-prep/scripts/download_hf_weights.py96 except Exception as exc: # noqa: BLE001 - CLI should print concise failures.CODE
LOW…/skills/add-model-01-prep/scripts/inspect_hf_layout.py85 except Exception as exc: # noqa: BLE001 - surface malformed JSON clearly.CODE
LOW…/skills/add-model-01-prep/scripts/inspect_hf_layout.py123 except Exception as exc: # noqa: BLE001 - missing/inaccessible file is data.CODE
306 more matches not shown…
Deep Nesting303 hits · 284 pts
SeverityFileLineSnippetContext
LOWcollect_env.py180CODE
LOWcollect_env.py394CODE
LOWcomfyui/video_generator/inference_args.py46CODE
LOWcomfyui/video_generator/video_generator.py127CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py570CODE
LOW…thon/fastvideo_kernel/triton_kernels/st_attn_triton.py88CODE
LOWfastvideo-kernel/tests/utils.py26CODE
LOW…ernel/attn_qat_infer/quantization/bench/bench_utils.py94CODE
LOWtests/local_tests/ltx2/test_ltx2_vae.py35CODE
LOWtests/local_tests/ltx2/test_ltx2_gemma_encoder.py23CODE
LOWtests/local_tests/ltx2/test_ltx2_audio_vae.py39CODE
LOWtests/local_tests/flux2/debug_flux2_klein_tp_trace.py214CODE
LOW…ts/local_tests/pipelines/test_flux2_pipeline_parity.py224CODE
LOW…al_tests/magi_human/test_magi_human_pipeline_parity.py292CODE
LOWtests/local_tests/gamecraft/test_gamecraft_parity.py207CODE
LOWtests/local_tests/gamecraft/test_gamecraft_parity.py463CODE
LOW…ills/add-model-08-trace/templates/block_trace_debug.py86CODE
LOW…ills/add-model-08-trace/templates/block_trace_debug.py264CODE
LOW…d-model-07-conversion/templates/family_to_diffusers.py98CODE
LOWdocs/generate_examples.py340CODE
LOWdocs/generate_examples.py428CODE
LOWdocs/generate_examples.py168CODE
LOWfastvideo/fastvideo_args.py664CODE
LOWfastvideo/fastvideo_args.py987CODE
LOWfastvideo/logger.py238CODE
LOWfastvideo/utils.py930CODE
LOWfastvideo/utils.py1140CODE
LOWfastvideo/utils.py158CODE
LOWfastvideo/utils.py199CODE
LOWfastvideo/utils.py327CODE
LOWfastvideo/utils.py364CODE
LOWfastvideo/forward_context.py54CODE
LOWfastvideo/attention/backends/bsa_attn.py206CODE
LOWfastvideo/attention/backends/bsa_attn.py485CODE
LOWfastvideo/platforms/rocm.py64CODE
LOWfastvideo/platforms/cuda.py112CODE
LOWfastvideo/platforms/cuda.py333CODE
LOWfastvideo/layers/linear.py526CODE
LOWfastvideo/layers/linear.py830CODE
LOWfastvideo/distributed/parallel_state.py1019CODE
LOWfastvideo/distributed/parallel_state.py444CODE
LOWfastvideo/dataset/validation_dataset.py20CODE
LOWfastvideo/dataset/validation_dataset.py111CODE
LOWfastvideo/dataset/utils.py24CODE
LOWfastvideo/dataset/utils.py99CODE
LOWfastvideo/dataset/parquet_dataset_map_style.py124CODE
LOWfastvideo/dataset/parquet_dataset_iterable_style.py135CODE
LOWfastvideo/dataset/parquet_dataset_iterable_style.py33CODE
LOWfastvideo/dataset/dataloader/parquet_io.py102CODE
LOWfastvideo/training/training_pipeline.py515CODE
LOWfastvideo/training/training_pipeline.py703CODE
LOWfastvideo/training/training_pipeline.py868CODE
LOW…stvideo/training/self_forcing_distillation_pipeline.py141CODE
LOW…stvideo/training/self_forcing_distillation_pipeline.py559CODE
LOW…stvideo/training/self_forcing_distillation_pipeline.py689CODE
LOWfastvideo/training/trackers.py514CODE
LOWfastvideo/training/training_utils.py26CODE
LOWfastvideo/training/training_utils.py535CODE
LOWfastvideo/training/training_utils.py797CODE
LOWfastvideo/training/training_utils.py927CODE
243 more matches not shown…
Modern Structural Boilerplate164 hits · 166 pts
SeverityFileLineSnippetContext
LOWcomfyui/__init__.py4__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']CODE
LOWcomfyui/video_generator/video_generator.py32def update_config_from_args(config: Any, args_dict: dict[str, Any]) -> None:CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py41__all__ = [CODE
LOW…fastvideo_kernel/triton_kernels/fused_compress_topk.py19logger = logging.getLogger(__name__)CODE
LOW…hon/fastvideo_kernel/triton_kernels/fused_attention.py55__all__ = ["attention"]CODE
LOWfastvideo-kernel/benchmarks/bench_vsa.py31def set_seed(seed: int = 42) -> None:CODE
LOW…stvideo-kernel/benchmarks/bench_fused_compress_topk.py36def set_seed(seed: int = 42) -> None:CODE
LOWtests/local_tests/flux2/debug_flux2_klein_tp_trace.py105def _set_submodule(model: torch.nn.Module, name: str, module: torch.nn.Module) -> None:CODE
LOWfastvideo/registry.py1325__all__ = [CODE
LOWfastvideo/__init__.py6__all__ = ["VideoGenerator", "PipelineConfig", "SamplingParam", "__version__"]CODE
LOWfastvideo/utils.py908def set_random_seed(seed: int) -> None:CODE
LOWfastvideo/profiler.py108def set_global_profiler(profiler: torch.profiler.profile | None) -> None:CODE
LOWfastvideo/profiler.py117def set_global_controller(controller: TorchProfilerController | None) -> None:CODE
LOWfastvideo/profiler.py341 def _set_collection(self, enabled: bool) -> None:CODE
LOWfastvideo/attention/__init__.py7__all__ = [CODE
LOWfastvideo/platforms/__init__.py186__all__ = ['Platform', 'PlatformEnum', 'current_platform', "_init_trace"]CODE
LOWfastvideo/layers/quantization/fp8_qat_train_config.py27logger = logging.getLogger(__name__)CODE
LOWfastvideo/layers/quantization/nvfp4_qat_train_config.py26logger = logging.getLogger(__name__)CODE
LOWfastvideo/layers/quantization/fp8_config.py23logger = logging.getLogger(__name__)CODE
LOWfastvideo/layers/quantization/fp8_config.py237__all__ = [CODE
LOWfastvideo/layers/quantization/nvfp4_config.py35logger = logging.getLogger(__name__)CODE
LOWfastvideo/layers/quantization/nvfp4_config.py484__all__ = [CODE
LOWfastvideo/layers/quantization/nvfp4_qat_config.py46logger = logging.getLogger(__name__)CODE
LOWfastvideo/layers/quantization/nvfp4_qat_config.py227__all__ = [CODE
LOWfastvideo/distributed/__init__.py11__all__ = [CODE
LOW…deo/distributed/device_communicators/pynccl_wrapper.py306__all__ = [CODE
LOW…deo/distributed/device_communicators/pyhccl_wrapper.py192__all__ = [CODE
LOWfastvideo/logging_utils/__init__.py5__all__ = [CODE
LOWfastvideo/dataset/__init__.py47__all__ = [CODE
LOWfastvideo/training/training_pipeline.py89 def set_schemas(self) -> None:CODE
LOWfastvideo/training/__init__.py6__all__ = [CODE
LOWfastvideo/tests/contract/test_dynamo_shape.py329__all__ = [CODE
LOWfastvideo/tests/train/trainer/test_validation.py50 def set_tracker(self, tracker: Any) -> None:CODE
LOWfastvideo/tests/performance/identity.py418__all__ = [CODE
LOWfastvideo/pipelines/composed_pipeline_base.py89 def set_trainable(self) -> None:CODE
LOWfastvideo/pipelines/__init__.py61__all__ = [CODE
LOWfastvideo/pipelines/lora_pipeline.py200 def set_trainable(self) -> None:CODE
LOWfastvideo/pipelines/stages/__init__.py49__all__ = [CODE
LOWfastvideo/pipelines/basic/flux_2/__init__.py7__all__ = ["Flux2Pipeline", "Flux2KleinPipeline"]CODE
LOWfastvideo/pipelines/basic/matrixgame3/__init__.py4__all__ = ["MatrixGame3I2VPipeline"]CODE
LOWfastvideo/pipelines/basic/ltx2/continuation.py381__all__ = [CODE
LOWfastvideo/pipelines/basic/ltx2/stage_overrides.py53__all__ = [CODE
LOWfastvideo/pipelines/basic/ltx2/stages/ltx2_refine.py390__all__ = [CODE
LOWfastvideo/pipelines/basic/ltx2/stages/__init__.py18__all__ = [CODE
LOW…pipelines/basic/ltx2/stages/ltx2_image_conditioning.py484__all__ = [CODE
LOWfastvideo/pipelines/basic/matrixgame2/__init__.py5__all__ = ["MatrixGame2I2VPipeline", "MatrixGame2CausalDMDPipeline"]CODE
LOW…tvideo/pipelines/basic/stable_audio/stages/__init__.py7__all__ = [CODE
LOWfastvideo/pipelines/basic/glm_image/__init__.py7__all__ = ["GlmImagePipeline"]CODE
LOWfastvideo/pipelines/basic/glm_image/stages/__init__.py9__all__ = [CODE
LOWfastvideo/pipelines/basic/dreamx_world/config.py13__all__ = [CODE
LOWfastvideo/pipelines/basic/dreamx_world/__init__.py17__all__ = [CODE
LOWfastvideo/pipelines/basic/gen3c/__init__.py22__all__ = [CODE
LOWfastvideo/pipelines/basic/turbodiffusion/__init__.py6__all__ = ["TurboDiffusionPipeline", "TurboDiffusionI2VPipeline"]CODE
LOWfastvideo/pipelines/basic/magi_human/stages/__init__.py9__all__ = [CODE
LOWfastvideo/pipelines/basic/longcat/__init__.py8__all__ = ["LongCatPipeline", "LongCatImageToVideoPipeline", "LongCatVideoContinuationPipeline"]CODE
LOWfastvideo/models/upsamplers/ltx2_upsampler.py310__all__ = [CODE
LOWfastvideo/models/upsamplers/__init__.py14__all__ = [CODE
LOWfastvideo/models/camera/__init__.py6__all__ = ["create_camera_trajectory"]CODE
LOWfastvideo/models/dits/matrixgame3/__init__.py4__all__ = [CODE
LOWfastvideo/models/dits/matrixgame2/__init__.py5__all__ = [CODE
104 more matches not shown…
Over-Commented Block141 hits · 139 pts
SeverityFileLineSnippetContext
LOWcollect_env.py301# example outputs of CPU infosCOMMENT
LOWcollect_env.py321# pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrandCOMMENT
LOWcollect_env.py341# L1tf: Not affectedCOMMENT
LOWcollect_env.py361# ProcessorType=3COMMENT
LOWpyproject.toml101[tool.uv.sources]COMMENT
LOWpyproject.toml141]COMMENT
LOWrequirements-mkdocs.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWrequirements-mkdocs.txt21gitdb==4.0.12COMMENT
LOWrequirements-mkdocs.txt41 # mkdocsCOMMENT
LOWrequirements-mkdocs.txt61 # mkdocs-api-autonavCOMMENT
LOWrequirements-mkdocs.txt81 # via -r requirements-mkdocs.inCOMMENT
LOWrequirements-mkdocs.txt101 # via mkdocs-materialCOMMENT
LOWfastvideo-kernel/CMakeLists.txt21else()COMMENT
LOWfastvideo-kernel/build.sh1#!/bin/bashCOMMENT
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py481 dx = dxCOMMENT
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py501 # dL/dw = sum(dL/dy * x_hat)COMMENT
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py521 COMMENT
LOW…l/python/fastvideo_kernel/triton_kernels/sla_triton.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWfastvideo-kernel/tests/test_attn_qat_train.py1481 print("Running Fused attention tests...")COMMENT
LOWfastvideo-kernel/attn_qat_infer/blackwell/utils.h21#include <stdlib.h>COMMENT
LOW…ideo-kernel/attn_qat_infer/blackwell/epilogue_tma_ws.h141 Tensor sO = cute::as_position_independent_swizzle_tensor(make_tensor(make_smem_ptr(shared_storage.smem_o.begin()COMMENT
LOW…ideo-kernel/attn_qat_infer/blackwell/epilogue_tma_ws.h161 // #pragma unrollCOMMENT
LOW…tvideo-kernel/attn_qat_infer/blackwell/static_switch.h1// Inspired byCOMMENT
LOWfastvideo-kernel/attn_qat_infer/blackwell/kernel_ws.h21COMMENT
LOW…tvideo-kernel/attn_qat_infer/quantization/cuda_utils.h1#pragma onceCOMMENT
LOWtests/local_tests/dreamx_world/README.md201# decoded: 9 frames, (64, 64, 3), uint8COMMENT
LOW…al_tests/magi_human/test_magi_human_pipeline_parity.py501 # Tolerance budget for 1-step / CFG=2 (bf16 DiT + bf16 CFG mix):COMMENT
LOW.agents/scripts/sync-skills.sh1#!/usr/bin/env bashCOMMENT
LOWfastvideo/envs.py201 "FASTVIDEO_TRACE_FUNCTION":COMMENT
LOWfastvideo/envs.py301 # cond and uncond forwards and refresh delta_cached = cond - uncond.COMMENT
LOWfastvideo/registry.py301COMMENT
LOWfastvideo/utils.py621COMMENT
LOWfastvideo/profiler.py121COMMENT
LOWfastvideo/attention/backends/sla.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWfastvideo/attention/utils/flash_attn_no_pad.py1# Licensed under the TENCENT HUNYUAN COMMUNITY LICENSE AGREEMENT (the "License");COMMENT
LOWfastvideo/attention/utils/flash_attn_no_pad.py201 return outputCOMMENT
LOWfastvideo/attention/utils/flash_attn_default.py181 setup_context=_flash_attn_default_setup_context,COMMENT
LOWfastvideo/platforms/__init__.py161 if name == 'current_platform':COMMENT
LOWfastvideo/layers/linear.py641COMMENT
LOWfastvideo/layers/rotary_embedding.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOW…deo/distributed/device_communicators/pynccl_wrapper.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOW…deo/distributed/device_communicators/pynccl_wrapper.py141 # is a pointer to a pointerCOMMENT
LOW…deo/distributed/device_communicators/pynccl_wrapper.py161COMMENT
LOW…deo/distributed/device_communicators/pynccl_wrapper.py181 [buffer_type, ctypes.c_size_t, ncclDataType_t, ctypes.c_int, ncclComm_t, cudaStream_t]),COMMENT
LOWfastvideo/training/training_utils.py1141 return num_train_timestep * (shift * t / denominator)COMMENT
LOWfastvideo/tests/vaes/test_wan_vae.py41COMMENT
LOWfastvideo/tests/api/test_ltx2_gpu_pool_translation.py21COMMENT
LOW…tests/inference/lora/test_lora_inference_similarity.py61 #COMMENT
LOWfastvideo/tests/modal/pr_test.py21COMMENT
LOWfastvideo/tests/modal/pr_test.py361 )COMMENT
LOWfastvideo/pipelines/stages/denoising.py101 },COMMENT
LOWfastvideo/pipelines/stages/denoising.py121 # 3. guidance: skip the external x1000 (Flux2 multiplies guidance by 1000 internally)COMMENT
LOWfastvideo/pipelines/stages/denoising.py321 # variant, Castillo et al. 2023). When envs.FASTVIDEO_CFG_GATE_STEPCOMMENT
LOW…process/matrixgame2/matrixgame2_preprocess_pipeline.py101 # first_frame_mask,COMMENT
LOWfastvideo/pipelines/basic/ltx2/__init__.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWfastvideo/models/hf_transformer_utils.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWfastvideo/models/upsamplers/hunyuan15.py1# Licensed under the TENCENT HUNYUAN COMMUNITY LICENSE AGREEMENT (the "License");COMMENT
LOWfastvideo/models/dits/hunyuanvideo15.py1# Copyright 2025 The Hunyuan Team and The HuggingFace Team. All rights reserved.COMMENT
LOWfastvideo/models/dits/magi_human.py481 k = torch.cat([k_rot, k[..., rot_dim:]], dim=-1)COMMENT
LOWfastvideo/models/dits/matrixgame2/utils.py561# overlay = image.copy()COMMENT
81 more matches not shown…
Cross-Language Confusion29 hits · 128 pts
SeverityFileLineSnippetContext
HIGHfastvideo/tests/performance/dashboard.py238 f"({item['non_null']}/{item['records']} non-null)")CODE
HIGHfastvideo/tests/modal/launch_l40s_job.py324 "source $HOME/.local/bin/env 2>/dev/null || true; "CODE
HIGHfastvideo/tests/modal/launch_l40s_job.py325 "source /opt/venv/bin/activate 2>/dev/null || true; "CODE
HIGHfastvideo/tests/modal/launch_l40s_job.py334 "source $HOME/.local/bin/env 2>/dev/null || true; "CODE
HIGHfastvideo/tests/modal/launch_l40s_job.py335 "source /opt/venv/bin/activate 2>/dev/null || true; "CODE
HIGHfastvideo/tests/modal/pr_test.py55).apt_install("nodejs").run_commands("node --version && npm --version"))CODE
HIGHfastvideo/tests/modal/pr_test.py124 checkout_command = f"git fetch --prune origin refs/pull/{pr_number}/head && git checkout FETCH_HEAD"CODE
HIGHfastvideo/tests/modal/pr_test.py167 "export HF_HOME='/root/data/.cache' && hf auth login --token $HF_API_KEY && pytest ./fastvideo/tests/encoders -vSTRING
HIGHfastvideo/tests/modal/pr_test.py178 "export HF_HOME='/root/data/.cache' && hf auth login --token $HF_API_KEY && pytest ./fastvideo/tests/vaes -vs"STRING
HIGHfastvideo/tests/modal/pr_test.py228 "wandb login $WANDB_API_KEY && FASTVIDEO_FA4=0 pytest ./fastvideo/tests/training/VSA -srP"STRING
HIGHfastvideo/tests/modal/pr_test.py306 trap "kill $MOCK_SERVER_PID 2>/dev/null || true" EXITCODE
HIGHfastvideo/tests/modal/pr_test.py382 "export HF_HOME='/root/data/.cache' && hf auth login --token $HF_API_KEY && pytest ./fastvideo/tests/eval -vs",STRING
HIGHfastvideo/tests/modal/pr_test.py393 "hf auth login --token $HF_API_KEY && pytest ./fastvideo/tests/lora_extraction/test_lora_extraction.py"STRING
HIGHfastvideo/tests/modal/pr_test.py433 "python ./fastvideo/tests/performance/dashboard.py || true; "STRING
HIGHfastvideo/tests/modal/pr_test.py435 "cat /tmp/gpu_telemetry.csv || true; "STRING
HIGHfastvideo/tests/modal/pr_test.py448 "export HF_HOME='/root/data/.cache' && hf auth login --token $HF_API_KEY && pytest ./fastvideo/tests/entrypointsSTRING
HIGHfastvideo/tests/modal/ssim_test.py464 return f"git fetch --prune origin refs/pull/{pr_id}/head && git checkout FETCH_HEAD"CODE
HIGHfastvideo/tests/modal/ssim_test.py560 command = f"set -euo pipefail && source $HOME/.local/bin/env && source /opt/venv/bin/activate && {pytest_command}"STRING
HIGHfastvideo/eval/metrics/audio/kl_divergence/metric.py1"""PaSST KL divergence ``KL(gt || pred)`` on AudioSet-527 logits.STRING
HIGHfastvideo/eval/metrics/audio/kl_divergence/metric.py64 """``KL(gt || pred)`` over class-probability softmax. Matches av-benchmark."""STRING
HIGHfastvideo/eval/metrics/audio/kl_divergence/metric.py75 """``KL(gt || pred)`` over per-class Bernoulli sigmoid (multi-label variant)."""STRING
HIGHfastvideo/eval/metrics/audio/kl_divergence/metric.py86 """PaSST KL divergence ``KL(gt || pred)`` on AudioSet-527 logits.STRING
HIGHfastvideo/eval/metrics/optical_flow/_shared.py76 """KL(P_a || P_b) over a joint (angle, log-magnitude) histogram."""STRING
HIGHexamples/inference/basic/basic_gen3c.py12 sudo apt-get update && sudo apt-get install -y libgl1 libglib2.0-0 libsm6 libxext6 libxrender1STRING
HIGH…/inference/gradio/local/gradio_local_demo_ltx2_3/ui.py1490 if (document.activeElement && document.activeElement !== document.body) return true;CODE
HIGH…/inference/gradio/local/gradio_local_demo_ltx2_3/ui.py1501 let releaseTimer = null;CODE
HIGH…/inference/gradio/local/gradio_local_demo_ltx2_3/ui.py1514 const scroller = document.scrollingElement || document.documentElement;CODE
HIGH…/inference/gradio/local/gradio_local_demo_ltx2_3/ui.py1516 const atTop = scroller.scrollTop <= 0 && event.deltaY < 0;CODE
HIGH…/inference/gradio/local/gradio_local_demo_ltx2_3/ui.py1517 const atBottom = scroller.scrollTop >= maxScroll - 1 && event.deltaY > 0;CODE
AI Structural Patterns131 hits · 122 pts
SeverityFileLineSnippetContext
LOW…thon/fastvideo_kernel/triton_kernels/st_attn_triton.py54CODE
LOW…thon/fastvideo_kernel/triton_kernels/attn_qat_train.py813CODE
LOWfastvideo-kernel/tests/test_sta.py15CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py143CODE
LOWfastvideo-kernel/tests/test_vsa_forward.py72CODE
LOWfastvideo/attention/layer.py313CODE
LOWfastvideo/attention/backends/sage_attn3.py82CODE
LOWfastvideo/attention/backends/sdpa.py145CODE
LOWfastvideo/attention/backends/sla.py189CODE
LOWfastvideo/attention/backends/sla.py328CODE
LOWfastvideo/attention/backends/sla.py561CODE
LOWfastvideo/attention/backends/vmoba.py70CODE
LOWfastvideo/attention/backends/sage_attn.py64CODE
LOWfastvideo/attention/utils/flash_attn_no_pad.py100CODE
LOWfastvideo/attention/utils/flash_attn_no_pad.py152CODE
LOWfastvideo/attention/utils/flash_attn_no_pad.py201CODE
LOWfastvideo/attention/utils/flash_attn_cute.py342CODE
LOWfastvideo/layers/linear.py156CODE
LOWfastvideo/layers/visual_embedding.py27CODE
LOWfastvideo/layers/vocab_parallel_embedding.py356CODE
LOWfastvideo/layers/rotary_embedding.py349CODE
LOWfastvideo/layers/quantization/nvfp4_config.py383CODE
LOWfastvideo/layers/quantization/nvfp4_qat_config.py132CODE
LOWfastvideo/dataset/preprocessing_datasets.py705CODE
LOWfastvideo/dataset/parquet_dataset_iterable_style.py64CODE
LOWfastvideo/training/training_utils.py174CODE
LOWfastvideo/training/training_utils.py535CODE
LOWfastvideo/tests/ops/test_rotary_pos_embed_cache.py20CODE
LOWfastvideo/tests/modal/launch_l40s_job.py504CODE
LOWfastvideo/tests/modal/ssim_test.py883CODE
LOWfastvideo/tests/modal/ssim_test.py958CODE
LOWfastvideo/pipelines/stages/text_encoding.py120CODE
LOWfastvideo/pipelines/stages/gamecraft_image_encoding.py168CODE
LOWfastvideo/pipelines/stages/gamecraft_image_encoding.py173CODE
LOWfastvideo/pipelines/basic/dreamx_world/stages.py156CODE
LOWfastvideo/pipelines/basic/gen3c/camera_utils.py83CODE
LOW…stvideo/pipelines/basic/magi_human/stages/denoising.py76CODE
LOW…ipelines/basic/magi_human/stages/latent_preparation.py103CODE
LOW…ideo/pipelines/basic/magi_human/stages/sr_denoising.py27CODE
LOWfastvideo/models/mask_utils.py67CODE
LOWfastvideo/models/upsamplers/ltx2_upsampler.py162CODE
LOWfastvideo/models/dits/wanvideo.py808CODE
LOWfastvideo/models/dits/longcat.py1029CODE
LOWfastvideo/models/dits/dreamx_world_ar.py731CODE
LOWfastvideo/models/dits/sd3.py111CODE
LOWfastvideo/models/dits/flux_2.py185CODE
LOWfastvideo/models/dits/flux_2.py375CODE
LOWfastvideo/models/dits/dreamx_world.py224CODE
LOWfastvideo/models/dits/dreamx_world.py508CODE
LOWfastvideo/models/dits/ltx2.py1780CODE
LOWfastvideo/models/dits/ltx2.py2347CODE
LOWfastvideo/models/dits/ltx2.py2902CODE
LOWfastvideo/models/dits/flux.py468CODE
LOWfastvideo/models/dits/causal_wanvideo.py213CODE
LOWfastvideo/models/dits/matrixgame3/action_module.py70CODE
LOWfastvideo/models/dits/matrixgame3/model.py200CODE
LOWfastvideo/models/dits/matrixgame3/model.py288CODE
LOWfastvideo/models/dits/matrixgame3/model.py571CODE
LOWfastvideo/models/dits/matrixgame2/action_module.py252CODE
LOWfastvideo/models/dits/matrixgame2/action_module.py743CODE
71 more matches not shown…
Redundant / Tautological Comments73 hits · 108 pts
SeverityFileLineSnippetContext
LOWfastvideo-kernel/python/fastvideo_kernel/ops.py28 # Check if the specific op is availableCOMMENT
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py298 ) > 0: # Check if any 'other' indices were selectedCODE
LOWtests/local_tests/gen3c/test_gen3c.py82 # Check if distributed is initializedCOMMENT
LOWtests/local_tests/gen3c/test_gen3c.py173 # Check if distributed is initializedCOMMENT
LOWfastvideo/fastvideo_args.py1013 # Check if the attribute is provided in argsCOMMENT
LOWfastvideo/attention/backends/bsa_attn.py265 # Check if all heads share the same mask for this batch elementCOMMENT
LOWfastvideo/attention/backends/sla.py331# Check if spas_sage_attn is available for SageSLACOMMENT
LOWfastvideo/layers/rotary_embedding.py126 # Check if cos/sin are full head_dim (rotate_half style) or half (traditional style)COMMENT
LOWfastvideo/dataset/preprocessing_datasets.py187 # Check if video is too longCOMMENT
LOWfastvideo/dataset/parquet_dataset_map_style.py148 # Check if cached info existsCOMMENT
LOWfastvideo/dataset/parquet_dataset_iterable_style.py95 # Assign files to current rank's SP groupCOMMENT
LOWfastvideo/dataset/parquet_dataset_iterable_style.py156 # Check if sharding plan already existsCOMMENT
LOW…stvideo/training/self_forcing_distillation_pipeline.py49 # Check if FSDP2 auto wrap is enabled - not supported for self-forcing distillationCOMMENT
LOWfastvideo/training/distillation_pipeline.py274 # Set flag to prevent custom weight loading for teacher/critic modelsCOMMENT
LOWfastvideo/tests/training/distill/test_distill_dmd.py119 # Check if the process failedCOMMENT
LOW…video/tests/training/self-forcing/test_self_forcing.py136 # Check if the process failedCOMMENT
LOWfastvideo/tests/training/Vanilla/test_training_loss.py118 # Check if the process failedCOMMENT
LOWfastvideo/tests/training/Vanilla/mfu_calculation.py129 # Check if the process failedCOMMENT
LOWfastvideo/tests/transformers/test_wanvideo.py109 # Check if outputs have the same shapeCOMMENT
LOWfastvideo/tests/transformers/test_wanvideo.py113 # Check if outputs are similar (allowing for small numerical differences)COMMENT
LOWfastvideo/tests/transformers/test_cosmos.py133 # Check if outputs have the same shapeCOMMENT
LOWfastvideo/tests/transformers/test_cosmos.py137 # Check if outputs are similar (allowing for small numerical differences)COMMENT
LOWfastvideo/tests/transformers/test_cosmos2_5.py305 # Set models to eval modeCOMMENT
LOWfastvideo/tests/transformers/test_cosmos2_5.py431 # Check if outputs have the same shapeCOMMENT
LOWfastvideo/tests/transformers/test_cosmos2_5.py437 # Check if outputs are similarCOMMENT
LOWfastvideo/tests/encoders/test_hyt5_encoder.py135 # Check if outputs are similar (allowing for small numerical differences)COMMENT
LOWfastvideo/tests/vaes/test_wan_vae.py64 # Check if latents have the same shapeCOMMENT
LOWfastvideo/tests/vaes/test_wan_vae.py68 # Check if latents are similarCOMMENT
LOWfastvideo/tests/vaes/test_wan_vae.py89 # Check if outputs have the same shapeCOMMENT
LOWfastvideo/tests/vaes/test_wan_vae.py92 # Check if outputs are similarCOMMENT
LOWfastvideo/tests/ssim/test_longcat_similarity.py190 # Check if absolute or already existsCOMMENT
LOW…video/tests/entrypoints/test_openai_api_integration.py98 # Check if the process died.COMMENT
LOWfastvideo/pipelines/composed_pipeline_base.py457 # Check if all required modules were loadedCOMMENT
LOWfastvideo/pipelines/composed_pipeline_base.py512 # Return the outputCOMMENT
LOWfastvideo/pipelines/stages/longcat_kv_cache_init.py41 # Check if KV cache is enabledCOMMENT
LOWfastvideo/pipelines/stages/base.py134 # Check if verification is enabled (simple approach for prototype)COMMENT
LOW…lines/preprocess/preprocess_pipeline_ode_trajectory.py90 if text and text.strip(): # Check if text is not emptyCODE
LOW…video/pipelines/preprocess/preprocess_pipeline_text.py64 if text and text.strip(): # Check if text is not emptyCODE
LOW…video/pipelines/preprocess/preprocess_pipeline_base.py271 if not torch.all(pixel_values == 0): # Check if all values are zeroCODE
LOW…ame2/matrixgame2_preprocess_pipeline_ode_trajectory.py202 if not torch.all(pixel_values == 0): # Check if all values are zeroCODE
LOW…deo/pipelines/basic/hunyuan15/hunyuan15_sr_pipeline.py117 # Return the outputCOMMENT
LOW…eo/pipelines/basic/hunyuan15/hunyuan15_2sr_pipeline.py140 # Return the outputCOMMENT
LOW…stvideo/pipelines/basic/longcat/longcat_vc_pipeline.py147 # Check if we have video_latent (from VC encoding stage)COMMENT
LOW…stvideo/pipelines/basic/longcat/longcat_vc_pipeline.py150 # Set image_latent to video_latent for parent class compatibilityCOMMENT
LOWfastvideo/models/hf_transformer_utils.py97 # Check if the model path existsCOMMENT
LOWfastvideo/models/dits/matrixgame2/action_module.py162 # Check if we need to evict tokensCOMMENT
LOWfastvideo/models/dits/hyworld/retrieval_context.py134 # Check if within FOVCOMMENT
LOWfastvideo/models/loader/component_loader.py1024 # Check if we should use custom initialization weightsCOMMENT
LOWfastvideo/models/loader/component_loader.py1111 # Check if model has nn.ModuleList for layerwise offload compatibilityCOMMENT
LOWfastvideo/models/loader/fsdp_load.py140 # Check if we should use FSDPCOMMENT
LOWfastvideo/models/loader/fsdp_load.py255 # Check if we should use size-based filteringCOMMENT
LOWfastvideo/models/vaes/gamecraftvae.py326 # Check if temporal tiling needed (>64 output frames)COMMENT
LOWfastvideo/models/vaes/gamecraftvae.py329 # Check if spatial tiling needed (large H or W)COMMENT
LOWfastvideo/models/schedulers/base.py14 # Check if subclass has defined all required propertiesCOMMENT
LOWfastvideo/entrypoints/cli/bench_serving.py337 # Check if we need to use multipart (for image edits with input images)COMMENT
LOWfastvideo/entrypoints/cli/bench_serving.py431 # Check if we need to upload images (Multipart) or just send JSONCOMMENT
LOWfastvideo/worker/multiproc_executor.py84 # Check if master_port is provided in fastvideo_argsCOMMENT
LOWfastvideo/worker/multiproc_executor.py326 # Check if workers were initialized (they might not be if initialization failed)COMMENT
LOWexamples/inference/basic/basic_matrixgame2.py49 # Set pin_cpu_memory to false if CPU RAM is limited and there're no frequent CPU-GPU transferCOMMENT
LOWexamples/inference/basic/basic_longcat_vc.py59 # Check if video existsCOMMENT
13 more matches not shown…
Self-Referential Comments33 hits · 91 pts
SeverityFileLineSnippetContext
MEDIUMtests/local_tests/gamecraft/test_gamecraft_parity.py100 # Create a minimal args objectCOMMENT
MEDIUM…ocal_tests/gamecraft/test_gamecraft_pipeline_parity.py177 # Create the samplerCOMMENT
MEDIUMdocs/generate_examples.py490 # Create the main examples index only if requestedCOMMENT
MEDIUMfastvideo/fastvideo_args.py669 # Create a dictionary of attribute values, with defaults for missing attributesCOMMENT
MEDIUMfastvideo/fastvideo_args.py992 # Create a dictionary of attribute values, with defaults for missing attributesCOMMENT
MEDIUMfastvideo/distributed/parallel_state.py281 # Create a dummy context for non-CUDA platformsCOMMENT
MEDIUM…deo/distributed/device_communicators/pynccl_wrapper.py4# This file is a pure Python wrapper for the NCCL library.COMMENT
MEDIUMfastvideo/dataset/preprocessing_datasets.py166 # Create a seeded random generator for deterministic samplingCOMMENT
MEDIUMfastvideo/dataset/preprocessing_datasets.py328 # Create a seeded random generator for deterministic CFGCOMMENT
MEDIUMfastvideo/dataset/preprocessing_datasets.py642 # Create a text-only batch with dummy pathCOMMENT
MEDIUMfastvideo/dataset/parquet_dataset_map_style.py52 # Create a random permutation of all indicesCOMMENT
MEDIUMfastvideo/dataset/parquet_dataset_map_style.py334 # Create a seeded random generator for deterministic CFGCOMMENT
MEDIUMfastvideo/dataset/latent_datasets.py23 # Create a seeded random generator for deterministic CFGCOMMENT
MEDIUM…stvideo/training/self_forcing_distillation_pipeline.py589 # Create a new batch with detached tensorsCOMMENT
MEDIUM…stvideo/training/self_forcing_distillation_pipeline.py643 # Create a new batch with detached tensorsCOMMENT
MEDIUMfastvideo/tests/hooks/test_hooks_api.py32 # Create a simple modelCOMMENT
MEDIUMfastvideo/pipelines/stages/latent_preparation.py79 # Create a dummy zero-length text embedding to satisfy downstream checks.COMMENT
MEDIUM…lines/preprocess/preprocess_pipeline_ode_trajectory.py275 # Initialize class variables for data sharingCOMMENT
MEDIUM…video/pipelines/preprocess/preprocess_pipeline_text.py168 # Initialize class variables for data sharingCOMMENT
MEDIUM…video/pipelines/preprocess/preprocess_pipeline_base.py46 # Initialize class variables for data sharingCOMMENT
MEDIUM…ame2/matrixgame2_preprocess_pipeline_ode_trajectory.py379 # Initialize class variables for data sharingCOMMENT
MEDIUMfastvideo/models/mask_utils.py116 ## Creating a simple causal mask:STRING
MEDIUMfastvideo/models/mask_utils.py137 ## Creating a sliding window mask:STRING
MEDIUMfastvideo/models/mask_utils.py158 ## Creating a chunked attention maskSTRING
MEDIUMfastvideo/models/vaes/hunyuanvae.py58 # Define the projection layersCOMMENT
MEDIUMfastvideo/models/vaes/wanvae.py561 # Create the componentsSTRING
MEDIUMfastvideo/worker/ray_env.py13# This file contains a list of env vars that should not be copiedCOMMENT
MEDIUMfastvideo/worker/ray_distributed_executor.py89 # Create the workers.COMMENT
MEDIUMfastvideo/worker/ray_utils.py212 # Create a new placement groupCOMMENT
MEDIUMexamples/inference/basic/basic_longcat_vc.py167 # Create a new generator with refinement LoRA and BSA enabledCOMMENT
MEDIUMexamples/inference/basic/basic_longcat_t2v.py138 # Create a new generator with refinement LoRA and BSA enabledCOMMENT
MEDIUMexamples/inference/basic/basic_longcat_i2v.py147 # Create a new generator with refinement LoRA and BSA enabledCOMMENT
MEDIUMscripts/dataset_preparation/generate_validation_json.py33 # Create the final validation structureCOMMENT
Structural Annotation Overuse27 hits · 50 pts
SeverityFileLineSnippetContext
LOWdocs/contributing/developer_env/runpod.md11## Step 1: Create a PodCOMMENT
LOWdocs/contributing/developer_env/runpod.md50## Step 2: Connect via SSHCOMMENT
LOWdocs/contributing/developer_env/runpod.md84## Step 3: Set Up FastVideoCOMMENT
LOWdocs/inference/add_pipeline.md16## Step 1: Pipeline ModulesCOMMENT
LOWdocs/inference/add_pipeline.md181## Step 2: Directory StructureCOMMENT
LOWdocs/inference/add_pipeline.md192## Step 3: Implement Pipeline ClassCOMMENT
LOWdocs/inference/add_pipeline.md333## Step 4: Register Your PipelineCOMMENT
LOW…stvideo/training/self_forcing_distillation_pipeline.py211 # Step 1: Initialize KV cache to all zerosCOMMENT
LOW…stvideo/training/self_forcing_distillation_pipeline.py218 # Step 2: Cache context featureCOMMENT
LOW…stvideo/training/self_forcing_distillation_pipeline.py240 # Step 3: Temporal denoising loopCOMMENT
LOW…ning/matrixgame2_self_forcing_distillation_pipeline.py361 # Step 1: Initialize KV cache to all zerosCOMMENT
LOW…ning/matrixgame2_self_forcing_distillation_pipeline.py365 # Step 2: Temporal denoising loopCOMMENT
LOWfastvideo/training/distillation_pipeline.py530 # Step 1: Randomly sample a target timestep index from denoising_step_listCOMMENT
LOWfastvideo/training/distillation_pipeline.py535 # Step 2: Simulate the multi-step inference process up to the target timestepCOMMENT
LOWfastvideo/training/distillation_pipeline.py571 # Step 3: Use the simulated noisy input for the final training stepCOMMENT
LOWfastvideo/training/distillation_pipeline.py580 # Step 4: Final student prediction (this is what we train on)COMMENT
LOWfastvideo/tests/train/callbacks/test_ema.py142 # Step 0: re-init at 2.0, then update against 2.0 → still 2.0.COMMENT
LOWfastvideo/tests/train/callbacks/test_ema.py146 # Step 1: drift transformer to 12.0, expectCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py460 # Step 1: Compute ALL modulation parameters once (matches official model)COMMENT
LOWfastvideo/models/dits/cosmos2_5.py493 # Step 2: Self-attention blockCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py504 # Step 3: Cross-attention blockCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py517 # Step 4: MLP blockCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py593 # Step 1: Convert transformer weightsCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py631 # Step 2: Copy other componentsCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py641 # Step 3: Convert LoRA weightsCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py646 # Step 4: Update transformer configCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py659 # Step 5: Create model_index.jsonCOMMENT
Verbosity Indicators21 hits · 41 pts
SeverityFileLineSnippetContext
LOWfastvideo/platforms/__init__.py26 # we need to check if fastvideo is built with cpu too.COMMENT
LOW…stvideo/training/self_forcing_distillation_pipeline.py211 # Step 1: Initialize KV cache to all zerosCOMMENT
LOW…stvideo/training/self_forcing_distillation_pipeline.py218 # Step 2: Cache context featureCOMMENT
LOW…stvideo/training/self_forcing_distillation_pipeline.py240 # Step 3: Temporal denoising loopCOMMENT
LOW…ning/matrixgame2_self_forcing_distillation_pipeline.py361 # Step 1: Initialize KV cache to all zerosCOMMENT
LOW…ning/matrixgame2_self_forcing_distillation_pipeline.py365 # Step 2: Temporal denoising loopCOMMENT
LOWfastvideo/training/distillation_pipeline.py530 # Step 1: Randomly sample a target timestep index from denoising_step_listCOMMENT
LOWfastvideo/training/distillation_pipeline.py535 # Step 2: Simulate the multi-step inference process up to the target timestepCOMMENT
LOWfastvideo/training/distillation_pipeline.py571 # Step 3: Use the simulated noisy input for the final training stepCOMMENT
LOWfastvideo/training/distillation_pipeline.py580 # Step 4: Final student prediction (this is what we train on)COMMENT
LOWfastvideo/tests/train/callbacks/test_ema.py142 # Step 0: re-init at 2.0, then update against 2.0 → still 2.0.COMMENT
LOWfastvideo/tests/train/callbacks/test_ema.py146 # Step 1: drift transformer to 12.0, expectCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py460 # Step 1: Compute ALL modulation parameters once (matches official model)COMMENT
LOWfastvideo/models/dits/cosmos2_5.py493 # Step 2: Self-attention blockCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py504 # Step 3: Cross-attention blockCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py517 # Step 4: MLP blockCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py593 # Step 1: Convert transformer weightsCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py631 # Step 2: Copy other componentsCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py641 # Step 3: Convert LoRA weightsCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py646 # Step 4: Update transformer configCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py659 # Step 5: Create model_index.jsonCOMMENT
Docstring Block Structure7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHfastvideo/pipelines/stages/validators.py338 Add a validation check for a field. Args: field_name: Name of the field being checSTRING
HIGH…video/pipelines/preprocess/preprocess_pipeline_base.py67Create a record for the Parquet dataset using a generic schema-based approach. Args: preproSTRING
HIGHfastvideo/models/vision_utils.py207 Load frames from a video file using ffmpeg. Args: video_path: Path to the video file Returns: STRING
HIGHfastvideo/models/loader/fsdp_load.py322 Converting full state dict into a sharded state dict and loading it into FSDP model (if training) or normal hugSTRING
HIGHfastvideo/models/encoders/qwen2_5_vl_custom.py1526 Calculate the 3D rope index based on image and video's temporal, height and width in LLM. Explanation:STRING
HIGHfastvideo/models/encoders/qwen2_5_vl_custom.py1979 Calculate the 3D rope index based on image and video's temporal, height and width in LLM. Explanation: STRING
HIGHapps/fastvideo_studio/job_runner.py608Return log lines for a job. Args: job_id: The job ID after: Return only lines aSTRING
AI Slop Vocabulary11 hits · 27 pts
SeverityFileLineSnippetContext
LOWfastvideo/dataset/preprocessing_datasets.py217 # For images, just add sample infoCOMMENT
MEDIUMfastvideo/tests/train/methods/test_wan_causal_dfsft.py128 # 5a-ii: device-keyed grad-norm regression on top of the same harness.COMMENT
MEDIUMfastvideo/tests/train/methods/test_wan_causal_dfsft.py130 # rtol above the harness default: the causal model compiles flex_attentionCOMMENT
MEDIUM…video/tests/train/methods/test_matrixgame2_finetune.py163 # 5a-ii: device-keyed grad-norm regression on top of the same harness.COMMENT
MEDIUMfastvideo/tests/train/methods/test_wan_finetune.py145 # 5a-ii: device-keyed grad-norm regression on top of the same harness.COMMENT
MEDIUMfastvideo/tests/train/methods/test_cosmos_finetune.py127 # 5a-ii: device-keyed grad-norm regression on top of the same harness.COMMENT
MEDIUMfastvideo/pipelines/stages/validators.py472 """Get a comprehensive summary of all validation failures."""STRING
MEDIUM…tvideo/pipelines/basic/stable_audio/stages/decoding.py37 # so the LatentSimilarityUtils harness can compare on pre-VAECOMMENT
MEDIUMfastvideo/models/dits/cosmos.py628 # dtype so the model forward is robust regardless of caller.COMMENT
LOW…eo/third_party/eval/synchformer/hf_src/modeling_ast.py553 # since all values in the D-dimension (latent) will also be nans, we can just use the first elSTRING
MEDIUMapps/fastvideo_studio/job_runner.py565 # that might escape (though they shouldn't with our comprehensive handling)COMMENT
Example Usage Blocks13 hits · 20 pts
SeverityFileLineSnippetContext
LOWfastvideo-kernel/build.sh5# Usage:COMMENT
LOWfastvideo-kernel/tests/test_sta.py75# Example usageCOMMENT
LOW.agents/scripts/sync-skills.sh11# Usage:COMMENT
LOWfastvideo/dataset/ltx2_precomputed_dataset.py4# Usage:COMMENT
LOW…raining/finetune/cosmos2_5/preprocess_cosmos2_5_t2w.sh24# Usage:COMMENT
LOWexamples/train/run_slurm.sh4# Usage:COMMENT
LOWexamples/train/run.sh4# Usage:COMMENT
LOW…nario/ode_init_self_forcing_wan_causal/step2_export.sh4# Usage:COMMENT
LOWscripts/inference/run.sh4# Usage:COMMENT
LOWapps/dreamverse/scripts/install_native_ffmpeg.sh20# Usage:COMMENT
LOW…dreamverse/scripts/launch/launch_backend_dreamverse.sh10# Usage:COMMENT
LOW…/dreamverse/scripts/launch/launch_backend_fastvideo.sh6# Usage:COMMENT
LOWapps/dreamverse/scripts/launch/launch_frontend.sh5# Usage:COMMENT
Dead Code8 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMcollect_env.py262CODE
MEDIUMcollect_env.py264CODE
MEDIUMcollect_env.py266CODE
MEDIUMcollect_env.py267CODE
MEDIUMcollect_env.py278CODE
MEDIUMfastvideo/layers/custom_op.py60CODE
MEDIUMfastvideo/layers/custom_op.py62CODE
MEDIUMfastvideo/layers/custom_op.py65CODE
Modern AI Meta-Vocabulary5 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…dd-model-09-pipeline/templates/pipeline_parity_test.py65 except Exception as exc: # pragma: no cover - scaffold guardCODE
MEDIUMfastvideo/hooks/layerwise_offload.py101 # These hook entry points only orchestrate host-side parameterCOMMENT
MEDIUMfastvideo/eval/metrics/videoscore2/metric.py52# to avoid matching digits inside the chain-of-thought reasoning.STRING
MEDIUMfastvideo/eval/metrics/videoscore2/metric.py118 # Anchor on the numbered list to skip the chain-of-thought.COMMENT
MEDIUMfastvideo/eval/metrics/videoscore2/metric.py165 # chain-of-thought outside the regex anchor (yielding score=0).COMMENT
Fake / Example Data9 hits · 10 pts
SeverityFileLineSnippetContext
LOW…_tests/dreamx_world/test_dreamx_world_ar_conversion.py21 raw_tensor.write_bytes(b"placeholder")CODE
LOWscripts/checkpoint_conversion/wan_to_diffusers.py152 dummy_key = new_key.replace("norm_added_k", "norm_added_q")CODE
LOWscripts/checkpoint_conversion/wan_to_diffusers.py153 dummy_value = torch.zeros_like(v)CODE
LOWscripts/checkpoint_conversion/wan_to_diffusers.py154 new_state_dict[dummy_key] = dummy_valueCODE
LOW…ps/fastvideo_studio/src/lib/components/JobQueue.svelte80 <p class="placeholder">CODE
LOWapps/fastvideo_studio/src/routes/gallery/+page.svelte60 <p class="placeholder">CODE
LOWapps/fastvideo_studio/src/routes/datasets/+page.svelte54 <p class="placeholder">No datasets yet.</p>CODE
LOWapps/dreamverse/web/e2e/mock-backed-generation.spec.ts38 await expect(continuation).toHaveAttribute('placeholder', /generating video/i);CODE
LOW…ps/dreamverse/web/e2e/preset-prompt-generation.spec.ts54 await expect(continuation).toHaveAttribute('placeholder', /generating/i);CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHfastvideo/models/hf_transformer_utils.py132 # Special handling for stop token <|eom_id|> generated by llama 3 tool use.COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWfastvideo/models/vaes/hunyuanvae.py194 # If you are encountering an error here, make sure to try running encoding/decoding withCOMMENT
TODO Padding1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfastvideo/entrypoints/video_generator.py254 log_stats=False, # TODO: implementCODE