Repository Analysis

NVlabs/LongLive

LongLive 2.0: Infra - Long Video Gen

14.3 Low AI signal View on GitHub
14.3
Adjusted Score
14.3
Raw Score
100%
Time Factor
2026-05-30
Last Push
2,143
Stars
Python
Language
39,391
Lines of Code
197
Files
418
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 21MEDIUM 23LOW 373

Pattern Findings

418 matches across 12 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers112 hits · 108 pts
SeverityFileLineSnippet
LOWinference_sp.py99def _expected_inference_samples(config):
LOWinference_sp.py166def materialize_quantized_generator(model, device, materialize_fn, stage_desc, is_main_process):
LOWinference_sp.py176def configure_generator_torch_compile(pipeline, config, is_main_process):
LOWinference.py140def _expected_inference_samples(config):
LOWinference.py215def materialize_quantized_generator(model, device, materialize_fn, stage_desc):
LOWinference.py229def configure_generator_torch_compile(pipeline, config):
LOWpipeline/causal_diffusion_inference.py954 def _set_all_modules_sink_size(self, sink_size_value: int):
LOWpipeline/causal_diffusion_inference.py968 def _set_all_modules_global_sink_size(self, value: int):
LOWpipeline/causal_diffusion_inference.py861 def _initialize_crossattn_cache(self, batch_size, dtype, device):
LOWpipeline/causal_diffusion_inference.py895 def _initialize_sample_scheduler(self, noise):
LOWpipeline/causal_diffusion_inference.py918 def _set_all_modules_max_attention_size(self, local_attn_size_value: int):
LOWpipeline/causal_diffusion_inference.py1001 def _update_sink_for_scene_cut(self, kv_cache, current_num_frames):
LOWpipeline/self_forcing_training.py372 def _set_all_modules_sink_size(self, sink_size_value: int):
LOWpipeline/self_forcing_training.py384 def _set_all_modules_global_sink_size(self, value: int):
LOWpipeline/self_forcing_training.py82 def _build_default_denoising_step_list(self, sampling_steps):
LOWpipeline/self_forcing_training.py111 def generate_chunk_with_cache(
LOWpipeline/self_forcing_training.py288 def inference_with_trajectory(
LOWpipeline/self_forcing_training.py409 def _inference_with_trajectory_inner(
LOWpipeline/self_forcing_training.py698 def _initialize_crossattn_cache(self, batch_size, dtype, device):
LOWpipeline/self_forcing_training.py744 def _set_all_modules_max_attention_size(self, local_attn_size_value: int):
LOWfouroversix/setup.py32def get_cuda_bare_metal_version() -> Version | None:
LOWfouroversix/tests/test_correctness.py52def test_backend_outputs_are_consistent( # noqa: C901, PLR0915
LOWfouroversix/scripts/resources.py52 def has_untracked_or_unstaged_changes(self) -> bool:
LOWfouroversix/scripts/resources.py150def install_fouroversix_non_editable() -> None:
LOWfouroversix/scripts/ptq/evaluators/smoothquant.py196def get_calibration_experiments(
LOWfouroversix/src/fouroversix/quantize/utils.py14def get_no_random_sign_vector(device: int) -> torch.Tensor:
LOWfouroversix/src/fouroversix/model/quantize.py35 def should_replace_existing_modules_in_model(
LOWfouroversix/src/fouroversix/model/modules/linear.py271 def _serialize_quantized_weight(
LOWfouroversix/src/fouroversix/model/modules/linear.py322 def quantized_weight_transposed(self) -> QuantizedTensor | None:
LOWtests/test_i2v_teacher_forcing_context.py96def _load_causal_diffusion_with_stubs():
LOWutils/memory.py61def fake_diffusers_current_device(model: torch.nn.Module, target_device: torch.device):
LOWutils/memory.py96def move_model_to_device_with_memory_preservation(model, target_device, preserved_memory_gb=0):
LOWutils/memory.py112def offload_model_from_device_for_memory_preservation(model, target_device, preserved_memory_gb=0):
LOWutils/torch_compile_utils.py86def configure_module_call_torch_compile(
LOWutils/dataset.py200 def _load_captions_from_folder(self, folder: Path):
LOWutils/dataset.py422 def _get_video_files_in_folder(self, folder_path):
LOWutils/dataset.py451 def _check_folder_has_enough_frames(self, folder_path):
LOWutils/dataset.py533 def _can_sample_from_position(self, total_frames, original_fps, num_frames, start_frame):
LOWutils/dataset.py552 def _can_complete_all_segments_without_wrap(self, video_files, start_video_idx, start_frame):
LOWutils/dataset.py629 def _sample_frames_from_video(self, video_path, num_frames, start_frame=0):
LOWutils/dataset.py696 def _sample_frames_from_video_ffmpeg(self, video_path, num_frames, start_frame=0):
LOWutils/dataset.py750 def _try_get_item_from_folder(self, folder_idx, deterministic: bool = False):
LOWutils/lightvae_5b_wrapper.py18def _extract_checkpoint_state_dict(raw):
LOWutils/lightvae_5b_wrapper.py31def _map_lightvae_key_to_wanvae(key):
LOWutils/lightvae_5b_wrapper.py106def _normalize_vae_state_dict(raw_state):
LOWutils/lightvae_5b_wrapper.py117def infer_lightvae_pruning_rate_from_ckpt(vae_path, full_decoder_conv1_out=1024):
LOWutils/position_embedding_utils.py15def select_temporal_offset_for_sample(
LOWutils/rope_triton.py84def _split_complex_to_cos_sin(freqs_complex: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]:
LOWutils/nvfp4_checkpoint.py38def unwrap_generator_state_dict(checkpoint: object, use_ema: bool = False) -> object:
LOWutils/nvfp4_checkpoint.py50def clean_fsdp_state_dict_keys(state_dict: Mapping[str, torch.Tensor]) -> dict[str, torch.Tensor]:
LOWutils/nvfp4_checkpoint.py55def build_model_quantization_config(config, keep_master_weights: bool = False):
LOWutils/nvfp4_checkpoint.py134def drop_fouroversix_master_weights(model: nn.Module) -> list[str]:
LOWutils/wan_5b_wrapper.py316 def enable_gradient_checkpointing(self) -> None:
LOWutils/quant.py90def _resolve_modules_to_not_convert(
LOWutils/quant.py119def _get_default_filtered_modules(filter_profile: str | None) -> list[str]:
LOWutils/quant.py137def _warn_for_te_config_mismatch(model_quant_config: ModelQuantizationConfig) -> None:
LOWutils/quant.py273 def _copy_tensor_into_parameter(
LOWutils/quant.py350def quantize_model_with_optional_te(
LOWutils/quant.py425def _materialize_transformer_engine_weights_for_inference(
LOWutils/quant.py450def _materialize_mixed_quantized_weights_for_inference(
52 more matches not shown…
Unused Imports105 hits · 104 pts
SeverityFileLineSnippet
LOWpipeline/__init__.py1
LOWpipeline/__init__.py2
LOWpipeline/self_forcing_training.py12
LOWfouroversix/scripts/generate_kernels.py1
LOWfouroversix/scripts/resources.py1
LOWfouroversix/scripts/test_on_modal.py1
LOWfouroversix/scripts/speedtest/matmul.py1
LOWfouroversix/scripts/speedtest/quantize.py1
LOWfouroversix/scripts/ptq/utils.py1
LOWfouroversix/scripts/ptq/coordinators/__init__.py1
LOWfouroversix/scripts/ptq/coordinators/__init__.py2
LOWfouroversix/scripts/ptq/evaluators/rtn.py1
LOWfouroversix/scripts/ptq/evaluators/spinquant.py1
LOWfouroversix/scripts/ptq/evaluators/__init__.py1
LOWfouroversix/scripts/ptq/evaluators/awq.py1
LOWfouroversix/scripts/ptq/evaluators/smoothquant.py1
LOWfouroversix/scripts/ptq/evaluators/evaluator.py1
LOWfouroversix/scripts/train/__main__.py1
LOWfouroversix/src/fouroversix/__init__.py3
LOWfouroversix/src/fouroversix/__init__.py4
LOWfouroversix/src/fouroversix/__init__.py4
LOWfouroversix/src/fouroversix/__init__.py4
LOWfouroversix/src/fouroversix/__init__.py4
LOWfouroversix/src/fouroversix/__init__.py4
LOWfouroversix/src/fouroversix/__init__.py11
LOWfouroversix/src/fouroversix/__init__.py11
LOWfouroversix/src/fouroversix/__init__.py11
LOWfouroversix/src/fouroversix/__init__.py12
LOWfouroversix/src/fouroversix/__init__.py12
LOWfouroversix/src/fouroversix/__init__.py12
LOWfouroversix/src/fouroversix/__init__.py12
LOWfouroversix/src/fouroversix/__init__.py12
LOWfouroversix/src/fouroversix/__init__.py13
LOWfouroversix/src/fouroversix/quantize/__init__.py1
LOWfouroversix/src/fouroversix/quantize/__init__.py2
LOWfouroversix/src/fouroversix/quantize/__init__.py3
LOWfouroversix/src/fouroversix/quantize/__init__.py4
LOW…oversix/src/fouroversix/quantize/transformer_engine.py33
LOWfouroversix/src/fouroversix/quantize/cuda/backend.py29
LOWfouroversix/src/fouroversix/quantize/cuda/__init__.py1
LOWfouroversix/src/fouroversix/quantize/triton/kernel.py1
LOWfouroversix/src/fouroversix/quantize/triton/__init__.py1
LOW…uroversix/src/fouroversix/quantize/pytorch/__init__.py1
LOW…roversix/src/fouroversix/quantize/pytorch/reference.py1
LOWfouroversix/src/fouroversix/model/quantize.py1
LOWfouroversix/src/fouroversix/model/__init__.py1
LOWfouroversix/src/fouroversix/model/__init__.py1
LOWfouroversix/src/fouroversix/model/__init__.py2
LOWfouroversix/src/fouroversix/model/__init__.py3
LOWfouroversix/src/fouroversix/model/__init__.py3
LOWfouroversix/src/fouroversix/model/modules/__init__.py1
LOWfouroversix/src/fouroversix/model/modules/__init__.py2
LOWfouroversix/src/fouroversix/matmul/__init__.py1
LOWfouroversix/src/fouroversix/matmul/cutlass/backend.py27
LOWfouroversix/src/fouroversix/matmul/cutlass/__init__.py1
LOWutils/dataset.py9
LOWutils/dataset.py10
LOWutils/dataset.py15
LOWutils/rope_triton.py17
LOWutils/nvfp4_checkpoint.py10
45 more matches not shown…
Cross-File Repetition19 hits · 95 pts
SeverityFileLineSnippet
HIGHfouroversix/scripts/ptq/coordinators/local.py0run any tasks that should be used to calibrate models for a given ptq method and set of parameters before running evalua
HIGHfouroversix/scripts/ptq/coordinators/modal.py0run any tasks that should be used to calibrate models for a given ptq method and set of parameters before running evalua
HIGHfouroversix/scripts/ptq/coordinators/base.py0run any tasks that should be used to calibrate models for a given ptq method and set of parameters before running evalua
HIGHfouroversix/src/fouroversix/model/modules/linear.py0return high precision parameters to be quantized and deleted.
HIGHfouroversix/src/fouroversix/model/modules/qwen.py0return high precision parameters to be quantized and deleted.
HIGHfouroversix/src/fouroversix/model/modules/gpt_oss.py0return high precision parameters to be quantized and deleted.
HIGHfouroversix/src/fouroversix/model/modules/gpt_oss.py0return high precision parameters to be quantized and deleted.
HIGHfouroversix/src/fouroversix/model/modules/linear_ori.py0return high precision parameters to be quantized and deleted.
HIGHfouroversix/src/fouroversix/model/modules/linear.py0get the size of a single element, in bytes, for a parameter.
HIGHfouroversix/src/fouroversix/model/modules/qwen.py0get the size of a single element, in bytes, for a parameter.
HIGHfouroversix/src/fouroversix/model/modules/gpt_oss.py0get the size of a single element, in bytes, for a parameter.
HIGHfouroversix/src/fouroversix/model/modules/linear_ori.py0get the size of a single element, in bytes, for a parameter.
HIGHfouroversix/src/fouroversix/model/modules/linear.py0prepare this layer for post-training quantization by quantizing the weight, storing the quantized weight, and deleting t
HIGHfouroversix/src/fouroversix/model/modules/qwen.py0prepare this layer for post-training quantization by quantizing the weight, storing the quantized weight, and deleting t
HIGHfouroversix/src/fouroversix/model/modules/gpt_oss.py0prepare this layer for post-training quantization by quantizing the weight, storing the quantized weight, and deleting t
HIGHfouroversix/src/fouroversix/model/modules/linear_ori.py0prepare this layer for post-training quantization by quantizing the weight, storing the quantized weight, and deleting t
HIGHwan_5b/textimage2video.py0configures a model object. this includes setting evaluation modes, applying distributed parallel strategy, and handling
HIGHwan_5b/text2video.py0configures a model object. this includes setting evaluation modes, applying distributed parallel strategy, and handling
HIGHwan_5b/image2video.py0configures a model object. this includes setting evaluation modes, applying distributed parallel strategy, and handling
Verbosity Indicators43 hits · 64 pts
SeverityFileLineSnippet
LOWpipeline/causal_diffusion_inference.py39 # Step 1: Initialize all models
LOWpipeline/causal_diffusion_inference.py67 # Step 2: Initialize scheduler
LOWpipeline/causal_diffusion_inference.py232 # Step 1: Initialize KV cache to all zeros
LOWpipeline/causal_diffusion_inference.py266 # Step 2: Cache context feature
LOWpipeline/causal_diffusion_inference.py437 # Step 3: Temporal denoising loop
LOWpipeline/causal_diffusion_inference.py741 # Step 4: Decode the output
LOWpipeline/self_forcing_training.py446 # Step 1: Initialize KV cache to all zeros
LOWpipeline/self_forcing_training.py468 # Step 2: Cache context feature
LOWpipeline/self_forcing_training.py486 # Step 3: Temporal denoising loop
LOWutils/dataset.py545 # We need to check if we can get num_frames frames
LOWmodel/diffusion.py30 # Step 2: Initialize all hyperparameters
LOWmodel/diffusion.py171 # Step 2: Randomly sample a timestep and add noise to denoiser inputs
LOWmodel/diffusion.py258 # Step 3: Noise augmentation, also add small noise to clean context latents
LOWmodel/diffusion.py331 # Step 5: Store prediction errors into error buffer.
LOWmodel/dmd.py47 # Step 2: Initialize all dmd hyperparameters
LOWmodel/dmd.py98 # Step 1: Compute the fake score
LOWmodel/dmd.py119 # Step 2: Compute the real score
LOWmodel/dmd.py138 # Step 3: Compute the DMD gradient (DMD paper eq. 7).
LOWmodel/dmd.py213 # Step 1: Randomly sample timestep based on the given schedule and corresponding noise
LOWmodel/dmd.py245 # Step 2: Compute the KL grad
LOWmodel/dmd.py289 # Step 1: Unroll generator to obtain fake videos
LOWmodel/dmd.py305 # Step 2: Compute the DMD loss
LOWmodel/dmd.py366 # Step 1: Run generator on backward simulated noisy input
LOWmodel/dmd.py408 # Step 2: Compute the fake prediction
LOWmodel/dmd.py446 # Step 3: Compute the denoising loss for the fake critic
LOWmodel/dmd.py483 # Step 5: Debugging Log
LOWtrainer/diffusion.py60 # Step 1: Initialize the distributed training environment (rank, seed, dtype, logging etc.)
LOWtrainer/diffusion.py152 # Step 2: Initialize the model and optimizer
LOWtrainer/diffusion.py333 # Step 3: Initialize the dataloader
LOWtrainer/diffusion.py736 # Step 1: Get the next batch of text prompts
LOWtrainer/diffusion.py759 # Step 2: Extract the conditional infos
LOWtrainer/diffusion.py792 # Step 3: Train the generator
LOWtrainer/diffusion.py821 # Step 4: Update EMA (if enabled and after start step)
LOWtrainer/diffusion.py856 # Step 5: Logging
LOWtrainer/distillation.py41 # Step 1: Initialize the distributed training environment (rank, seed, dtype, logging etc.)
LOWtrainer/distillation.py79 # Step 2: Initialize the model
LOWtrainer/distillation.py406 # Step 3: Set up EMA parameter containers
LOWtrainer/distillation.py430 # Step 4: Initialize the optimizer
LOWtrainer/distillation.py447 # Step 5: Initialize the dataloader
LOWtrainer/distillation.py531 # Step 6: Initialize the validation dataloader for visualization (fixed prompts)
LOWtrainer/distillation.py1000 # Step 1: Get the next batch of text prompts
LOWtrainer/distillation.py1040 # Step 2: Extract the conditional infos
LOWtrainer/distillation.py1071 # Step 3: Store gradients for the generator (if training the generator)
Excessive Try-Catch Wrapping52 hits · 61 pts
SeverityFileLineSnippet
LOWinference_sp.py49 except Exception as exc:
LOWinference.py84 except Exception as e:
MEDIUMpipeline/causal_diffusion_inference.py468def _vae_thread_fn():
LOWpipeline/causal_diffusion_inference.py356 except Exception:
LOWpipeline/causal_diffusion_inference.py361 except Exception:
LOWpipeline/causal_diffusion_inference.py366 except Exception:
LOWpipeline/causal_diffusion_inference.py936 except Exception:
LOWpipeline/causal_diffusion_inference.py946 except Exception:
LOWpipeline/causal_diffusion_inference.py951 except Exception:
LOWpipeline/causal_diffusion_inference.py965 except Exception:
LOWpipeline/causal_diffusion_inference.py974 except Exception:
LOWpipeline/causal_diffusion_inference.py64 except Exception as exc:
LOWpipeline/causal_diffusion_inference.py495 except Exception as exc:
LOWpipeline/self_forcing_training.py348 except Exception:
LOWpipeline/self_forcing_training.py353 except Exception:
LOWpipeline/self_forcing_training.py358 except Exception:
LOWpipeline/self_forcing_training.py381 except Exception:
LOWpipeline/self_forcing_training.py390 except Exception:
LOWpipeline/self_forcing_training.py764 except Exception:
LOWpipeline/self_forcing_training.py773 except Exception:
LOWutils/torch_compile_utils.py49 except Exception as exc:
LOWutils/torch_compile_utils.py75 except Exception as exc:
LOWutils/torch_compile_utils.py112 except Exception as exc:
MEDIUMutils/dataset.py433def get_numeric_key(path):
LOWutils/dataset.py211 except Exception:
LOWutils/dataset.py230 except Exception:
LOWutils/dataset.py418 except Exception:
LOWutils/dataset.py469 except Exception:
LOWutils/dataset.py953 except Exception as exc:
LOWutils/lightvae_5b_wrapper.py123 except Exception as exc:
LOWutils/lightvae_5b_wrapper.py138 except Exception:
LOWutils/quant.py282 except Exception:
LOWutils/quant.py294 except Exception as copy_exc:
LOWutils/quant.py719 except Exception as exc: # pragma: no cover - exercised only when extension is stale/missing
LOWwan_5b/utils/prompt_extend.py185 except Exception as e:
LOWwan_5b/utils/prompt_extend.py248 except Exception as e:
LOWwan_5b/utils/utils.py53 except Exception as e:
LOWwan_5b/utils/utils.py75 except Exception as e:
LOWwan_5b/modules/causal_model_sp_ulysses.py46except Exception:
LOWwan_5b/modules/attention.py11except Exception:
LOWwan_5b/modules/attention.py36except Exception:
LOWscripts/decode_vae_latents.py148 except Exception as e:
LOWscripts/decode_lightvae_latents.py324 except Exception as exc:
LOWscripts/decode_lightvae_latents.py334 except Exception as exc:
LOWmodel/dmd.py332 except Exception:
LOWmodel/dmd.py480 except Exception:
LOWtrainer/diffusion.py50 except Exception as e:
LOWtrainer/diffusion.py629 except Exception as e:
LOWtrainer/diffusion.py646 except Exception as e:
LOWtrainer/diffusion.py885 except Exception:
LOWtrainer/distillation.py1265 except Exception as e:
LOWtrainer/distillation.py908 except Exception as e:
Decorative Section Separators20 hits · 49 pts
SeverityFileLineSnippet
MEDIUMutils/dataset.py164 # ------------------------------------------------------------------
MEDIUMutils/dataset.py166 # ------------------------------------------------------------------
MEDIUMutils/dataset.py175 # ------------------------------------------------------------------
MEDIUMutils/dataset.py177 # ------------------------------------------------------------------
MEDIUMutils/dataset.py215 # ------------------------------------------------------------------
MEDIUMutils/dataset.py217 # ------------------------------------------------------------------
MEDIUMwan_5b/modules/causal_model.py235 # -------------------------------
MEDIUMwan_5b/modules/causal_model.py238 # -------------------------------
MEDIUMwan_5b/modules/causal_model.py253 # -------------------------------
MEDIUMwan_5b/modules/causal_model.py258 # -------------------------------
MEDIUMwan_5b/modules/causal_model.py1206 # ==========================================
MEDIUMwan_5b/modules/causal_model.py1208 # ==========================================
MEDIUMwan_5b/modules/causal_model.py1220 # ==========================================
MEDIUMwan_5b/modules/causal_model.py1222 # ==========================================
MEDIUMwan_5b/modules/causal_model.py1239 # ==========================================
MEDIUMwan_5b/modules/causal_model.py1241 # ==========================================
MEDIUMtrainer/distillation.py601 # ----------------------------------------------------------------------------------------------------------
MEDIUMtrainer/distillation.py603 # ----------------------------------------------------------------------------------------------------------
MEDIUMtrainer/distillation.py1332 # --------------------------------------------------------------------------------------------------------------
MEDIUMtrainer/distillation.py1334 # --------------------------------------------------------------------------------------------------------------
Deep Nesting47 hits · 40 pts
SeverityFileLineSnippet
LOWinference_sp.py33
LOWinference.py61
LOWpipeline/causal_diffusion_inference.py167
LOWpipeline/causal_diffusion_inference.py369
LOWpipeline/causal_diffusion_inference.py468
LOWpipeline/self_forcing_training.py111
LOWpipeline/self_forcing_training.py409
LOWfouroversix/setup.py52
LOWfouroversix/tests/test_correctness.py52
LOWfouroversix/scripts/ptq/evaluators/evaluator.py59
LOWutils/dataset.py750
LOWutils/position_embedding_utils.py56
LOWutils/error_buffer.py239
LOWutils/nvfp4_checkpoint.py134
LOWutils/quant.py477
LOWutils/lora_utils.py19
LOWwan_5b/utils/fm_solvers.py412
LOWwan_5b/utils/fm_solvers.py483
LOWwan_5b/utils/utils.py106
LOWwan_5b/utils/qwen_vl_utils.py85
LOWwan_5b/utils/qwen_vl_utils.py328
LOWwan_5b/modules/attention.py84
LOWwan_5b/modules/vae2_1.py68
LOWwan_5b/modules/vae2_1.py101
LOWwan_5b/modules/t5.py27
LOWwan_5b/modules/causal_model.py90
LOWwan_5b/modules/causal_model.py316
LOWwan_5b/modules/causal_model.py1360
LOWwan_5b/modules/vae2_2.py73
LOWwan_5b/modules/vae2_2.py111
LOWscripts/decode_vae_latents.py72
LOWscripts/decode_lightvae_latents.py104
LOWmodel/diffusion.py15
LOWtrainer/diffusion.py25
LOWtrainer/diffusion.py56
LOWtrainer/diffusion.py552
LOWtrainer/diffusion.py578
LOWtrainer/diffusion.py637
LOWtrainer/diffusion.py911
LOWtrainer/diffusion.py1016
LOWtrainer/diffusion.py1080
LOWtrainer/distillation.py37
LOWtrainer/distillation.py831
LOWtrainer/distillation.py857
LOWtrainer/distillation.py994
LOWtrainer/distillation.py1152
LOWtrainer/distillation.py1271
Over-Commented Block14 hits · 14 pts
SeverityFileLineSnippet
LOWfouroversix/scripts/hadamard_code_gen.py1from pathlib import Path
LOW…uroversix/src/fouroversix/quantize/quantized_tensor.py161 f"Expected {expected_scale_factors} scale factors, got "
LOW…uroversix/src/fouroversix/csrc/include/kernel_traits.h81 // static constexpr int kSwizzleS = Is_nvfp4 ? 2 : 1; // 4 or 2 elements
LOW…c/fouroversix/csrc/include/fp4_quant_launch_template.h21#define KERNEL_PARAM_MODIFIER __grid_constant__
LOW…uroversix/src/fouroversix/csrc/include/static_switch.h1// Inspired by
LOWutils/__init__.py1# Marker file: turn `utils/` from a namespace package into a regular package.
LOWutils/rope_triton.py21import triton.language as tl
LOWutils/kernel/__init__.py1# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES
LOWwan_5b/modules/attention.py161 # we're trying to replace).
LOWwan_5b/modules/causal_model.py41# concatenated freqs tensor each time. LRU keeps memory bounded.
LOWwan_5b/modules/causal_model.py61# when disabled, stores (freqs_i_complex, None, None).
LOWwan_5b/modules/causal_model.py481 global_sink_tokens = getattr(self, "global_sink_size", 0) * frame_seqlen
LOWwan_5b/modules/causal_model.py661
LOWmodel/diffusion.py41 self.device = device
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALfouroversix/scripts/ptq/evaluators/spinquant.py230 model.lm_head.weight.data = model.model.embed_tokens.weight.data.clone()
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippet
HIGHwan_5b/utils/utils.py80 Convert a string to a boolean. Supported true values: 'yes', 'true', 't', 'y', '1' Supported false values:
HIGHwan_5b/utils/qwen_vl_utils.py138calculate the number of frames for video used for model inputs. Args: ele (dict): a dict contains the confi
Self-Referential Comments1 hit · 4 pts
SeverityFileLineSnippet
MEDIUMtrainer/distillation.py1276 # Define the specific modules we want to apply LoRA to
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOWutils/dataset.py473 # Check if we have enough frames for all segments
LOWtrainer/distillation.py1156 # Check if we should train generator on this optimization step