MCPcopy Create free account

hub / github.com/NVlabs/LongLive / functions

Functions963 in github.com/NVlabs/LongLive

↓ 2 callersFunctionbuild_model_quantization_config
(config, keep_master_weights: bool = False)
utils/nvfp4_checkpoint.py:55
↓ 2 callersFunctionclamp
fouroversix/src/fouroversix/csrc/include/utils.h:694
↓ 2 callersMethodclear_cache
Explicitly release large KV / cross-attention caches to free GPU memory. Safe to call between independent inference calls; caches wil
pipeline/causal_diffusion_inference.py:884
↓ 2 callersFunctionconfigure_module_call_torch_compile
( module, *, name: str, backend: str = "inductor", mode: str | None = "max-autotune-no-cud
utils/torch_compile_utils.py:86
↓ 2 callersMethodconfigure_torch_compile
( self, *, backend: str = "inductor", mode: str | None = "max-autotune-no-cuda
utils/wan_5b_wrapper.py:319
↓ 2 callersFunctioncount_conv3d
(model)
wan_5b/modules/vae2_1.py:470
↓ 2 callersFunctioncpu_state_dict
Return a detached CPU state dict suitable for torch.save.
utils/nvfp4_checkpoint.py:167
↓ 2 callersFunctioncycle
(dl)
utils/dataset.py:1031
↓ 2 callersMethoddecode
(self, z, scale)
wan_5b/modules/vae2_1.py:539
↓ 2 callersMethoddequantize_triton
Return a high-precision tensor with the dequantized values (Triton kernel).
fouroversix/src/fouroversix/quantize/quantized_tensor.py:216
↓ 2 callersFunctiondistributed_flex_attention
Distributed FlexAttention over SP-sharded heads/sequences. Inputs use the local SP layout [B, L_local, N_local, D]. The function gathers sequ
wan_5b/distributed/sp_training.py:181
↓ 2 callersFunctionfetch_image
(ele: dict[str, str | Image.Image], size_factor: int = IMAGE_FACTOR)
wan_5b/utils/qwen_vl_utils.py:85
↓ 2 callersMethodfind_latest_checkpoint
Find the latest checkpoint in the logdir.
trainer/distillation.py:831
↓ 2 callersMethodfind_latest_checkpoint
Find the latest checkpoint in the logdir.
trainer/diffusion.py:552
↓ 2 callersMethodforward
(self, x: torch.Tensor, first_chunk=False)
wan_5b/modules/vae2_2.py:389
↓ 2 callersMethodforward
(self, x)
wan_5b/modules/vae2_1.py:505
↓ 2 callersFunctionfp4_dequantize
Dequantizes FP4 packed tensor using per-block scaling factors. Args: packed_tensor (torch.Tensor): Packed uint8 tensor of shape (M, N//2)
utils/nvfp4_kernel.py:136
↓ 2 callersMethodfwdbwd_one_step
(self, batch, train_generator)
trainer/distillation.py:994
↓ 2 callersMethodgenerate
r""" Generates video frames from text prompt using diffusion process. Args: input_prompt (`str`): Text pr
wan_5b/text2video.py:203
↓ 2 callersMethodgenerate_and_sync_list
(self, num_blocks, num_denoising_steps, device)
pipeline/self_forcing_training.py:92
↓ 2 callersMethodget_calibrated_kwargs
Get the calibrated kwargs for the given model and scale rules. If this model has not yet been calibrated with these scale rules, an e
fouroversix/scripts/ptq/evaluators/evaluator.py:43
↓ 2 callersFunctionget_calibration_experiments
( model_name: str, activation_scale_rule: ScaleRule, weight_scale_rule: ScaleRule, db_session:
fouroversix/scripts/ptq/evaluators/smoothquant.py:196
↓ 2 callersMethodget_calibration_tasks
Get the kwargs for tasks that should be used to calibrate the given model for this PTQ method before running evaluation.
fouroversix/scripts/ptq/evaluators/evaluator.py:30
↓ 2 callersMethodget_module_config
Return the quantization configuration for a given module.
fouroversix/src/fouroversix/model/config.py:182
↓ 2 callersFunctionget_rht_matrix
Construct matrix used in random Hadamard transform.
fouroversix/src/fouroversix/quantize/utils.py:69
↓ 2 callersFunctionget_smoothquant_alpha
( model_name: str, activation_scale_rule: ScaleRule, weight_scale_rule: ScaleRule, session: Se
fouroversix/scripts/ptq/evaluators/smoothquant.py:216
↓ 2 callersFunctionget_sp_rank
()
wan_5b/distributed/sp_training.py:96
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
wan_5b/utils/fm_solvers.py:676
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
wan_5b/utils/fm_solvers_unipc.py:630
↓ 2 callersFunctioninit_sequence_parallel
Initialize sequence-parallel state for the current process.
wan_5b/distributed/sp_ulysses_inference.py:31
↓ 2 callersMethodinstall_model
(model: torch.nn.Module, **kwargs)
utils/memory.py:49
↓ 2 callersMethodis_static
Return True if the rule is static, False otherwise.
fouroversix/src/fouroversix/utils.py:124
↓ 2 callersMethodis_supported
Return True if the backend supports the given input and quantization configuration.
fouroversix/src/fouroversix/quantize/backend.py:22
↓ 2 callersFunctionlaunch_distributed_job
(backend: str = "nccl")
utils/distributed.py:75
↓ 2 callersFunctionmain
(output_dir: str | None)
fouroversix/scripts/generate_kernels.py:112
↓ 2 callersFunctionmasks_like
(tensor, zero=False, generator=None, p=0.2)
wan_5b/utils/utils.py:106
↓ 2 callersFunctionmerge_dict_list
(dict_list)
utils/misc.py:25
↓ 2 callersMethodoptimize
Optimize a model with SpinQuant.
fouroversix/scripts/ptq/evaluators/spinquant.py:66
↓ 2 callersFunctionpatchify
(x, patch_size)
wan_5b/modules/vae2_2.py:279
↓ 2 callersFunctionquantize_generator_model
(model, config, keep_master_weights, is_main_process)
inference_sp.py:117
↓ 2 callersFunctionquantize_generator_model
(model, config, keep_master_weights)
inference.py:164
↓ 2 callersMethodquantized_weight
Prepare this layer for post-training quantization by quantizing the weight, storing the quantized weight, and deleting the original w
fouroversix/src/fouroversix/model/modules/linear.py:309
↓ 2 callersMethodquantized_weight_transposed
(self)
fouroversix/src/fouroversix/model/modules/linear.py:322
↓ 2 callersMethodregister
Register a new type of quantized module. Args: high_precision_cls: (`type[nn.Module]`): The high precision module to be
fouroversix/src/fouroversix/model/quantize.py:43
↓ 2 callersFunctionrun_speedtest
Test speed on a B200 on Modal.
fouroversix/scripts/speedtest/quantize.py:19
↓ 2 callersFunctionrun_speedtest
Test speed on a B200 on Modal.
fouroversix/scripts/speedtest/matmul.py:19
↓ 2 callersMethodsample
(self, imgs, deterministic=False)
wan_5b/modules/vae2_2.py:845
↓ 2 callersMethodsample_global
Sample one entry uniformly from ALL buckets (legacy SVI E_img).
utils/error_buffer.py:180
↓ 2 callersMethodsave
(self)
trainer/distillation.py:916
↓ 2 callersFunctionsmart_nframes
calculate the number of frames for video used for model inputs. Args: ele (dict): a dict contains the configuration of video.
wan_5b/utils/qwen_vl_utils.py:133
↓ 2 callersFunctionsp_all_to_all
(tensor: torch.Tensor, scatter_dim: int, gather_dim: int)
wan_5b/distributed/sp_ulysses_inference.py:122
↓ 2 callersMethodstart
Start the evaluation coordinator.
fouroversix/scripts/ptq/coordinators/base.py:98
↓ 2 callersMethodstats
(self)
utils/error_buffer.py:208
↓ 2 callersMethodstats
(self)
tests/test_i2v_teacher_forcing_context.py:58
↓ 2 callersMethodtorch_dtype
Return the corresponding torch.dtype if one is available, or `None` otherwise.
fouroversix/src/fouroversix/utils.py:37
↓ 2 callersFunctiontrain
( *, batch_size: int, checkpoint_interval: int, checkpoint_keep_latest_k: int, checkpoint_
fouroversix/scripts/train/__main__.py:28
↓ 2 callersFunctionulysses_head_to_seq
Convert [B, S_total, N_local, D] to [B, S_local, N, D].
wan_5b/distributed/sp_ulysses_inference.py:152
↓ 2 callersFunctionumt5_xxl
(**kwargs)
wan_5b/modules/t5.py:454
↓ 2 callersMethodunpatchify
r""" Reconstruct video tensors from patch embeddings. Args: x (List[Tensor]): List of patchified features
wan_5b/modules/causal_model.py:1835
↓ 2 callersFunctionwhitespace_clean
(text)
wan_5b/modules/tokenizers.py:18
↓ 1 callersMethod__init__
( self, dim=160, dec_dim=256, z_dim=48, dim_mult=[1, 2, 4, 4],
utils/lightvae_5b_wrapper.py:162
↓ 1 callersMethod__init__
(self, args, device)
model/base.py:26
↓ 1 callersMethod__init__
Initialize the FourOverSixGptOssMLP layer. Args: module (GptOssMLP): The high-precision module that this quantized layer
fouroversix/src/fouroversix/model/modules/gpt_oss.py:25
↓ 1 callersMethod__init__
(self)
tests/test_i2v_teacher_forcing_context.py:12
↓ 1 callersMethod__init__
( self, model_name="Wan2.2-TI2V-5B", timestep_shift=5.0, local_attn_size=-1,
pipeline/causal_diffusion_inference_sp.py:32
↓ 1 callersMethod_apply_attn_overrides
Save current model attention state and apply pipeline overrides.
pipeline/self_forcing_training.py:312
↓ 1 callersMethod_apply_shot_durations
(self, raw_captions, shot_durations)
utils/dataset.py:246
↓ 1 callersMethod_autocast_context
(self)
utils/quant.py:324
↓ 1 callersMethod_bidirectional_backward_simulation
Backward simulation for bidirectional (non-causal) generator. All frames are processed at once at each denoising step — no KV cache,
model/base.py:408
↓ 1 callersMethod_build_default_denoising_step_list
(self, sampling_steps)
pipeline/self_forcing_training.py:82
↓ 1 callersFunction_build_te_recipe
(module_config: Any, te_recipe_kwargs: dict[str, Any] | None = None)
utils/quant.py:171
↓ 1 callersMethod_call_model
(self, *args, **kwargs)
pipeline/causal_diffusion_inference_sp.py:114
↓ 1 callersMethod_can_complete_all_segments_without_wrap
Check if from (start_video_idx, start_frame) we can sample all segments without ever wrapping to the beginning (i.e. only use this video and l
utils/dataset.py:552
↓ 1 callersMethod_check_folder_has_enough_frames
Check if a folder has enough total frames across all videos to complete all segments. This is a lenient check: we verify that the tot
utils/dataset.py:451
↓ 1 callersMethod_clean
(self, text)
wan_5b/modules/tokenizers.py:75
↓ 1 callersMethod_compute_kl_grad
Compute the KL grad (eq 7 in https://arxiv.org/abs/2311.18828). Input: - noisy_image_or_video: a tensor with shape [B, F,
model/dmd.py:77
↓ 1 callersMethod_configure_model
Configures a model object. This includes setting evaluation modes, applying distributed parallel strategy, and handling device placem
wan_5b/textimage2video.py:118
↓ 1 callersMethod_consistency_backward_simulation
Simulate the generator's input from noise to avoid training/inference mismatch. See Sec 4.5 of the DMD2 paper (https://arxiv.org/abs/
model/base.py:375
↓ 1 callersMethod_convert_flow_pred_to_x0
Convert flow matching's prediction to x0 prediction. flow_pred: the prediction with shape [B, C, H, W] xt: the input noisy da
utils/wan_5b_wrapper.py:404
↓ 1 callersMethod_convert_flow_pred_to_x0
( self, flow_pred: torch.Tensor, xt: torch.Tensor, timestep: torch.Tensor )
pipeline/causal_diffusion_inference_sp.py:119
↓ 1 callersMethod_convert_x0_to_flow_pred
Convert x0 prediction to flow matching's prediction. x0_pred: the x0 prediction with shape [B, C, H, W] xt: the input noisy d
utils/wan_5b_wrapper.py:431
↓ 1 callersFunction_dequantize_kv_cache_fused_cuda
(kv_list, max_blocks, num_heads, block_token_size, dtype)
utils/quant.py:692
↓ 1 callersFunction_dtype_to_code
(dtype: torch.dtype)
utils/kernel/kv_dequant.py:18
↓ 1 callersMethod_effective_sink
(self, kv_cache, frame_seqlen)
wan_5b/modules/causal_model_sp_ulysses.py:212
↓ 1 callersMethod_even_durations
(self, num_shots: int)
utils/dataset.py:241
↓ 1 callersFunction_expected_inference_samples
(config)
inference_sp.py:99
↓ 1 callersFunction_expected_inference_samples
(config)
inference.py:140
↓ 1 callersMethod_forward
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
wan_5b/modules/model.py:443
↓ 1 callersMethod_forward_chunked
Split evenly into 2 chunks to avoid int32 overflow in CUDA FP4 quantize kernel.
fouroversix/src/fouroversix/model/modules/linear.py:346
↓ 1 callersMethod_forward_inference
r""" Run the diffusion model with kv caching. See Algorithm 2 of CausVid paper https://arxiv.org/abs/2412.07772 for details. T
wan_5b/modules/causal_model.py:1485
↓ 1 callersMethod_forward_no_cache
(self, q, k, v, grid_sizes, freqs, t_scale, method, original_seq_len)
wan_5b/modules/causal_model_sp_ulysses.py:147
↓ 1 callersMethod_forward_train
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
wan_5b/modules/causal_model.py:1656
↓ 1 callersMethod_forward_with_cache
(self, q, k, v, grid_sizes, freqs, kv_cache, current_start, cache_start, t_scale,
wan_5b/modules/causal_model_sp_ulysses.py:168
↓ 1 callersMethod_generate_bidirectional
Full-sequence bidirectional multi-step denoising for visualization.
trainer/distillation.py:1366
↓ 1 callersMethod_get_caption_folder
Return the caption directory path for a given folder (sample).
utils/dataset.py:403
↓ 1 callersFunction_get_compiled_flex_attention
()
wan_5b/distributed/sp_training.py:63
↓ 1 callersFunction_get_d_quant
(head_dim: int, ratio: float = QK_QUANT_RATIO)
wan_5b/modules/causal_model_sp_ulysses.py:64
↓ 1 callersFunction_get_default_filtered_modules
(filter_profile: str | None)
utils/quant.py:119
↓ 1 callersMethod_get_dir_item
(self, idx)
utils/dataset.py:179
↓ 1 callersFunction_get_te_dpa
Cached TE DotProductAttention instance keyed by attention shape + masking. Constructed lazily and reused across forward calls. TE's DPA object
wan_5b/modules/attention.py:53
← previousnext →201–300 of 963, ranked by callers