MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 2 callersFunction_build_openai_response
(request: Request, task_id: str, image_bytes: bytes, response_format: Literal["url", "b64_json"], usage: Optio
lightx2v/server/api/openai_images.py:161
↓ 2 callersMethod_build_optimizer
(self, params, optimizer_config=None)
lightx2v_train/lightx2v_train/trainers/base.py:95
↓ 2 callersFunction_build_ort_session
(onnx_path: str, device: str)
tools/preprocess/dwpose_onnx.py:416
↓ 2 callersFunction_build_request_payload
(base_config: dict[str, Any], stage: StageSpec, request_index: int)
lightx2v/disagg/workload.py:156
↓ 2 callersMethod_build_self_attention_io
(self, block, x, freqs, t_mod)
lightx2v/models/networks/wan/infer/fastwam/transformer_infer.py:41
↓ 2 callersMethod_build_t2i_image_indexes
(self, token_h, token_w, text_len, device)
lightx2v/models/runners/neopp/neopp_runner.py:101
↓ 2 callersFunction_build_vertex_ply_element
Build a PLY vertex element from points and colors arrays. Args: pts: Point coordinates, shape [N, 3], dtype float32 colors: RGB c
lightx2v/models/networks/worldmirror/utils/save_utils.py:88
↓ 2 callersMethod_build_wan22_vae_config
(self, vae_offload)
lightx2v/models/runners/wan/wan_runner.py:849
↓ 2 callersMethod_build_weight_dict
(state_dict, unified_dtype, sensitive_layer, config=None)
lightx2v/models/networks/hunyuan3d/model.py:89
↓ 2 callersMethod_cache_chunks_for_logical_range
( self, layer_id: int, attn_start: int, local_end: int, *, str
lightx2v/common/kvcache/quant.py:476
↓ 2 callersMethod_cache_name_for_cfg_mode
(self, enable_cfg)
lightx2v/models/runners/wan/wan_lingbot_va_runner.py:66
↓ 2 callersMethod_cache_names
(cls, cache_name)
lightx2v/models/networks/wan/lingbot_va_model.py:58
↓ 2 callersMethod_calculate_dimensions
计算目标尺寸
lightx2v/models/input_encoders/lightllm/qwen25_text_encoder_service.py:379
↓ 2 callersMethod_calculate_dimensions
Calculate target dimensions
lightx2v/models/input_encoders/lightllm/qwen25_text_encoder_kernel.py:294
↓ 2 callersFunction_calculate_hist_similarity
(hist1, hist2)
lightx2v/models/networks/worldmirror/utils/video_utils.py:213
↓ 2 callersFunction_calculate_resize_dims
Calculate new dimensions based on resize strategy.
lightx2v/models/networks/worldmirror/utils/inference_utils.py:50
↓ 2 callersMethod_calculate_skip_step_length_for_args
(self, ada_args)
lightx2v/models/networks/flux2/infer/feature_caching/transformer_infer.py:102
↓ 2 callersMethod_cast_cond_dtype
(cond, dtype)
lightx2v/models/runners/hunyuan3d/hunyuan3d_shape_runner.py:152
↓ 2 callersMethod_causal_forcing_scheduler
(self)
lightx2v_train/lightx2v_train/infer/video.py:401
↓ 2 callersMethod_clear_action_condition_state
(self)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:532
↓ 2 callersMethod_close_unlink_shared_memory
(self, shm: shared_memory.SharedMemory)
lightx2v/disagg/services/data_mgr_sidecar.py:141
↓ 2 callersMethod_combine_cfg_output
(self, cond, uncond)
lightx2v/models/networks/cosmos3/model.py:84
↓ 2 callersMethod_compute_qkv
(self, x: Tensor)
lightx2v/models/networks/worldmirror/models/layers/attention.py:53
↓ 2 callersFunction_compute_sky_mask_from_model
Build sky mask from model predictions. Returns [S,H,W] bool or None.
lightx2v/models/networks/worldmirror/utils/inference_utils.py:405
↓ 2 callersMethod_compute_video_freqs
(self, frame, height, width, idx=0)
lightx2v/models/schedulers/qwen_image/scheduler.py:291
↓ 2 callersMethod_compute_video_freqs
(self, frame, height, width, idx=0)
lightx2v/models/schedulers/z_image/scheduler.py:298
↓ 2 callersMethod_configure_transformer
(self)
lightx2v_train/lightx2v_train/model_zoo/wan_t2v.py:117
↓ 2 callersFunction_construct_broadcast_buffer
(shapes, dtypes, device)
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:356
↓ 2 callersMethod_consume_motion_noise
(self, timestep)
lightx2v/models/schedulers/wan/infinitetalk/scheduler.py:61
↓ 2 callersFunction_convert_quads_to_triangles
Convert quadrilateral faces to triangular faces.
lightx2v/models/networks/worldmirror/utils/visual_util.py:203
↓ 2 callersMethod_count_trainable
(module)
lightx2v_train/lightx2v_train/trainers/dmd.py:127
↓ 2 callersMethod_cpu_k_code
(self, layer_id: int)
lightx2v/common/kvcache/quant.py:229
↓ 2 callersMethod_cpu_k_mn
(self, layer_id: int)
lightx2v/common/kvcache/quant.py:238
↓ 2 callersMethod_cpu_k_scale
(self, layer_id: int)
lightx2v/common/kvcache/quant.py:235
↓ 2 callersMethod_cpu_update_event
(self, layer_id: int)
lightx2v/common/kvcache/rolling.py:204
↓ 2 callersMethod_cpu_v_code
(self, layer_id: int)
lightx2v/common/kvcache/quant.py:232
↓ 2 callersMethod_cpu_v_mn
(self, layer_id: int)
lightx2v/common/kvcache/quant.py:244
↓ 2 callersMethod_cpu_v_scale
(self, layer_id: int)
lightx2v/common/kvcache/quant.py:241
↓ 2 callersMethod_create_cpu_pin_tensor
(self, tensor)
lightx2v/common/ops/tensor/tensor.py:57
↓ 2 callersMethod_create_cpu_pin_weight
(self, tensor)
lightx2v_platform/ops/norm/norm_template.py:87
↓ 2 callersMethod_create_cpu_pin_weight
(self, tensor)
lightx2v/common/ops/embedding/embedding_weight.py:57
↓ 2 callersMethod_create_self_attn_kv_cache
(self)
lightx2v/common/kvcache/manager.py:122
↓ 2 callersFunction_cuda_memory_gb
()
lightx2v_train/lightx2v_train/runtime/fsdp.py:44
↓ 2 callersMethod_decode_dist
Parallel 2D spatial decode. latents: (b, c, 1, lh, lw)
lightx2v/models/video_encoders/hf/qwen_image/vae.py:79
↓ 2 callersMethod_decoder_layer_attn
(self, block_weight, layer_idx, hidden_states, cos_sin, kv_buf=None)
lightx2v/models/networks/neopp/infer/transformer_infer.py:229
↓ 2 callersMethod_deepstack_process
(self, hidden_states, visual_pos_masks, visual_embeds)
lightx2v/models/networks/hidream_o1_image/infer/transformer_infer.py:108
↓ 2 callersMethod_denorm
x: [B,3,H,W] normalized ((img-mean)/std). returns [0,1] clamped.
lightx2v/models/runners/neopp/neopp_runner.py:317
↓ 2 callersMethod_dequant_physical_chunks
(self, layer_id: int, chunks: list[tuple[int, int]], which: str)
lightx2v/common/kvcache/quant.py:518
↓ 2 callersMethod_dequantize_received
反量化接收到的 FP8 张量 参数: next_tensor_quant: 接收到的量化张量 next_tensor_scale: 接收到的 scale 张量 original_dtype:
lightx2v/common/ops/attn/ring_attn.py:323
↓ 2 callersMethod_disagg_build_request_config_snapshot
Payload for phase1/phase2 ring: per-request fields for workers.
lightx2v/disagg/disagg_mixin.py:324
↓ 2 callersMethod_disagg_json_safe_value
(self, obj: Any)
lightx2v/disagg/disagg_mixin.py:313
↓ 2 callersFunction_dispatch
(payload: dict[str, Any])
lightx2v/disagg/examples/run_controller.py:434
↓ 2 callersFunction_draw_hand
(canvas: np.ndarray, hand_kp_21: np.ndarray, hand_score_21: np.ndarray, threshold: float = 0.3)
tools/preprocess/dwpose_onnx.py:355
↓ 2 callersFunction_effective_keep_parallel
(args: argparse.Namespace)
lightx2v/disagg/examples/run_controller.py:114
↓ 2 callersFunction_elapsed_since_start
()
lightx2v/disagg/workload.py:134
↓ 2 callersFunction_empty_device_cache
()
lightx2v/models/networks/wan/infer/self_forcing/pre_infer.py:12
↓ 2 callersMethod_empty_face_image
(frame)
tools/preprocess/process_pipepline.py:123
↓ 2 callersMethod_encode_conditions
(self, sample)
lightx2v_train/lightx2v_train/trainers/dmd.py:189
↓ 2 callersMethod_encode_prompt
Encode prompt with character-level tokenization for quoted text. This is a key feature of LongCat: text in quotes is tokenized character by c
lightx2v/models/input_encoders/hf/longcat/longcat_text_encoder.py:107
↓ 2 callersMethod_encode_vae_image
(self, image: torch.Tensor)
lightx2v/models/video_encoders/hf/z_image/vae.py:88
↓ 2 callersMethod_enhance
( self, messages: list[dict[str, str]], image: torch.Tensor | None = None, max
lightx2v/models/input_encoders/hf/ltx2/gemma/encoders/base_encoder.py:69
↓ 2 callersMethod_ensure_disagg_phase1_queue_consumer
(self, disagg_cfg: dict)
lightx2v/disagg/disagg_mixin.py:419
↓ 2 callersMethod_ensure_disagg_phase1_queue_producer
(self, disagg_cfg: dict)
lightx2v/disagg/disagg_mixin.py:413
↓ 2 callersMethod_ensure_disagg_phase2_queue_consumer
(self, disagg_cfg: dict)
lightx2v/disagg/disagg_mixin.py:431
↓ 2 callersMethod_ensure_disagg_phase2_queue_producer
(self, disagg_cfg: dict)
lightx2v/disagg/disagg_mixin.py:425
↓ 2 callersMethod_ensure_kv_cache_capacity
(self, cache, min_capacity, dtype, device)
lightx2v/models/networks/wan/infer/dreamzero/transformer_infer.py:52
↓ 2 callersMethod_ensure_lazy_handle
Open (and cache) a persistent safetensors handle for lazy_load. Reopening the file on every block's pre-hook was adding ~500ms to eac
lightx2v/models/networks/worldmirror/model.py:872
↓ 2 callersMethod_ensure_mxfp8_quant_ffn_ready
(self, phase, norm2_out, residual, c_gate_msa=None, c_scale_msa=None, c_shift_msa=None)
lightx2v/models/networks/wan/infer/mxfp8_fuse.py:73
↓ 2 callersMethod_ensure_phase2_request_buffer
(self)
lightx2v/disagg/services/decoder.py:97
↓ 2 callersMethod_ensure_pre_weights_on_device
(self)
lightx2v/models/networks/motus/model.py:331
↓ 2 callersMethod_ensure_request_buffer
(self)
lightx2v/disagg/services/encoder.py:209
↓ 2 callersMethod_expand_frame_sigma
(self, sigma, ndim)
lightx2v_train/lightx2v_train/infer/video.py:420
↓ 2 callersMethod_expand_frame_sigma
(self, sigma, ndim)
lightx2v_train/lightx2v_train/trainers/dmd.py:1130
↓ 2 callersFunction_expand_path_candidates
Resolve a user-provided path against cwd and the project root when needed.
lightx2v/models/runners/wan/wan_matrix_game3_runner.py:80
↓ 2 callersFunction_extra_body_from_args
(args: argparse.Namespace)
scripts/hidream_o1_image/test_openai_images_client.py:165
↓ 2 callersFunction_extract_checkpoint_state_dict
(raw)
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:23
↓ 2 callersFunction_extract_data_item
(response: Any)
scripts/hidream_o1_image/test_openai_images_client.py:39
↓ 2 callersFunction_extract_data_item
(response: Any)
scripts/server/openai_image/test_openai_images_client.py:15
↓ 2 callersMethod_extract_fused_features
Extract multi-scale features from tokens, fuse via scratch network, and upsample.
lightx2v/models/networks/worldmirror/models/heads/dense_head.py:88
↓ 2 callersMethod_extract_specific_frame
(self, video_path, frame_id)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:400
↓ 2 callersMethod_fake_weights_dir
(self, root_dir)
lightx2v_train/lightx2v_train/trainers/dmd.py:455
↓ 2 callersMethod_feed_spatial_noise
( self, hidden_states: torch.Tensor, per_channel_scale: torch.Tensor, generato
lightx2v/models/video_encoders/hf/ltx2/video_vae/resnet.py:96
↓ 2 callersMethod_finalize_pipeline_outputs
(self, input_info, images, latents=None, generator=None)
lightx2v/models/runners/qwen_image/qwen_image_runner.py:463
↓ 2 callersMethod_finalize_pipeline_outputs
(self, input_info, images, latents=None, generator=None, sound=None, action=None)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:738
↓ 2 callersMethod_find_best_profile
Find the profile with closest opt_shape to input.
lightx2v/models/video_encoders/trt/qwen_image/vae_trt.py:222
↓ 2 callersMethod_find_model_file
(self, filename)
lightx2v/models/runners/wan/fastwam_runner.py:176
↓ 2 callersFunction_first_visible_sm120_device
()
lightx2v_kernel/test/mxfp8_mxfp8/test_fused_ffn.py:24
↓ 2 callersFunction_fit_height
(image, height)
lightx2v_train/lightx2v_train/infer/dopsd_trajectory_viz.py:4
↓ 2 callersFunction_fmt_float3
(value)
scripts/disagg/extract_base_latency.py:10
↓ 2 callersMethod_forward_causal_chunk
(self, model, latents, timestep, context, kv_cache, crossattn_cache, current_start, cache_start)
lightx2v_train/lightx2v_train/trainers/dmd.py:1072
↓ 2 callersMethod_forward_impl
( self, token_list: List[torch.Tensor], images: torch.Tensor, patch_start_idx:
lightx2v/models/networks/worldmirror/models/heads/gs_head.py:64
↓ 2 callersMethod_gather_cfg_tensor
(tensor, group)
lightx2v/models/networks/wan/dreamzero_model.py:37
↓ 2 callersMethod_gather_optional_tensor
(tensor, group)
lightx2v/models/networks/cosmos3/model.py:106
↓ 2 callersFunction_gaussian_blur
Modulate heatmap distribution with Gaussian. sigma = 0.3*((kernel_size-1)*0.5-1)+0.8 sigma~=3 if k=17 sigma=2 if k=11; sigma~=1.5
tools/preprocess/pose2d_utils.py:699
↓ 2 callersMethod_get_action_block
(self, layer_idx)
lightx2v/models/networks/motus/infer/transformer_infer.py:96
↓ 2 callersMethod_get_action_num_chunks
(self)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:425
↓ 2 callersMethod_get_audio_latent_time_in_sec
Converts latent indices into real-time seconds while honoring causal offsets and the configured hop length. Args:
lightx2v/models/schedulers/ltx2/scheduler.py:212
↓ 2 callersMethod_get_av_ca_ada_values
Get AV cross-attention Ada values (no batch dimension).
lightx2v/models/networks/ltx2/infer/transformer_infer.py:598
↓ 2 callersMethod_get_cfg_p_rank
返回当前进程在 cfg_p 组内的 rank;未开启 cfg_parallel 时返回 None(两份 kvcache 都需要加载)。
lightx2v/models/runners/neopp/neopp_runner.py:254
↓ 2 callersFunction_get_controller_target
()
lightx2v/disagg/workload.py:179
← previousnext →1,201–1,300 of 8,429, ranked by callers