MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/flash_attn.py:94
Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/flash_attn.py:148
Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/flash_attn.py:184
Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sage_attn.py:78
Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sage_attn.py:107
Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sage_attn.py:144
Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sage_attn.py:194
Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sage_attn.py:274
Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/general_sparse_attn.py:32
Methodapply
q: [seqlen, head_num, head_dim] k: [seqlen, head_num, head_dim] v: [seqlen, head_num, head_dim]
lightx2v/common/ops/attn/radial_attn.py:159
Methodapply
q: [seqlen, head_num, head_dim] k: [seqlen, head_num, head_dim] v: [seqlen, head_num, head_dim]
lightx2v/common/ops/attn/nbhd_attn.py:106
Methodapply
q: [seqlen, head_num, head_dim] k: [seqlen, head_num, head_dim] v: [seqlen, head_num, head_dim]
lightx2v/common/ops/attn/nbhd_attn.py:184
Methodapply
(self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None, max_seqlen_q=None, max_seqlen_kv=None, **kwargs)
lightx2v/common/ops/attn/sparge_attn.py:23
Methodapply
( self, q, k, v, drop_rate=0, attn_mask=None, causal=F
lightx2v/common/ops/attn/torch_sdpa.py:16
Methodapply
(self, input_tensor)
lightx2v/common/ops/attn/template.py:13
Methodapply
(self, input_indices)
lightx2v/common/ops/embedding/embedding_weight.py:118
Methodapply
(self, input_tensor)
lightx2v/common/ops/norm/rms_norm_weight.py:146
Methodapply
(self, input_tensor)
lightx2v/common/ops/norm/rms_norm_weight.py:179
Methodapply
(self, input_tensor)
lightx2v/common/ops/norm/rms_norm_weight.py:225
Methodapply
(self, input_tensor)
lightx2v/common/ops/norm/rms_norm_weight.py:272
Methodapply
(self, input_tensor)
lightx2v/common/ops/norm/rms_norm_weight.py:316
Methodapply
(self, hidden_states)
lightx2v/common/ops/norm/rms_norm_weight.py:356
Methodapply
(self, x)
lightx2v/common/ops/norm/rms_norm_weight.py:393
Methodapply
(self, input_tensor)
lightx2v/common/ops/norm/rms_norm_weight.py:423
Methodapply
In-place fused dual-RMSNorm + 3D Neox-RoPE on Q and K in a single kernel launch. q : [seq, num_heads, head_dim] bfloat16 k : [seq,
lightx2v/common/ops/norm/rms_norm_weight.py:473
Methodapply
In-place fused dual-RMSNorm + 3D Neox-RoPE on x: [seq, num_heads, head_dim].
lightx2v/common/ops/norm/rms_norm_weight.py:532
Methodapply
(self, input_tensor)
lightx2v/common/ops/norm/layer_norm_weight.py:190
Methodapply
(self, input_tensor)
lightx2v/common/ops/norm/layer_norm_weight.py:222
Methodapply
(self)
lightx2v/common/ops/mm/mm_weight.py:296
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:719
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:778
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:839
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:896
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:953
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1241
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1375
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1435
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1510
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1568
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1623
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1686
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1749
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1807
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1879
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1938
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:1992
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:2130
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:2250
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:2378
Methodapply
Apply matrix multiplication with tensor parallel support.
lightx2v/common/ops/mm/mm_weight.py:2493
Methodapply
(self, input_tensor)
lightx2v/common/ops/mm/mm_weight.py:2539
Methodapply
(self, input_tensor)
lightx2v/common/ops/conv/conv3d.py:72
Methodapply
(self, input_tensor)
lightx2v/common/ops/conv/conv3d.py:88
Methodapply
(self, input_tensor)
lightx2v/common/ops/conv/conv2d.py:24
Methodapply
(self, input_tensor)
lightx2v/common/ops/conv/conv2d.py:41
Methodapply
(self, input_tensor)
lightx2v/common/ops/conv/conv2d.py:79
Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/models/networks/wan/weights/dreamzero/transformer_weights.py:15
Methodapply
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/models/networks/wan/weights/dreamzero/transformer_weights.py:77
Methodapply
(self, x)
lightx2v/models/networks/wan/weights/motus/_shared.py:141
Methodapply_fa4
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sla_attn.py:172
Functionapply_hidream_rope_with_flashinfer
(q, k, rope_cos_sin)
lightx2v/models/networks/hidream_o1_image/infer/rope.py:19
Functionapply_hidream_rope_with_torch
(q, k, rope_cos_sin)
lightx2v/models/networks/hidream_o1_image/infer/rope.py:11
Functionapply_hunyuan_rope_with_flashinfer
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, )
lightx2v/models/networks/hunyuan_video/infer/transformer_infer.py:41
Functionapply_hunyuan_rope_with_torch
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, )
lightx2v/models/networks/hunyuan_video/infer/transformer_infer.py:67
Functionapply_inverse_permutation
(permuted_tensor, sorted_indices, dim)
lightx2v/common/ops/attn/svg2_attn_utils.py:826
Functionapply_learned_rotations
(rotations, t, start_index=0, freq_ranges=None)
lightx2v/models/networks/seedvr/utils/rotary_embedding_torch.py:81
Functionapply_longcat_rope_with_flashinfer
Apply rotary position embedding using flashinfer. Args: xq: Query tensor [L, H, D] xk: Key tensor [L, H, D] cos_sin_cache
lightx2v/models/networks/longcat_image/infer/utils.py:11
Functionapply_longcat_rope_with_torch
Apply rotary position embedding using PyTorch. Follows the diffusers implementation for LongCat/Flux. Args: xq: Query tensor [L, H,
lightx2v/models/networks/longcat_image/infer/utils.py:48
Methodapply_magi
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sla_attn.py:211
Methodapply_output
(self, action_tokens, time_emb)
lightx2v/models/networks/wan/weights/motus/post_weights.py:23
Functionapply_qwen_rope_with_flashinfer
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, )
lightx2v/models/networks/qwen_image/infer/utils.py:101
Functionapply_qwen_rope_with_torch
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, )
lightx2v/models/networks/qwen_image/infer/utils.py:111
Functionapply_qwen_rope_with_torch_naive
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, )
lightx2v/models/networks/qwen_image/infer/utils.py:121
Functionapply_rope_with_flashinfer
Apply rotary position embedding using flashinfer. Args: xq: Query tensor [L, H, D] xk: Key tensor [L, H, D] cos_sin_cache
lightx2v/models/networks/flux2/infer/utils.py:11
Functionapply_rope_with_torch
Apply rotary position embedding using PyTorch. Args: xq: Query tensor [L, H, D] xk: Key tensor [L, H, D] freqs_cis: Tuple
lightx2v/models/networks/flux2/infer/utils.py:47
Functionapply_rotary_emb
(x, freqs_i)
lightx2v/models/networks/wan/infer/utils.py:188
Functionapply_rotary_emb
Apply rotary embeddings to input tensors using the given frequency tensor. This function applies rotary embeddings to the given query 'xq' a
lightx2v/models/networks/hunyuan_video/infer/posemb_layers.py:104
Functionapply_rotary_emb_chunk
(x, freqs_i, chunk_size, remaining_chunk_size=100)
lightx2v/models/networks/wan/infer/utils.py:199
Functionapply_rotary_emb_force_bf16
Apply rotary embeddings to input tensors using the given frequency tensor. This function applies rotary embeddings to the given query 'xq' a
lightx2v/models/networks/hunyuan_video/infer/posemb_layers.py:140
Functionapply_rotary_emb_qwen
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, )
lightx2v/models/networks/z_image/infer/utils.py:37
Functionapply_rotary_embedding
(x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor, interleaved: bool = False)
lightx2v/common/ops/norm/triton_ops.py:296
Functionapply_rotary_embedding
(x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor, interleaved: bool = False)
lightx2v/models/networks/qwen_image/infer/triton_ops.py:554
Functionapply_rotary_embedding
(x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor, interleaved: bool = False)
lightx2v/models/networks/hunyuan_video/infer/triton_ops.py:291
Methodapply_sage2
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sla_attn.py:127
Methodapply_sage3
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sla_attn.py:150
Methodapply_to_key
Apply the mapping to the given name.
lightx2v/models/input_encoders/hf/ltx2/utils.py:104
Methodapply_to_key_value
Apply the value operation to the given name and associated value.
lightx2v/models/input_encoders/hf/ltx2/utils.py:118
Methodapply_triton
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sla_attn.py:81
Methodapply_triton_ar
( self, q, k, v, cu_seqlens_q=None, cu_seqlens_kv=None,
lightx2v/common/ops/attn/sla_attn.py:104
Functionapply_wan_rope_with_chunk
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, chunk_size: int, rope_f
lightx2v/models/networks/wan/infer/utils.py:71
Functionapply_wan_rope_with_flashinfer
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, )
lightx2v/models/networks/wan/infer/utils.py:101
Functionapply_wan_rope_with_flashinfer
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, )
lightx2v/models/networks/z_image/infer/utils.py:11
Functionapply_wan_rope_with_torch
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, )
lightx2v/models/networks/wan/infer/utils.py:12
Functionapply_wan_rope_with_torch_naive
( xq: torch.Tensor, xk: torch.Tensor, cos_sin_cache: torch.Tensor, )
lightx2v/models/networks/wan/infer/utils.py:31
Methodassemble_pipeline
(self, scheduler=None)
lightx2v_train/lightx2v_train/model_zoo/wan_t2v.py:346
Methodassemble_pipeline
(self, scheduler=None)
lightx2v_train/lightx2v_train/model_zoo/qwen_image_edit.py:239
Methodassemble_pipeline
(self, scheduler=None)
lightx2v_train/lightx2v_train/model_zoo/longcat_image.py:170
Methodassemble_pipeline
(self, scheduler=None)
lightx2v_train/lightx2v_train/model_zoo/flux2_dev.py:162
Methodassemble_pipeline
(self, scheduler=None)
lightx2v_train/lightx2v_train/model_zoo/qwen_image.py:157
Functionassert_schedule_timesteps_compatible
(schedule, timesteps)
lightx2v/models/networks/seedvr/utils/utils.py:11
← previousnext →6,301–6,400 of 8,429, ranked by callers