MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 4 callersMethod_misaligned_2d_tensor
(self, rows, cols, offset)
lightx2v_kernel/test/mxfp8_mxfp8/test_fused_ffn.py:84
↓ 4 callersMethod_mm
(self, weight_name, bias_name)
lightx2v/models/networks/hidream_o1_image/weights/pre_weights.py:27
↓ 4 callersMethod_modulate
Apply modulation to input tensor
lightx2v/models/networks/qwen_image/infer/transformer_infer.py:70
↓ 4 callersMethod_modulate
(self, x, scale, shift)
lightx2v/models/networks/motus/infer/transformer_infer.py:151
↓ 4 callersMethod_modulate_reference
(self, activation, scale, shift)
lightx2v_kernel/test/mxfp8_mxfp8/test_fused_ffn.py:151
↓ 4 callersMethod_normalize_payload_keys
Collapse different naming conventions into the runner's canonical keys.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1454
↓ 4 callersFunction_p
(label, value, indent=0)
lightx2v/models/networks/worldmirror/utils/inference_utils.py:818
↓ 4 callersMethod_poll_cq
简单的轮询
lightx2v/disagg/rdma_client.py:419
↓ 4 callersMethod_prepare_cond_latents_and_mask
Prepare multitask mask training logic. Args: task_type: Type of task ("i2v" or "t2v") cond_latents: Conditio
lightx2v/models/schedulers/hunyuan_video/scheduler.py:95
↓ 4 callersMethod_prepare_positional_embeddings
Prepare positional embeddings.
lightx2v/models/networks/ltx2/infer/pre_infer.py:40
↓ 4 callersMethod_raw_timestep_from_warped_step
(self, warped_step)
lightx2v_train/lightx2v_train/trainers/dmd.py:940
↓ 4 callersMethod_read_local_u64
(self, buf: bytearray)
lightx2v/disagg/rdma_buffer.py:128
↓ 4 callersMethod_recent_capacity
(self, layer_id: int)
lightx2v/common/kvcache/quant.py:187
↓ 4 callersMethod_record_cpu_update
(self, layer_id: int)
lightx2v/common/kvcache/rolling.py:233
↓ 4 callersFunction_register_or_replace_buffer
(module: torch.nn.Module, name: str, value: torch.Tensor)
lightx2v/models/input_encoders/hf/ltx2/gemma/encoders/encoder_configurator.py:144
↓ 4 callersMethod_reset_offload_state
(self)
lightx2v/common/kvcache/rolling.py:227
↓ 4 callersMethod_residual_gate_reference
(self, residual, gemm_out, gate)
lightx2v_kernel/test/mxfp8_mxfp8/test_fused_ffn.py:81
↓ 4 callersMethod_resize_time_axis
(self, tensor: torch.Tensor, total_frames: int)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1488
↓ 4 callersMethod_resolve_size
(self, config_key, target_key, default)
lightx2v/models/runners/hidream_o1_image/hidream_o1_image_runner.py:213
↓ 4 callersMethod_ring_get
(self, layer_id: int)
lightx2v/common/kvcache/rolling.py:55
↓ 4 callersMethod_ring_is_active
(self, layer_id: int)
lightx2v/common/kvcache/quant.py:163
↓ 4 callersMethod_row_value
(self, row, index)
lightx2v_train/lightx2v_train/data/video_dataset.py:450
↓ 4 callersMethod_run_trt_inference
Run TensorRT inference.
lightx2v/models/video_encoders/trt/qwen_image/vae_trt.py:207
↓ 4 callersMethod_seq_parallel_post_process
(self, x)
lightx2v/models/networks/wan/model.py:149
↓ 4 callersMethod_seq_parallel_rope
(self, rotary_emb, txt_seq_len)
lightx2v/models/schedulers/longcat_image/scheduler.py:273
↓ 4 callersMethod_sequence_length
(self, latent)
lightx2v_train/lightx2v_train/model_zoo/wan_t2v.py:426
↓ 4 callersMethod_set_recent_len
(self, layer_id: int, value: int)
lightx2v/common/kvcache/quant.py:184
↓ 4 callersMethod_stop_remote_pid
(self, slot: dict[str, Any], pid: int, graceful_timeout_seconds: float)
lightx2v/disagg/services/controller.py:638
↓ 4 callersMethod_to_tensor
Convert numpy/list/scalar inputs into CPU tensors for normalization.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1476
↓ 4 callersFunction_token_modulation
(x: torch.Tensor)
lightx2v/models/networks/wan/infer/lingbot_va/transformer_infer.py:10
↓ 4 callersMethod_uses_conditioned_latent_prefix
Whether this Wan variant keeps a fixed latent prefix during diffusion. Vanilla Wan2.2 i2v/s2v already does this for the first encoded frames.
lightx2v/models/schedulers/wan/scheduler.py:42
↓ 4 callersMethodactivate_head
Process network output to extract attribute (e.g. points, depth, etc.) and confidence values. Args: out_head: Network ou
lightx2v/models/networks/worldmirror/models/heads/dense_head.py:355
↓ 4 callersFunctionall2all_head2seq
将输入张量从 [seq_len, heads/N, hidden_dims] 转换为 [seq_len/N, heads, hidden_dims] 的格式。 参数: input (torch.Tensor): 输入张量,形状为 [seq_len, heads/N
lightx2v/common/ops/attn/utils/all2all.py:99
↓ 4 callersFunctionapply_parallel
Apply the configured distributed parallel strategy exactly once.
lightx2v_train/lightx2v_train/runtime/parallel.py:8
↓ 4 callersMethodassert_close_enough
(self, actual, expected)
lightx2v_kernel/test/mxfp8_mxfp8/test_fused_ffn.py:64
↓ 4 callersMethodassert_fallback_close
(self, actual, expected)
lightx2v_kernel/test/mxfp8_mxfp8/test_fused_ffn.py:73
↓ 4 callersFunctionbatch_kmeans_Euclid
Batched KMeans clustering in PyTorch using Euclidean distance. Args: x: Tensor of shape (B, N, D), batch_size B, N points per batch,
lightx2v/common/ops/attn/svg2_attn_utils.py:671
↓ 4 callersFunctionbench_cuda
(fn, warmup, iters)
lightx2v_kernel/test/mxfp8_mxfp8/bench_fused_ffn.py:22
↓ 4 callersFunctionblock_map_incremental_lut_triton
(block_map)
lightx2v/common/ops/attn/utils/sparge_util.py:74
↓ 4 callersFunctionbuild_lora_and_diff_names
Build the full names of LoRA (down/up/alpha) and weight difference tensors. Args: weight_name: Original weight tensor name lora_p
lightx2v/common/ops/utils.py:233
↓ 4 callersFunctionbuild_model
(config)
lightx2v_train/lightx2v_train/utils/registry.py:62
↓ 4 callersFunctionbuild_motus_expert_configs
(config)
lightx2v/models/networks/wan/weights/motus/pre_weights.py:81
↓ 4 callersMethodbuild_train_gt
(self, latent, noise)
lightx2v_train/lightx2v_train/schedulers/flow_matching.py:64
↓ 4 callersMethodcalculate_should_calc
(self, x_residual)
lightx2v/models/networks/wan/infer/feature_caching/transformer_infer.py:726
↓ 4 callersFunctionceil_by_factor
Returns the smallest integer greater than or equal to 'number' that is divisible by 'factor'.
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/qwen_vl_utils.py:44
↓ 4 callersMethodcfg_cache_name
(cache_name, infer_condition)
lightx2v/models/networks/wan/lingbot_va_model.py:54
↓ 4 callersMethodclear
(self)
lightx2v/models/networks/hunyuan_video/infer/feature_caching/transformer_infer.py:212
↓ 4 callersMethodclear_cache
(self)
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:967
↓ 4 callersMethodclose
(self)
lightx2v_ros/src/simulator/simulator/libero_node/observer.py:98
↓ 4 callersFunctionconcat
( vid: torch.FloatTensor, # (VL ... c) txt: torch.FloatTensor, # (TL ... c) vid_len: torch.LongT
lightx2v/models/networks/seedvr/utils/na.py:30
↓ 4 callersMethodcreate_instance
Create one service instance on an idle GPU and add it to scheduling pool.
lightx2v/disagg/services/controller.py:1321
↓ 4 callersFunctioncutlass_scaled_nvfp4_mm
(mat_a, mat_b, scales_a, scales_b, alpha, bias=None)
lightx2v_kernel/python/lightx2v_kernel/gemm.py:4
↓ 4 callersFunctiondeconv
(in_planes, out_planes, kernel_size=4, stride=2, padding=1)
lightx2v/models/vfi/rife/train_log/refine.py:37
↓ 4 callersMethodderegister
(self, ptr)
lightx2v/disagg/mooncake.py:166
↓ 4 callersFunctiondraw_aapose
Draw keypoints and connections representing hand pose on a given canvas. Args: canvas (np.ndarray): A 3D numpy array representing th
tools/preprocess/human_visualization.py:575
↓ 4 callersFunctiondrop_add_residual_stochastic_depth
(x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, pos=None)
lightx2v/models/networks/worldmirror/models/layers/block.py:116
↓ 4 callersFunctiondtype_name
(dtype: torch.dtype)
lightx2v_kernel_xpu/test/test_fp8.py:55
↓ 4 callersMethodembed_tokens
(self, weights, packed_text_ids)
lightx2v/models/networks/bagel/infer/pre_infer.py:105
↓ 4 callersMethodencode
(self, videos, device, tiled=True, tile_size=(34, 34), tile_stride=(18, 16))
lightx2v/models/video_encoders/hf/wan/vae_sf.py:138
↓ 4 callersMethodencode_images
Encode images using the vision encoder. Args: images: Input images (numpy array or preprocessed tensor) Returns
lightx2v/models/input_encoders/hf/hunyuan15/siglip/model.py:164
↓ 4 callersFunctionfix_lack_keypoints_use_sym
(skeleton)
tools/preprocess/retarget_pose.py:357
↓ 4 callersMethodfp8_scaled_mm
FP8 GEMM compatible with sgl_kernel.fp8_scaled_mm
lightx2v_platform/base/amd_rocm.py:56
↓ 4 callersMethodfrom_config
(cls, config)
lightx2v/models/runners/wan/fastwam_runner.py:120
↓ 4 callersFunctiongather_heads_scatter_seq
(x, head_dim=1, seq_dim=0)
lightx2v/models/networks/seedvr/utils/ops.py:16
↓ 4 callersFunctiongather_seq_scatter_heads_qkv
(x, seq_dim=0, qkv_shape=None, cache=None)
lightx2v/models/networks/seedvr/utils/ops.py:12
↓ 4 callersFunctiongelu
(x)
lightx2v/common/ops/mm/triton_kernels.py:13
↓ 4 callersMethodget_axial_freqs
(self, *dims)
lightx2v/models/networks/seedvr/utils/rope.py:32
↓ 4 callersFunctionget_block_map_meansim
(q, k, is_causal=False, BLKQ=128, BLKK=64, simthreshd1=0.1, cdfthreshd=0.9, topk=None, return_lut=False, atten
lightx2v/common/ops/attn/utils/sparge_util.py:202
↓ 4 callersFunctionget_dit_choices
获取 Diffusion 模型可选项
app/utils/model_choices.py:69
↓ 4 callersMethodget_encoder_output_i2v
Combine encoder outputs for i2v task Args: clip_encoder_out: CLIP encoder output vae_encoder_out: VAE encoder output
lightx2v/models/runners/base_runner.py:171
↓ 4 callersFunctionget_high_noise_choices
获取高噪模型可选项
app/utils/model_choices.py:110
↓ 4 callersMethodget_latent_shape_with_lat_hw
(self, latent_h, latent_w, target_video_length=None)
lightx2v/models/runners/wan/wan_audio_runner.py:861
↓ 4 callersMethodget_or_create_room_socket
(self, room: int, port: int)
lightx2v/disagg/conn.py:270
↓ 4 callersMethodget_patch_grid_bounds
Return the temporal bounds [inclusive start, exclusive end) for every patch. Returns shape [1, time_steps, 2] where 1 is temporal dim
lightx2v/models/schedulers/ltx2/scheduler.py:281
↓ 4 callersMethodget_sr_latent_shape_with_target_hw
(self)
lightx2v/models/runners/hunyuan_video/hunyuan_video_15_runner.py:204
↓ 4 callersMethodget_task_mask
(self, task_type, latent_target_length)
lightx2v/models/schedulers/hunyuan_video/scheduler.py:85
↓ 4 callersMethodget_vae_encoder_output
(self, first_frame, lat_h, lat_w, last_frame=None, world_size_h=None, world_size_w=None)
lightx2v/models/runners/wan/wan_runner.py:552
↓ 4 callersMethodget_video_segment_num
(self)
lightx2v/models/runners/wan/wan_sf_runner.py:56
↓ 4 callersFunctionget_world_size
Get the world size, the total amount of GPUs.
lightx2v/models/video_encoders/hf/seedvr/common/distributed/basic.py:27
↓ 4 callersMethodhalf
(x)
lightx2v_platform/ops/attn/hygon_dcu/flash_attn.py:104
↓ 4 callersMethodinfer_block
( self, block_weight, hidden_states, freqs_cis, adaln_input=None,
lightx2v/models/networks/z_image/infer/transformer_infer.py:159
↓ 4 callersMethodinfer_block_with_kvcache
Run a transformer block with kv cache.
lightx2v/models/networks/wan/infer/self_forcing/transformer_infer.py:171
↓ 4 callersMethodinfer_calculating
( self, block_weights, hidden_states, encoder_hidden_states, x_freqs_c
lightx2v/models/networks/z_image/infer/transformer_infer.py:264
↓ 4 callersMethodinfer_phase
(self, cur_phase_idx, cur_phase, x, pre_infer_out)
lightx2v/models/networks/wan/infer/offload/transformer_infer.py:116
↓ 4 callersMethodinputs_padding
(self, array, target_len)
lightx2v/models/runners/wan/wan_animate_runner.py:35
↓ 4 callersMethodis_continuous
(self)
lightx2v/models/schedulers/seedvr/utils.py:51
↓ 4 callersFunctionload_audio_file
Load audio as ``(tensor, sample_rate)``, matching ``torchaudio.load`` defaults.
lightx2v/utils/audio_io.py:27
↓ 4 callersMethodload_balanced_all_to_all
负载均衡all-to-all通信实现
lightx2v/common/ops/attn/ulysses_attn.py:541
↓ 4 callersFunctionload_checkpoint_dict
(ckpt_path: str, use_safetensors: bool = False)
lightx2v/models/networks/hunyuan3d/utils/checkpoint.py:41
↓ 4 callersMethodload_components
(self, transformer_only=False, reference_model=None)
lightx2v_train/lightx2v_train/model_zoo/base.py:27
↓ 4 callersFunctionload_image
(image: Union[str, Image.Image], to_rgb: bool = True)
lightx2v/models/runners/wan/wan_audio_runner.py:263
↓ 4 callersMethodload_image
(self, image_path)
lightx2v_train/lightx2v_train/data/image_dataset.py:81
↓ 4 callersMethodload_lora_for_infer
(self, lora_path, adapter_name=None)
lightx2v_train/lightx2v_train/model_zoo/base.py:191
↓ 4 callersFunctionload_pipeline_config
(config_path: str)
lightx2v/models/networks/hunyuan3d/utils/checkpoint.py:36
↓ 4 callersFunctionload_safetensors
加载safetensors文件或目录,支持按key包含筛选或排除
lightx2v/utils/utils.py:456
↓ 4 callersFunctionload_state_dict
Load state dictionary into class instance, resolving block indices for base and LoRA attributes. Args: cls: Target class instance to load
lightx2v/common/ops/utils.py:321
↓ 4 callersMethodload_text_encoder
Load text encoder based on text_encoder_type configuration. Supported types: - "lightllm_service": LightLLM HTTP service mode
lightx2v/models/runners/qwen_image/qwen_image_runner.py:122
↓ 4 callersMethodload_text_encoder
(self)
lightx2v/models/runners/z_image/z_image_runner.py:79
↓ 4 callersMethodload_vae
(self)
lightx2v/models/runners/wan/wan_runner.py:231
↓ 4 callersMethodload_vae
(self)
lightx2v/models/runners/z_image/z_image_runner.py:87
← previousnext →601–700 of 8,429, ranked by callers