MCPcopy Create free account

hub / github.com/NVlabs/LongLive / functions

Functions963 in github.com/NVlabs/LongLive

Methodquantize_to_fp4
Quantize a tensor to FP4 using the Transformer Engine backend. Args: x (torch.Tensor): The input tensor to quantize.
fouroversix/src/fouroversix/quantize/transformer_engine.py:61
Methodquantize_to_fp4
Quantize a tensor to FP4 using the Triton backend. Args: x (torch.Tensor): The input tensor to quantize. con
fouroversix/src/fouroversix/quantize/triton/backend.py:43
Methodquantize_to_fp4
Quantize a tensor to FP4 using the PyTorch backend. Args: x (torch.Tensor): The input tensor to quantize. co
fouroversix/src/fouroversix/quantize/pytorch/backend.py:36
Methodquantize_to_fp4
Quantize a tensor to FP4 using the CUDA backend. Args: x (torch.Tensor): The input tensor to quantize. confi
fouroversix/src/fouroversix/quantize/cuda/backend.py:54
Methodregister
Register a new type of weight conversion.
fouroversix/src/fouroversix/weight_conversions/conversions.py:13
Methodreparameterize
(self, mu, log_var)
wan_5b/modules/vae2_2.py:840
Functionrht_kernel
( x_desc, h_desc, y_desc, # Meta-parameters # TODO(jack): Update RHT kernel to support unp
fouroversix/src/fouroversix/quantize/triton/kernel.py:29
Methodrun
fouroversix/src/fouroversix/csrc/include/utils.h:139
Methodrun_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/base.py:54
Functionrun_mxfp4_quant
fouroversix/src/fouroversix/csrc/include/fp4_quant_launch_template.h:112
Functionrun_mxfp4_quant_rht
fouroversix/src/fouroversix/csrc/include/fp4_quant_launch_template.h:121
Functionrun_nvfp4_quant
fouroversix/src/fouroversix/csrc/include/fp4_quant_launch_template.h:130
Functionrun_nvfp4_quant_rht
fouroversix/src/fouroversix/csrc/include/fp4_quant_launch_template.h:139
Functionrun_speedtest_on_modal
(**kwargs: dict[str, Any])
fouroversix/scripts/speedtest/quantize.py:86
Functionrun_speedtest_on_modal
(**kwargs: dict[str, Any])
fouroversix/scripts/speedtest/matmul.py:73
Functionrun_tests
Run tests on a B200 on Modal.
fouroversix/scripts/test_on_modal.py:17
Methodsample
(self, imgs, deterministic=False)
wan_5b/modules/vae2_1.py:570
Methodsample
Sample one entry matching (block_pos, timestep_index) when 2D, or just timestep_index when 1D. Non-owned timestep buckets are transpa
utils/error_buffer.py:145
Functionsave_image
(tensor, save_file, nrow=8, normalize=True, value_range=(-1, 1))
wan_5b/utils/utils.py:57
Functionsave_video
(tensor, save_file=None, fps=30, suffix='.mp4', nr
wan_5b/utils/utils.py:24
Functionsave_video
Save a generated LongLive video tensor as an mp4 file.
utils/inference_utils.py:308
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. Ar
wan_5b/utils/fm_solvers.py:797
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
wan_5b/utils/fm_solvers_unipc.py:743
Methodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_index
wan_5b/utils/fm_solvers.py:216
Methodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
wan_5b/utils/fm_solvers_unipc.py:151
Functionsetup_nvfp4_pipeline
Configure ``pipeline`` for NVFP4 inference from a generator checkpoint. Handles both supported NVFP4 backends: * ``model_quant_use_transform
utils/inference_utils.py:137
Functionshard_model
( model, device_id, param_dtype=torch.bfloat16, reduce_dtype=torch.float32, buffer_dtype=t
wan_5b/distributed/fsdp.py:12
Functionsp_attn_forward
(self, x, seq_lens, grid_sizes, freqs, dtype=torch.bfloat16, t_scale=1.0, method="linear",
wan_5b/distributed/sequence_parallel.py:166
Functionsp_barrier
()
wan_5b/distributed/sp_ulysses_inference.py:157
Functionsp_causal_attn_forward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor): Shape [B, 3],
wan_5b/distributed/sequence_parallel.py:380
Functionsp_dit_causal_forward_train
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each with shape [C_in,
wan_5b/distributed/sequence_parallel.py:206
Functionsp_dit_forward
x: A list of videos each with shape [C, T, H, W]. t: [B]. context: A list of text embeddings each with s
wan_5b/distributed/sequence_parallel.py:83
Methodsp_group
(self)
wan_5b/distributed/sp_training.py:263
Methodsp_size
(self)
wan_5b/distributed/sp_training.py:259
Methodstart
Start the evaluation coordinator.
fouroversix/scripts/ptq/coordinators/modal.py:103
Methodstate_dict
(self)
utils/error_buffer.py:226
Functionstatic_blockwise_fp4_fake_quant
Static blockwise FP4 fake quantization using Triton kernel. Args: x: [NUM_FP4_BLOCKS, BLOCK_SIZE] on CUDA. amax: [NUM_FP4_BLOCKS]
utils/nvfp4_kernel.py:242
Functionstatic_blockwise_fp4_fake_quant_kernel
( x_ptr, # [NUM_FP4_BLOCKS * BLOCK_SIZE] y_ptr, # [NUM_FP4_BLOCKS * BLOCK_SIZE] scale_ptr, # [N
utils/nvfp4_kernel.py:180
Methodstep_index
The index counter for current timestep. It will increase 1 after each scheduler step.
wan_5b/utils/fm_solvers.py:202
Methodstep_index
The index counter for current timestep. It will increase 1 after each scheduler step.
wan_5b/utils/fm_solvers_unipc.py:137
Functionstr2bool
Convert a string to a boolean. Supported true values: 'yes', 'true', 't', 'y', '1' Supported false values: 'no', 'false', 'f', 'n', '0'
wan_5b/utils/utils.py:79
Methodtemplate
The kernel's template content.
fouroversix/scripts/generate_kernels.py:60
Methodtest_33_frame_i2v_keeps_legacy_one_plus_block_layout
(self)
tests/test_i2v_dataset_frame_accounting.py:30
Methodtest_96_frame_i2v_uses_regular_8_frame_blocks
(self)
tests/test_i2v_dataset_frame_accounting.py:22
Functiontest_backend_outputs_are_consistent
( # noqa: C901, PLR0915 input_type: str, input_shape: tuple[int, int], backend_a: QuantizeBackend
fouroversix/tests/test_correctness.py:52
Methodtest_i2v_context_must_not_cover_entire_clip
(self)
tests/test_dmd_i2v_conditioning.py:42
Methodtest_i2v_loss_mask_excludes_context_frames
(self)
tests/test_dmd_i2v_conditioning.py:25
Methodtest_i2v_sequence_parallel_partitions_the_96_frame_sequence
(self)
tests/test_i2v_sequence_parallel_config.py:20
Methodtest_i2v_sequence_parallel_rejects_non_block_aligned_length
(self)
tests/test_i2v_sequence_parallel_config.py:33
Methodtest_i2v_training_frames_use_full_configured_sequence
(self)
tests/test_i2v_sequence_parallel_config.py:11
Methodtest_overwrite_i2v_context_keeps_chunk_length_unchanged
(self)
tests/test_dmd_i2v_conditioning.py:32
Methodtest_overwrite_i2v_context_keeps_only_initial_frames_clean
(self)
tests/test_dmd_i2v_conditioning.py:13
Methodtest_t2v_sequence_parallel_uses_full_sequence
(self)
tests/test_i2v_sequence_parallel_config.py:47
Methodtest_teacher_forcing_keeps_i2v_context_clean_after_augmentation
(self)
tests/test_i2v_teacher_forcing_context.py:142
Methodtrain
Start a training job on Modal.
fouroversix/scripts/train/__main__.py:168
Methodtrain
(self)
trainer/distillation.py:1152
Methodtraining_target
(self, clean, noise, timestep)
tests/test_i2v_teacher_forcing_context.py:20
Methodtraining_weight
(self, timestep)
tests/test_i2v_teacher_forcing_context.py:23
Methoduninstall_model
(model: torch.nn.Module)
utils/memory.py:55
Methodvae_halo_latents
(self)
wan_5b/distributed/sp_training.py:267
Methodweight
(self)
utils/quant.py:317
Functionwikitext_detokenizer
(doc)
fouroversix/scripts/ptq/tasks/wikitext_train/preprocess_wikitext.py:4
Methodworker
Worker process for running PTQ experiments locally.
fouroversix/scripts/ptq/coordinators/local.py:163
← previous901–963 of 963, ranked by callers