MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

Methodinfer
(self, block_weights, pre_infer_out)
lightx2v/models/networks/cosmos3/infer/transformer_infer.py:110
Methodinfer
Run pre-processing: embed inputs and compute timestep embedding. Args: weights: Pre-processing weights (x_embedder, cont
lightx2v/models/networks/longcat_image/infer/pre_infer.py:19
Methodinfer
Run post-processing: final normalization and projection. Args: weights: Post-processing weights (norm_out, proj_out)
lightx2v/models/networks/longcat_image/infer/post_infer.py:15
Methodinfer
(self, block_weights, pre_infer_out)
lightx2v/models/networks/longcat_image/infer/transformer_infer.py:364
Methodinfer
(self, inputs)
lightx2v/models/networks/flux2/model.py:124
Methodinfer
(self, weights, hidden_states, encoder_hidden_states, txt_ids=None, img_ids=None)
lightx2v/models/networks/flux2/infer/pre_infer.py:37
Methodinfer
(self, weights, hidden_states, encoder_hidden_states, txt_ids=None, img_ids=None)
lightx2v/models/networks/flux2/infer/pre_infer.py:88
Methodinfer
Run post-processing: final normalization and projection. Args: weights: Post-processing weights (norm_out, proj_out)
lightx2v/models/networks/flux2/infer/post_infer.py:13
Methodinfer
(self, block_weights, pre_infer_out)
lightx2v/models/networks/flux2/infer/transformer_infer.py:320
Methodinfer
(self, block_weights, pre_infer_out)
lightx2v/models/networks/flux2/infer/feature_caching/transformer_infer.py:41
Methodinfer
(self, block_weights, pre_infer_out)
lightx2v/models/networks/flux2/infer/offload/transformer_infer.py:126
Methodinfer
(self, weights, inputs, kv_start=0, kv_end=0)
lightx2v/models/networks/motus/infer/pre_infer.py:19
Methodinfer
(self, action_latents: torch.Tensor, pre_infer_out)
lightx2v/models/networks/motus/infer/post_infer.py:14
Methodinfer
(self, weights, pre_infer_out)
lightx2v/models/networks/motus/infer/transformer_infer.py:343
Methodinfer
推理方法 - 调用 LightLLM 服务获取 hidden states Args: text: 文本提示列表 image_list: 可选的图像列表(用于 i2i 任务) Returns:
lightx2v/models/input_encoders/lightllm/qwen25_text_encoder_service.py:227
Methodinfer
Inference method - same interface as Lite encoder Args: text: List of text prompts image_list: Optional list
lightx2v/models/input_encoders/lightllm/qwen25_text_encoder_kernel.py:191
Methodinfer
(self, audio_segment)
lightx2v/models/input_encoders/hf/seko_audio/audio_encoder.py:40
Methodinfer
(self, text, image_list=None)
lightx2v/models/input_encoders/hf/qwen25/qwen25_vlforconditionalgeneration.py:156
Methodinfer
(self, speech_array)
lightx2v/models/input_encoders/hf/infinitetalk/audio_encoder.py:20
Methodinfer
Encode text prompts to embeddings. Args: text: List of text prompts _image_list: Unused for T2I, kept for API compati
lightx2v/models/input_encoders/hf/longcat/longcat_text_encoder.py:183
Methodinfer
(self, prompt, image_list=None)
lightx2v/models/input_encoders/hf/z_image/qwen3_model.py:63
Methodinfer
(self, vision_states)
lightx2v/models/input_encoders/hf/hunyuan15/siglip/model.py:270
Methodinfer
(self, prompt, use_pe=None, width=1024, height=1024)
lightx2v/models/input_encoders/hf/ernie_image/mistral3_model.py:119
Methodinfer
(self, prompt, image_list=None)
lightx2v/models/input_encoders/hf/flux2/mistral3_model.py:70
Methodinfer
(self, prompt, image_list=None)
lightx2v/models/input_encoders/hf/flux2/qwen3_model.py:46
Methodinfer
(self)
lightx2v_train/lightx2v_train/infer/image.py:41
Methodinfer
(self)
lightx2v_train/lightx2v_train/infer/image_native.py:15
Methodinfer
(self)
lightx2v_train/lightx2v_train/infer/video.py:27
Methodinfer
(self)
lightx2v_train/lightx2v_train/infer/video.py:130
Methodinfer_action
(self, pre_weight, action_latents, timestep, context, context_mask)
lightx2v/models/networks/wan/infer/fastwam/pre_infer.py:113
Methodinfer_block
(self, block, x, pre_infer_out)
lightx2v/models/networks/wan/infer/infinitetalk/transformer_infer.py:84
Methodinfer_block_with_kvcache
(self, block, x, pre_infer_out)
lightx2v/models/networks/wan/infer/lingbot_fast/transformer_infer.py:14
Methodinfer_block_with_kvcache
(self, block, x, pre_infer_out)
lightx2v/models/networks/wan/infer/matrix_game2/transformer_infer.py:340
Methodinfer_block_with_kvoffload
Run a transformer block with KV cache offload. ``RollingKVCachePool`` uses OffloadedStaticCache-style whole-layer prefetch inside ``i
lightx2v/models/networks/wan/infer/self_forcing/transformer_infer.py:156
Methodinfer_calculating
(self)
lightx2v/common/transformer_infer/transformer_infer.py:17
Methodinfer_calculating
( self, blocks, hidden_states, encoder_hidden_states, temb_img_silu,
lightx2v/models/networks/qwen_image/infer/transformer_infer.py:417
Methodinfer_chunk
Run inference for a single chunk in autoregressive generation. Args: inputs: Dict containing encoder outputs and pose da
lightx2v/models/networks/worldplay/ar_model.py:268
Methodinfer_chunk
Run pre-inference for a specific chunk in AR generation. Args: weights: WorldPlayPreWeights inputs: Dict wit
lightx2v/models/networks/worldplay/infer/ar_pre_infer.py:177
Methodinfer_final_layer
Override to handle per-token vec in final layer.
lightx2v/models/networks/worldplay/infer/transformer_infer.py:256
Methodinfer_final_layer
Override to handle per-token vec in final layer.
lightx2v/models/networks/worldplay/infer/bi_transformer_infer.py:266
Methodinfer_latent
(self, inputs, update_cache=0, cache_name="pos", enable_cfg=False, guide_scale=1.0)
lightx2v/models/networks/wan/lingbot_va_model.py:138
Methodinfer_layers
(self, layers, und_seq, gen_seq, rotary_emb)
lightx2v/models/networks/cosmos3/infer/offload/transformer_infer.py:23
Methodinfer_main_blocks
(self, weights, pre_infer_out)
lightx2v/models/networks/wan/infer/feature_caching/transformer_infer.py:997
Methodinfer_main_blocks_offload
( self, main_blocks, hidden_states, encoder_hidden_states, x_freqs_cis
lightx2v/models/networks/z_image/infer/offload/transformer_infer.py:60
Methodinfer_non_blocks
(self, weights, x, e)
lightx2v/models/networks/wan/infer/self_forcing/transformer_infer.py:465
Methodinfer_phases
(self, block_idx, blocks, x, pre_infer_out, lazy=None)
lightx2v/models/networks/wan/infer/animate/transformer_infer.py:31
Methodinfer_post_adapter
(self, phase, x, pre_infer_out)
lightx2v/models/networks/wan/infer/animate/transformer_infer.py:57
Methodinfer_txt
Text KV caching inference, corresponding to original forward_txt(). Called once at the beginning of generation to cache text KV.
lightx2v/models/networks/worldplay/infer/ar_transformer_infer.py:681
Methodinfer_using_cache
(self)
lightx2v/common/transformer_infer/transformer_infer.py:21
Methodinfer_vision
Vision inference using cached text KV. Corresponds to original forward_vision(). Implements the dual-stream pattern from HY-
lightx2v/models/networks/worldplay/infer/ar_transformer_infer.py:727
Methodinfer_with_blocks_offload
(self, blocks, x, pre_infer_out)
lightx2v/models/networks/wan/infer/animate/transformer_infer.py:18
Methodinfer_with_blocks_offload
(self, blocks, x, pre_infer_out)
lightx2v/models/networks/wan/infer/offload/transformer_infer.py:39
Methodinfer_with_blocks_offload
( self, blocks, hidden_states, encoder_hidden_states, temb_img_silu,
lightx2v/models/networks/qwen_image/infer/offload/transformer_infer.py:107
Methodinfer_with_blocks_offload
Inference with block-level CPU offload.
lightx2v/models/networks/worldplay/infer/transformer_infer.py:395
Methodinfer_with_blocks_offload
Inference with block-level CPU offload.
lightx2v/models/networks/worldplay/infer/bi_transformer_infer.py:408
Methodinfer_with_blocks_offload
Inference with block-level CPU offload.
lightx2v/models/networks/worldplay/infer/ar_transformer_infer.py:520
Methodinfer_with_blocks_offload
(self, weights, infer_module_out)
lightx2v/models/networks/hunyuan_video/infer/offload/transformer_infer.py:25
Methodinfer_with_blocks_offload
Inference with block-level CPU offloading. This method: 1. Keeps only one block in GPU at a time 2. Prefetches the n
lightx2v/models/networks/ltx2/infer/offload/transformer_infer.py:74
Methodinfer_with_blocks_offload
Run transformer inference with block-level offload. Two-phase approach: first process all double blocks, then all single blocks, each
lightx2v/models/networks/longcat_image/infer/offload/transformer_infer.py:27
Methodinfer_with_blocks_offload
(self, block_weights, pre_infer_out)
lightx2v/models/networks/flux2/infer/offload/transformer_infer.py:30
Methodinfer_with_kvcache
Run all transformer blocks with the rolling self-attention KV cache.
lightx2v/models/networks/wan/infer/self_forcing/transformer_infer.py:93
Methodinfer_with_kvcache_blocks_offload
Run transformer blocks with both weight offload and KV cache support.
lightx2v/models/networks/wan/infer/self_forcing/transformer_infer.py:115
Methodinfer_with_phases_offload
(self, blocks, x, pre_infer_out)
lightx2v/models/networks/wan/infer/offload/transformer_infer.py:73
Methodinfer_with_phases_offload
( self, blocks, hidden_states, encoder_hidden_states, temb_img_silu,
lightx2v/models/networks/qwen_image/infer/offload/transformer_infer.py:34
Methodinfer_without_offload
(self, blocks, x, pre_infer_out)
lightx2v/models/networks/wan/infer/transformer_infer.py:129
Methodinfer_without_offload
(self, blocks, x, pre_infer_out)
lightx2v/models/networks/wan/infer/s2v/transformer_infer.py:77
Methodinfer_without_offload
Override to pass block index for ProPE projection.
lightx2v/models/networks/worldplay/infer/transformer_infer.py:389
Methodinfer_without_offload
Override to pass block index for ProPE projection.
lightx2v/models/networks/worldplay/infer/bi_transformer_infer.py:402
Methodinfer_without_offload
Override to pass block index for KV cache and ProPE projection.
lightx2v/models/networks/worldplay/infer/ar_transformer_infer.py:514
Methodinfer_without_offload
(self, weights, infer_module_out)
lightx2v/models/networks/hunyuan_video/infer/transformer_infer.py:134
Methodinfer_without_offload
Standard inference without offloading (full model in GPU). Args: weights: LTX2TransformerWeights instance pr
lightx2v/models/networks/ltx2/infer/offload/transformer_infer.py:61
Methodinfer_without_offload
Run transformer inference through all blocks. Args: block_weights: LongCatImageTransformerWeights containing all block weights
lightx2v/models/networks/longcat_image/infer/transformer_infer.py:317
Methodinfer_without_offload
(self, blocks, hidden_states, pre_infer_out, infer_state)
lightx2v/models/networks/motus/infer/transformer_infer.py:373
Functioninflate_bias
Inflate a 2D convolution bias tensor to a 3D one Parameters: bias_2d: The bias tensor of 2D conv to be inflated. bias_
lightx2v/models/video_encoders/hf/seedvr/causal_inflation_lib.py:385
Functioninflate_weight
Inflate a 2D convolution weight matrix to a 3D one. Parameters: weight_2d: The weight matrix of 2D conv to be inflated.
lightx2v/models/video_encoders/hf/seedvr/causal_inflation_lib.py:365
Methodinit
(self, args: DataArgs, room: int)
lightx2v/disagg/conn.py:181
Methodinit
(self)
lightx2v/disagg/conn.py:593
Methodinit_device_env
()
lightx2v_platform/base/hygon_dcu.py:19
Methodinit_device_env
Initialize Intel XPU optimizations. This is called from lightx2v_platform.set_ai_device when platform is intel_xpu. Currentl
lightx2v_platform/base/intel_xpu.py:31
Methodinit_device_env
()
lightx2v_platform/base/ascend_npu.py:12
Methodinit_device_env
Initialize AMD ROCm optimizations. This is called from lightx2v_platform.set_ai_device when platform is amd_rocm. 1. Disable
lightx2v_platform/base/amd_rocm.py:106
Methodinit_device_env
()
lightx2v_platform/base/metax_cuda.py:13
Methodinit_device_env
()
lightx2v_platform/base/iluvatar_cuda.py:17
Methodinit_device_env
()
lightx2v_platform/base/cambricon_mlu.py:12
Methodinit_device_env
()
lightx2v_platform/base/ppu_cuda.py:13
Methodinit_device_env
Initialize Enflame GCU device environment. This method is called during platform initialization. Currently no special initia
lightx2v_platform/base/enflame_gcu.py:28
Methodinit_gen_context
()
test_cases/test_bagel_t2i_support.py:191
Methodinit_kv_cache
Initialize KV cache for autoregressive generation. Structure matches HY-WorldPlay original implementation.
lightx2v/models/networks/worldplay/infer/ar_transformer_infer.py:162
Functioninit_model_shard_group
Initialize process group of model sharding.
lightx2v/models/video_encoders/hf/seedvr/common/distributed/advanced.py:129
Methodinit_modules
(self)
lightx2v/models/runners/default_runner.py:101
Methodinit_modules
(self)
lightx2v/models/runners/hunyuan3d/hunyuan3d_shape_runner.py:39
Methodinit_modules
(self)
lightx2v/models/runners/hidream_o1_image/hidream_o1_image_runner.py:55
Methodinit_modules
(self)
lightx2v/models/runners/wan/wan_s2v_runner.py:69
Methodinit_modules
(self)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:119
Methodinit_modules
(self)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:204
Methodinit_modules
(self)
lightx2v/models/runners/wan/fastwam_runner.py:274
Methodinit_modules
(self)
lightx2v/models/runners/wan/wan_lingbot_va_runner.py:71
Methodinit_modules
(self)
lightx2v/models/runners/neopp/neopp_runner.py:66
Methodinit_modules
(self)
lightx2v/models/runners/bagel/bagel_runner.py:57
Methodinit_modules
(self)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:182
← previousnext →7,301–7,400 of 8,429, ranked by callers