MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

Methodforward
(self, *args, **kwargs)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/causal_model.py:794
Methodforward
(self, x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/clip.py:39
Methodforward
(self, x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/clip.py:44
Methodforward
x: [B, L, C].
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/clip.py:63
Methodforward
(self, x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/clip.py:120
Methodforward
x: [B, L, C].
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/clip.py:150
Methodforward
(self, x, interpolation=False, use_31_block=False)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/clip.py:230
Methodforward
(self, ids)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/clip.py:263
Methodforward
imgs: [B, 3, H, W] of torch.float32. - mean: [0.48145466, 0.4578275, 0.40821073] - std: [0.26862954, 0.2613025
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/clip.py:357
Methodforward
(self, x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:46
Methodforward
(self, x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:57
Methodforward
x: [B, L1, C]. context: [B, L2, C] or None. mask: [B, L2] or [B, L1, L2] or None.
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:80
Methodforward
(self, x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:128
Methodforward
(self, x, mask=None, pos_bias=None)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:153
Methodforward
(self, x, mask=None, encoder_states=None, encoder_mask=None, pos_bias=None)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:179
Methodforward
(self, lq, lk)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:198
Methodforward
(self, ids, mask=None)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:248
Methodforward
(self, ids, mask=None, encoder_states=None, encoder_mask=None)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:280
Methodforward
(self, encoder_ids, encoder_mask, decoder_ids, decoder_mask)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:321
Methodforward
(self, x, cache_x=None)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:27
Methodforward
(self, x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:49
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:54
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:84
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:173
Methodforward
(self, x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:207
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:269
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:354
Methodforward
x: [B, L, C].
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/xlm_roberta.py:26
Methodforward
(self, x, mask)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/xlm_roberta.py:62
Methodforward
ids: [B, L] of torch.LongTensor.
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/xlm_roberta.py:101
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:69
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:84
Methodforward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:111
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:139
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:176
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:210
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, 6, C] seq_lens(Tensor): Shape [B], length of ea
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:267
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, 6, C] seq_lens(Tensor): Shape [B], length of ea
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:332
Methodforward
(self, image_embeds)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:409
Methodforward
(self)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:420
Methodforward
(self, *args, **kwargs)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:548
Functionfp4_dequantize
( packed_tensor: torch.Tensor, scale_tensor: torch.Tensor, global_scale: torch.Tensor, block_s
lightx2v/common/kvcache/kernel.py:648
Functionfp4_dequantize_kernel
( packed_ptr, scale_ptr, global_scale_ptr, output_ptr, N, BLOCK_SIZE: tl.constexpr,
lightx2v/common/kvcache/kernel.py:586
Functionfp8_gemm_bias_kernel
( A, B, BIAS, A_SCALES, B_SCALES, C, M, N, K, stride_am, stride_ak
lightx2v/common/ops/mm/triton_kernels.py:462
Functionfp8_gemm_kernel
( A, B, A_SCALES, B_SCALES, C, M, N, K, stride_am, stride_ak, stri
lightx2v/common/ops/mm/triton_kernels.py:608
Functionfp8_quantize_kernel
(X, OUT, SCALES, HDIM, BLOCK_SIZE: tl.constexpr, FP8_MAX_VAL: tl.constexpr)
lightx2v/common/ops/mm/triton_kernels.py:43
Functionfp8_v_quantize_nhd_prescale_kernel
Quantise V ``[L, H, D]`` contiguous to fp32 staging, ``y = x / S[h,d]``.
lightx2v/common/kvcache/kernel.py:68
Methodfreqs
Access the pre-infer's freqs for RoPE with indices.
lightx2v/models/networks/wan/infer/matrix_game3/transformer_infer.py:546
Methodfreqs_cis
(self)
lightx2v/models/networks/z_image/infer/module_io.py:27
Methodfrom_config
( cls, config: dict[str, Any], device: torch.device | str | None = None, vae_d
lightx2v/utils/async_vae.py:45
Methodfrom_config
(cls: type[Embeddings1DConnector], config: dict)
lightx2v/models/input_encoders/hf/ltx2/gemma/embeddings_connector.py:198
Methodfrom_config
(cls: type[Embeddings1DConnector], config: dict)
lightx2v/models/input_encoders/hf/ltx2/gemma/embeddings_connector.py:225
Methodfrom_config
(cls, config: dict)
lightx2v/models/input_encoders/hf/ltx2/gemma/encoders/encoder_configurator.py:22
Methodfrom_config
(cls: type[LatentUpsampler], config: dict)
lightx2v/models/video_encoders/hf/ltx2/upsampler/model.py:144
Methodfrom_config
(cls: type[Vocoder], config: dict)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/model_configurator.py:45
Methodfrom_config
(cls: type[AudioDecoder], config: dict)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/model_configurator.py:102
Methodfrom_config
(cls: type[AudioEncoder], config: dict)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/model_configurator.py:138
Methodfrom_config
(cls: type[VideoEncoder], config: dict)
lightx2v/models/video_encoders/hf/ltx2/video_vae/model_configurator.py:10
Methodfrom_config
(cls: type[VideoDecoder], config: dict)
lightx2v/models/video_encoders/hf/ltx2/video_vae/model_configurator.py:37
Methodfrom_dwpose
(dwpose_det_res, height, width)
tools/preprocess/pose2d_utils.py:198
Methodfrom_kps_body
(kps_body: np.ndarray, height: int, width: int)
tools/preprocess/pose2d_utils.py:119
Methodfrom_kps_face
(kps_face: np.ndarray, height: int, width: int)
tools/preprocess/pose2d_utils.py:107
Methodfrom_pixel_shape
( shape: VideoPixelShape, latent_channels: int = 128, scale_factors: SpatioTemporalSca
lightx2v/models/video_encoders/hf/ltx2/video_vae/video_vae.py:89
Methodfrom_pretrained
(cls, model_path, device, dtype)
lightx2v/models/audio_encoders/hf/cosmos3/sound_tokenizer.py:114
Methodfrom_pretrained
(cls, config, ckpt: dict[str, dict[str, torch.Tensor]] | None = None)
lightx2v/models/video_encoders/hf/hunyuan3d/decoder.py:49
Methodfrom_torch_shape
(shape: torch.Size)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:50
Methodfrom_video_pixel_shape
( shape: VideoPixelShape, channels: int = 8, mel_bins: int = 16, sample_rate:
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:78
Methodfsdp2_shard_plan
(self, fsdp_config)
lightx2v_train/lightx2v_train/model_zoo/flux2_klein.py:46
Methodfsdp2_shard_plan
(self, fsdp_config)
lightx2v_train/lightx2v_train/model_zoo/wan_t2v.py:198
Methodfsdp2_shard_plan
(self, fsdp_config)
lightx2v_train/lightx2v_train/model_zoo/qwen_image_edit.py:82
Methodfsdp2_shard_plan
(self, fsdp_config)
lightx2v_train/lightx2v_train/model_zoo/longcat_image.py:62
Methodfsdp2_shard_plan
(self, fsdp_config)
lightx2v_train/lightx2v_train/model_zoo/flux2_dev.py:58
Methodfsdp2_shard_plan
(self, fsdp_config)
lightx2v_train/lightx2v_train/model_zoo/qwen_image.py:60
Functionfull_and_noise_mask
(b, h, q_idx, kv_idx)
lightx2v/models/networks/bagel/data_utils.py:17
Functionfuse_scale_shift_gate_select01_kernel_blc_opt
( x_ptr, shift0_ptr, scale0_ptr, gate0_ptr, shift1_ptr, scale1_ptr, gate1_ptr,
lightx2v/models/networks/qwen_image/infer/triton_ops.py:121
Functionfuse_scale_shift_kernel
( x: torch.Tensor, scale: torch.Tensor, shift: torch.Tensor, block_l: int = 128, block_c:
lightx2v/common/ops/norm/triton_ops.py:125
Functionfuse_scale_shift_kernel
( x: torch.Tensor, scale: torch.Tensor, shift: torch.Tensor, block_l: int = 128, block_c:
lightx2v/models/networks/wan/infer/triton_ops.py:120
Functionfuse_scale_shift_kernel
( x: torch.Tensor, scale: torch.Tensor, shift: torch.Tensor, block_l: int = 128, block_c:
lightx2v/models/networks/qwen_image/infer/triton_ops.py:262
Functionfuse_scale_shift_kernel
( x: torch.Tensor, scale: torch.Tensor, shift: torch.Tensor, block_l: int = 128, block_c:
lightx2v/models/networks/hunyuan_video/infer/triton_ops.py:120
Functionfuse_scale_shift_kernel
( x: torch.Tensor, scale: torch.Tensor, shift: torch.Tensor, block_l: int = 128, block_c:
lightx2v/models/networks/ltx2/infer/triton_ops.py:11
Functionfuse_scale_shift_kernel_blc_opt
( x_ptr, shift_ptr, scale_ptr, y_ptr, B, L, C, stride_x_b, stride_x_l,
lightx2v/common/ops/norm/triton_ops.py:71
Functionfuse_scale_shift_kernel_blc_opt
( x_ptr, shift_ptr, scale_ptr, y_ptr, B, L, C, stride_x_b, stride_x_l,
lightx2v/models/networks/wan/infer/triton_ops.py:66
Functionfuse_scale_shift_kernel_blc_opt
( x_ptr, shift_ptr, scale_ptr, y_ptr, B, L, C, stride_x_b, stride_x_l,
lightx2v/models/networks/qwen_image/infer/triton_ops.py:66
Functionfuse_scale_shift_kernel_blc_opt
( x_ptr, shift_ptr, scale_ptr, y_ptr, B, L, C, stride_x_b, stride_x_l,
lightx2v/models/networks/hunyuan_video/infer/triton_ops.py:66
Functionfuse_scale_shift_select01_kernel
( x: torch.Tensor, scale0: torch.Tensor, shift0: torch.Tensor, scale1: torch.Tensor, shift
lightx2v/models/networks/qwen_image/infer/triton_ops.py:441
Functionfuse_scale_shift_select01_kernel_blc_opt
( x_ptr, shift0_ptr, scale0_ptr, shift1_ptr, scale1_ptr, index_ptr, y_ptr, B,
lightx2v/models/networks/qwen_image/infer/triton_ops.py:201
Methodgap_ratio
(self)
tools/profile/analyze_torch_trace_gap.py:63
Methodgap_us
(self)
tools/profile/analyze_torch_trace_gap.py:59
Functiongather_heads
A func to gather heads for the attention result in sequence parallel
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:279
Functiongather_heads_scatter_seq
A func to sync attention result with alltoall in sequence parallel
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:244
Functiongather_outputs
A func to gather the outputs for the model result in sequence parallel
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:289
Functiongather_seq_scatter_heads
A func to sync embedding input with alltoall in sequence parallel
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:259
Functiongather_seq_scatter_heads_qkv
A func to sync splited qkv tensor qkv_tensor: the tensor we want to do alltoall with. The last dim must be the projection_idx, which
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:168
Functiongen_face_motion_seq
(img, metas: List[AAPoseMeta], threshold=0.5, stick_width_norm=200)
tools/preprocess/human_visualization.py:251
Methodgenerate
r""" Generates video frames from input image and text prompt using diffusion process. Args: input_prompt (`str`):
lightx2v_train/lightx2v_train/model_zoo/native/wan/image2video.py:120
Functiongenerate_freq_grid_np
(positional_embedding_theta: float, positional_embedding_max_pos_count: int, inner_dim: int)
lightx2v/models/networks/ltx2/infer/utils.py:123
Functiongenerate_freq_grid_np
(positional_embedding_theta: float, positional_embedding_max_pos_count: int, inner_dim: int)
lightx2v/models/input_encoders/hf/ltx2/gemma/rope.py:66
Functiongenerate_freq_grid_pytorch
(positional_embedding_theta: float, positional_embedding_max_pos_count: int, inner_dim: int)
lightx2v/models/networks/ltx2/infer/utils.py:142
Functiongenerate_freq_grid_pytorch
(positional_embedding_theta: float, positional_embedding_max_pos_count: int, inner_dim: int)
lightx2v/models/input_encoders/hf/ltx2/gemma/rope.py:85
Methodgenerate_image_with_stop_event
(self, message: Any, stop_event)
lightx2v/server/services/generation/image.py:94
← previousnext →7,001–7,100 of 8,429, ranked by callers