MCPcopy Create free account

hub / github.com/NVlabs/LongLive / functions

Functions963 in github.com/NVlabs/LongLive

↓ 310 callersMethodto
(self, device=None, dtype=None)
utils/lightvae_5b_wrapper.py:390
↓ 45 callersMethodload_state_dict
(self, sd)
utils/distributed.py:132
↓ 43 callersFunctionsection_get
Read a grouped config value, falling back to legacy flat names.
utils/config.py:58
↓ 31 callersMethodblock_size
Return the block size if this a block-scaled format, or `None` otherwise.
fouroversix/src/fouroversix/utils.py:21
↓ 28 callersFunctionquantize_to_fp4
Quantize a tensor to FP4. ## Sample Code ### With Four Over Six ```python x = torch.tensor(1024, 1024, dtype=torch.bfloat16, d
fouroversix/src/fouroversix/quantize/frontend.py:19
↓ 26 callersMethoddevice
(self)
utils/wan_5b_wrapper.py:39
↓ 22 callersMethodeval
(self)
utils/lightvae_5b_wrapper.py:400
↓ 22 callersMethodupdate
(self, fsdp_module)
utils/distributed.py:117
↓ 19 callersMethoddevice
(self)
wan_5b/distributed/sp_training.py:251
↓ 17 callersMethodis_available
Return True if the backend is available on the current machine.
fouroversix/src/fouroversix/matmul/backend.py:13
↓ 17 callersFunctionis_sp_enabled
()
wan_5b/distributed/sp_ulysses_inference.py:67
↓ 16 callersMethodextend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
wan_5b/utils/prompt_extend.py:81
↓ 15 callersFunction_overwrite_i2v_context
( image_or_video: torch.Tensor, initial_latent: torch.Tensor | None, context_frames: int, )
utils/i2v_conditioning.py:37
↓ 13 callersMethodrun
fouroversix/src/fouroversix/csrc/include/utils.h:125
↓ 11 callersMethod__init__
( self, in_channels: int, out_channels: int, factor_t, factor_s=1,
wan_5b/modules/vae2_2.py:371
↓ 11 callersFunctionfp4_matmul
Perform a matrix multiplication (`a @ b.T`) between two quantized tensors. ## Sample Code Each tensor may be provided in either high or
fouroversix/src/fouroversix/matmul/frontend.py:14
↓ 11 callersFunctionget_image
( # noqa: C901, PLR0912 dependencies: list[Dependency] | None = None, *, cuda_version: str = "12.
fouroversix/scripts/resources.py:188
↓ 11 callersMethodstate_dict
(self)
utils/distributed.py:127
↓ 10 callersMethod_get_video_info
Get video information without loading frames (cached).
utils/dataset.py:477
↓ 10 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
wan_5b/utils/fm_solvers.py:330
↓ 10 callersMethodmax_allowed_e2m1_value
Return the maximum allowed E2M1 value for the rule.
fouroversix/src/fouroversix/utils.py:128
↓ 9 callersMethod_sample_failure
(reason)
utils/dataset.py:747
↓ 9 callersFunctioncausal_rope_apply
(x, grid_sizes, freqs, start_frame=0, t_scale=1.0, method="linear", original_seq_len=Non
wan_5b/modules/causal_model.py:90
↓ 9 callersFunctionget_sp_world_size
()
wan_5b/distributed/sp_ulysses_inference.py:59
↓ 9 callersFunctionrope_params
(max_seq_len, dim, theta=10000)
wan_5b/modules/model.py:29
↓ 9 callersMethodsave
(self)
trainer/diffusion.py:637
↓ 9 callersMethodscale_dtype
Return the scale dtype if this a block-scaled format, or `None` otherwise.
fouroversix/src/fouroversix/utils.py:29
↓ 8 callersMethod__init__
(self, vocab_size, dim, dim_attn, dim_ffn,
wan_5b/modules/t5.py:372
↓ 8 callersFunction_set_once
(config, key, value, source)
utils/config.py:47
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
wan_5b/utils/fm_solvers_unipc.py:274
↓ 8 callersMethodadd_noise
Diffusion forward corruption process. Input: - clean_latent: the clean latent with shape [B, C, H, W] - noise
utils/scheduler.py:12
↓ 8 callersMethodclear_cache
(self)
wan_5b/modules/vae2_2.py:852
↓ 8 callersMethodclear_cache
(self)
utils/lightvae_5b_wrapper.py:300
↓ 8 callersMethodencode
(self, x, scale)
wan_5b/modules/vae2_2.py:782
↓ 8 callersMethodencode_to_latent
(self, pixel: torch.Tensor)
utils/wan_5b_wrapper.py:169
↓ 8 callersMethodmax_allowed_e4m3_value
Return the maximum allowed E4M3 value for the rule.
fouroversix/src/fouroversix/utils.py:132
↓ 8 callersFunctionquantize_model_with_filter
Quantize model with FourOverSix and optionally skip selected modules. `filtered_modules` supports: - Exact module names, e.g. "head.head
utils/quant.py:585
↓ 8 callersFunctionrope_apply
(x, grid_sizes, freqs, t_scale=1.0, method="linear", original_seq_len=None, temporal_offset=0.0
wan_5b/modules/model.py:46
↓ 8 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
wan_5b/utils/fm_solvers.py:226
↓ 8 callersFunctionsinusoidal_embedding_1d
(dim, position)
wan_5b/modules/model.py:15
↓ 8 callersFunctionulysses_seq_to_head
Convert [B, S_local, N, D] to [B, S_total, N_local, D].
wan_5b/distributed/sp_ulysses_inference.py:147
↓ 7 callersMethod__init__
(self, dim=128, z_dim=4, dim_mult=[1, 2, 4, 4],
wan_5b/modules/vae2_1.py:480
↓ 7 callersMethoddecode
(self, z, scale)
wan_5b/modules/vae2_2.py:811
↓ 7 callersMethodenabled
(self)
wan_5b/distributed/sp_training.py:270
↓ 7 callersFunctionfrom_blocked
(a: torch.Tensor, orig_shape: tuple[int, int])
fouroversix/src/fouroversix/quantize/quantized_tensor.py:10
↓ 7 callersMethodget_weight_config
Return the quantization configuration for the weight tensors.
fouroversix/src/fouroversix/model/config.py:115
↓ 7 callersFunctionget_world_size
()
wan_5b/distributed/util.py:36
↓ 7 callersFunctionset_seed
Helper function for reproducible behavior to set the seed in `random`, `numpy`, `torch`. Args: seed (`int`): The seed to
utils/misc.py:6
↓ 6 callersFunction_map_resnet_tail
(tail)
utils/lightvae_5b_wrapper.py:32
↓ 6 callersFunction_zero_i2v_context_timestep
( timestep: torch.Tensor, context_frames: int, )
utils/i2v_conditioning.py:52
↓ 6 callersFunctionadd_submodule
(img: modal.Image, submodule: Submodule)
fouroversix/scripts/resources.py:114
↓ 6 callersFunctioncopy
fouroversix/src/fouroversix/csrc/include/utils.h:296
↓ 6 callersFunctioncopy_quantized_into
In-place copy a QuantizedTensor's data into a pre-allocated slot. Keeps the slot's `values`/`scale_factors`/`amax` buffers persistent (their
utils/quant.py:783
↓ 6 callersFunctionfsdp_wrap
(module, sharding_strategy="full", mixed_precision=False, wrap_strategy="size", min_num_params=int(5e7), trans
utils/distributed.py:23
↓ 6 callersFunctionget_cuda_free_memory_gb
(device=None)
utils/memory.py:72
↓ 6 callersMethodget_install_path
Get the path where this submodule will be installed in the Modal image.
fouroversix/scripts/resources.py:71
↓ 6 callersMethodget_session
Get an SQLAlchemy session for the SQLite database.
fouroversix/scripts/ptq/coordinators/base.py:14
↓ 6 callersFunctionget_sp_rank
()
wan_5b/distributed/sp_ulysses_inference.py:63
↓ 6 callersFunctionhalf
(x)
wan_5b/modules/attention.py:119
↓ 6 callersMethodis_supported
Return True if the backend supports the given inputs and output data type.
fouroversix/src/fouroversix/matmul/backend.py:20
↓ 6 callersFunctionnormalize_config
Expand grouped release configs into the flat runtime schema. The training and inference code historically reads fields such as ``config.batch
utils/config.py:72
↓ 6 callersFunctionsp_rope_apply
x: [B, L, N, C]. grid_sizes: [B, 3]. freqs: [M, C // 2].
wan_5b/distributed/sequence_parallel.py:32
↓ 6 callersFunctiontest
(method, prompt, model_name, task, image=None,
wan_5b/utils/prompt_extend.py:441
↓ 5 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
wan_5b/modules/model.py:285
↓ 5 callersMethod_can_sample_from_position
Check if we can sample num_frames starting from start_frame. Returns True if we can sample num_frames without exceeding video bounds.
utils/dataset.py:533
↓ 5 callersMethod_clean_param_name
Remove FSDP wrapper prefixes from parameter names.
utils/distributed.py:102
↓ 5 callersMethod_collect_local_items
Same item-list format as ``_gather_errors_for_buffer`` but with no collective — used outside the warmup window or when distributed is off.
model/diffusion.py:539
↓ 5 callersFunction_log_once
(message: str)
utils/torch_compile_utils.py:18
↓ 5 callersFunction_world_size
(group=None)
wan_5b/distributed/sp_training.py:114
↓ 5 callersFunctionclean_fsdp_state_dict_keys
Remove FSDP wrapper prefixes used by some EMA checkpoints.
utils/nvfp4_checkpoint.py:50
↓ 5 callersFunctionconfigure_lora_for_model
Configure LoRA for a WanDiffusionWrapper model Args: transformer: The transformer model to apply LoRA to model_name: 'generat
utils/lora_utils.py:19
↓ 5 callersMethodconvert
fouroversix/src/fouroversix/csrc/include/utils.h:351
↓ 5 callersMethoddecode_to_pixel
(self, latent: torch.Tensor, use_cache: bool = False)
utils/wan_5b_wrapper.py:186
↓ 5 callersFunctionflash_attention
q: [B, Lq, Nq, C1]. k: [B, Lk, Nk, C1]. v: [B, Lk, Nk, C2]. Nq must be divisible by Nk. q_lens
wan_5b/modules/attention.py:84
↓ 5 callersFunctionfp16_clamp
(x)
wan_5b/modules/t5.py:20
↓ 5 callersMethodget_activation_config
Return the quantization configuration for the activation tensors.
fouroversix/src/fouroversix/model/config.py:96
↓ 5 callersFunctionget_evaluator
Get the evaluator class for the given PTQ method.
fouroversix/scripts/ptq/evaluators/__init__.py:17
↓ 5 callersFunctionget_sampling_sigmas
(sampling_steps, shift)
wan_5b/utils/fm_solvers.py:24
↓ 5 callersFunctionquantize_model
( model: nn.Module, config: ModelQuantizationConfig, **kwargs: dict[str, Any], )
fouroversix/src/fouroversix/model/quantize.py:101
↓ 5 callersFunctionquantize_model_for_fouroversix_nvfp4
Replace eligible modules with FourOverSix NVFP4 modules using the runtime config.
utils/nvfp4_checkpoint.py:86
↓ 5 callersFunctionretrieve_timesteps
( scheduler, num_inference_steps=None, device=None, timesteps=None, sigmas=None, **kwa
wan_5b/utils/fm_solvers.py:31
↓ 5 callersMethodstep
(self, model_output, timestep, sample, to_final=False)
utils/scheduler.py:143
↓ 5 callersFunctionunwrap_generator_state_dict
Extract the generator state dict from common LongLive checkpoint layouts.
utils/nvfp4_checkpoint.py:38
↓ 4 callersMethod__init__
(self, name: str)
wan_5b/modules/causal_model_sp_ulysses.py:52
↓ 4 callersMethod_call_model
(self, *args, **kwargs)
utils/wan_5b_wrapper.py:343
↓ 4 callersMethod_chunk_tensor
(self, tensor, dim)
wan_5b/distributed/sp_training.py:280
↓ 4 callersFunction_config_bool
(value, default=False)
inference_sp.py:91
↓ 4 callersFunction_config_bool
(value, default=False)
inference.py:132
↓ 4 callersFunction_get_i2v_context_frames
( image_or_video: torch.Tensor, initial_latent: torch.Tensor | None, )
utils/i2v_conditioning.py:4
↓ 4 callersMethod_get_timestep
Randomly generate a timestep tensor based on the generator's task type. It uniformly samples a timestep from the range [min_timestep,
model/base.py:94
↓ 4 callersFunction_model_kw
(model_kwargs, key, default=None)
pipeline/causal_diffusion_inference_sp.py:23
↓ 4 callersMethodadd
Store a single block error into the matching bucket. Args: error_block: (block_size, C, H, W) tensor timestep_index:
utils/error_buffer.py:111
↓ 4 callersFunctionall_to_all
(x, scatter_dim, gather_dim, group=None, **kwargs)
wan_5b/distributed/sp_training.py:128
↓ 4 callersFunctionall_to_all_with_grad
(x, scatter_dim, gather_dim, group=None)
wan_5b/distributed/sp_training.py:157
↓ 4 callersFunctionattention
( q, k, v, q_lens=None, k_lens=None, dropout_p=0., softmax_scale=None, q_scale
wan_5b/modules/attention.py:260
↓ 4 callersFunctionbarrier
()
utils/distributed.py:70
↓ 4 callersFunctionceil_by_factor
Returns the smallest integer greater than or equal to 'number' that is divisible by 'factor'.
wan_5b/utils/qwen_vl_utils.py:44
↓ 4 callersMethodclear_cache
(self)
wan_5b/modules/vae2_1.py:577
↓ 4 callersFunctionclone_quantized_tensor
Clone a QuantizedTensor by cloning its internal tensors.
utils/quant.py:770
↓ 4 callersFunctioncount_conv3d
(model)
wan_5b/modules/vae2_2.py:725
next →1–100 of 963, ranked by callers