AI Slop Code RIsk Monitor

hao-ai-lab/FastVideo

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

21.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for hao-ai-lab/FastVideo, a Python project with 4,584 GitHub stars. SynthScan examined 579,013 lines of code across 2884 source files, recording 9106 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 21.6 (Elevated pattern signal); it is not an authorship estimate.

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

21.6
Adjusted Signal
21.6
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
4.6K
Stars
Python
Language
579.0K
Lines of Code
2.9K
Files
9.1K
Pattern Hits
2026-10-12
Scan Date
0.10
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 39.3/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 16.4/100 · LOW

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

Agent Over-Engineering Ratio 55.0/100 · HIGH

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

PR Review Velocity Impact 66.0/100 · HIGH

Which changes need focused human review? 9106 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 297MEDIUM 941LOW 7867

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

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

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers4297 hits · 4443 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.py32def get_tile_partition_indices(CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vsa_utils.py58def get_reverse_tile_partition_indices(CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vsa_utils.py68def construct_variable_block_sizes(CODE
LOW⚡…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py521def block_sparse_attn_from_indices(CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py124def _invert_indices_for_backward(CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py177def _block_sparse_attn_triton_fake(CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py199def block_sparse_attn_backward_triton(CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py234def _block_sparse_attn_backward_triton_fake(CODE
LOW…/python/fastvideo_kernel/block_sparse_attn_cute_fwd.py93def _choose_q_sparse_block_size(q_len: int, q_tile_size: int = _FA4_Q_BLOCK_SIZE) -> int:CODE
LOW…/python/fastvideo_kernel/block_sparse_attn_cute_fwd.py359def block_sparse_attn_cute_fwd(CODE
LOW…/python/fastvideo_kernel/block_sparse_attn_cute_fwd.py387def block_sparse_attn_cute_fwd_bshd(CODE
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py207def _layer_norm_param_fwd_fused(CODE
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py307def _layer_norm_noparam_fwd_fused(CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py59def _select_threshold_query_head(gate: torch.Tensor, valid_gate_mask: torch.Tensor, gate_self_chunk_mask: torch.Tensor,CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py185def _select_threshold_overall(gate: torch.Tensor, valid_gate_mask: torch.Tensor, gate_self_chunk_mask: torch.Tensor,CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py264def _select_threshold_head_global(gate: torch.Tensor, valid_gate_mask: torch.Tensor, gate_self_chunk_mask: torch.Tensor,CODE
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py806def 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.py290def _pytorch_topk_mask_fallback(CODE
LOW…thon/fastvideo_kernel/triton_kernels/st_attn_triton.py22def get_common_autotune_config():CODE
LOW…thon/fastvideo_kernel/triton_kernels/st_attn_triton.py241def sliding_tile_attention_triton(q: torch.Tensor,CODE
LOW…ideo_kernel/triton_kernels/block_sparse_attn_triton.py703def triton_block_sparse_attn_forward(q, k, v, q2k_index, q2k_num, variable_block_sizes):CODE
LOW…ideo_kernel/triton_kernels/block_sparse_attn_triton.py755def triton_block_sparse_attn_backward(do, q, k, v, o, M, q2k_index, q2k_num, k2q_index, k2q_num, variable_block_sizes):CODE
LOW…thon/fastvideo_kernel/triton_kernels/attn_qat_train.py72def _consumer_blackwell_join_qat_pv_enabled():CODE
LOW…thon/fastvideo_kernel/triton_kernels/attn_qat_train.py274def _host_descriptor_pre_hook(nargs):CODE
LOW…thon/fastvideo_kernel/triton_kernels/attn_qat_train.py679def _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_infer_sparse.py116def test_full_lists_reproduce_dense_bitwise() -> None:CODE
LOWfastvideo-kernel/tests/test_attn_qat_infer_sparse.py128def test_bshd_entry_matches_bhsd() -> None:CODE
LOWfastvideo-kernel/tests/test_attn_qat_infer_sparse.py136def test_first_visited_block_check_rejects_unanchored_rows() -> None:CODE
LOWfastvideo-kernel/tests/test_attn_qat_infer_sparse.py147def test_block_list_check_rejects_out_of_bounds_lists() -> None:CODE
LOWfastvideo-kernel/tests/test_attn_qat_infer.py137def test_cross_attention_unequal_sequence_lengths(q_len: int, kv_len: int):CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py17def test_smooth_q_fails_before_tensor_or_kernel_work():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py168def test_qat_attention_forward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py216def test_qat_attention_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py303def test_qat_attention_different_shapes():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py350def test_qat_attention_non_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py392def test_qat_attention_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py434def test_qat_attention_causal_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py501def test_qat_attention_different_seq_lengths():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py553def test_qat_attention_different_seq_lengths_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py643def test_fused_attention_forward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py690def test_fused_attention_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py776def test_fused_attention_different_shapes():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py824def test_fused_attention_non_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py866def test_fused_attention_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py908def test_fused_attention_causal_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py975def test_fused_vs_qat_attention_forward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1024def test_fused_vs_qat_attention_backward():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1109def test_fused_vs_qat_attention_different_shapes():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1157def test_fused_vs_qat_attention_non_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1199def test_fused_vs_qat_attention_causal():CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py1241def test_fused_vs_qat_attention_causal_backward():CODE
4237 more matches not shown…
Decorative Section Separators842 hits · 2840 pts
SeverityFileLineSnippetContext
MEDIUMfastvideo-kernel/CMakeLists.txt73# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt85# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt241# ---------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt243# ---------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt373# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt375# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/CMakeLists.txt444 # ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/build.sh16# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/build.sh26# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py10# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py12# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py516# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py518# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py98# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py100# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py144# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py146# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py265# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py267# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py388# ---------------------------------------------------------------------------COMMENT
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py398# ---------------------------------------------------------------------------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.py38# ──────────────────────────── SPARSE ADDITION BEGIN ───────────────────────────COMMENT
MEDIUM…ideo_kernel/triton_kernels/block_sparse_attn_triton.py169# ──────────────────────────── SPARSE ADDITION END ─────────────────────────────COMMENT
MEDIUM…ideo_kernel/triton_kernels/block_sparse_attn_triton.py702# ──────────────────────────── SPARSE ADDITION BEGIN ───────────────────────────COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_infer.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_infer.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_infer.py93# ---------------------------------------------------------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_infer.py95# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1372 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1374 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1379 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1381 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1386 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1388 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1391 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1393 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1399 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1401 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1412 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1415 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1420 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1422 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1485 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1487 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1492 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1494 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1499 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1501 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1506 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1508 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1519 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1521 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1526 # -----------------------------COMMENT
MEDIUM⚡fastvideo-kernel/tests/test_attn_qat_train.py1528 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1454 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1456 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1560 # -----------------------------COMMENT
MEDIUMfastvideo-kernel/tests/test_attn_qat_train.py1562 # -----------------------------COMMENT
782 more matches not shown…
Unused Imports1915 hits · 1791 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__.py31CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py31CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py31CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py31CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py31CODE
LOWfastvideo-kernel/python/fastvideo_kernel/__init__.py31CODE
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_vsa128_backward.py3CODE
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_backward.py9CODE
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.py12CODE
LOWfastvideo-kernel/benchmarks/device_specs.py10CODE
LOWfastvideo-kernel/benchmarks/bench_vsa_combine.py18CODE
LOWfastvideo-kernel/benchmarks/bench_vsa_tile_layout.py16CODE
LOW…stvideo-kernel/benchmarks/bench_fused_compress_topk.py20CODE
LOWfastvideo-kernel/benchmarks/benchmark_attn_qat_train.py8CODE
LOWfastvideo-kernel/attn_qat_infer/__init__.py16CODE
LOWtests/test_fasth3_packaging.py2CODE
LOWtests/local_tests/test_trainer_managed_optimization.py1CODE
LOWtests/local_tests/test_trainer_managed_optimization.py1CODE
LOW…tests/kandinsky6/test_kandinsky6_transformer_parity.py17CODE
1855 more matches not shown…
Cross-File Repetition105 hits · 525 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
HIGHfastvideo/pipelines/stages/denoising.py0run the denoising loop. args: batch: the current batch information. fastvideo_args: the inference arguments. returns: thSTRING
HIGHfastvideo/pipelines/stages/sr_denoising.py0run the denoising loop. args: batch: the current batch information. fastvideo_args: the inference arguments. returns: thSTRING
HIGHfastvideo/pipelines/basic/wan/stages/dmd.py0run the denoising loop. args: batch: the current batch information. fastvideo_args: the inference arguments. returns: thSTRING
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
45 more matches not shown…
Empty Error Handlers98 hits · 490 pts
SeverityFileLineSnippetContext
HIGH…tests/kandinsky6/test_kandinsky6_transformer_parity.py51except ImportError:CODE
HIGHtests/local_tests/glm_image/test_pipeline_parity.py119except Exception:CODE
HIGHtests/local_tests/flux2/test_flux2_component_parity.py137except Exception:CODE
HIGHtests/local_tests/sd35/test_sd35_component_parity.py76except Exception:CODE
HIGHtests/local_tests/helpers/magi_human_upstream.py137except Exception:CODE
HIGHfastvideo/logger.py282except NameError:CODE
HIGHfastvideo/utils.py1154except Exception: # noqa: BLE001CODE
HIGHfastvideo/utils.py1172except Exception:CODE
HIGHfastvideo/utils.py1182except Exception:CODE
HIGHfastvideo/attention/utils/flash_attn_default.py71except ImportError:CODE
HIGH…tvideo/distributed/device_communicators/ulysses_a2a.py64except OSError:CODE
HIGHfastvideo/dataset/preprocessing_datasets.py407except (ValueError, OSError):CODE
HIGHfastvideo/training/training_pipeline.py28except Exception:CODE
HIGHfastvideo/training/training_pipeline.py618except Exception:CODE
HIGHfastvideo/training/training_utils.py1656except Exception:CODE
HIGHfastvideo/tests/utils.py64except (ImportError, AttributeError):CODE
HIGH…video/tests/attention/test_attn_qat_infer_arch_gate.py203except RuntimeError:CODE
HIGHfastvideo/tests/distributed/test_ulysses_a2a_parity.py190except Exception: # noqa: BLE001 - a missing optional backend is a valid fallbackCODE
HIGHfastvideo/tests/ssim/ci_runner.py168except ProcessLookupError:CODE
HIGHfastvideo/tests/ssim/ci_runner.py177except ProcessLookupError:CODE
HIGH…video/tests/entrypoints/test_openai_api_integration.py96except requests.ConnectionError:CODE
HIGHfastvideo/tests/performance/dashboard.py55except (TypeError, ValueError):CODE
HIGHfastvideo/tests/performance/seed_baseline.py349except OSError:CODE
HIGHfastvideo/tests/performance/seed_baseline.py334except FileNotFoundError:CODE
HIGHfastvideo/tests/performance/seed_baseline.py340except FileNotFoundError:CODE
HIGHfastvideo/tests/performance/seed_baseline.py345except OSError:CODE
HIGHfastvideo/tests/modal/ssim_test.py618except ProcessLookupError:CODE
HIGHfastvideo/tests/modal/ssim_test.py631except ProcessLookupError:CODE
HIGH…tvideo/tests/mlx/test_mlx_wan22_real_weights_parity.py61except Exception:CODE
HIGH…ideo/pipelines/basic/magi_human/magi_human_pipeline.py132except (FileNotFoundError, json.JSONDecodeError):CODE
HIGHfastvideo/models/vision_utils.py189except EOFError:CODE
HIGHfastvideo/models/dits/matrixgame2/utils.py328except Exception:CODE
HIGHfastvideo/models/dits/matrixgame2/utils.py358except Exception:CODE
HIGHfastvideo/models/dits/matrixgame2/utils.py385except Exception:CODE
HIGHfastvideo/models/dits/matrixgame2/causal_model.py1316except AttributeError:CODE
HIGHfastvideo/models/loader/component_loader.py332except json.JSONDecodeError:CODE
HIGHfastvideo/models/loader/component_loader.py754except Exception:CODE
HIGHfastvideo/models/loader/weight_utils.py54except ImportError:CODE
HIGHfastvideo/models/loader/fsdp_load.py647except Exception: # pragma: no cover - attention stack not importableCODE
HIGHfastvideo/models/loader/fsdp_load.py686except Exception: # pragma: no cover - flash-attn stack not importableCODE
HIGHfastvideo/train/utils/config.py514except ValueError:CODE
HIGHfastvideo/train/utils/config.py519except ValueError:CODE
HIGHfastvideo/train/utils/config.py525except yaml.YAMLError:CODE
HIGHfastvideo/entrypoints/cli/bench_serving.py602except (aiohttp.ClientError, asyncio.TimeoutError):CODE
HIGHfastvideo/entrypoints/streaming/gpu_pool.py383except Exception: # pragma: no cover - best-effort cleanupCODE
HIGHfastvideo/entrypoints/streaming/stream.py183except BrokenPipeError:CODE
HIGHfastvideo/api/overrides.py89except ValueError:CODE
HIGHfastvideo/api/overrides.py94except ValueError:CODE
HIGHfastvideo/api/overrides.py100except yaml.YAMLError:CODE
HIGHfastvideo/eval/metrics/vbench/_grit_helper.py37except ImportError:CODE
HIGHfastvideo/eval/metrics/vbench/_grit_helper.py53except (ImportError, AttributeError):CODE
HIGHfastvideo/eval/metrics/vbench/__init__.py46except ImportError:CODE
HIGHfastvideo/eval/metrics/vbench/__init__.py61except ImportError:CODE
HIGHfastvideo/eval/io/video.py55except (ImportError, OSError, ValueError):CODE
HIGHfastvideo/eval/io/video.py89except ImportError:CODE
HIGHfastvideo/eval/io/video.py93except ImportError:CODE
HIGHfastvideo/eval/v2a/_av_benchmark_runner.py85except ValueError:CODE
HIGHfastvideo/worker/multiproc_executor.py685except Exception:CODE
HIGHfastvideo/mlx_runtime/prompt_enhance.py388except (OSError, KeyError, json.JSONDecodeError):CODE
HIGHexamples/inference/basic/basic_sd35_t2i.py45except FileNotFoundError:CODE
38 more matches not shown…
Excessive Try-Catch Wrapping464 hits · 483 pts
SeverityFileLineSnippetContext
LOWcomfyui/video_generator/video_generator.py150 except Exception as e:CODE
MEDIUMcomfyui/video_generator/video_generator.py151 print(f"Error sending interrupt signal: {e}")CODE
LOWcomfyui/video_generator/video_generator.py166 except Exception as e:CODE
MEDIUM…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py15def _get_sm90_ops():CODE
LOW⚡…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py18 except Exception:CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py85 except Exception:CODE
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py117 except Exception as e: # pragma: no cover - environment issueCODE
LOWfastvideo-kernel/tests/test_vmoba_correctness.py85 except Exception as e:CODE
LOWfastvideo-kernel/benchmarks/bench_vsa.py24except Exception as e: # pragma: no coverCODE
LOWfastvideo-kernel/benchmarks/bench_vsa_tile_layout.py27except Exception as e: # pragma: no coverCODE
LOW…tests/kandinsky6/test_kandinsky6_transformer_parity.py88 except Exception as exc:CODE
LOWtests/local_tests/ltx2/test_ltx2_gemma_parity.py147 except Exception:CODE
LOWtests/local_tests/ltx2/test_ltx2_gemma_encoder.py61 except Exception as exc:CODE
LOW⚡…ests/stable_audio/test_stable_audio_pipeline_parity.py62 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.py49 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.py119 except Exception:CODE
LOWtests/local_tests/glm_image/test_pipeline_parity.py131 except Exception:CODE
MEDIUMtests/local_tests/glm_image/test_pipeline_parity.py30def _upstream_glm_image_available() -> bool:CODE
LOWtests/local_tests/flux2/test_flux2_component_parity.py137 except Exception:CODE
LOWtests/local_tests/flux2/test_flux2_component_parity.py181 except Exception:CODE
LOWtests/local_tests/flux2/test_flux2_component_parity.py188 except Exception:CODE
LOW…sts/local_tests/zimage/test_zimage_scheduler_parity.py61 except Exception as exc:CODE
LOWtests/local_tests/zimage/test_zimage_vae_parity.py67 except Exception as exc:CODE
LOW…_world/test_dreamx_world_camera_conditioning_parity.py39 except Exception as exc: # noqa: BLE001 - local parity should skip missing reference deps.CODE
LOW…reamx_world/test_dreamx_world_ar_transformer_parity.py59 except Exception as exc: # noqa: BLE001CODE
LOW⚡…/dreamx_world/test_dreamx_world_text_encoder_parity.py98 except Exception as exc: # noqa: BLE001CODE
LOW…cal_tests/dreamx_world/test_dreamx_world_vae_parity.py161 except Exception as exc: # noqa: BLE001CODE
LOW⚡…s/dreamx_world/test_dreamx_world_transformer_parity.py114 except Exception as exc: # noqa: BLE001 - local parity should skip missing refs.CODE
LOW…s/dreamx_world/test_dreamx_world_transformer_parity.py209 except Exception as exc: # noqa: BLE001CODE
LOWtests/local_tests/kandinsky6_sr/reference.py157 except Exception as exc: # missing optional dependency of the reference on this machineCODE
LOWtests/local_tests/gen3c/test_gen3c.py383 except Exception as e:CODE
LOW…magi_human/test_magi_human_sa_audio_official_parity.py71 except Exception:CODE
LOW…cal_tests/magi_human/test_magi_human_distill_parity.py55 except Exception:CODE
LOWtests/local_tests/magi_human/test_magi_human_parity.py60 except Exception:CODE
LOW…al_tests/magi_human/test_magi_human_sa_audio_parity.py50 except Exception:CODE
LOW…al_tests/magi_human/test_magi_human_pipeline_parity.py84 except Exception:CODE
LOW…al_tests/magi_human/test_magi_human_pipeline_parity.py119 except Exception as exc:CODE
LOW…al_tests/magi_human/test_magi_human_pipeline_parity.py167 except Exception:CODE
LOW…s/local_tests/magi_human/test_magi_human_vae_parity.py64 except Exception as exc:CODE
LOW…cal_tests/magi_human/test_magi_human_pipeline_smoke.py176 except Exception:CODE
LOW…cal_tests/magi_human/test_magi_human_t5gemma_parity.py48 except Exception:CODE
LOW…/magi_human/test_magi_human_sr1080p_pipeline_parity.py60 except Exception:CODE
LOW…s/magi_human/test_magi_human_sr540p_pipeline_parity.py49 except Exception:CODE
LOWtests/local_tests/gamecraft/test_gamecraft_parity.py141 except Exception as e:CODE
LOW⚡…ocal_tests/gamecraft/test_gamecraft_pipeline_parity.py300 except Exception as e:CODE
LOW…sts/local_tests/gamecraft/test_gamecraft_vae_parity.py161 except Exception:CODE
LOW…ocal_tests/gamecraft/test_gamecraft_encoders_parity.py99 except Exception as e:CODE
LOW…ocal_tests/gamecraft/test_gamecraft_encoders_parity.py166 except Exception as e:CODE
LOW…ocal_tests/gamecraft/test_gamecraft_encoders_parity.py237 except Exception as e:CODE
LOWtests/local_tests/sd35/test_sd35_component_parity.py76 except Exception:CODE
LOWtests/local_tests/sd35/test_sd35_component_parity.py120 except Exception:CODE
LOWtests/local_tests/sd35/test_sd35_component_parity.py127 except Exception:CODE
LOW…/kandinsky5/test_kandinsky5_lite_transformer_parity.py42 except Exception as exc:CODE
404 more matches not shown…
Deep Nesting429 hits · 406 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.py508CODE
LOW…thon/fastvideo_kernel/triton_kernels/st_attn_triton.py97CODE
LOWfastvideo-kernel/tests/utils.py27CODE
LOWfastvideo-kernel/tests/test_block_sparse_bwd_sm100a.py101CODE
LOW…ernel/attn_qat_infer/quantization/bench/bench_utils.py95CODE
LOWtests/test_block_sparse_sm100a.py61CODE
LOWtests/local_tests/ltx2/test_ltx2_vae.py34CODE
LOWtests/local_tests/ltx2/test_ltx2_gemma_encoder.py23CODE
LOWtests/local_tests/ltx2/test_ltx2_audio_vae.py38CODE
LOWtests/local_tests/flux2/debug_flux2_klein_tp_trace.py209CODE
LOW…ts/local_tests/pipelines/test_flux2_pipeline_parity.py204CODE
LOW…al_tests/magi_human/test_magi_human_pipeline_parity.py311CODE
LOWtests/local_tests/gamecraft/test_gamecraft_parity.py207CODE
LOWtests/local_tests/gamecraft/test_gamecraft_parity.py453CODE
LOW…ts/local_tests/minimax_h3/test_mlx_audio_vae_parity.py58CODE
LOW…ills/add-model-08-trace/templates/block_trace_debug.py86CODE
LOW…ills/add-model-08-trace/templates/block_trace_debug.py242CODE
LOW…d-model-07-conversion/templates/family_to_diffusers.py94CODE
LOWdocs/generate_examples.py91CODE
LOWdocs/generate_examples.py659CODE
LOWdocs/generate_examples.py747CODE
LOWdocs/generate_examples.py487CODE
LOWfastvideo/fastvideo_args.py97CODE
LOWfastvideo/fastvideo_args.py989CODE
LOWfastvideo/fastvideo_args.py1411CODE
LOWfastvideo/logger.py249CODE
LOWfastvideo/utils.py1013CODE
LOWfastvideo/utils.py1237CODE
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/attention/backends/video_sparse_attn_h3.py723CODE
LOWfastvideo/platforms/rocm.py79CODE
LOWfastvideo/platforms/cuda.py169CODE
LOWfastvideo/platforms/cuda.py408CODE
LOWfastvideo/layers/linear.py526CODE
LOWfastvideo/layers/linear.py830CODE
LOWfastvideo/layers/quantization/nvfp4_config.py669CODE
LOWfastvideo/layers/quantization/nvfp4_config.py756CODE
LOWfastvideo/distributed/parallel_state.py1071CODE
LOWfastvideo/distributed/parallel_state.py450CODE
LOW…tvideo/distributed/device_communicators/ulysses_a2a.py482CODE
LOW…tvideo/distributed/device_communicators/ulysses_a2a.py214CODE
LOWfastvideo/dataset/v2a_feature_cache.py51CODE
LOWfastvideo/dataset/validation_dataset.py19CODE
LOWfastvideo/dataset/validation_dataset.py99CODE
LOWfastvideo/dataset/utils.py83CODE
LOWfastvideo/dataset/utils.py164CODE
LOWfastvideo/dataset/parquet_dataset_map_style.py113CODE
LOWfastvideo/dataset/parquet_dataset_iterable_style.py124CODE
LOWfastvideo/dataset/parquet_dataset_iterable_style.py31CODE
LOWfastvideo/training/training_pipeline.py516CODE
369 more matches not shown…
Modern Structural Boilerplate300 hits · 302 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__.py40__all__ = [CODE
LOW…ython/fastvideo_kernel/block_sparse_attn_bwd_sm100a.py38def set_extension(module) -> None: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.py28def set_seed(seed: int = 42) -> None:CODE
LOWfastvideo-kernel/benchmarks/bench_vsa_tile_layout.py35def 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
LOW…l_tests/transformers/test_ltx2_5_transformer_parity.py40def _setup_test_environment(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWfastvideo/envs.py210def set_external(name: str, value: str) -> None:CODE
LOWfastvideo/registry.py1606__all__ = [CODE
LOWfastvideo/__init__.py6__all__ = ["VideoGenerator", "PipelineConfig", "SamplingParam", "__version__"]CODE
LOWfastvideo/utils.py991def set_random_seed(seed: int) -> None:CODE
LOWfastvideo/profiler.py128def set_global_controller(controller: TorchProfilerController | None) -> None:CODE
LOWfastvideo/profiler.py360 def _set_collection(self, enabled: bool) -> None:CODE
LOWfastvideo/attention/__init__.py7__all__ = [CODE
LOWfastvideo/attention/layer.py104 def _set_compile_forward_enabled(self, enabled: bool) -> None:CODE
LOW…deo/attention/backends/video_sparse_attn_h3_scatter.py70__all__ = ["HAVE_TRITON", "scatter_rows_heads_first", "supports_heads_first_scatter"]CODE
LOWfastvideo/platforms/__init__.py219__all__ = ['Platform', 'PlatformEnum', 'current_platform', "_init_trace"]CODE
LOWfastvideo/layers/mxfp8linear.py289__all__ = [CODE
LOWfastvideo/layers/pdd.py300__all__ = [CODE
LOWfastvideo/layers/quantization/fp8_qat_train_config.py27logger = logging.getLogger(__name__)CODE
LOWfastvideo/layers/quantization/mxfp8_config.py143__all__ = [CODE
LOWfastvideo/layers/quantization/nvfp4_qat_train_config.py29logger = logging.getLogger(__name__)CODE
LOWfastvideo/layers/quantization/fp8_config.py30logger = logging.getLogger(__name__)CODE
LOWfastvideo/layers/quantization/fp8_config.py291__all__ = [CODE
LOWfastvideo/layers/quantization/nvfp4_config.py40logger = logging.getLogger(__name__)CODE
LOWfastvideo/layers/quantization/nvfp4_config.py814__all__ = [CODE
LOWfastvideo/layers/quantization/nvfp4_qat_config.py46logger = logging.getLogger(__name__)CODE
LOWfastvideo/layers/quantization/nvfp4_qat_config.py236__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/v2a_feature_cache.py126__all__ = ["V2AFeatureShardWriter"]CODE
LOWfastvideo/dataset/__init__.py45__all__ = [CODE
LOWfastvideo/dataset/minimax_h3_ref2va_dataset.py480__all__ = [CODE
LOWfastvideo/dataset/mmaudio_feature_dataset.py322__all__ = [CODE
LOWfastvideo/dataset/vggsound.py118__all__ = ["VGGSoundDataset"]CODE
LOWfastvideo/training/training_pipeline.py89 def set_schemas(self) -> None:CODE
LOWfastvideo/training/__init__.py6__all__ = [CODE
LOWfastvideo/tests/contract/test_dynamo_shape.py318__all__ = [CODE
LOWfastvideo/tests/golden_gate/test_longcat.py25__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_gamecraft.py23__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_zimage.py23__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_wan_t2v.py19__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_matrixgame.py34__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_sd35.py23__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_kandinsky5.py26__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_lingbot.py23__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_wan_vae.py14__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_glm_image.py23__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_gen3c.py20__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_wan_denoising.py15__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_flux.py22__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_flux2_klein.py25__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_stable_audio.py23__all__ = ["distributed_runtime"]CODE
LOWfastvideo/tests/golden_gate/test_wan_causal.py17__all__ = ["distributed_runtime"]CODE
240 more matches not shown…
Cross-Language Confusion53 hits · 260 pts
SeverityFileLineSnippetContext
HIGHdocs/check_cookbook_assets.py6PREPARE = "Run npm ci --prefix docs && npm run build:catalog --prefix docs from the repository root."CODE
HIGH⚡fastvideo/tests/contract/test_ci_aggregate_status.py15 assert "s.context === context && s.state === 'failure'" in sourceCODE
HIGHfastvideo/tests/contract/test_ci_test_collection.py169 assert "group: merge-gate-${{ inputs.pr_number || github.event.pull_request.number }}" in trigger_jobCODE
HIGHfastvideo/tests/stages/kandinsky6_sr/k6_sr_release.py15FLOW_MATCHING_SCHEDULER_CONFIG = json.loads(r'''{"_class_name":"FlowMatchEulerDiscreteScheduler","_diffusers_version":"0CODE
HIGHfastvideo/tests/stages/kandinsky6_sr/k6_sr_release.py33RELEASE_LATENT_UPSCALER_CONFIG = json.loads(r'''{"models":[{"model":{"architecture":"multi_scale","bare_stem":true,"bottCODE
HIGH…stvideo/tests/dataset/test_hunyuan15_parquet_schema.py58 assert table.schema.equals(pyarrow_schema_t2v)CODE
HIGHfastvideo/tests/dataset/test_preprocess_hunyuan15.py427 assert table.schema.equals(pyarrow_schema_t2v_dual_text)CODE
HIGHfastvideo/tests/performance/dashboard.py314 f"({item['non_null']}/{item['records']} non-null)")CODE
HIGH⚡fastvideo/tests/modal/launch_l40s_job.py331 "source $HOME/.local/bin/env 2>/dev/null || true; "CODE
HIGH⚡fastvideo/tests/modal/launch_l40s_job.py332 "source /opt/venv/bin/activate 2>/dev/null || true; "CODE
HIGH⚡fastvideo/tests/modal/launch_l40s_job.py341 "source $HOME/.local/bin/env 2>/dev/null || true; "CODE
HIGH⚡fastvideo/tests/modal/launch_l40s_job.py342 "source /opt/venv/bin/activate 2>/dev/null || true; "CODE
HIGHfastvideo/tests/modal/pr_test.py62 "nodejs").run_commands("node --version && npm --version"))CODE
HIGHfastvideo/tests/modal/pr_test.py253 "export HF_HOME='/root/data/.cache' && hf auth login --token $HF_API_KEY && bash .buildkite/scripts/lanes/encodeCODE
HIGHfastvideo/tests/modal/pr_test.py264 "export HF_HOME='/root/data/.cache' && hf auth login --token $HF_API_KEY && bash .buildkite/scripts/lanes/vae.shCODE
HIGHfastvideo/tests/modal/pr_test.py278 "export HF_HOME='/root/data/.cache' && hf auth login --token $HF_API_KEY && bash .buildkite/scripts/lanes/goldenCODE
HIGHfastvideo/tests/modal/pr_test.py318 run_test("wandb login $WANDB_API_KEY && FASTVIDEO_FA4=0 pytest ./fastvideo/tests/training/VSA -srP")CODE
HIGHfastvideo/tests/modal/pr_test.py381 trap "kill $MOCK_SERVER_PID 2>/dev/null || true" EXITCODE
HIGH⚡fastvideo/tests/modal/pr_test.py453 "export HF_HOME='/root/data/.cache' && hf auth login --token $HF_API_KEY && bash .buildkite/scripts/lanes/eval.sSTRING
HIGH⚡fastvideo/tests/modal/pr_test.py460 run_test("hf auth login --token $HF_API_KEY && pytest ./fastvideo/tests/lora_extraction/test_lora_extraction.py")STRING
HIGHfastvideo/tests/modal/pr_test.py499 "python ./fastvideo/tests/performance/dashboard.py || true; "STRING
HIGHfastvideo/tests/modal/pr_test.py501 "cat /tmp/gpu_telemetry.csv || true; "STRING
HIGHfastvideo/tests/modal/pr_test.py514 "export HF_HOME='/root/data/.cache' && hf auth login --token $HF_API_KEY && pytest ./fastvideo/tests/entrypointsSTRING
HIGHfastvideo/tests/modal/ssim_test.py457 return f"git fetch --prune origin refs/pull/{pr_id}/head && git checkout FETCH_HEAD"CODE
HIGHfastvideo/tests/modal/ssim_test.py553 command = f"set -euo pipefail && source $HOME/.local/bin/env && source /opt/venv/bin/activate && {pytest_command}"STRING
HIGH…o/pipelines/preprocess/preprocess_minimax_h3_ref2va.py470 if not table.schema.equals(pyarrow_schema_minimax_h3_ref2va, check_metadata=False):CODE
HIGHfastvideo/pipelines/basic/mmaudio/stages.py144 source.push(frame)CODE
HIGHfastvideo/pipelines/basic/mmaudio/stages.py149 source.push(None)CODE
HIGHfastvideo/models/dits/wan_animate_face.py53# motion_encoder_channel_sizes: null, which means "use this table" (it is theCOMMENT
HIGHfastvideo/models/vaes/minimax_h3_parallel.py373 assembler.push(clip[:, :, vae.frame_pre_padding:].contiguous())CODE
HIGHfastvideo/models/vaes/minimax_h3_parallel.py431 assembler.push(gathered.narrow(2, slot * segment_frames, segment_frames))CODE
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
HIGHfastvideo/mlx_runtime/minimax_h3_vsa_simd.py83 if (active && g0 < q_valid) {CODE
HIGHfastvideo/mlx_runtime/minimax_h3_vsa_simd.py86 if (active && g1 < q_valid) {CODE
HIGHfastvideo/mlx_runtime/minimax_h3_vsa_simd.py113 if (gtok < k_valid && gtok < TILE && col < D) {CODE
HIGHfastvideo/mlx_runtime/minimax_h3_vsa_simd.py136 if (grow < q_valid && gtok < k_valid && gtok < TILE) {CODE
HIGHfastvideo/mlx_runtime/minimax_h3_vsa_simd.py159 if (gtok < k_valid && gtok < TILE && col < D) {CODE
HIGHexamples/inference/basic/basic_gen3c.py12 sudo apt-get update && sudo apt-get install -y libgl1 libglib2.0-0 libsm6 libxext6 libxrender1STRING
HIGHexamples/inference/basic/basic_fasth3.py273 "(`cd fastvideo-kernel && CMAKE_ARGS='-DFASTVIDEO_KERNEL_BUILD_TK=ON' ./build.sh`), or pass "CODE
HIGH…/inference/gradio/local/gradio_local_demo_ltx2_3/ui.py1478 if (document.activeElement && document.activeElement !== document.body) return true;CODE
HIGH…/inference/gradio/local/gradio_local_demo_ltx2_3/ui.py1489 let releaseTimer = null;CODE
HIGH⚡…/inference/gradio/local/gradio_local_demo_ltx2_3/ui.py1502 const scroller = document.scrollingElement || document.documentElement;CODE
HIGH⚡…/inference/gradio/local/gradio_local_demo_ltx2_3/ui.py1504 const atTop = scroller.scrollTop <= 0 && event.deltaY < 0;CODE
HIGH⚡…/inference/gradio/local/gradio_local_demo_ltx2_3/ui.py1505 const atBottom = scroller.scrollTop >= maxScroll - 1 && event.deltaY > 0;CODE
HIGHscripts/benchmarks/minimax_h3_pro6000/app.py25 .run_commands("cd /src/fastvideo && UV_TORCH_BACKEND=cu130 uv pip install --system -e . --no-sources")CODE
HIGHscripts/benchmarks/minimax_h3_pro6000/app.py49 "ln -s /cutlass /src/fastvideo/fastvideo-kernel/include/cutlass && mkdir -p /vol/wheels/cu130")CODE
HIGHscripts/benchmarks/minimax_h3_pro6000/app.py54 _sh("cd /src/fastvideo/fastvideo-kernel && pip wheel . --no-build-isolation --no-deps -w /vol/wheels/cu130",CODE
HIGHscripts/benchmarks/minimax_h3_pro6000/app.py105 "cd /src/fastvideo && python scripts/checkpoint_conversion/convert_minimax_h3_text_encoder_nvfp4.py "CODE
HIGHscripts/benchmarks/minimax_h3_pro6000/app.py118 "cd /src/fastvideo && python scripts/checkpoint_conversion/convert_minimax_h3_modelopt_nvfp4_dit.py "CODE
Docstring Block Structure40 hits · 200 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.py197 Load frames from a video file using ffmpeg. Args: video_path: Path to the video file Returns: STRING
HIGHfastvideo/models/loader/fsdp_load.py911 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.py1534 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.py1973 Calculate the 3D rope index based on image and video's temporal, height and width in LLM. Explanation: STRING
HIGHfastvideo/mlx_runtime/checkpoint.py53Return the manifest name for a supported MLX data type. Parameters: dtype: The MLX data type to convert. STRING
HIGHfastvideo/mlx_runtime/checkpoint.py180 Reconstruct an MLXWanDiT model from a versioned checkpoint. Parameters: checkpoint_dir (str | Path): DSTRING
HIGHfastvideo/mlx_runtime/memory.py60 Convert a positive memory limit from GiB to bytes. Parameters: value (float | None): Memory limit in GSTRING
HIGHfastvideo/mlx_runtime/memory.py101Set a PyTorch MPS watermark environment variable. Parameters: name (str): Name of the environment variable STRING
HIGHfastvideo/mlx_runtime/refine.py255Upsample 5-D latent arrays spatially using nearest-neighbor or bilinear interpolation. Parameters: latents STRING
HIGHfastvideo/mlx_runtime/refine.py340 Upsample clean latents spatially and optionally mix them with Gaussian noise. Parameters: clean_latentSTRING
HIGHfastvideo/mlx_runtime/refine.py374Derive the refinement noise level from the first refinement timestep. Parameters: schedule (MLXDMDSchedule)STRING
HIGHfastvideo/mlx_runtime/refine.py395Derive stage-2 timesteps from the stage-1 DMD grid. The stage-2 pass must start *below* full noise, otherwise the hSTRING
HIGHfastvideo/mlx_runtime/refine.py526 Run base denoising and, when enabled, spatial refinement denoising. Parameters: dit: DiT callable usedSTRING
HIGHfastvideo/mlx_runtime/sampling.py112 Compute one DMD sampling update, optionally re-noising the clean latent prediction. Args: latents: RetSTRING
HIGHfastvideo/mlx_runtime/fast_spatial.py130 Build a plan for reduced-resolution denoising followed by pixel-space upsampling. Parameters: upsampleSTRING
HIGHfastvideo/mlx_runtime/wan_vae.py89 Return a validated TAEHV checkpoint for the specified latent channel count. Parameters: z_dim (int): NSTRING
HIGHfastvideo/mlx_runtime/wan_vae.py411 Decode latent representations with the MLX TAEHV decoder. Parameters: latents_np (np.ndarray): LatentsSTRING
HIGHfastvideo/mlx_runtime/wan_vae.py484Decode latent video frames and export them as an MP4 file. Parameters: latents_np (np.ndarray): Latent videSTRING
HIGHfastvideo/mlx_runtime/prompt_enhance.py104 Normalize a user prompt for enhancement. Parameters: prompt (str): User-provided prompt text. RetSTRING
HIGHfastvideo/mlx_runtime/prompt_enhance.py179 Enhance a user prompt with a locally hosted mlx-lm instruction model. Parameters: prompt (str): The prSTRING
HIGHfastvideo/mlx_runtime/prompt_enhance.py277Enhance a prompt using the selected backend, falling back to a deterministic template when configured for automatic seleSTRING
HIGHfastvideo/mlx_runtime/frame_upsample.py39 Map a pixel upsample mode name onto its OpenCV interpolation flag. Parameters: mode (str): One of :datSTRING
HIGHfastvideo/mlx_runtime/frame_upsample.py92 Resample one decoded RGB frame to the target pixel size. Parameters: frame (np.ndarray): HxWx3 uint8 RSTRING
HIGHfastvideo/mlx_runtime/windowed_attention.py35 Determine the attention scaling factor from an explicit value or head dimension. Parameters: head_dim STRING
HIGHfastvideo/mlx_runtime/windowed_attention.py56 Validate compatible rank-4 query, key, and value tensors. Parameters: q (mx.array): Query tensor shapeSTRING
HIGHfastvideo/mlx_runtime/windowed_attention.py163 Apply symmetric sliding-window self-attention with optional global sink positions. Parameters: q (mx.aSTRING
HIGHfastvideo/mlx_runtime/taehv_decode.py74 Ensure the TAEW2.1 checkpoint is available locally. A caller-provided path is treated as trusted and is only cSTRING
HIGHfastvideo/mlx_runtime/taehv_decode.py132Load the TAEHV class from the vendored implementation or a local source override. Parameters: source_path (STRING
HIGHfastvideo/mlx_runtime/quant_backends.py82Normalize a quantization backend name and validate that it is supported. Parameters: backend (str): BackendSTRING
HIGHfastvideo/mlx_runtime/quant_backends.py168 Quantize a two-dimensional weight matrix using the specified native MLX backend. Parameters: w (mx.arrSTRING
HIGHfastvideo/mlx_runtime/quant_backends.py256 Measure the effective storage cost of a quantized weight. Parameters: backend (str): Quantization backSTRING
HIGHexamples/inference/basic/mlx_wan_quant_benchmark.py23 Parse and validate a comma-separated list of quantization modes. Parameters: raw (str): Comma-separateSTRING
HIGHexamples/inference/basic/mlx_wan_quant_benchmark.py97 Decode latents to a video and collect export timing and PyTorch MPS memory metrics. Parameters: args: STRING
HIGHexamples/inference/basic/mlx_wan_quant_benchmark.py144 Run denoising for one quantization mode and collect performance and memory metrics. Parameters: mode (STRING
HIGHexamples/inference/basic/mlx_wan_video_quality.py13 Read all frames from a video file as an RGB NumPy array. Parameters: path (Path): Path to the video fiSTRING
HIGHexamples/inference/basic/mlx_wan_video_quality.py44 Compute pixel-level comparison metrics between candidate and reference video frames. Parameters: candiSTRING
HIGHexamples/inference/basic/mlx_wan_decode_benchmark.py45 Parse and validate a comma-separated list of decoding backends. Parameters: raw (str): Comma-separatedSTRING
HIGHapps/fastvideo_studio/job_runner.py763Return log lines for a job. Args: job_id: The job ID after: Return only lines aSTRING
Over-Commented Block201 hits · 198 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.toml81COMMENT
LOWpyproject.toml121# GB10 (sm_121), so on ARM build from the in-tree source instead. The FastH3COMMENT
LOWpyproject.toml181# are opt-in and intentionally kept out of the default [eval] set.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.txt441COMMENT
LOWfastvideo-kernel/build.sh1#!/bin/bashCOMMENT
LOW…eo-kernel/python/fastvideo_kernel/block_sparse_attn.py381 q, k, v, o, lse, q2k_idx, q2k_num, variable_block_sizes = ctx.saved_tensorsCOMMENT
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py481 # But ctx.save_for_backward saves the original x (3D if input was 3D).COMMENT
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py501 # dy = grad_outputCOMMENT
LOW…o-kernel/python/fastvideo_kernel/turbodiffusion_ops.py521 # Using PyTorch autograd for reference logic:COMMENT
LOW…fastvideo_kernel/triton_kernels/fused_compress_topk.py241 scores_f32 = scores.to(tl.float32)COMMENT
LOW…l/python/fastvideo_kernel/triton_kernels/sla_triton.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWfastvideo-kernel/tests/test_attn_qat_train.py1441 print(COMMENT
LOWfastvideo-kernel/tests/test_attn_qat_train.py1601 # test_fused_attention_backward()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/zimage/test_zimage_encoder_parity.py221 model = SimpleNamespace(COMMENT
LOWtests/local_tests/dreamx_world/README.md201# decoded: 9 frames, (64, 64, 3), uint8COMMENT
LOWtests/local_tests/magi_human/test_magi_human_parity.py241COMMENT
LOW.agents/scripts/sync-skills.sh1#!/usr/bin/env bashCOMMENT
LOW…add-model-02-parity/templates/component_parity_test.py181 f"diff_max={diff.max().item():.6f} diff_mean={diff.mean().item():.6f}")COMMENT
LOWfastvideo/envs.py521FASTVIDEO_COSMOS25_LOG_KNOBS = EnvBool(False,COMMENT
LOWfastvideo/registry.py961 hf_model_paths=["kandinskylab/Kandinsky-6.0-VSR-5s-Diffusers"],COMMENT
LOWfastvideo/fastvideo_args.py181 # can restrict layers to adapt, e.g. ["q_proj"]COMMENT
LOWfastvideo/fastvideo_args.py201 use_fsdp_inference: bool = FalseCOMMENT
LOWfastvideo/fastvideo_args.py221 # ``None`` (auto) folds FASTVIDEO_H3_ENCODER_SPLIT; requires the RayCOMMENT
LOWfastvideo/fastvideo_args.py241 # probe. A released component is re-read from disk on the next generation,COMMENT
LOWfastvideo/fastvideo_args.py281 # Regional (per-transformer-block) fullgraph torch.compile of the DiT atCOMMENT
LOWfastvideo/utils.py661 # encoders and avoid duplicating a DiT that will never be loaded.COMMENT
LOWfastvideo/attention/backends/video_sparse_attn_h3.py561 # tensor is prepared after weights load and drives only the compiledCOMMENT
LOWfastvideo/attention/backends/video_sparse_attn_h3.py661 # holder outlives the training step -- one builder serves the whole run,COMMENT
LOWfastvideo/attention/backends/sla.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWfastvideo/attention/backends/attn_qat_infer.py61# DIFFERENT quantization scheme from the sm_12x CUTLASS extension above --COMMENT
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/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
LOW…o/tests/nightly/test_e2e_kandinsky5_dmd_t2v_overfit.py81COMMENT
LOW…o/tests/nightly/test_e2e_kandinsky5_dmd_t2v_overfit.py101# the checkpoint instead, feeding an already-exported diffusers directoryCOMMENT
LOW…o/tests/nightly/test_e2e_kandinsky5_dmd_t2v_overfit.py121# produced a grey-static reference that was visually indistinguishableCOMMENT
LOW…o/tests/nightly/test_e2e_kandinsky5_dmd_t2v_overfit.py141# - MS-SSIM alone CANNOT separate collapsed clips from good ones withCOMMENT
LOWfastvideo/tests/golden_gate/test_kandinsky5.py101 # module-level os.environ.setdefault here leaked into every otherCOMMENT
141 more matches not shown…
AI Structural Patterns147 hits · 138 pts
SeverityFileLineSnippetContext
LOW…thon/fastvideo_kernel/triton_kernels/st_attn_triton.py56CODE
LOW…thon/fastvideo_kernel/triton_kernels/attn_qat_train.py1230CODE
LOWfastvideo-kernel/tests/test_sta.py15CODE
LOWfastvideo-kernel/tests/test_attn_qat_train.py165CODE
LOWfastvideo-kernel/tests/test_vsa_forward.py71CODE
LOWfastvideo/attention/layer.py344CODE
LOWfastvideo/attention/backends/sage_attn3.py82CODE
LOWfastvideo/attention/backends/sdpa.py147CODE
LOWfastvideo/attention/backends/sla.py189CODE
LOWfastvideo/attention/backends/sla.py328CODE
LOWfastvideo/attention/backends/sla.py561CODE
LOWfastvideo/attention/backends/vmoba.py69CODE
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.py458CODE
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.py588CODE
LOWfastvideo/layers/quantization/nvfp4_qat_config.py141CODE
LOWfastvideo/dataset/preprocessing_datasets.py667CODE
LOWfastvideo/dataset/parquet_dataset_iterable_style.py62CODE
LOWfastvideo/training/training_utils.py181CODE
LOWfastvideo/training/training_utils.py542CODE
LOWfastvideo/tests/train/callbacks/test_validation.py42CODE
LOWfastvideo/tests/ops/test_rotary_pos_embed_cache.py20CODE
LOWfastvideo/tests/modal/launch_l40s_job.py512CODE
LOWfastvideo/tests/modal/ssim_test.py871CODE
LOWfastvideo/tests/modal/ssim_test.py946CODE
LOWfastvideo/pipelines/stages/text_encoding.py136CODE
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.py71CODE
LOWfastvideo/models/upsamplers/ltx2_upsampler.py162CODE
LOWfastvideo/models/dits/longcat.py1073CODE
LOWfastvideo/models/dits/dreamx_world_ar.py779CODE
LOWfastvideo/models/dits/sd3.py103CODE
LOWfastvideo/models/dits/kandinsky6.py946CODE
LOWfastvideo/models/dits/flux_2.py181CODE
LOWfastvideo/models/dits/flux_2.py350CODE
LOWfastvideo/models/dits/dreamx_world.py193CODE
LOWfastvideo/models/dits/dreamx_world.py449CODE
LOWfastvideo/models/dits/ltx2.py1774CODE
LOWfastvideo/models/dits/ltx2.py2318CODE
LOWfastvideo/models/dits/ltx2.py2804CODE
LOWfastvideo/models/dits/flux.py463CODE
LOWfastvideo/models/dits/matrixgame3/action_module.py70CODE
LOWfastvideo/models/dits/matrixgame3/model.py199CODE
LOWfastvideo/models/dits/matrixgame3/model.py285CODE
LOWfastvideo/models/dits/matrixgame3/model.py555CODE
LOWfastvideo/models/dits/matrixgame2/action_module.py210CODE
LOWfastvideo/models/dits/matrixgame2/action_module.py625CODE
87 more matches not shown…
Self-Referential Comments39 hits · 109 pts
SeverityFileLineSnippetContext
MEDIUMtests/local_tests/gamecraft/test_gamecraft_parity.py100 # Create a minimal args objectCOMMENT
MEDIUM…ocal_tests/gamecraft/test_gamecraft_pipeline_parity.py196 # Create the samplerCOMMENT
MEDIUMtests/local_tests/ltx2_5/test_ltx2_5_conversion.py279 # Create a fresh fixture with all 2.5 gates enabledCOMMENT
MEDIUMtests/local_tests/ltx2_5/test_ltx2_5_sampler.py89 # Create a minimal stage with a mock transformerCOMMENT
MEDIUMtests/local_tests/ltx2_5/test_ltx2_5_sampler.py98 # Create a batch with video and audio latents matching expected shapesCOMMENT
MEDIUMtests/local_tests/ltx2_5/test_ltx2_5_registry.py47 # Create a local directory with LTX2Pipeline _class_name and distilled variant metadataCOMMENT
MEDIUMtests/local_tests/ltx2_5/test_ltx2_5_registry.py60 # Create a local directory with LTX2Pipeline _class_name and dev variant metadataCOMMENT
MEDIUMdocs/generate_examples.py809 # Create the main examples index only if requestedCOMMENT
MEDIUMfastvideo/fastvideo_args.py994 # Create a dictionary of attribute values, with defaults for missing attributesCOMMENT
MEDIUMfastvideo/fastvideo_args.py1416 # Create a dictionary of attribute values, with defaults for missing attributesCOMMENT
MEDIUMfastvideo/distributed/parallel_state.py287 # 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.py317 # Create a seeded random generator for deterministic CFGCOMMENT
MEDIUMfastvideo/dataset/preprocessing_datasets.py605 # Create a text-only batch with dummy pathCOMMENT
MEDIUMfastvideo/dataset/parquet_dataset_map_style.py51 # Create a random permutation of all indicesCOMMENT
MEDIUMfastvideo/dataset/parquet_dataset_map_style.py304 # 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.py588 # Create a new batch with detached tensorsCOMMENT
MEDIUM…stvideo/training/self_forcing_distillation_pipeline.py642 # Create a new batch with detached tensorsCOMMENT
MEDIUMfastvideo/tests/hooks/test_hooks_api.py29 # 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.py120 ## Creating a simple causal mask:STRING
MEDIUMfastvideo/models/mask_utils.py141 ## Creating a sliding window mask:STRING
MEDIUMfastvideo/models/mask_utils.py162 ## Creating a chunked attention maskSTRING
MEDIUMfastvideo/models/dits/mmaudio.py481 # This method is also called by inference pipeline stages. PersistentCOMMENT
MEDIUMfastvideo/models/wan/vae.py524 # Create the componentsSTRING
MEDIUMfastvideo/models/vaes/hunyuanvae.py56 # Define the projection layersCOMMENT
MEDIUMfastvideo/worker/ray_env.py51 # This file contains a list of env vars that should not be copiedCOMMENT
MEDIUMfastvideo/worker/ray_distributed_executor.py173 # Create the workers.COMMENT
MEDIUMfastvideo/worker/ray_utils.py216 # Create a new placement groupCOMMENT
MEDIUMexamples/inference/basic/basic_longcat_vc.py159 # Create a new generator with refinement LoRA and BSA enabledCOMMENT
MEDIUMexamples/inference/basic/basic_longcat_t2v.py134 # Create a new generator with refinement LoRA and BSA enabledCOMMENT
MEDIUMexamples/inference/basic/basic_longcat_i2v.py143 # Create a new generator with refinement LoRA and BSA enabledCOMMENT
MEDIUMscripts/dataset_preparation/generate_validation_json.py33 # Create the final validation structureCOMMENT
Redundant / Tautological Comments67 hits · 100 pts
SeverityFileLineSnippetContext
LOWfastvideo-kernel/python/fastvideo_kernel/ops.py30 # Check if the specific op is availableCOMMENT
LOWfastvideo-kernel/python/fastvideo_kernel/vmoba.py254 if selected_other_indices.numel() > 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.py182 # Check if distributed is initializedCOMMENT
LOWfastvideo/fastvideo_args.py1437 # 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.py135 # Check if cached info existsCOMMENT
LOWfastvideo/dataset/parquet_dataset_iterable_style.py92 # Assign files to current rank's SP groupCOMMENT
LOWfastvideo/dataset/parquet_dataset_iterable_style.py145 # Check if sharding plan already existsCOMMENT
LOW…stvideo/training/self_forcing_distillation_pipeline.py48 # Check if FSDP2 auto wrap is enabled - not supported for self-forcing distillationCOMMENT
LOWfastvideo/training/distillation_pipeline.py275 # Set flag to prevent custom weight loading for teacher/critic modelsCOMMENT
LOWfastvideo/tests/training/distill/test_distill_dmd.py85 # Check if the process failedCOMMENT
LOW…video/tests/training/self-forcing/test_self_forcing.py184 # Check if the process failedCOMMENT
LOWfastvideo/tests/training/Vanilla/test_training_loss.py86 # Check if the process failedCOMMENT
LOWfastvideo/tests/training/Vanilla/mfu_calculation.py158 # Check if the process failedCOMMENT
LOWfastvideo/tests/transformers/test_cosmos.py132 # Check if outputs have the same shapeCOMMENT
LOWfastvideo/tests/transformers/test_cosmos.py136 # Check if outputs are similar (allowing for small numerical differences)COMMENT
LOWfastvideo/tests/transformers/test_cosmos2_5.py295 # Set models to eval modeCOMMENT
LOWfastvideo/tests/transformers/test_cosmos2_5.py398 # Check if outputs have the same shapeCOMMENT
LOWfastvideo/tests/transformers/test_cosmos2_5.py404 # Check if outputs are similarCOMMENT
LOWfastvideo/tests/encoders/test_hyt5_encoder.py123 # Check if outputs are similar (allowing for small numerical differences)COMMENT
LOWfastvideo/tests/ssim/test_longcat_similarity.py185 # Check if absolute or already existsCOMMENT
LOW…video/tests/entrypoints/test_openai_api_integration.py98 # Check if the process died.COMMENT
LOW⚡fastvideo/pipelines/composed_pipeline_base.py643 # Check if all required modules were loadedCOMMENT
LOWfastvideo/pipelines/composed_pipeline_base.py783 # Return the outputCOMMENT
LOWfastvideo/pipelines/stages/longcat_kv_cache_init.py41 # Check if KV cache is enabledCOMMENT
LOWfastvideo/pipelines/stages/base.py141 # 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.py91 # Check if the model path existsCOMMENT
LOWfastvideo/models/dits/matrixgame2/action_module.py149 # Check if we need to evict tokensCOMMENT
LOWfastvideo/models/dits/hyworld/retrieval_context.py134 # Check if within FOVCOMMENT
LOWfastvideo/models/loader/component_loader.py1243 # Check if we should use custom initialization weightsCOMMENT
LOWfastvideo/models/loader/component_loader.py1362 # Check if model has nn.ModuleList for layerwise offload compatibilityCOMMENT
LOWfastvideo/models/loader/fsdp_load.py350 # Check if we should use FSDPCOMMENT
LOWfastvideo/models/loader/fsdp_load.py813 # Check if we should use size-based filteringCOMMENT
LOWfastvideo/models/vaes/gamecraftvae.py314 # Check if temporal tiling needed (>64 output frames)COMMENT
LOWfastvideo/models/vaes/gamecraftvae.py317 # Check if spatial tiling needed (large H or W)COMMENT
LOW⚡fastvideo/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.py144 # Check if master_port is provided in fastvideo_argsCOMMENT
LOWfastvideo/worker/multiproc_executor.py395 # Check if workers were initialized (they might not be if initialization failed)COMMENT
LOWexamples/inference/basic/basic_matrixgame2.py59 # 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.py55 # Check if video existsCOMMENT
LOWexamples/inference/basic/basic_longcat_vc.py104 # Check if video existsCOMMENT
LOWexamples/inference/basic/basic_lingbotworld_base_cam.py21 # Set pin_cpu_memory to false if CPU RAM is limited and there're no frequent CPU-GPU transferCOMMENT
LOWexamples/inference/basic/basic_wan2_2_i2v.py21 # Set pin_cpu_memory to false if CPU RAM is limited and there're no frequent CPU-GPU transferCOMMENT
LOW…nference/basic/basic_self_forcing_causal_wan2_2_i2v.py25 # Set pin_cpu_memory to false if CPU RAM is limited and there're no frequent CPU-GPU transferCOMMENT
LOWexamples/inference/basic/basic_matrixgame2_streaming.py66 # Set pin_cpu_memory to false if CPU RAM is limited and there're no frequent CPU-GPU transferCOMMENT
LOW…nference/basic/basic_self_forcing_causal_wan2_2_t2v.py24 # Set pin_cpu_memory to false if CPU RAM is limited and there're no frequent CPU-GPU transferCOMMENT
7 more matches not shown…
Structural Annotation Overuse31 hits · 56 pts
SeverityFileLineSnippetContext
LOWtests/local_tests/lingbot_video/README.md76### Step 1: Clone The Official Reference ImplementationCOMMENT
LOWtests/local_tests/lingbot_video/README.md90### Step 2: Prepare The Virtual EnvironmentCOMMENT
LOWtests/local_tests/lingbot_video/README.md111### Step 3: Configure The Hugging Face CacheCOMMENT
LOWtests/local_tests/lingbot_video/README.md137### Step 4: Understand Checkpoint ConversionCOMMENT
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.py210 # Step 1: Initialize KV cache to all zerosCOMMENT
LOW⚡…stvideo/training/self_forcing_distillation_pipeline.py217 # Step 2: Cache context featureCOMMENT
LOW…stvideo/training/self_forcing_distillation_pipeline.py239 # Step 3: Temporal denoising loopCOMMENT
LOW⚡…ning/matrixgame2_self_forcing_distillation_pipeline.py360 # Step 1: Initialize KV cache to all zerosCOMMENT
LOW⚡…ning/matrixgame2_self_forcing_distillation_pipeline.py364 # Step 2: Temporal denoising loopCOMMENT
LOW⚡fastvideo/training/distillation_pipeline.py531 # Step 1: Randomly sample a target timestep index from denoising_step_listCOMMENT
LOW⚡fastvideo/training/distillation_pipeline.py536 # Step 2: Simulate the multi-step inference process up to the target timestepCOMMENT
LOW⚡fastvideo/training/distillation_pipeline.py572 # Step 3: Use the simulated noisy input for the final training stepCOMMENT
LOW⚡fastvideo/training/distillation_pipeline.py581 # Step 4: Final student prediction (this is what we train on)COMMENT
LOW⚡fastvideo/tests/train/callbacks/test_ema.py135 # Step 0: re-init at 2.0, then update against 2.0 → still 2.0.COMMENT
LOW⚡fastvideo/tests/train/callbacks/test_ema.py137 # Step 1: drift transformer to 12.0, expectCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py448 # Step 1: Compute ALL modulation parameters once (matches official model)COMMENT
LOWfastvideo/models/dits/cosmos2_5.py476 # Step 2: Self-attention blockCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py487 # Step 3: Cross-attention blockCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py500 # Step 4: MLP blockCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py591 # Step 1: Convert transformer weightsCOMMENT
LOW⚡scripts/checkpoint_conversion/longcat_to_fastvideo.py629 # Step 2: Copy other componentsCOMMENT
LOW⚡scripts/checkpoint_conversion/longcat_to_fastvideo.py639 # Step 3: Convert LoRA weightsCOMMENT
LOW⚡scripts/checkpoint_conversion/longcat_to_fastvideo.py644 # Step 4: Update transformer configCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py657 # Step 5: Create model_index.jsonCOMMENT
Verbosity Indicators21 hits · 41 pts
SeverityFileLineSnippetContext
LOWfastvideo/platforms/__init__.py28 # we need to check if fastvideo is built with cpu too.COMMENT
LOW⚡…stvideo/training/self_forcing_distillation_pipeline.py210 # Step 1: Initialize KV cache to all zerosCOMMENT
LOW⚡…stvideo/training/self_forcing_distillation_pipeline.py217 # Step 2: Cache context featureCOMMENT
LOW…stvideo/training/self_forcing_distillation_pipeline.py239 # Step 3: Temporal denoising loopCOMMENT
LOW⚡…ning/matrixgame2_self_forcing_distillation_pipeline.py360 # Step 1: Initialize KV cache to all zerosCOMMENT
LOW⚡…ning/matrixgame2_self_forcing_distillation_pipeline.py364 # Step 2: Temporal denoising loopCOMMENT
LOW⚡fastvideo/training/distillation_pipeline.py531 # Step 1: Randomly sample a target timestep index from denoising_step_listCOMMENT
LOW⚡fastvideo/training/distillation_pipeline.py536 # Step 2: Simulate the multi-step inference process up to the target timestepCOMMENT
LOW⚡fastvideo/training/distillation_pipeline.py572 # Step 3: Use the simulated noisy input for the final training stepCOMMENT
LOW⚡fastvideo/training/distillation_pipeline.py581 # Step 4: Final student prediction (this is what we train on)COMMENT
LOW⚡fastvideo/tests/train/callbacks/test_ema.py135 # Step 0: re-init at 2.0, then update against 2.0 → still 2.0.COMMENT
LOW⚡fastvideo/tests/train/callbacks/test_ema.py137 # Step 1: drift transformer to 12.0, expectCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py448 # Step 1: Compute ALL modulation parameters once (matches official model)COMMENT
LOWfastvideo/models/dits/cosmos2_5.py476 # Step 2: Self-attention blockCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py487 # Step 3: Cross-attention blockCOMMENT
LOWfastvideo/models/dits/cosmos2_5.py500 # Step 4: MLP blockCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py591 # Step 1: Convert transformer weightsCOMMENT
LOW⚡scripts/checkpoint_conversion/longcat_to_fastvideo.py629 # Step 2: Copy other componentsCOMMENT
LOW⚡scripts/checkpoint_conversion/longcat_to_fastvideo.py639 # Step 3: Convert LoRA weightsCOMMENT
LOW⚡scripts/checkpoint_conversion/longcat_to_fastvideo.py644 # Step 4: Update transformer configCOMMENT
LOWscripts/checkpoint_conversion/longcat_to_fastvideo.py657 # Step 5: Create model_index.jsonCOMMENT
AI Slop Vocabulary14 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUM…stvideo-kernel/tests/test_vsa_triton_backward_scale.py89 # Forward is exact at any scale; this pins the harness itself.COMMENT
LOWfastvideo/dataset/preprocessing_datasets.py212 # For images, just add sample infoCOMMENT
MEDIUMfastvideo/tests/train/methods/test_wan_causal_dfsft.py116 # 5a-ii: device-keyed grad-norm regression on top of the same harness.COMMENT
MEDIUMfastvideo/tests/train/methods/test_wan_causal_dfsft.py118 # rtol above the harness default: the causal model compiles flex_attentionCOMMENT
MEDIUM…video/tests/train/methods/test_matrixgame2_finetune.py147 # 5a-ii: device-keyed grad-norm regression on top of the same harness.COMMENT
MEDIUMfastvideo/tests/train/methods/test_wan_finetune.py133 # 5a-ii: device-keyed grad-norm regression on top of the same harness.COMMENT
MEDIUMfastvideo/tests/train/methods/test_ltx2_finetune.py189 # Device-keyed grad-norm regression on top of the same harness.COMMENT
MEDIUMfastvideo/tests/train/methods/test_cosmos_finetune.py115 # 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.py46 # so the LatentSimilarityUtils harness can compare on pre-VAECOMMENT
MEDIUMfastvideo/models/dits/cosmos.py548 # dtype so the model forward is robust regardless of caller.COMMENT
LOW…eo/third_party/eval/synchformer/hf_src/modeling_ast.py556 # since all values in the D-dimension (latent) will also be nans, we can just use the first elSTRING
MEDIUMexamples/inference/basic/mlx_wan_prompt_to_video.py87# benchmark harness). New code should prefer resolve_model_root(None), whichCOMMENT
MEDIUMapps/fastvideo_studio/job_runner.py720 # that might escape (though they shouldn't with our comprehensive handling)COMMENT
Modern AI Meta-Vocabulary10 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUM…dd-model-09-pipeline/templates/pipeline_parity_test.py63 except Exception as exc: # pragma: no cover - scaffold guardCODE
MEDIUMfastvideo/tests/performance/worker_log_capture.py44 # Also persist parent-process logs (run markers, load orchestration)COMMENT
MEDIUMfastvideo/tests/mlx/test_mlx_minimax_h3_fast_spatial.py85# -- generation-level orchestration contracts (heavyweight phases mocked) ----COMMENT
MEDIUMfastvideo/hooks/layerwise_offload.py140 # These hook entry points only orchestrate host-side parameterCOMMENT
MEDIUMfastvideo/configs/pipelines/kandinsky6.py19# Same Qwen2.5-VL "prompt engineer" system template and 129-token crop asCOMMENT
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
MEDIUMscripts/checkpoint_conversion/convert_ltx2_weights.py245 # the Gemma backbone's much larger context window.COMMENT
MEDIUM.github/workflows/infra-build-image.yml23 # metadata/key helper, ABI dependency metadata, and build orchestration.COMMENT
Example Usage Blocks14 hits · 21 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
LOW…gs/distribution_matching/kandinsky5/distill_dmd_qat.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
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…/encoders/test_minimax_h3_qwen3_vl_checkpoint_nvfp4.py545 layer.mlp.up_proj.weight_scale.data.fill_(0xFF)CODE
Fake / Example Data6 hits · 8 pts
SeverityFileLineSnippetContext
LOW…_tests/dreamx_world/test_dreamx_world_ar_conversion.py21 raw_tensor.write_bytes(b"placeholder")CODE
LOW⚡scripts/checkpoint_conversion/wan_to_diffusers.py91 dummy_key = new_key.replace("norm_added_k", "norm_added_q")CODE
LOW⚡scripts/checkpoint_conversion/wan_to_diffusers.py92 dummy_value = torch.zeros_like(v)CODE
LOW⚡scripts/checkpoint_conversion/wan_to_diffusers.py93 new_state_dict[dummy_key] = dummy_valueCODE
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.py124 # Special handling for stop token <|eom_id|> generated by llama 3 tool use.COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWfastvideo/models/vaes/hunyuanvae.py168 # If you are encountering an error here, make sure to try running encoding/decoding withCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…stvideo/tests/train/utils/test_distributed_strategy.py31 def helper(self) -> int:CODE
TODO Padding1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfastvideo/entrypoints/video_generator.py326 log_stats=False, # TODO: implementCODE