MCPcopy Create free account

hub / github.com/NVlabs/LongLive / functions

Functions963 in github.com/NVlabs/LongLive

↓ 1 callersMethodcritic_loss
Generate image/videos from noise and train the critic with generated samples. The noisy input to the generator is backward simulated.
model/dmd.py:345
↓ 1 callersMethodcuda_id
ID for the rule in the CUDA implementation.
fouroversix/src/fouroversix/utils.py:113
↓ 1 callersMethoddecide_system_prompt
(self, tar_lang="zh", prompt=None)
wan_5b/utils/prompt_extend.py:84
↓ 1 callersMethoddecode
(self, z, scale)
utils/lightvae_5b_wrapper.py:236
↓ 1 callersFunctiondecode_latent_to_video
Decode latent to pixel video. Args: vae: VAE wrapper exposing `decode_to_pixel(latent)` latent: shape (batch, T, C, H, W) or
scripts/decode_lightvae_latents.py:61
↓ 1 callersFunctiondecode_latent_to_video
Decode latent to pixel video; same logic as pipeline/causal_diffusion_inference.py. Args: vae: Wan2.2-TI2V-5B VAE wrapper la
scripts/decode_vae_latents.py:52
↓ 1 callersFunctiondequantize_kv_cache_fp4
Dequantize multiple AR KV-cache chunks with one CUDA launch.
utils/kernel/kv_dequant.py:53
↓ 1 callersFunctiondistributed_attention
Performs distributed attention based on DeepSpeed Ulysses attention mechanism. please refer to https://arxiv.org/pdf/2309.14509 Args:
wan_5b/distributed/ulysses.py:11
↓ 1 callersMethoddpm_solver_first_order_update
One step for the first-order DPMSolver (equivalent to DDIM). Args: model_output (`torch.Tensor`): The dir
wan_5b/utils/fm_solvers.py:412
↓ 1 callersMethodencode
(self, x, scale)
utils/lightvae_5b_wrapper.py:207
↓ 1 callersMethodencode_raw_video_latents
(self, batch, *, batch_size)
wan_5b/distributed/sp_training.py:529
↓ 1 callersMethodevaluate
Evaluate a model with a given PTQ method.
fouroversix/scripts/ptq/coordinators/local.py:22
↓ 1 callersMethodevaluate
Evaluate a quantized model with lm-eval.
fouroversix/scripts/ptq/evaluators/evaluator.py:59
↓ 1 callersMethodextend_with_img
(self, prompt, system_prompt, image=No
wan_5b/utils/prompt_extend.py:72
↓ 1 callersFunctionextract_vision_info
( conversations: list[dict] | list[list[dict]])
wan_5b/utils/qwen_vl_utils.py:328
↓ 1 callersFunctionfetch_video
( ele: dict, image_factor: int = IMAGE_FACTOR)
wan_5b/utils/qwen_vl_utils.py:274
↓ 1 callersMethodforward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, L1, C]
wan_5b/modules/model.py:300
↓ 1 callersMethodfp4_matmul
Perform a matrix multiplication (`a @ b.T`) between two quantized tensors using the backend.
fouroversix/src/fouroversix/matmul/backend.py:48
↓ 1 callersFunctiongather_forward
(input, dim, group=None)
wan_5b/distributed/sp_training.py:174
↓ 1 callersFunctiongemm
fouroversix/src/fouroversix/csrc/include/utils.h:152
↓ 1 callersMethodgenerate_video
(self, pipeline, num_frames, prompts, image=None, latents_only=False)
trainer/distillation.py:1107
↓ 1 callersMethodgenerate_video
(self, pipeline, prompts, image=None, use_ema=False)
trainer/diffusion.py:1016
↓ 1 callersMethodget_all_checkpoints
Get all checkpoints in the logdir sorted by step number.
trainer/distillation.py:857
↓ 1 callersMethodget_all_checkpoints
Get all checkpoints in the logdir sorted by step number.
trainer/diffusion.py:578
↓ 1 callersFunctionget_all_kernels
()
fouroversix/scripts/generate_kernels.py:86
↓ 1 callersMethodget_cls
Get the quantized module for a given high-precision module.
fouroversix/src/fouroversix/model/quantize.py:27
↓ 1 callersFunctionget_cuda_archs
()
fouroversix/setup.py:28
↓ 1 callersFunctionget_cuda_bare_metal_version
()
fouroversix/setup.py:32
↓ 1 callersFunctionget_cuda_gencodes
Add -gencode flags based on nvcc capabilities. Uses the following rules: - sm_100/120 on CUDA >= 12.8 - Use 100f on CUDA >= 12.9
fouroversix/setup.py:52
↓ 1 callersFunctionget_data_parallel_group
()
wan_5b/distributed/sp_training.py:92
↓ 1 callersFunctionget_denoising_loss
(loss_type: str)
utils/loss.py:97
↓ 1 callersFunctionget_hadamard_matrix
Construct a 16x16 Hadamard matrix.
fouroversix/src/fouroversix/quantize/utils.py:33
↓ 1 callersFunctionget_model_size
(model_name: str | None)
fouroversix/scripts/ptq/utils.py:24
↓ 1 callersFunctionget_no_random_sign_vector
Non-random sign vector for Hadamard transform.
fouroversix/src/fouroversix/quantize/utils.py:14
↓ 1 callersFunctionget_platform
()
fouroversix/setup.py:94
↓ 1 callersMethodget_remote_url
Get the remote URL of the submodule.
fouroversix/scripts/resources.py:79
↓ 1 callersMethodget_scheduler
(self)
pipeline/causal_diffusion_inference_sp.py:76
↓ 1 callersFunctionget_sp_world_size
()
wan_5b/distributed/sp_training.py:102
↓ 1 callersFunctionget_vae
Return the Wan2.2-TI2V-5B VAE wrapper.
scripts/decode_vae_latents.py:46
↓ 1 callersFunctionget_video_reader_backend
()
wan_5b/utils/qwen_vl_utils.py:261
↓ 1 callersMethodget_weight_conversions
Get the weight conversion for a given model type determined by the model config type.
fouroversix/src/fouroversix/weight_conversions/conversions.py:33
↓ 1 callersFunctionget_wgrad_sign_vector
Hard-coded random signs for Hadamard transform. https://xkcd.com/221/
fouroversix/src/fouroversix/quantize/utils.py:19
↓ 1 callersFunctionget_wheel_url
()
fouroversix/setup.py:107
↓ 1 callersMethodhas_untracked_or_unstaged_changes
Check if the submodule has untracked or unstaged changes.
fouroversix/scripts/resources.py:52
↓ 1 callersMethodi2v
r""" Generates video frames from input image and text prompt using diffusion process. Args: input_prompt (`str`):
wan_5b/textimage2video.py:413
↓ 1 callersFunctioninfer_lightvae_pruning_rate_from_ckpt
(vae_path, full_decoder_conv1_out=1024)
utils/lightvae_5b_wrapper.py:117
↓ 1 callersMethodinference_with_trajectory
( self, noise: torch.Tensor, initial_latent: Optional[torch.Tensor] = None
pipeline/self_forcing_training.py:288
↓ 1 callersFunctioninit_distributed
Initialize distributed process group if launched via torchrun.
scripts/decode_lightvae_latents.py:49
↓ 1 callersFunctioninit_distributed
Initialize distributed process group if launched via torchrun. Returns (rank, world_size).
scripts/decode_vae_latents.py:34
↓ 1 callersMethodinit_weights
r""" Initialize model parameters using Xavier initialization.
wan_5b/modules/causal_model.py:1860
↓ 1 callersMethodinit_weights
(self)
wan_5b/modules/causal_model_sp_ulysses.py:591
↓ 1 callersMethodinit_weights
r""" Initialize model parameters using Xavier initialization.
wan_5b/modules/model.py:569
↓ 1 callersMethodis_available
Return True if the backend is available on the current machine.
fouroversix/src/fouroversix/quantize/backend.py:15
↓ 1 callersFunctionis_decord_available
()
wan_5b/utils/qwen_vl_utils.py:215
↓ 1 callersFunctionlatent_range_to_raw_window
Map a latent range to the raw-frame window needed by Wan VAE encode.
scripts/compute_sp_vae_chunk_halo.py:31
↓ 1 callersMethodlatent_range_to_raw_window
(self, latent_start, latent_end)
wan_5b/distributed/sp_training.py:389
↓ 1 callersFunctionload_generator_checkpoint
Load a LongLive generator checkpoint into ``generator``.
utils/inference_utils.py:41
↓ 1 callersFunctionlocal_hf
()
fouroversix/scripts/ptq/evaluators/utils.py:99
↓ 1 callersMethodlocal_i2v_initial_latent
(self, initial_latent)
wan_5b/distributed/sp_training.py:283
↓ 1 callersFunctionmain
()
train.py:12
↓ 1 callersFunctionmain
()
fouroversix/scripts/hadamard_code_gen.py:98
↓ 1 callersFunctionmain
()
scripts/merge_lora_generator.py:52
↓ 1 callersFunctionmain
()
scripts/decode_lightvae_latents.py:168
↓ 1 callersFunctionmain
()
scripts/compute_sp_vae_chunk_halo.py:104
↓ 1 callersFunctionmain
()
scripts/decode_vae_latents.py:72
↓ 1 callersFunctionmain
()
scripts/save_merged_nvfp4_generator.py:166
↓ 1 callersFunctionmaterialize_quantized_generator
(model, device, materialize_fn, stage_desc, is_main_process)
inference_sp.py:166
↓ 1 callersFunctionmaterialize_quantized_generator
(model, device, materialize_fn, stage_desc)
inference.py:215
↓ 1 callersMethodmultistep_dpm_solver_second_order_update
One step for the second-order multistep DPMSolver. Args: model_output_list (`List[torch.Tensor]`): The di
wan_5b/utils/fm_solvers.py:483
↓ 1 callersMethodmultistep_dpm_solver_third_order_update
One step for the third-order multistep DPMSolver. Args: model_output_list (`List[torch.Tensor]`): The dir
wan_5b/utils/fm_solvers.py:593
↓ 1 callersMethodmultistep_uni_c_bh_update
One step for the UniC (B(h) version). Args: this_model_output (`torch.Tensor`): The model outputs at `x_
wan_5b/utils/fm_solvers_unipc.py:488
↓ 1 callersMethodmultistep_uni_p_bh_update
One step for the UniP (B(h) version). Alternatively, `self.solver_p` is used if is specified. Args: model_output (`torch
wan_5b/utils/fm_solvers_unipc.py:352
↓ 1 callersFunctionnvfp4_fouroversix_quantization_kernel
( # noqa: C901, PLR0915 x_block, x_amax_ptr, rbits_ptr, BLOCK_SIZE_M: tl.constexpr, BLOCK
fouroversix/src/fouroversix/quantize/triton/kernel.py:204
↓ 1 callersFunctionpack_unpacked_fp4
(x: torch.Tensor)
fouroversix/src/fouroversix/quantize/pytorch/reference.py:66
↓ 1 callersFunctionparse_args
()
scripts/merge_lora_generator.py:41
↓ 1 callersFunctionparse_args
()
scripts/compute_sp_vae_chunk_halo.py:93
↓ 1 callersFunctionparse_args
()
scripts/save_merged_nvfp4_generator.py:144
↓ 1 callersMethodpartition_loss_mask
(self, loss_mask, *, already_sharded=False)
wan_5b/distributed/sp_training.py:378
↓ 1 callersMethodpartition_training_inputs
( self, *, image_or_video_shape, clean_latent=None, conditional_dict=N
wan_5b/distributed/sp_training.py:292
↓ 1 callersFunctionplace_vae_for_streaming
Move ``pipeline.vae`` to ``config.vae_device`` for streaming-pipeline decode. Only acts when both ``streaming_vae`` and ``vae_device`` are set; o
utils/inference_utils.py:113
↓ 1 callersMethodpost_init
A few custom initialization steps that should be called after the object is created. Currently, the only one we have is to bind a few
utils/wan_5b_wrapper.py:552
↓ 1 callersFunctionquantize_bf16_to_unpacked_fp4
(x: torch.Tensor)
fouroversix/src/fouroversix/quantize/pytorch/reference.py:37
↓ 1 callersMethodquantize_model
Quantize a model.
fouroversix/scripts/ptq/evaluators/evaluator.py:56
↓ 1 callersFunctionquantize_model_for_transformer_engine_nvfp4
Replace eligible modules with TransformerEngine NVFP4 wrappers.
utils/nvfp4_checkpoint.py:102
↓ 1 callersFunctionquantize_model_with_optional_te
Quantize a model with FourOverSix by default, or replace `nn.Linear` with TransformerEngine wrappers when `use_transformer_engine=True`.
utils/quant.py:350
↓ 1 callersFunctionquantize_to_fp4
( x: torch.Tensor, x_amax: torch.Tensor | None = None, had: torch.Tensor | None = None, *,
fouroversix/src/fouroversix/quantize/triton/kernel.py:545
↓ 1 callersFunctionquantize_to_fp4
( x: torch.Tensor, x_amax: torch.Tensor | None = None, had: torch.Tensor | None = None, *,
fouroversix/src/fouroversix/quantize/pytorch/reference.py:242
↓ 1 callersFunctionquantize_to_fp4
( x: torch.Tensor, is_nvfp4: bool, # noqa: FBT001 is_rtn: bool, # noqa: FBT001
fouroversix/src/fouroversix/quantize/cuda/ops.py:4
↓ 1 callersMethodquantize_to_fp4
Quantize a tensor to FP4 using the backend. Args: x (torch.Tensor): The input tensor to quantize. config (Qu
fouroversix/src/fouroversix/quantize/backend.py:51
↓ 1 callersFunctionquantize_to_mxfp4
( x_scale_blocks: torch.Tensor, *, scale_rule: ScaleRule = ScaleRule.mse, )
fouroversix/src/fouroversix/quantize/pytorch/reference.py:90
↓ 1 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_ori.py:227
↓ 1 callersMethodquantized_weights
Return quantized parameters as QuantizedTensor.
fouroversix/src/fouroversix/model/modules/gpt_oss.py:344
↓ 1 callersMethodquantized_weights
Return quantized parameters as QuantizedTensor.
fouroversix/src/fouroversix/model/modules/qwen.py:275
↓ 1 callersFunctionrand_name
(length=8, suffix='')
wan_5b/utils/utils.py:15
↓ 1 callersMethodreparameterize
(self, mu, log_var)
wan_5b/modules/vae2_1.py:565
↓ 1 callersFunctionreset_sp_comm_stats
()
wan_5b/distributed/sp_ulysses_inference.py:82
↓ 1 callersFunctionrope_apply_triton
Apply rotary embedding via Triton kernel. iter-46: when `seq_len < x.size(0)`, the kernel rotates the first `seq_len` rows and copies through
utils/rope_triton.py:94
↓ 1 callersMethodrun_calibration_tasks
Run any tasks that should be used to calibrate models for a given PTQ method and set of parameters before running evaluation.
fouroversix/scripts/ptq/coordinators/local.py:38
↓ 1 callersMethodrun_calibration_tasks
Run any tasks that should be used to calibrate models for a given PTQ method and set of parameters before running evaluation.
fouroversix/scripts/ptq/coordinators/modal.py:40
↓ 1 callersMethodsample_pos_any_t
For 2D buffers: sample at the given position, with random timestep. This is the natural choice for context (E_img) injection — the clean
utils/error_buffer.py:158
← previousnext →401–500 of 963, ranked by callers