MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 23 callersMethodcurrent_device
(self)
lightx2v/models/video_encoders/hf/wan/vae.py:1022
↓ 23 callersMethoddecode
(self, latents)
lightx2v/models/runners/wan/wan_matrix_game2_runner.py:32
↓ 22 callersMethodbarrier
(self)
lightx2v/server/services/distributed_utils.py:85
↓ 22 callersMethodget
(self, key, default=None)
lightx2v_platform/registry_factory.py:46
↓ 21 callersFunctionbuild_wan_model_with_lora
(wan_module, config, model_kwargs, lora_configs, model_type="high_noise_model")
lightx2v/models/runners/wan/wan_runner.py:46
↓ 21 callersMethodcheck_stop
Check if the stop signal is received
lightx2v/models/runners/base_runner.py:303
↓ 21 callersMethodclear
(self)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1006
↓ 21 callersMethoddevice
(self)
lightx2v/models/networks/seedvr/utils/rotary_embedding_torch.py:172
↓ 21 callersMethodend_run
(self)
lightx2v/models/runners/wan/wan_s2v_runner.py:403
↓ 21 callersMethodupdate
Write current layer's K/V into the buffer tail and return full K/V views. Args: layer_idx: decoder layer index key_st
lightx2v/models/networks/neopp/infer/kv_cache_manager.py:42
↓ 20 callersFunctionget_world_size
()
lightx2v_train/lightx2v_train/runtime/distributed.py:42
↓ 20 callersMethodinit_first_buffer
(self, blocks, adapter_block_idx=None)
lightx2v/common/offload/manager.py:62
↓ 20 callersMethodprepare
(self, seed, latent_shape, image_encoder_output=None)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:963
↓ 19 callersFunctionconv
(n_in, n_out, **kwargs)
lightx2v/models/video_encoders/hf/tae.py:20
↓ 19 callersFunctiondequant_fp8_vllm
(input_tensor_fp8, input_tensor_scale, dtype)
lightx2v/utils/quant_utils.py:244
↓ 19 callersFunctionis_distributed
()
lightx2v_train/lightx2v_train/runtime/distributed.py:34
↓ 19 callersMethodregister_parameter
(self, name, param)
lightx2v/common/modules/weight_module.py:16
↓ 19 callersMethodsend
(self, data_ptrs: List[int])
lightx2v/disagg/conn.py:561
↓ 19 callersMethodset_device
(self, device)
tools/preprocess/pose2d.py:43
↓ 18 callersMethod_step
(self)
lightx2v/common/kvcache/quant.py:694
↓ 18 callersMethodact_quant_func
(self, x)
lightx2v/models/input_encoders/hf/q_linear.py:269
↓ 18 callersMethodbind
(self, **kwargs)
lightx2v/disagg/services/base.py:48
↓ 18 callersFunctiondownload_model_handler
通用的模型下载处理函数 Args: model_path_val: 模型路径 model_name: 模型名称(可能包含状态标识) model_category: 模型类别 download_source_val: 下载源 (
app/utils/model_handlers.py:443
↓ 18 callersFunctionhalf
(x)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/attention.py:69
↓ 18 callersMethodinfer
(self, inputs)
lightx2v/models/networks/wan/model.py:157
↓ 18 callersMethodload_state_dict
(self, *args, **kwargs)
lightx2v_train/lightx2v_train/runtime/ddp.py:49
↓ 18 callersMethodprefetch_weights
(self, block_idx, blocks, adapter_block_idx=None)
lightx2v/common/offload/manager.py:77
↓ 18 callersMethodsubmit
(self, decode_fn: Callable[..., torch.Tensor], *args: Any, **kwargs: Any)
lightx2v/utils/async_vae.py:112
↓ 17 callersFunctioncheck_model_exists
检查模型是否已下载 支持子目录路径,如 Qwen-Image-2512/qwen_image_2512_fp8_e4m3fn_scaled.safetensors
app/utils/model_utils.py:340
↓ 17 callersMethodcompile
(self, compile_shapes)
lightx2v/models/networks/wan/audio_model.py:119
↓ 17 callersMethoddefault
(self, obj)
lightx2v/disagg/disagg_mixin.py:828
↓ 17 callersFunctionformat_model_choice
格式化模型选项,添加下载状态标识
app/utils/model_utils.py:372
↓ 17 callersFunctionget_sequence_parallel_group
Get sequence parallel process group.
lightx2v/models/video_encoders/hf/seedvr/common/distributed/advanced.py:31
↓ 17 callersFunctionget_sequence_parallel_world_size
Get sequence parallel world size.
lightx2v/models/video_encoders/hf/seedvr/common/distributed/advanced.py:69
↓ 17 callersMethodinit
(self)
lightx2v/disagg/conn.py:558
↓ 17 callersMethodmlp
(self, weights, hidden_state)
lightx2v/models/networks/bagel/infer/transformer_infer.py:192
↓ 17 callersMethodrun
(self, stop_event=None)
lightx2v/disagg/services/decoder.py:345
↓ 17 callersMethodswap_blocks
(self)
lightx2v/common/offload/manager.py:91
↓ 16 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
lightx2v/models/schedulers/wan/s2v/fm_solvers_unipc.py:251
↓ 16 callersFunctionget_hf_models
从缓存的模型列表中获取模型(不再实时从 HF 获取)
app/utils/model_utils.py:281
↓ 16 callersMethodinit_process_group
(self)
lightx2v/server/services/distributed_utils.py:33
↓ 16 callersMethodnormalize
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/ops.py:88
↓ 16 callersMethodupdate
(self, name, jpeg)
lightx2v_ros/src/visualization/visualization/image_web_viewer_node/main.py:31
↓ 15 callersMethod_frame_allgather_variable
Allgather tensors with potentially variable chunk sizes across ranks. Pads each chunk to max_chunk_size, allgathers, then extracts valid fram
lightx2v/models/networks/worldmirror/models/models/worldmirror.py:530
↓ 15 callersMethod_get_actual_weight
(self)
lightx2v/common/ops/mm/mm_weight.py:181
↓ 15 callersFunctionmm_weight_autocast_nd
Match nn.Linear under torch.amp.autocast(param_dtype): fp32 input + bf16 weight -> bf16 matmul.
lightx2v/models/networks/wan/infer/s2v/wan_ops.py:19
↓ 15 callersMethodremove
(self, room: int)
lightx2v/disagg/services/decoder.py:322
↓ 15 callersFunctionrepeat
( hid: torch.FloatTensor, # (L c) hid_shape: torch.LongTensor, # (b n) pattern: str, **kwarg
lightx2v/models/networks/seedvr/utils/na.py:158
↓ 14 callersMethod_init_weights
(self)
lightx2v/models/networks/bagel/model.py:98
↓ 14 callersFunctioncutlass_scaled_mxfp8_mm
(mat_a, mat_b, scales_a, scales_b, alpha, bias=None)
lightx2v_kernel/python/lightx2v_kernel/gemm.py:157
↓ 14 callersFunctioncutlass_scaled_mxfp8_mm_residual_gate
Fused residual update for Wan FFN. A 1D gate uses the CUTLASS epilogue contract and applies gate/residual to the GEMM accumulator before the
lightx2v_kernel/python/lightx2v_kernel/gemm.py:164
↓ 14 callersMethodmust_calc
(self, step_index)
lightx2v/models/networks/wan/infer/feature_caching/transformer_infer.py:20
↓ 14 callersFunctionquant_fp8_vllm
(input_tensor)
lightx2v/utils/quant_utils.py:239
↓ 14 callersMethodtemporarily_unlocked
Temporarily unlock in context manager form, restoring original state on exit. Typical usage: with d.temporarily_unlocked(
lightx2v/utils/lockable_dict.py:42
↓ 13 callersMethod__init__
(self, in_channels: int, out_channels: int, factor_t, factor_s=1)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:95
↓ 13 callersMethod_infer_attn
Unified attention inference method supporting both TP and non-TP modes. Args: attn_phase: LTX2Attention or LTX2Attention
lightx2v/models/networks/ltx2/infer/transformer_infer.py:207
↓ 13 callersMethod_predict_velocity
(self, model, latents, sigma, condition)
lightx2v_train/lightx2v_train/trainers/dmd.py:203
↓ 13 callersMethodencode
videos: A list of videos each with shape [C, T, H, W].
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:545
↓ 13 callersFunctionget_services
()
lightx2v/server/api/deps.py:35
↓ 13 callersMethodload
Load and build the text encoder model. Returns: GemmaTextEncoder: The fully initialized text encoder model
lightx2v/models/input_encoders/hf/ltx2/model.py:108
↓ 13 callersMethodpostprocess
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:1538
↓ 13 callersFunctionscan_model_path_contents
扫描 model_path 目录,返回可用的文件和子目录
app/utils/model_utils.py:311
↓ 13 callersFunctionseed_all
(seed)
lightx2v/utils/utils.py:29
↓ 13 callersMethodstate_dict
(self, *args, **kwargs)
lightx2v_train/lightx2v_train/runtime/ddp.py:45
↓ 13 callersMethodstep
f""" ADD NOISE: x_t = (1 - sigma_t) * x_0 + sigma_t * N ------ self.add_noise(...) => x_t = sigma_t * (N - x_0) + x_
lightx2v_train/lightx2v_train/schedulers/flow_matching.py:87
↓ 13 callersMethodto_cuda
(self, model_index)
lightx2v/models/runners/wan/wan_runner.py:720
↓ 12 callersMethod__init__
( self, vocab_size, dim, dim_attn, dim_ffn, num_heads,
lightx2v/models/input_encoders/hf/wan/t5/model.py:665
↓ 12 callersMethod_mark_activity
(self)
lightx2v/disagg/services/data_mgr_sidecar.py:79
↓ 12 callersFunctionapply_gate
AI is creating summary for apply_gate Args: x (torch.Tensor): input tensor. gate (torch.Tensor, optional): gate tensor. Defaults
lightx2v/models/networks/hunyuan_video/infer/transformer_infer.py:22
↓ 12 callersFunctionapply_rotary_emb
(freqs, t, start_index=0, scale=1.0, seq_dim=-2, freqs_seq_dim=None)
lightx2v/models/networks/seedvr/utils/rotary_embedding_torch.py:49
↓ 12 callersFunctioncdiv
(n: int, m: int)
lightx2v/common/kvcache/utils.py:19
↓ 12 callersFunctionexists
(val)
lightx2v/models/networks/seedvr/utils/rotary_embedding_torch.py:15
↓ 12 callersFunctionforward_with_checkpointing
Forward with optional gradient checkpointing.
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:46
↓ 12 callersMethodindex
(self, t: torch.Tensor)
lightx2v/models/schedulers/seedvr/utils.py:145
↓ 12 callersMethodis_fsdp2_wrapped
(self)
lightx2v_train/lightx2v_train/model_zoo/base.py:123
↓ 12 callersMethodload_state_dict
(self, destination, block_index, adapter_block_index=None)
lightx2v/common/ops/conv/conv3d.py:109
↓ 12 callersFunctionload_weights
(checkpoint_path, cpu_offload=False, remove_key=None, load_from_rank0=False, include_keys=None)
lightx2v/utils/utils.py:514
↓ 12 callersFunctionmake_conv_nd
( # noqa: PLR0913 dims: Union[int, Tuple[int, int]], in_channels: int, out_channels: int, ker
lightx2v/models/video_encoders/hf/ltx2/video_vae/convolution.py:11
↓ 12 callersMethodrun_text_encoder
(self, input_info)
lightx2v/models/runners/wan/wan_runner.py:386
↓ 12 callersMethodstate_dict
(self, destination=None)
lightx2v/common/ops/conv/conv3d.py:106
↓ 12 callersFunctionupdate_input_info_from_dict
(input_info, data)
lightx2v/utils/input_info.py:595
↓ 11 callersMethod__init__
(self, kernel, pad, upsample_factor=1)
lightx2v/models/input_encoders/hf/animate/motion_encoder.py:75
↓ 11 callersMethod__init__
(self, *, width: int, expand_ratio: int = 4, output_width: int = None, drop_path_rate: float = 0.0)
lightx2v/models/video_encoders/hf/hunyuan3d/autoencoders/attention_blocks.py:163
↓ 11 callersMethod__init__
( self, in_channels: int, out_channels: int, factor_t, factor_s=1,
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:503
↓ 11 callersFunction_prof_log
(tag: str, elapsed: float)
lightx2v/disagg/disagg_mixin.py:53
↓ 11 callersMethoddecode
(self, zs)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:552
↓ 11 callersMethodenable_quantize
( self, dit_quantized=False, text_encoder_quantized=False, image_encoder_quant
lightx2v/pipeline.py:285
↓ 11 callersMethodfsdp2_state_module
(self)
lightx2v_train/lightx2v_train/model_zoo/base.py:126
↓ 11 callersFunctionget_sequence_parallel_rank
Get sequence parallel rank.
lightx2v/models/video_encoders/hf/seedvr/common/distributed/advanced.py:61
↓ 11 callersFunctioninit_causal_conv3d
Initialize a Causal-3D convolution layer. Parameters: inflation_mode: Listed as below. It's compatible with all the 3D-VAE checkpoint
lightx2v/models/video_encoders/hf/seedvr/causal_inflation_lib.py:281
↓ 11 callersFunctioninit_empty_input_info
(task, support_tasks=[])
lightx2v/utils/input_info.py:463
↓ 11 callersMethodmodify_config
(self, config_modify)
lightx2v/pipeline.py:496
↓ 11 callersFunctionsave_to_video
Save ComfyUI Image tensor to video file Args: images: ComfyUI Image tensor [N, H, W, C] in range [0, 1] output_path: Path to
lightx2v/utils/utils.py:216
↓ 11 callersMethodstore_kv
(self, k: torch.Tensor, v: torch.Tensor, layer_id: int)
lightx2v/common/kvcache/base.py:46
↓ 11 callersMethodtime_embedding
(self, weights, embed)
lightx2v/models/networks/wan/infer/self_forcing/pre_infer.py:72
↓ 11 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
lightx2v/models/networks/bagel/model.py:696
↓ 10 callersMethod__init__
( self, in_channels: int = 3, out_channels: int = 3, down_block_types: Tuple[s
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:659
↓ 10 callersMethod__init__
( self, in_features: int, alpha: float = 1.0, alpha_trainable: bool = True,
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:179
↓ 10 callersMethod_calculate_q_k_len
(self, q, k_lens)
lightx2v/models/networks/wan/infer/self_forcing/transformer_infer.py:57
↓ 10 callersMethod_create_pin_tensor
(self, tensor, dtype=None)
lightx2v/common/ops/mm/mm_weight.py:1162
← previousnext →101–200 of 8,429, ranked by callers