MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 6 callersMethodinfer_self_attn
(self, weights, grid_sizes, embed, x, embed0, seq_lens, freqs, context, block_idx, kv_start, kv_end)
lightx2v/models/networks/wan/infer/causvid/transformer_infer.py:98
↓ 6 callersMethodinit_lazy_load
(self, num_workers=6)
lightx2v/common/offload/manager.py:124
↓ 6 callersMethodinit_run_segment
(self, segment_idx, audio_array=None)
lightx2v/models/runners/wan/wan_audio_runner.py:616
↓ 6 callersFunctionis_main_process
()
lightx2v/utils/utils.py:25
↓ 6 callersFunctionis_valid
(name, fp8_supported)
app/utils/model_choices.py:91
↓ 6 callersMethodload
(self, weight_dict)
lightx2v/models/networks/worldmirror/weights/transformer_weights.py:428
↓ 6 callersMethodload_image_encoder
(self)
lightx2v/models/runners/wan/wan_runner.py:92
↓ 6 callersMethodload_text_encoder
(self)
lightx2v/models/runners/wan/wan_runner.py:131
↓ 6 callersMethodload_vae
Load VAE based on vae_type configuration. Supported types: - "tensorrt": TensorRT-accelerated VAE (requires pre-built engines)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:153
↓ 6 callersMethodmerge
(self, other_register)
lightx2v_platform/registry_factory.py:49
↓ 6 callersMethodmerge
(self, other_register)
lightx2v/utils/registry_factory.py:52
↓ 6 callersMethodnamed_parameters
(self, prefix="")
lightx2v/common/modules/weight_module.py:95
↓ 6 callersFunctionpadding_resize
(img_ori, height=512, width=512, padding_color=(0, 0, 0), interpolation=cv2.INTER_LINEAR)
tools/preprocess/utils.py:126
↓ 6 callersMethodprepare_latents
(self, seed, latent_shape, dtype=torch.float32)
lightx2v/models/schedulers/wan/scheduler.py:80
↓ 6 callersMethodpreprocess
(self, audio_preprocessor, audio_encoder, audio_array: torch.Tensor, device, dtype: torch.dtype)
lightx2v/models/input_encoders/hf/seko_audio/audio_adapter.py:304
↓ 6 callersMethodprocess_images_after_vae_decoder
(self)
lightx2v/models/runners/wan/wan_s2v_runner.py:381
↓ 6 callersMethodpub_livestream
(self, images: torch.Tensor, audios: torch.Tensor)
lightx2v/utils/va_recorder.py:401
↓ 6 callersMethodread_image_input
(self, img_path)
lightx2v/models/runners/wan/wan_audio_runner.py:398
↓ 6 callersMethodreceive_non_block
(self, port: int)
lightx2v/disagg/conn.py:646
↓ 6 callersMethodregister_memory
Validate a requested sub-region against server MR and return registration metadata. This server uses one pre-registered MR, so sub-regions ar
lightx2v/disagg/rdma_server.py:95
↓ 6 callersMethodremove
(self, room: int)
lightx2v/disagg/services/encoder.py:702
↓ 6 callersMethodreset_infer_states
(self)
lightx2v/models/networks/wan/infer/infinitetalk/transformer_infer.py:60
↓ 6 callersFunctionrope_apply
(x, grid_sizes, freqs)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:36
↓ 6 callersFunctionrope_apply_with_indices
Apply RoPE using explicit frame indices (for memory-aware attention). Rather than assuming sequential frame positions 0..F-1, this uses the p
lightx2v/models/networks/wan/infer/matrix_game3/transformer_infer.py:35
↓ 6 callersFunctionrope_params
(max_seq_len, dim, theta=10000)
lightx2v/models/networks/wan/infer/self_forcing/pre_infer.py:32
↓ 6 callersFunctionrope_params
(max_seq_len, dim, theta=10000)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:28
↓ 6 callersMethodrope_params
(max_seq_len, dim, theta=10000)
lightx2v/models/networks/wan/infer/s2v/pre_infer.py:33
↓ 6 callersMethodrope_params
Args: index: [0, 1, 2, 3] 1D Tensor representing the position index of the token
lightx2v/models/schedulers/qwen_image/scheduler.py:240
↓ 6 callersMethodrope_params
Args: index: [0, 1, 2, 3] 1D Tensor representing the position index of the token
lightx2v/models/schedulers/qwen_image/scheduler.py:336
↓ 6 callersMethodrope_params
Args: index: [0, 1, 2, 3] 1D Tensor representing the position index of the token
lightx2v/models/schedulers/z_image/scheduler.py:247
↓ 6 callersMethodrun_inference
(self, current_iter)
lightx2v_train/lightx2v_train/trainers/base.py:227
↓ 6 callersFunctionsafe_where
(neighbor)
lightx2v/models/video_encoders/hf/hunyuan3d/autoencoders/volume_decoders.py:94
↓ 6 callersFunctionscaled_dot_product_attention
Scaled dot-product attention Args: Q: Query tensor [batch_size, num_heads, seq_len, d_k] K: Key tensor [batch_size, num_head
lightx2v/utils/print_atten_score.py:11
↓ 6 callersFunctionscaled_mxfp6_quant
(input: torch.Tensor)
lightx2v_kernel/python/lightx2v_kernel/gemm.py:71
↓ 6 callersFunctionscaled_mxfp8_modulate_quant
Fuse Wan AdaLN modulation with MXFP8 quantization. This is a narrow Wan transformer helper, not a generic modulate op. It expects a 2D BF16 a
lightx2v_kernel/python/lightx2v_kernel/gemm.py:119
↓ 6 callersMethodset_denoiser_eval
(self)
lightx2v_train/lightx2v_train/model_zoo/base.py:120
↓ 6 callersMethodset_timesteps
(self, num_inference_steps, sigmas=None, latent_hw=None, device=None)
lightx2v_train/lightx2v_train/schedulers/dmd_scheduler.py:18
↓ 6 callersFunctionsinusoidal_embedding_1d
(dim, position)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:15
↓ 6 callersMethodstart_prefetch_block
(self, block_idx, adapter_block_idx=None)
lightx2v/common/offload/manager.py:130
↓ 6 callersMethodswap_cpu_buffers
(self)
lightx2v/common/offload/manager.py:141
↓ 6 callersMethodsync_all
(self)
lightx2v/common/kvcache/rolling.py:282
↓ 6 callersMethodto_cpu
(self, non_blocking=True)
lightx2v/models/networks/hidream_o1_image/weights/transformer_weights.py:31
↓ 6 callersMethodto_cpu
(self, non_blocking=True)
lightx2v/models/networks/longcat_image/weights/pre_weights.py:56
↓ 6 callersMethodto_cpu
(self, non_blocking=True)
lightx2v/models/networks/flux2/weights/transformer_weights.py:177
↓ 6 callersMethodto_cpu
(self, non_blocking=True)
lightx2v/models/networks/flux2/weights/pre_weights.py:45
↓ 6 callersMethodto_cuda
(self, non_blocking=True)
lightx2v/models/networks/longcat_image/weights/pre_weights.py:51
↓ 6 callersMethodto_cuda
(self, non_blocking=True)
lightx2v/models/networks/flux2/weights/transformer_weights.py:172
↓ 6 callersMethodto_cuda
(self, non_blocking=True)
lightx2v/models/networks/flux2/weights/pre_weights.py:40
↓ 6 callersFunctionto_tl_type
(ty)
lightx2v/common/ops/mm/triton_kernels.py:233
↓ 6 callersMethodtranslate
(self, x0, y0)
tools/preprocess/pose2d_utils.py:226
↓ 6 callersMethodunsqueeze_to_ndim
(self, in_tensor, tgt_n_dim)
lightx2v/models/schedulers/wan/audio/scheduler.py:134
↓ 6 callersMethodupdate_lora
(self, weight_dict, lora_strength=1)
lightx2v/common/ops/mm/mm_weight.py:237
↓ 6 callersMethodupsample
Upsample video latent using the upsampler with proper normalization. Aligned with ltx_core.model.upsampler.model.upsample_video.
lightx2v/models/video_encoders/hf/ltx2/model.py:267
↓ 6 callersFunctionwan_rms_norm
(rms_weight, x)
lightx2v/models/networks/wan/infer/s2v/wan_ops.py:57
↓ 5 callersFunctionCHECK_PROFILING_DEBUG_LEVEL
(target_level)
lightx2v/utils/envs.py:20
↓ 5 callersMethod__init__
(self, prefix, block_index, config)
lightx2v/models/networks/wan/weights/fastwam/transformer_weights.py:41
↓ 5 callersMethod__init__
(self, block_index, block_prefix, task, mm_type, config, create_cuda_buffer, create_cpu_buffer, lazy_load, laz
lightx2v/models/networks/qwen_image/weights/transformer_weights.py:504
↓ 5 callersMethod__init__
( self, block_index, block_prefix, ffn_prefix, task, mm_type,
lightx2v/models/networks/ltx2/weights/transformer_weights.py:439
↓ 5 callersMethod__init__
(self, dim, mid_dim)
lightx2v/models/input_encoders/hf/wan/xlm_roberta/model.py:125
↓ 5 callersMethod__init__
(self, checkpoint_path, tokenizer_path)
lightx2v/models/input_encoders/hf/wan/matrix_game2/clip.py:290
↓ 5 callersMethod_apply_weights
(self, weight_dict=None)
lightx2v/models/networks/bagel/model.py:82
↓ 5 callersMethod_check_layer_loaded
(self, layer_id: int)
lightx2v/common/kvcache/rolling.py:253
↓ 5 callersMethod_create_cu_seqlens
Create cumulative sequence lengths tensor for attention. Args: seq_len: Sequence length Returns: Cu
lightx2v/models/networks/ltx2/infer/transformer_infer.py:114
↓ 5 callersMethod_ensure_image_cross_attn
(self, cross_attn)
lightx2v/models/networks/wan/weights/dreamzero/transformer_weights.py:181
↓ 5 callersFunction_filter_and_format_models
通用的模型过滤和格式化函数
app/utils/model_choices.py:23
↓ 5 callersFunction_format_duration
(seconds: float)
scripts/hidream_o1_image/test_openai_images_client.py:101
↓ 5 callersMethod_forward_impl
Core forward implementation for DPT head. Args: token_list: List of transformer tokens from each layer, [B, S, N, C]
lightx2v/models/networks/worldmirror/models/heads/dense_head.py:293
↓ 5 callersMethod_get_ada_values
Get adaptive values from scale-shift table (no batch dimension).
lightx2v/models/networks/ltx2/infer/transformer_infer.py:581
↓ 5 callersMethod_get_cu_seqlens
(self, length, device)
lightx2v/models/networks/wan/infer/dreamzero/transformer_infer.py:167
↓ 5 callersFunction_get_max_preds
Get keypoint predictions from score maps. Note: batch_size: N num_keypoints: K heatmap height: H heatmap width: W
tools/preprocess/pose2d_utils.py:374
↓ 5 callersMethod_infer_cond_uncond
(self, latents_input, cond, guidance=None)
lightx2v/models/networks/hunyuan3d/model.py:127
↓ 5 callersMethod_infer_cond_uncond
(self, latents_input, prompt_embeds, infer_condition=True)
lightx2v/models/networks/qwen_image/model.py:49
↓ 5 callersMethod_infer_cond_uncond
(self, latents_input, prompt_embeds, infer_condition=True)
lightx2v/models/networks/z_image/model.py:48
↓ 5 callersMethod_infer_cond_uncond
(self, inputs, infer_condition=True)
lightx2v/models/networks/hunyuan_video/model.py:49
↓ 5 callersMethod_infer_cond_uncond
(self, latents_input, prompt_embeds, infer_condition=True)
lightx2v/models/networks/longcat_image/model.py:58
↓ 5 callersMethod_infer_txt_branch_after_attn
Standard text branch post-attention processing.
lightx2v/models/networks/worldplay/infer/ar_transformer_infer.py:384
↓ 5 callersMethod_infer_velocity
(self, sample, z_in, t_pixeldit, latents, sigma, infer_condition=True)
lightx2v/models/networks/hidream_o1_image/model.py:93
↓ 5 callersMethod_init_kv_buffer
(self)
lightx2v/common/kvcache/base.py:24
↓ 5 callersMethod_is_centralized_enabled
(self)
lightx2v/disagg/services/controller.py:84
↓ 5 callersMethod_mxfp8_apply_quantized
(self, module, input_tensor_quant, input_tensor_scale)
lightx2v/models/networks/wan/infer/mxfp8_fuse.py:136
↓ 5 callersFunction_ones_case
(m, n, k)
test_cases/test_int8_triton_kernels.py:22
↓ 5 callersMethod_query_zmq
(self, req_addr: str, payload: dict[str, Any], timeout_ms: int = 1000)
lightx2v/disagg/services/controller.py:261
↓ 5 callersMethod_rdma_write_bytes
(self, remote_addr: int, payload: bytes)
lightx2v/disagg/rdma_buffer.py:214
↓ 5 callersMethod_resolve_wan_ckpt_file
(self, filename)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:55
↓ 5 callersMethod_rope_params
(max_seq_len, dim, theta=10000)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:72
↓ 5 callersMethod_wrap
(self, value)
lightx2v/utils/lockable_dict.py:143
↓ 5 callersFunctionall2all_seq2head
将输入张量从 [seq_len/N, heads, hidden_dims] 转换为 [seq_len, heads/N, hidden_dims] 的格式。 参数: input (torch.Tensor): 输入张量,形状为 [seq_len/N, heads
lightx2v/common/ops/attn/utils/all2all.py:55
↓ 5 callersFunctionbuild_normalization_layer
Create a normalization layer based on the normalization type. Args: in_channels: Number of input channels num_groups: Number
lightx2v/models/video_encoders/hf/ltx2/video_vae/normalization.py:43
↓ 5 callersMethodcached_decode_withflag
(self, zs, is_first, is_last)
lightx2v/models/video_encoders/hf/wan/vae.py:1564
↓ 5 callersMethodclear_cache
(self)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:522
↓ 5 callersMethodclear_cache
(self)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:494
↓ 5 callersMethodclear_encode_cache
(self)
lightx2v/models/video_encoders/hf/wan/vae.py:821
↓ 5 callersMethodcomfy_resize_frames
(self, frames, height, width, interpolation=cv2.INTER_LANCZOS4, crop=None)
lightx2v/models/runners/wan/wan_animate_runner.py:143
↓ 5 callersMethodconsume
Consume one config from ring buffer and advance head by rdma_faa.
lightx2v/disagg/rdma_buffer.py:296
↓ 5 callersFunctioncreate_cpu_buffers
Create pinned memory tensor buffers on CPU for lazy loading scenario. Args: base_attrs: [(name, attr_name, transpose), ...] Configuration
lightx2v/common/ops/utils.py:148
↓ 5 callersFunctioncreate_cuda_buffers
Create tensor buffers and move them to CUDA device (specified by AI_DEVICE). Args: base_attrs: [(name, attr_name, transpose), ...] List o
lightx2v/common/ops/utils.py:122
↓ 5 callersMethoddtype
(self)
lightx2v/utils/ggml_tensor.py:163
↓ 5 callersMethodenable_tiling
(self, use_tiling: bool = True)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:597
↓ 5 callersMethodend_room_threads
(self, room: int)
lightx2v/disagg/conn.py:286
↓ 5 callersMethodeval
(self)
lightx2v/models/networks/worldmirror/model.py:375
← previousnext →401–500 of 8,429, ranked by callers