MCPcopy Create free account

hub / github.com/NVlabs/LongLive / functions

Functions963 in github.com/NVlabs/LongLive

↓ 1 callersMethod_get_txt_item
(self, idx)
utils/dataset.py:168
↓ 1 callersMethod_get_video_info_ffprobe
(self, video_path)
utils/dataset.py:504
↓ 1 callersMethod_inference_inner
( self, noise, batch_size, num_frames, num_channels, height, width, num_blocks, num_input_fram
pipeline/causal_diffusion_inference.py:369
↓ 1 callersMethod_inference_with_trajectory_inner
( self, noise: torch.Tensor, initial_latent: Optional[torch.Tensor] = None
pipeline/self_forcing_training.py:409
↓ 1 callersMethod_init_shadow
(self, fsdp_module)
utils/distributed.py:107
↓ 1 callersMethod_init_step_index
Initialize the step_index counter for the scheduler.
wan_5b/utils/fm_solvers.py:690
↓ 1 callersMethod_init_step_index
Initialize the step_index counter for the scheduler.
wan_5b/utils/fm_solvers_unipc.py:645
↓ 1 callersMethod_initialize_crossattn_cache
Initialize a Per-GPU cross-attention cache for the Wan model.
pipeline/causal_diffusion_inference.py:861
↓ 1 callersMethod_initialize_crossattn_cache
Initialize a Per-GPU cross-attention cache for the Wan model.
pipeline/self_forcing_training.py:698
↓ 1 callersMethod_initialize_kv_cache
Initialize a Per-GPU KV cache for the Wan model.
pipeline/causal_diffusion_inference.py:770
↓ 1 callersMethod_initialize_kv_cache
Initialize a Per-GPU KV cache for the Wan model.
pipeline/self_forcing_training.py:677
↓ 1 callersMethod_initialize_models
(self, args, device)
model/base.py:49
↓ 1 callersMethod_initialize_sample_scheduler
(self, noise)
pipeline/causal_diffusion_inference.py:895
↓ 1 callersMethod_inject_error_buffer
Inject errors into the clean prefix (E_img). 2D (position-bucketed): the i-th LOCAL prefix block draws from ``buckets[(i, *)]`` with
model/diffusion.py:397
↓ 1 callersMethod_inject_latent_error_buffer
Inject errors into clean_latent before noising (E_vid). Matches BOTH block_position (LOCAL) and timestep when the buffer is 2D, else
model/diffusion.py:430
↓ 1 callersMethod_inject_noise_error_buffer
Inject errors into the noise (E_noise). Same matching strategy as ``_inject_latent_error_buffer`` but reads from the dedicated noise
model/diffusion.py:454
↓ 1 callersMethod_install_module
(module: torch.nn.Module, **kwargs)
utils/memory.py:15
↓ 1 callersFunction_is_main_process
()
utils/torch_compile_utils.py:14
↓ 1 callersMethod_is_scene_cut
Return True when *chunk_index* is the first chunk of a new scene AND multi-shot sink is enabled.
pipeline/causal_diffusion_inference.py:992
↓ 1 callersMethod_is_scene_cut_from_mask
(scene_cut_mask, block_index: int)
pipeline/self_forcing_training.py:362
↓ 1 callersMethod_load_captions_from_folder
(self, folder: Path)
utils/dataset.py:200
↓ 1 callersFunction_load_causal_diffusion_with_stubs
()
tests/test_i2v_teacher_forcing_context.py:96
↓ 1 callersMethod_load_from_linear
(self, module: nn.Linear)
utils/quant.py:287
↓ 1 callersFunction_load_generator_checkpoint
(generator: WanDiffusionWrapper, checkpoint_path: str, use_ema: bool)
scripts/save_merged_nvfp4_generator.py:49
↓ 1 callersFunction_load_latent_tensor
(pt_path: str)
scripts/decode_lightvae_latents.py:137
↓ 1 callersFunction_load_lightvae_model
(pretrained_path=None, z_dim=48, dim=160, device="cpu", **kwargs)
utils/lightvae_5b_wrapper.py:309
↓ 1 callersFunction_load_lora_state
(path: str)
scripts/merge_lora_generator.py:34
↓ 1 callersFunction_load_lora_state
(lora_ckpt_path: str)
scripts/save_merged_nvfp4_generator.py:68
↓ 1 callersFunction_load_lora_state_dict
Load a LoRA checkpoint, unwrapping ``generator_lora`` when present.
utils/inference_utils.py:52
↓ 1 callersMethod_load_shot_durations
(folder: Path)
utils/dataset.py:220
↓ 1 callersFunction_map_lightvae_key_to_wanvae
(key)
utils/lightvae_5b_wrapper.py:31
↓ 1 callersFunction_materialize_transformer_engine_weights_for_inference
( model: nn.Module, target_device: torch.device | str | None = None, cache_transposed_weights: boo
utils/quant.py:425
↓ 1 callersFunction_merge_lora
(generator: WanDiffusionWrapper, config, lora_ckpt_path: str)
scripts/save_merged_nvfp4_generator.py:75
↓ 1 callersFunction_metadata
( config, args: argparse.Namespace, *, backend: str, matched_modules: list[str], mater
scripts/save_merged_nvfp4_generator.py:98
↓ 1 callersMethod_nearest_owned_t
Remap ``t_bucket`` to the closest owned timestep bucket.
utils/error_buffer.py:90
↓ 1 callersMethod_norm
(self, x)
wan_5b/modules/model.py:97
↓ 1 callersFunction_normalize_requested_vae_type
(value: str)
scripts/decode_lightvae_latents.py:83
↓ 1 callersFunction_parse_dtype
(dtype_name: str)
scripts/decode_lightvae_latents.py:153
↓ 1 callersFunction_parse_lightvae_pruning_rate
(value: Optional[str])
scripts/decode_lightvae_latents.py:95
↓ 1 callersMethod_pin_current_chunk
Mark the current chunk's buffer position as pinned for multi-shot sink. The pinned region REPLACES the original sink on the next rolling even
pipeline/self_forcing_training.py:393
↓ 1 callersMethod_prepare_model_for_timestep
r""" Prepares and returns the required model for the current timestep. Args: t (torch.Tensor): current ti
wan_5b/image2video.py:172
↓ 1 callersMethod_prepare_model_for_timestep
r""" Prepares and returns the required model for the current timestep. Args: t (torch.Tensor): current ti
wan_5b/text2video.py:169
↓ 1 callersMethod_prepare_teacher_forcing_mask
( device: torch.device | str, num_frames: int = 31, frame_seqlen: int = 880, n
wan_5b/modules/causal_model.py:1198
↓ 1 callersMethod_prepare_teacher_forcing_mask_natural
Teacher-Forcing attention mask for the *natural* interleaved layout produced directly by `all_to_all(scatter=head, gather=seq)`:
wan_5b/modules/causal_model.py:1275
↓ 1 callersMethod_relative_position_bucket
(self, rel_pos)
wan_5b/modules/t5.py:243
↓ 1 callersFunction_resolve_modules_to_not_convert
( model: nn.Module, filtered_modules: list[str] | None, )
utils/quant.py:90
↓ 1 callersMethod_resolve_shot_durations
(self, folder: Path, num_captions: int)
utils/dataset.py:233
↓ 1 callersFunction_resolve_torch_compile
(config)
inference_sp.py:104
↓ 1 callersFunction_resolve_torch_compile
(config)
inference.py:147
↓ 1 callersFunction_resolve_vae_paths
( *, ckpt_dir: Optional[str], vae_path: Optional[str], requested_vae_type: str, lightvae_p
scripts/decode_lightvae_latents.py:104
↓ 1 callersMethod_restore_attn_overrides
Restore model attention state saved by _apply_attn_overrides.
pipeline/self_forcing_training.py:339
↓ 1 callersMethod_run_generator_backward_simulation
On-policy generator via backward simulation (original path).
model/base.py:297
↓ 1 callersMethod_run_generator_off_policy
Off-policy generator: add noise to clean_latent at each timestep in denoising_step_list, randomly pick one, and run the generator for
model/base.py:193
↓ 1 callersMethod_sample_frames_from_video_ffmpeg
(self, video_path, num_frames, start_frame=0)
utils/dataset.py:696
↓ 1 callersMethod_sample_random_start
Sample a random (video_idx, start_frame) valid for the first segment, and from which we can complete ALL segments without wrapping to the star
utils/dataset.py:603
↓ 1 callersMethod_set_all_modules_global_sink_size
Override global_sink_size on all submodules; create the attribute if missing.
pipeline/causal_diffusion_inference.py:968
↓ 1 callersMethod_set_all_modules_global_sink_size
Override global_sink_size on all submodules; create the attribute if missing.
pipeline/self_forcing_training.py:384
↓ 1 callersMethod_set_all_modules_max_attention_size
Set max_attention_size on all submodules that define it. If local_attn_size_value == -1, use the model's global default (32760 for Wa
pipeline/causal_diffusion_inference.py:918
↓ 1 callersMethod_set_all_modules_max_attention_size
Set a unified upper bound for all submodules that contain the max_attention_size attribute. local_attn_size_value == -1 indicates glo
pipeline/self_forcing_training.py:744
↓ 1 callersMethod_set_all_modules_sink_size
Override sink_size on all submodules that define it.
pipeline/causal_diffusion_inference.py:954
↓ 1 callersMethod_set_all_modules_sink_size
Override sink_size on all submodules that define it.
pipeline/self_forcing_training.py:372
↓ 1 callersMethod_setup_visualizer
Initialize the inference pipeline for visualization on CPU, to be moved to GPU only when needed.
trainer/distillation.py:1336
↓ 1 callersFunction_split_complex_to_cos_sin
Convert complex128 freqs to (cos_f32, sin_f32) — once per cache entry.
utils/rope_triton.py:84
↓ 1 callersMethod_sync_batch_for_sequence_parallel
(self, batch, accumulation_step: int = 0)
trainer/diffusion.py:1077
↓ 1 callersFunction_t5
(name, encoder_only=False, decoder_only=False, return_tokenizer=False, tokeniz
wan_5b/modules/t5.py:413
↓ 1 callersFunction_torch_dtype_to_tl
(dtype: torch.dtype)
utils/nvfp4_kernel.py:34
↓ 1 callersFunction_torch_load
(path: str)
scripts/merge_lora_generator.py:25
↓ 1 callersMethod_uninstall_module
(module: torch.nn.Module)
utils/memory.py:43
↓ 1 callersMethod_update_cache_and_get_kv
(self, k_new, v_new, kv_cache, current_start, current_end, frame_seqlen)
wan_5b/modules/causal_model_sp_ulysses.py:231
↓ 1 callersFunction_video_vae
Autoencoder3d adapted from Stable Diffusion 1.x, 2.x and XL.
wan_5b/modules/vae2_1.py:587
↓ 1 callersMethod_visualize
Generate validation samples to monitor training progress.
trainer/distillation.py:1404
↓ 1 callersFunction_warn_for_te_config_mismatch
(model_quant_config: ModelQuantizationConfig)
utils/quant.py:137
↓ 1 callersMethodadd
(self, error_block, timestep_index, block_pos=None)
tests/test_i2v_teacher_forcing_context.py:55
↓ 1 callersFunctionall_gather
(tensor, group=None)
wan_5b/distributed/sp_training.py:164
↓ 1 callersFunctionapply_and_merge_lora
Wrap ``pipeline.generator.model`` with a LoRA adapter, load weights, and merge. The merged module ends up structurally identical to the original
utils/inference_utils.py:60
↓ 1 callersFunctionarray_code_gen
(arr: np.ndarray)
fouroversix/scripts/hadamard_code_gen.py:84
↓ 1 callersFunctionatomicMaxFloat
fouroversix/src/fouroversix/csrc/include/utils.h:332
↓ 1 callersFunctionbest_output_size
(w, h, dw, dh, expected_area)
wan_5b/utils/utils.py:136
↓ 1 callersFunctionblock_scaled_fp4_quantization_kernel
( x_block, x_amax_ptr, rbits_ptr, BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr,
fouroversix/src/fouroversix/quantize/triton/kernel.py:67
↓ 1 callersFunctionbuild_default_denoising_step_list
(sampling_steps, num_train_timesteps=1000, shift=1.0, include_zero=True)
model/base.py:16
↓ 1 callersMethodbuild_loss_mask
(self, batch, clean_latent, clean_latent_is_sharded)
wan_5b/distributed/sp_training.py:345
↓ 1 callersFunctionbuild_vae_5b
Return the 5B VAE wrapper requested by args.vae_type.
utils/wan_5b_wrapper.py:567
↓ 1 callersFunctioncanonicalize
(text, keep_punctuation_exact_string=None)
wan_5b/modules/tokenizers.py:24
↓ 1 callersMethodchunk_halo_meta
(self, *, sp_rank, total_latent_frames, total_raw_frames)
wan_5b/distributed/sp_training.py:405
↓ 1 callersMethodchunk_halo_metas
(self, *, total_latent_frames, total_raw_frames)
wan_5b/distributed/sp_training.py:433
↓ 1 callersMethodcleanup_old_checkpoints
Remove old checkpoints if the number exceeds max_checkpoints. Only the main process performs the actual deletion to avoid race condit
trainer/distillation.py:880
↓ 1 callersMethodcleanup_old_checkpoints
Remove old checkpoints if the number exceeds max_checkpoints. Only the main process performs the actual deletion to avoid race condit
trainer/diffusion.py:601
↓ 1 callersFunctioncli
( *, detach: bool, group_name: str | None, modal_gpu: str, **kwargs: dict[str, Any], )
fouroversix/scripts/ptq/__main__.py:47
↓ 1 callersFunctioncli
(**kwargs: dict[str, Any])
fouroversix/scripts/speedtest/quantize.py:99
↓ 1 callersFunctioncli
(**kwargs: dict[str, Any])
fouroversix/scripts/speedtest/matmul.py:84
↓ 1 callersFunctioncli
(**kwargs: dict[str, Any])
fouroversix/scripts/train/__main__.py:199
↓ 1 callersFunctioncompute_chunk_halo_metas
( *, total_latent_frames: int, total_raw_frames: int, sp_size: int, halo_latents: int,
scripts/compute_sp_vae_chunk_halo.py:46
↓ 1 callersMethodcompute_distribution_matching_loss
Compute the DMD loss (eq 7 in https://arxiv.org/abs/2311.18828). Input: - image_or_video: a tensor with shape [B, F, C, H
model/dmd.py:181
↓ 1 callersFunctioncompute_group_specs
Compute DP groups whose ranks each form a Ulysses SP group.
inference_sp.py:54
↓ 1 callersFunctionconfigure_generator_torch_compile
(pipeline, config, is_main_process)
inference_sp.py:176
↓ 1 callersFunctionconfigure_generator_torch_compile
(pipeline, config)
inference.py:229
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type the DPMSolver/DPMSolver++ algorithm needs. DPM-Solver is designed to discretize an
wan_5b/utils/fm_solvers.py:338
↓ 1 callersMethodconvert_model_output
r""" Convert the model output to the corresponding type the UniPC algorithm needs. Args: model_output (`torch.Tensor`):
wan_5b/utils/fm_solvers_unipc.py:281
↓ 1 callersFunctionconvert_to_channels_last_3d
(module)
utils/lightvae_5b_wrapper.py:153
↓ 1 callersMethodconvert_x0_to_noise
Convert the diffusion network's x0 prediction to noise predidction. x0: the predicted clean data with shape [B, C, H, W] xt:
utils/scheduler.py:26
← previousnext →301–400 of 963, ranked by callers