MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 3 callersMethodsetup
(self, resume_ckpt_path=None)
lightx2v_train/lightx2v_train/trainers/dmd.py:63
↓ 3 callersMethodsgl_per_token_quant_fp8
Per-token FP8 quantization compatible with sgl_kernel.sgl_per_token_quant_fp8
lightx2v_platform/base/amd_rocm.py:64
↓ 3 callersFunctionslice_inputs
(x, dim=0)
lightx2v/models/networks/seedvr/utils/ops.py:4
↓ 3 callersMethodslicing_decode
(self, z: torch.Tensor)
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:1185
↓ 3 callersMethodslicing_encode
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:1169
↓ 3 callersMethodstart
(self, width: int, height: int)
lightx2v/utils/va_recorder.py:352
↓ 3 callersMethodstart
(self, width: int, height: int)
lightx2v/utils/va_recorder_x264.py:123
↓ 3 callersFunctionstart_workload_clock
()
lightx2v/disagg/workload.py:190
↓ 3 callersMethodstep_post
(self)
lightx2v/models/schedulers/wan/scheduler.py:359
↓ 3 callersMethodstop
(self)
lightx2v/disagg/services/data_mgr_sidecar.py:905
↓ 3 callersMethodstop_distributed_inference
(self)
lightx2v/server/services/inference/service.py:35
↓ 3 callersMethodswap_phases
(self)
lightx2v/common/offload/manager.py:102
↓ 3 callersMethodswitch_lora
(self, lora_path: str, strength: float = 1.0)
lightx2v/pipeline.py:386
↓ 3 callersMethodtime_shift
(self, t, latent_hw=None, num_steps=None)
lightx2v_train/lightx2v_train/schedulers/flow_matching.py:54
↓ 3 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. Args: t (torch.Tensor): a 1-D Tensor of N indices, one per batch element. These m
lightx2v/models/networks/hunyuan_video/infer/pre_infer.py:219
↓ 3 callersMethodto_cpu
(self, non_blocking=True)
lightx2v/models/networks/qwen_image/weights/transformer_weights.py:586
↓ 3 callersMethodto_cpu
(self, non_blocking=True)
lightx2v/models/networks/qwen_image/weights/pre_weights.py:32
↓ 3 callersMethodto_cpu
(self, non_blocking=True)
lightx2v/models/networks/z_image/weights/pre_weights.py:28
↓ 3 callersMethodto_cpu
(self, non_blocking=True)
lightx2v/models/networks/longcat_image/weights/transformer_weights.py:204
↓ 3 callersMethodto_cuda
(self, non_blocking=True)
lightx2v/models/networks/qwen_image/weights/transformer_weights.py:591
↓ 3 callersMethodto_cuda
(self, non_blocking=True)
lightx2v/models/networks/qwen_image/weights/pre_weights.py:37
↓ 3 callersMethodto_cuda
(self, non_blocking=True)
lightx2v/models/networks/z_image/weights/pre_weights.py:33
↓ 3 callersMethodto_cuda
(self, non_blocking=True)
lightx2v/models/networks/longcat_image/weights/transformer_weights.py:199
↓ 3 callersFunctionto_spatial_nchw
( tensor: torch.Tensor, layout: str, height: int | None = None, width: int | None = None, )
lightx2v/models/schedulers/fls_enhance.py:92
↓ 3 callersMethodtrainable_parameters
(self)
lightx2v_train/lightx2v_train/model_zoo/base.py:112
↓ 3 callersFunctiontransform
Transform pixel location to different reference.
tools/preprocess/pose2d_utils.py:991
↓ 3 callersMethodtransform_camera_vector
Convert camera parameter vector to c2w and intrinsic matrices.
lightx2v/models/networks/worldmirror/models/models/worldmirror.py:684
↓ 3 callersFunctiontransform_preds
Get final keypoint predictions from heatmaps and apply scaling and translation to map them back to the image. Note: num_keypoints: K
tools/preprocess/pose2d_utils.py:275
↓ 3 callersMethodtruncate_stream_buffer
(self, size: int, check_can_truncate: bool = True)
lightx2v/utils/va_recorder.py:448
↓ 3 callersFunctionunflatten
( hid: torch.FloatTensor, # (L c) or (L ... c) hid_shape: torch.LongTensor, # (b n) )
lightx2v/models/networks/seedvr/utils/na.py:20
↓ 3 callersMethodunload_lora_for_infer
(self)
lightx2v_train/lightx2v_train/model_zoo/base.py:198
↓ 3 callersMethodunpatchify
(self, x, grid_size)
lightx2v/models/networks/wan/infer/dreamzero/transformer_infer.py:395
↓ 3 callersMethodunpatchify
x: (N, L, patch_size**2 *3) images: (N, 3, H, W)
lightx2v/models/networks/neopp/model.py:175
↓ 3 callersMethodunpatchify
r""" Reconstruct video tensors from patch embeddings. Args: x (List[Tensor]): List of patchified features
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:766
↓ 3 callersFunctionupdate_tokenizer_status
更新 Tokenizer 状态 Args: model_path_val: 模型路径 tokenizer_type: tokenizer 类型 ("t5" 或 "clip") Returns: tuple: (dropdown_up
app/utils/model_handlers.py:418
↓ 3 callersFunctionuse_default
Utility: return value if not None, else default.
lightx2v/models/input_encoders/hf/hunyuan15/qwen25/model.py:41
↓ 3 callersFunctionvalidate_bagel_model_assets
(config, model_path)
lightx2v/models/runners/bagel/t2i_utils.py:58
↓ 3 callersFunctionvalidate_config_paths
Validate checkpoint paths in config dictionary. Args: config: Configuration dictionary Raises: FileNotFoundError: If an
lightx2v/utils/utils.py:720
↓ 3 callersFunctionvector_to_camera_matrices
Reconstruct extrinsic and intrinsic matrix from vector.
lightx2v/models/networks/worldmirror/models/utils/camera_utils.py:41
↓ 3 callersFunctionwan_layer_norm
(ln_weight, x, force_float=False)
lightx2v/models/networks/wan/infer/s2v/wan_ops.py:41
↓ 3 callersMethodwrite_memory
Write bytes to a validated sub-region within server MR.
lightx2v/disagg/rdma_server.py:121
↓ 2 callersFunctionBench_actions_gta_drive
(num_frames, num_samples_per_action=4)
lightx2v/models/input_encoders/hf/wan/matrix_game2/conditions.py:108
↓ 2 callersFunctionBench_actions_templerun
(num_frames, num_samples_per_action=4)
lightx2v/models/input_encoders/hf/wan/matrix_game2/conditions.py:157
↓ 2 callersFunctionBench_actions_universal
(num_frames, num_samples_per_action=4)
lightx2v/models/input_encoders/hf/wan/matrix_game2/conditions.py:39
↓ 2 callersFunctionGET_SENSITIVE_DTYPE
()
lightx2v_platform/ops/norm/norm_template.py:33
↓ 2 callersFunctionGET_USE_CHANNELS_LAST_3D
Check if channels_last_3d memory format optimization is enabled. When enabled (USE_CHANNELS_LAST_3D=1), Conv3d weights are converted to
lightx2v/utils/envs.py:53
↓ 2 callersMethod__init__
(self, bit, symmetric, granularity, **kwargs)
lightx2v/utils/quant_utils.py:34
↓ 2 callersMethod__init__
(self, *args, **kwargs)
lightx2v/utils/profiler.py:135
↓ 2 callersMethod__init__
( self, num_layers: int, cache_size: int, num_heads: int, head_dim: in
lightx2v/common/kvcache/rolling.py:22
↓ 2 callersMethod__init__
(self, config)
lightx2v/models/runners/wan/wan_distill_runner.py:15
↓ 2 callersMethod__init__
( self, z_channels: int, out_channels: int, block_out_channels: tuple[int, ...
lightx2v/models/runners/vsr/vsr_wrapper_hy15.py:85
↓ 2 callersMethod__init__
(self, config)
lightx2v/models/networks/hidream_o1_image/weights/vision_weights.py:6
↓ 2 callersMethod__init__
(self, chan_in, chan_out, kernel_size=3, stride=1, dilation=1, pad_mode="replicate", **kwargs)
lightx2v/models/networks/wan/infer/s2v/wan_causal_audio_module.py:10
↓ 2 callersMethod__init__
(self, config, lazy_load_path=None, lora_path=None)
lightx2v/models/networks/wan/weights/infinitetalk/transformer_weights.py:7
↓ 2 callersMethod__init__
(self)
lightx2v/models/networks/wan/weights/dreamzero/transformer_weights.py:12
↓ 2 callersMethod__init__
(self, ln_weight, normalized_shape, eps: float)
lightx2v/models/networks/worldmirror/model.py:110
↓ 2 callersMethod__init__
(self, in_dim: int, out_dim: int, hidden_act: str)
lightx2v/models/networks/bagel/modeling_utils.py:114
↓ 2 callersMethod__init__
(self, config, block_idx, create_cuda_buffer=False, create_cpu_buffer=False)
lightx2v/models/networks/longcat_image/weights/transformer_weights.py:8
↓ 2 callersMethod__init__
(self, config)
lightx2v/models/networks/flux2/infer/feature_caching/transformer_infer.py:18
↓ 2 callersMethod__init__
(self, config, block_idx, create_cuda_buffer=False, create_cpu_buffer=False)
lightx2v/models/networks/flux2/weights/transformer_weights.py:8
↓ 2 callersMethod__init__
(self, config)
lightx2v/models/schedulers/wan/changing_resolution/scheduler.py:18
↓ 2 callersMethod__init__
(self, config)
lightx2v/models/schedulers/wan/step_distill/scheduler.py:11
↓ 2 callersMethod__init__
(self, theta: int, axes_dim: List[int], scale_rope=False)
lightx2v/models/schedulers/qwen_image/scheduler.py:213
↓ 2 callersMethod__init__
( self, schedule: Schedule, timesteps: SamplingTimesteps, prediction_type: Pre
lightx2v/models/schedulers/seedvr/utils.py:177
↓ 2 callersMethod__init__
(self, channels: int, kernel_size: int = 3, dilation: Tuple[int, int, int] = (1, 3, 5))
lightx2v/models/video_encoders/hf/ltx2/audio_vae/resnet.py:13
↓ 2 callersMethod__init__
(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1)
lightx2v/models/video_encoders/hf/ltx2/video_vae/timestep_embedding.py:100
↓ 2 callersMethod__init__
(self)
lightx2v/models/vfi/rife/train_log/refine.py:91
↓ 2 callersMethod__init__
(self, config)
lightx2v_train/lightx2v_train/trainers/dmd.py:26
↓ 2 callersMethod__init__
(self, vocab_size=250002, max_seq_len=514, type_size=1, pad_id=1, dim=1024, num_heads=16, num_layers=24, post_
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/xlm_roberta.py:77
↓ 2 callersMethod__init__
(self, model_name, is_vl=False, device=0, **kwargs)
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/prompt_extend.py:118
↓ 2 callersMethod__new__
(cls, *args, **kwargs)
lightx2v/server/metrics/monitor.py:12
↓ 2 callersMethod_accept_one_client
(self, listen_sock)
lightx2v/disagg/rdma_server.py:166
↓ 2 callersMethod_ada_layer_norm_zero
AdaLayerNormZero: compute shift, scale, gate from temb. For double-stream blocks: returns (norm_hidden_states, gate_msa, shift_mlp, scale_mlp
lightx2v/models/networks/longcat_image/infer/transformer_infer.py:43
↓ 2 callersMethod_add_noise_by_timestep
(self, x0, noise, timestep)
lightx2v_train/lightx2v_train/trainers/dmd.py:1138
↓ 2 callersFunction_advance_cap_to_frame
Advance cap so that next read() returns frame target_idx. Returns target_idx.
lightx2v/models/networks/worldmirror/utils/video_utils.py:217
↓ 2 callersMethod_all_gather_gen_tokens
(self, tensor)
lightx2v/models/networks/cosmos3/infer/transformer_infer.py:35
↓ 2 callersFunction_all_to_all
( local_input: Tensor, scatter_dim: int, gather_dim: int, group: dist.ProcessGroup, )
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:61
↓ 2 callersMethod_allocate_free_tcp_port
(self, bind_host: str | None = None)
lightx2v/disagg/services/controller.py:144
↓ 2 callersMethod_apply_1d_rope
Applies 1D rotary position embeddings along one dimension. Args: tokens: Input token features. positions: Position in
lightx2v/models/networks/worldmirror/models/layers/rope.py:129
↓ 2 callersMethod_apply_2d
(self, x2d: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/upsampler/blur_downsample.py:49
↓ 2 callersMethod_apply_attention
(self, q: Tensor, k: Tensor, v: Tensor)
lightx2v/models/networks/worldmirror/models/layers/attention.py:60
↓ 2 callersMethod_apply_attention_kernel
( self, kernel, q, k, v, cu_seqlens_q, cu_seqlens_kv,
lightx2v/models/networks/motus/infer/transformer_infer.py:121
↓ 2 callersMethod_apply_inverse_log_transform
Apply inverse logarithm transform: sign(y) * (exp(|y|) - 1) Args: input_tensor: Input tensor Returns:
lightx2v/models/networks/worldmirror/models/heads/dense_head.py:414
↓ 2 callersMethod_apply_pos_embed
(self, x: torch.Tensor, W: int, H: int, ratio: float = 0.1)
lightx2v/models/networks/worldmirror/models/heads/dense_head.py:54
↓ 2 callersFunction_apply_qwen_rope_with_torch_impl
(xq, xk, cos_sin_cache)
lightx2v/models/networks/qwen_image/infer/utils.py:70
↓ 2 callersFunction_apply_rope
(x: torch.Tensor)
lightx2v/models/networks/hunyuan_video/infer/transformer_infer.py:77
↓ 2 callersFunction_apply_rope
(x, cos, sin)
lightx2v/models/networks/longcat_image/infer/utils.py:71
↓ 2 callersFunction_apply_rope
(x, cos, sin)
lightx2v/models/networks/flux2/infer/utils.py:66
↓ 2 callersMethod_apply_rope_polar
(x, freqs)
lightx2v/models/networks/wan/infer/dreamzero/transformer_infer.py:214
↓ 2 callersMethod_apply_rope_sp
(self, q, k, grid_sizes, freqs, start_frame)
lightx2v/models/networks/wan/infer/self_forcing/transformer_infer.py:63
↓ 2 callersMethod_apply_rotary
(x: torch.Tensor, rotary_emb: torch.Tensor)
lightx2v/models/networks/wan/infer/lingbot_va/transformer_infer.py:27
↓ 2 callersMethod_apply_rotary_emb
(x_in: torch.Tensor, freqs_cis: torch.Tensor)
lightx2v/models/networks/ernie_image/infer/transformer_infer.py:15
↓ 2 callersMethod_apply_segment_scheduler_state
Seed the scheduler latents and mask for the current segment window.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:2021
↓ 2 callersMethod_apply_text_cross_attention_adaln
Text cross-attention with per-block prompt AdaLN (ltx_core apply_cross_attention_adaln).
lightx2v/models/networks/ltx2/infer/transformer_infer.py:159
↓ 2 callersMethod_as_pair
(value: Union[int, Tuple[int, int]])
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:1508
↓ 2 callersFunction_broadcast_data
(data, shape, dtype, src, group, async_op)
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:324
↓ 2 callersMethod_build_face_images
(self, frames, pose_metas, pose_valid_flags=None)
tools/preprocess/process_pipepline.py:126
↓ 2 callersFunction_build_gs_ply_data
Build Gaussian splat PLY data with scale-based filtering. Args: means: Gaussian centers [N, 3] scales: Gaussian scales [N, 3]
lightx2v/models/networks/worldmirror/utils/save_utils.py:135
↓ 2 callersFunction_build_image_task_request
( prompt: str, *, negative_prompt: str = "", seed: Optional[int] = None, target_shape: Opt
lightx2v/server/api/openai_images.py:184
↓ 2 callersMethod_build_inv_freq
(self, half_head_dim, theta)
lightx2v/models/runners/neopp/neopp_runner.py:88
← previousnext →1,101–1,200 of 8,429, ranked by callers