MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 10 callersFunction_format_us
(us: float)
tools/profile/analyze_torch_trace_gap.py:167
↓ 10 callersMethod_get_actual_weight
(self)
lightx2v/common/ops/norm/rms_norm_weight.py:68
↓ 10 callersMethod_quantized_inputs
(self, m=257, k=256, n=384)
lightx2v_kernel/test/mxfp8_mxfp8/test_fused_ffn.py:55
↓ 10 callersMethod_req_cmd
(self, cmd: str, payload: dict[str, Any] | None = None)
lightx2v/disagg/services/data_mgr_sidecar.py:758
↓ 10 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/fm_solvers.py:296
↓ 10 callersMethod_step
(self)
lightx2v/common/kvcache/rolling.py:431
↓ 10 callersFunctionapply_rotary_emb
Apply rotary embeddings to input tensors using the given frequency tensor. This function applies rotary embeddings to the given query 'xq' a
lightx2v/models/networks/wan/infer/matrix_game2/posemb_layers.py:134
↓ 10 callersFunctionbuild_mm_weight
( weight_name, bias_name, config, create_cuda_buffer=False, create_cpu_buffer=False, l
lightx2v/models/networks/wan/weights/motus/_shared.py:28
↓ 10 callersMethodclear
(self)
lightx2v/models/networks/wan/infer/feature_caching/transformer_infer.py:901
↓ 10 callersMethodcreate_task
(self, message: Any)
lightx2v/server/task_manager.py:73
↓ 10 callersMethodencode_condition
(self, sample)
lightx2v_train/lightx2v_train/model_zoo/base.py:151
↓ 10 callersMethodget_local_end
(self, layer_id: int)
lightx2v/common/kvcache/rolling.py:360
↓ 10 callersFunctionget_repo_id_for_model
根据模型类型、是否 distill 和模型类别获取对应的 Hugging Face 仓库 ID
app/utils/model_handlers.py:335
↓ 10 callersFunctionis_module_installed
检查模块是否已安装
app/utils/model_utils.py:32
↓ 10 callersMethodk_cache
(self, layer_id: int, attn_start: int | None = None, local_end: int | None = None)
lightx2v/common/kvcache/base.py:36
↓ 10 callersFunctionmake_bagel_config
(model_path=".")
test_cases/test_bagel_t2i_support.py:34
↓ 10 callersMethodpatchify
Patchify audio latents from [C, T, F] to [T, D].
lightx2v/models/schedulers/ltx2/scheduler.py:184
↓ 10 callersMethodpost_process
(self, x, y, c_gate_msa, pre_infer_out)
lightx2v/models/networks/wan/infer/vace/transformer_infer.py:63
↓ 10 callersMethodrelease
(self)
lightx2v/disagg/conn.py:233
↓ 10 callersMethodrun
(self, total_steps=None)
lightx2v/models/runners/bagel/bagel_runner.py:92
↓ 10 callersMethodrun_pipeline
(self, input_info)
lightx2v/shot_runner/shot_base.py:137
↓ 10 callersFunctionsplit_block_dims
(blocks, *args)
lightx2v/utils/ggml_tensor.py:364
↓ 10 callersMethodstep
( self, pred: torch.Tensor, x_t: torch.Tensor, t: torch.Tensor, )
lightx2v/models/schedulers/seedvr/utils.py:253
↓ 10 callersMethodv_cache
(self, layer_id: int, attn_start: int | None = None, local_end: int | None = None)
lightx2v/common/kvcache/base.py:41
↓ 10 callersFunctionwan_vae_to_comfy
Convert VAE decoder output to ComfyUI Image format (inplace operation) Args: vae_output: VAE decoder output tensor, typically in ran
lightx2v/utils/utils.py:178
↓ 9 callersMethod__init__
(self, config)
lightx2v/models/networks/wan/infer/feature_caching/transformer_infer.py:504
↓ 9 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:375
↓ 9 callersMethod_expand_to_ndim
(self, values, ndim)
lightx2v_train/lightx2v_train/schedulers/flow_matching.py:67
↓ 9 callersMethod_get_official_modules
Expose inlined Matrix-Game-3 helpers through a module-like interface.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:1204
↓ 9 callersMethod_infer_cond_uncond
(self, inputs, infer_condition=True)
lightx2v/models/networks/wan/model.py:103
↓ 9 callersMethod_infer_cond_uncond
(self, inputs, infer_condition=True, mm_perturb=None)
lightx2v/models/networks/ltx2/model.py:342
↓ 9 callersMethod_move_weight_tree
(self, node, move_to_cuda, non_blocking=False)
lightx2v/models/networks/motus/model.py:300
↓ 9 callersMethod_pack_latents
(self, latents)
lightx2v/models/schedulers/flux2/scheduler.py:185
↓ 9 callersFunction_write_summary_line
(summary_file: Path, line: str)
scripts/hidream_o1_image/test_openai_images_client.py:159
↓ 9 callersFunctionapply_adaln_single
( hid: torch.Tensor, emb: torch.Tensor, layer_idx: int, num_layers: int, mode: str, ca
lightx2v/models/networks/seedvr/infer/utils.py:29
↓ 9 callersMethodcrop
(self, x0, y0, x1, y1)
tools/preprocess/pose2d_utils.py:77
↓ 9 callersMethodenable_offload
( self, cpu_offload=False, offload_granularity="block", text_encoder_offload=F
lightx2v/pipeline.py:323
↓ 9 callersFunctionget_block_map
(q, k, topk_ratio, BLKQ=64, BLKK=64)
lightx2v/common/ops/attn/utils/sla_util.py:41
↓ 9 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: Create sinusoidal timestep embeddings. Args timesteps (t
lightx2v/models/networks/ltx2/infer/utils.py:22
↓ 9 callersMethodinit_modules
(self)
lightx2v/models/runners/wan/wan_runner.py:263
↓ 9 callersMethoditems
(self)
lightx2v_train/lightx2v_train/utils/registry.py:43
↓ 9 callersMethodload_quantized
(self, weight_dict)
lightx2v/common/ops/mm/mm_weight.py:491
↓ 9 callersMethodlock
Lock the dictionary. When recursive=True, also recursively locks nested LockableDict objects.
lightx2v/utils/lockable_dict.py:25
↓ 9 callersFunctionmake_config
(**overrides)
test_cases/test_wan_mxfp8_fuse_forwarding.py:32
↓ 9 callersFunctionmake_conv2d
Create a 2D convolution layer that can be either causal or non-causal. Args: in_channels: Number of input channels out_channe
lightx2v/models/video_encoders/hf/ltx2/audio_vae/causal_conv_2d.py:67
↓ 9 callersFunctionmax_pool_2d
Perform 2D max pooling on the input array. Convenience function for 2D max pooling, commonly used in computer vision and image processin
lightx2v/models/networks/worldmirror/utils/geometry.py:324
↓ 9 callersMethodmode
(self)
lightx2v/models/video_encoders/hf/seedvr/types.py:20
↓ 9 callersMethodnon_block_weights_to_cpu
(self)
lightx2v/models/networks/wan/weights/transformer_weights.py:139
↓ 9 callersMethodnon_block_weights_to_cuda
(self)
lightx2v/models/networks/wan/weights/transformer_weights.py:134
↓ 9 callersMethodpre_process
(self, modulation, embed0)
lightx2v/models/networks/wan/infer/s2v/transformer_infer.py:69
↓ 9 callersMethodreal_quant_tensor
(self, tensor)
lightx2v/utils/quant_utils.py:105
↓ 9 callersMethodresize
(self, width, height)
tools/preprocess/pose2d_utils.py:87
↓ 9 callersFunctionscaled_mxfp4_quant
(input: torch.Tensor)
lightx2v_kernel/python/lightx2v_kernel/gemm.py:58
↓ 9 callersMethodselect_graph_for_compile
(self, input_info)
lightx2v/models/networks/wan/audio_model.py:151
↓ 9 callersMethodstart
(self)
lightx2v/utils/va_reader.py:54
↓ 9 callersMethodtime_projection
(self, weights, embed)
lightx2v/models/networks/wan/infer/self_forcing/pre_infer.py:79
↓ 9 callersMethodtrain
(self)
lightx2v_train/lightx2v_train/trainers/dmd.py:319
↓ 8 callersMethod__init__
(self, in_features, out_features, bias=True, dtype=torch.bfloat16)
lightx2v/models/input_encoders/hf/q_linear.py:258
↓ 8 callersMethod__init__
( self, in_channels: int, z_channels: int, block_out_channels: Tuple[int, ...]
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:359
↓ 8 callersMethod__init__
( self, z_dim=16, vae_path="cache/vae_step_411000.pth", dtype=torch.float,
lightx2v/models/video_encoders/hf/wan/vae.py:887
↓ 8 callersMethod__init__
(self, vocab_size, dim, dim_attn, dim_ffn, num_heads, encoder_layers, decoder_layers, num_buckets, shared_pos=
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/t5.py:301
↓ 8 callersMethod__init__
(self, z_dim=16, vae_pth="cache/vae_step_411000.pth", dtype=torch.float, device="cuda")
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/vae.py:524
↓ 8 callersMethod_all_gather_seq
All-gather tensor along sequence dimension (dim=1).
lightx2v/models/networks/worldplay/infer/ar_transformer_infer.py:673
↓ 8 callersMethod_apply
(self, fn)
lightx2v/models/input_encoders/hf/q_linear.py:294
↓ 8 callersMethod_get_sink_len
(self, layer_id: int)
lightx2v/common/kvcache/quant.py:169
↓ 8 callersMethod_push_cmd
(self, cmd: dict)
lightx2v/disagg/services/data_mgr_sidecar.py:752
↓ 8 callersMethod_read_remote_u64
(self, remote_addr: int)
lightx2v/disagg/rdma_buffer.py:241
↓ 8 callersMethod_ring_index
(self, layer_id: int)
lightx2v/common/kvcache/quant.py:150
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:604
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
lightx2v/models/schedulers/hidream_o1_image/fm_solvers_unipc.py:247
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/fm_solvers_unipc.py:247
↓ 8 callersMethodcancel_task
(self, task_id: str)
lightx2v/server/task_manager.py:142
↓ 8 callersFunctioncheck_config_value
(config: dict, key: str, expected: Any)
lightx2v/utils/ltx2_utils.py:9
↓ 8 callersMethodclear_decode_cache
(self)
lightx2v/models/video_encoders/hf/wan/vae.py:816
↓ 8 callersFunctionconv
(n_in, n_out, **kwargs)
lightx2v/models/runners/vsr/utils/TCDecoder.py:38
↓ 8 callersFunctioncreate_custom_forward
(module)
lightx2v/models/video_encoders/hf/hunyuanvideo15/hunyuanvideo_15_vae.py:49
↓ 8 callersMethodderivative_approximation
(self, block_cache, module_name, out)
lightx2v/common/transformer_infer/transformer_infer.py:29
↓ 8 callersFunctionflash_attention
q: [B, Lq, Nq, C1]. k: [B, Lk, Nk, C1]. v: [B, Lk, Nk, C2]. Nq must be divisible by Nk. q_lens
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/attention.py:34
↓ 8 callersMethodfrom_pretrained
( cls, model_path, device="cuda", dtype=torch.float16, use_safetensors
lightx2v/models/video_encoders/hf/hunyuan3d/autoencoders/model.py:151
↓ 8 callersFunctionget_lora_choices
获取 LoRA 模型可选项,从 model_path/loras 目录检索 Args: model_path: 模型根路径 Returns: list: LoRA 文件列表,如果没有则返回 [""]
app/utils/model_components.py:32
↓ 8 callersFunctionget_quant_scheme
(quant_detected, quant_op_val)
app/utils/model_utils.py:465
↓ 8 callersFunctionget_running_dtype
(name)
lightx2v_train/lightx2v_train/utils/utils.py:4
↓ 8 callersMethodinit_cuda_buffer
(self, blocks_cuda_buffer=None, phases_cuda_buffer=None)
lightx2v/common/offload/manager.py:39
↓ 8 callersFunctionis_fp8_supported_gpu
检查GPU是否支持fp8
app/utils/model_utils.py:137
↓ 8 callersMethodkeys
(self)
lightx2v_train/lightx2v_train/utils/registry.py:37
↓ 8 callersMethodnamespace
(self, namespace: str)
lightx2v/models/networks/seedvr/utils/cache.py:22
↓ 8 callersFunctionprepare_pos_ids
Prepare position IDs for LongCat. Args: modality_id: 0 for text, 1 for image type: "text" or "image" start: Starting posi
lightx2v/models/schedulers/longcat_image/scheduler.py:129
↓ 8 callersMethodreorder_txt_token
(self, byt5_txt, txt, byt5_text_mask, text_mask, zero_feat=False, is_reorder=True)
lightx2v/models/networks/hunyuan_video/infer/pre_infer.py:249
↓ 8 callersFunctionresolve_model_dir
(model_path: str, subfolder: str | None = None)
lightx2v/models/networks/hunyuan3d/utils/checkpoint.py:13
↓ 8 callersMethodrun_vae_decoder
(self, latents)
lightx2v/models/runners/wan/wan_sf_runner.py:60
↓ 8 callersFunctionscaled_nvfp4_quant
Quantize input tensor to FP4 and return quantized tensor and scale. This function quantizes the last dimension of the given tensor `input`.
lightx2v_kernel/python/lightx2v_kernel/gemm.py:11
↓ 8 callersMethodtaylor_formula
(self, tensor_dict)
lightx2v/common/transformer_infer/transformer_infer.py:39
↓ 8 callersMethodto_cuda
(self, non_blocking=True)
lightx2v/models/networks/hidream_o1_image/weights/transformer_weights.py:37
↓ 8 callersMethodvisual
(self, videos)
lightx2v/models/input_encoders/hf/wan/xlm_roberta/model.py:486
↓ 8 callersFunctionwarp
(tenInput, tenFlow)
lightx2v/models/vfi/rife/model/warplayer.py:7
↓ 7 callersMethod__init__
( self, resolution: int, in_channels: int, ch: int, ch_mult: list[int]
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:123
↓ 7 callersFunction_assert_close_to_reference
(out, expected, dtype, rtol=0, atol=0)
test_cases/test_int8_triton_kernels.py:47
↓ 7 callersMethod_assert_residual_gate_rejects
(self, mat_a, mat_b, scales_a, scales_b, alpha, residual, gate, pattern, bias=None)
lightx2v_kernel/test/mxfp8_mxfp8/test_fused_ffn.py:400
↓ 7 callersFunction_category_linear
(x, weights)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:17
↓ 7 callersFunction_cfg_get
(config, key, default=None)
lightx2v/models/schedulers/seedvr/utils.py:278
← previousnext →201–300 of 8,429, ranked by callers