MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

↓ 1 callersMethod_device_view_for_wm
Return a shallow ``{name: tensor}`` for WM keys only. When ``cpu_offload`` is enabled, block-swap leaves (in VGT + cam_refine branche
lightx2v/models/networks/worldmirror/model.py:429
↓ 1 callersFunction_disable_shared_memory_tracking_for_process
()
lightx2v/disagg/services/transformer.py:35
↓ 1 callersFunction_disable_shared_memory_tracking_for_process
Disable multiprocessing resource_tracker registration for shared_memory. Python 3.12 does not expose SharedMemory(track=False). In fail-fast path
lightx2v/disagg/services/data_mgr_sidecar.py:22
↓ 1 callersMethod_disagg_encoder_setup_room
(self, room: int)
lightx2v/disagg/disagg_mixin.py:647
↓ 1 callersMethod_disagg_produce_phase1_for_encoder
(self)
lightx2v/disagg/disagg_mixin.py:676
↓ 1 callersMethod_disagg_verify_integrity
Verify SHA256 hashes of transferred tensors.
lightx2v/disagg/disagg_mixin.py:1018
↓ 1 callersMethod_discover_compiled_methods
(self)
lightx2v/utils/custom_compiler.py:119
↓ 1 callersFunction_distance_acc
Return the percentage below the distance threshold, while ignoring distances values with -1. Note: batch_size: N Args: di
tools/preprocess/pose2d_utils.py:353
↓ 1 callersMethod_download_with_retry
(self, url: str, max_retries: Optional[int] = None)
lightx2v/server/services/file_service.py:45
↓ 1 callersMethod_drain_decoder_results_non_block
( self, *, result_port: int, expected_rooms: set[int], received_rooms:
lightx2v/disagg/services/controller.py:1176
↓ 1 callersFunction_draw_body
(canvas: np.ndarray, body_kp_18: np.ndarray, body_score_18: np.ndarray, threshold: float = 0.3)
tools/preprocess/dwpose_onnx.py:331
↓ 1 callersFunction_draw_face
(canvas: np.ndarray, face_kp_68: np.ndarray, face_score_68: np.ndarray, threshold: float = 0.3)
tools/preprocess/dwpose_onnx.py:374
↓ 1 callersFunction_dreamzero_sinusoidal_embedding_1d
(dim, position)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:35
↓ 1 callersFunction_dtype_to_code
(dtype: torch.dtype)
lightx2v_kernel/python/lightx2v_kernel/kv_cache.py:7
↓ 1 callersMethod_dump_controller_metrics
(self, received_results: list[dict[str, Any]], batch_request_start_ts: float | None)
lightx2v/disagg/services/controller.py:1081
↓ 1 callersMethod_dynamic_frequency_update
dynamic RoPE layers should recompute `inv_freq` in the following situations: 1 - growing beyond the cached sequence length (allow sca
lightx2v/models/networks/bagel/infer/pre_infer.py:56
↓ 1 callersMethod_eager_load_block_to_gpu
Populate a WM block's leaves with resident-GPU weights. Used for ``cam_refine_blocks`` under lazy_load, which fire 4× per inference i
lightx2v/models/networks/worldmirror/model.py:818
↓ 1 callersMethod_eager_load_extended_from_file
Read extended-scope WM keys from safetensors directly. Used by the true-lazy load path where the runner never builds a flat state dic
lightx2v/models/networks/worldmirror/model.py:541
↓ 1 callersMethod_effective_cdm_weight
(self, current_iter=None)
lightx2v_train/lightx2v_train/trainers/dmd.py:173
↓ 1 callersMethod_encode
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:528
↓ 1 callersMethod_encode_audio_for_ar
(self)
lightx2v/models/runners/wan/wan_audio_runner.py:1263
↓ 1 callersMethod_encode_first_frame_condition
(self, videos)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:392
↓ 1 callersMethod_encode_image
Encode input image using VAE. Args: image: Input image tensor [B, C, H, W] Returns: Packed latents [B, L, 64
lightx2v/models/schedulers/longcat_image/scheduler.py:499
↓ 1 callersMethod_encode_image
(self, image)
lightx2v/models/schedulers/flux2/scheduler.py:149
↓ 1 callersMethod_encode_multi_profile
Encode using multi-profile engine.
lightx2v/models/video_encoders/trt/qwen_image/vae_trt.py:267
↓ 1 callersMethod_encode_obs
(self, obs)
lightx2v/models/runners/wan/wan_lingbot_va_runner.py:86
↓ 1 callersMethod_encode_observed_latents
(self, videos)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:422
↓ 1 callersMethod_encode_one
(self, prompt)
lightx2v/models/input_encoders/hf/ernie_image/mistral3_model.py:102
↓ 1 callersMethod_encode_prompt_travel_segments
(self, input_info)
lightx2v/models/runners/wan/wan_audio_runner.py:1136
↓ 1 callersMethod_encode_source_image_latents
(self, source_images)
lightx2v_train/lightx2v_train/model_zoo/qwen_image_edit.py:163
↓ 1 callersMethod_encode_static
Encode using static engine.
lightx2v/models/video_encoders/trt/qwen_image/vae_trt.py:289
↓ 1 callersMethod_encode_vae_image
(self, image: torch.Tensor)
lightx2v/models/video_encoders/hf/qwen_image/vae.py:176
↓ 1 callersFunction_enforce_frame_constraints
Enforce min/max frame constraints.
lightx2v/models/networks/worldmirror/utils/video_utils.py:344
↓ 1 callersMethod_enhance_prompt_with_pe
(self, prompt, width, height)
lightx2v/models/input_encoders/hf/ernie_image/mistral3_model.py:67
↓ 1 callersMethod_ensure_audio_padding
(self, audio_end_idx)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:605
↓ 1 callersMethod_ensure_freqs
(self, device)
lightx2v/models/networks/wan/infer/dreamzero/pre_infer.py:80
↓ 1 callersMethod_ensure_int8_weight_and_scale
Fill missing weight_scale (or int8 weight) so load_quantized can run. Some quantized checkpoints omit per-layer scales (e.g. adaLN) or use al
lightx2v_platform/ops/mm/iluvatar_cuda/mm_weight.py:52
↓ 1 callersFunction_ensure_local_no_proxy
(base_url: str)
scripts/hidream_o1_image/test_openai_images_client.py:129
↓ 1 callersMethod_ensure_processing_thread_running
(self)
lightx2v/server/api/server.py:77
↓ 1 callersMethod_ensure_remote_instance_proxy
(self, slot: dict[str, Any])
lightx2v/disagg/services/controller.py:336
↓ 1 callersMethod_ensure_ring_active
(self, layer_id: int, sink_tokens: int)
lightx2v/common/kvcache/rolling.py:71
↓ 1 callersMethod_ensure_runtime_weights_on_device
(self)
lightx2v/models/networks/motus/model.py:338
↓ 1 callersMethod_ensure_stream
(self, device: torch.device)
lightx2v/utils/async_vae.py:99
↓ 1 callersMethod_ensure_transformer_phase2_mgr
(self)
lightx2v/disagg/services/data_mgr_sidecar.py:125
↓ 1 callersFunction_env_positive_int
(name: str, default: int)
lightx2v/server/task_manager.py:15
↓ 1 callersMethod_evict_old_result_png_unlocked
Free the oldest result_png blob once the cap is exceeded. Caller must hold ``self._lock``. Only the heavy bytes are dropped (set to None); th
lightx2v/server/task_manager.py:291
↓ 1 callersFunction_expert_padded_counts
(counts, align=_GROUPED_MM_ALIGN)
lightx2v/models/networks/neopp/infer/transformer_infer.py:32
↓ 1 callersMethod_export_mesh
(self, latents)
lightx2v/models/runners/hunyuan3d/hunyuan3d_shape_runner.py:196
↓ 1 callersMethod_extract_audio_from_video
(self, filename)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:231
↓ 1 callersMethod_extract_glyph_texts
Extract glyph texts from prompt using regex pattern. Args: prompt: Input prompt string Returns: Lis
lightx2v/models/input_encoders/hf/hunyuan15/byt5/model.py:249
↓ 1 callersMethod_extract_masked_hidden
Extract valid hidden states (consistent with HF baseline)
lightx2v/models/input_encoders/lightllm/qwen25_text_encoder_kernel.py:182
↓ 1 callersMethod_extract_masked_hidden
(self, hidden_states: torch.Tensor, mask: torch.Tensor)
lightx2v/models/input_encoders/hf/qwen25/qwen25_vlforconditionalgeneration.py:121
↓ 1 callersMethod_fast_pos_embed_interpolate
(self, weights, grid_thw)
lightx2v/models/networks/hidream_o1_image/infer/vision_infer.py:93
↓ 1 callersMethod_finalize_output
(self, h: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:293
↓ 1 callersMethod_finalize_output
(self, h: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:556
↓ 1 callersMethod_finalize_pipeline_outputs
(self, input_info, images, latents=None, generator=None)
lightx2v/models/runners/bagel/bagel_runner.py:165
↓ 1 callersMethod_finalize_pipeline_outputs
(self, input_info, images, revised_prompts, latents=None, generator=None)
lightx2v/models/runners/ernie_image/ernie_image_runner.py:208
↓ 1 callersMethod_find_model_dir
(self, dirname)
lightx2v/models/runners/wan/fastwam_runner.py:182
↓ 1 callersFunction_find_source_key
Find corresponding source weight key for LoRA base key Args: lora_base_key: LoRA base key (e.g., "diffusion_model.input_blocks.0.0.w
tools/extract/lora_merger.py:318
↓ 1 callersFunction_find_source_key_from_diff
Find corresponding source weight key for diff key Args: diff_key: Diff key (e.g., "diffusion_model.input_blocks.0.diff") sou
tools/extract/lora_merger.py:350
↓ 1 callersFunction_first_image
(images: Any)
lightx2v/server/services/inference/pipeline_image_encode.py:50
↓ 1 callersMethod_flatten_actions
(actions: torch.Tensor)
lightx2v/models/networks/wan/infer/lingbot_va/pre_infer.py:29
↓ 1 callersMethod_flatten_events
(self, events)
lightx2v/common/kvcache/rolling.py:192
↓ 1 callersMethod_flow_to_x0
(self, xt, flow_pred, timestep)
lightx2v_train/lightx2v_train/infer/video.py:423
↓ 1 callersMethod_flow_to_x0
(self, xt, flow_pred, timestep)
lightx2v_train/lightx2v_train/trainers/dmd.py:1133
↓ 1 callersMethod_fm_head
(self, fm_head_w, hidden_states)
lightx2v/models/networks/neopp/infer/transformer_infer.py:439
↓ 1 callersFunction_fmt_float3
(value)
scripts/disagg/extract_dynamic_latency.py:23
↓ 1 callersMethod_format_droid_prompt
(prompt)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:224
↓ 1 callersMethod_forward
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/model.py:555
↓ 1 callersMethod_forward_chunk
Forward pass for a single chunk. This simulates the AR generation process during training.
lightx2v/training/worldplay_ar_pipeline.py:208
↓ 1 callersMethod_forward_inference
r""" Run the diffusion model with kv caching. See Algorithm 2 of CausVid paper https://arxiv.org/abs/2412.07772 for details. T
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/causal_model.py:563
↓ 1 callersMethod_forward_train
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/causal_model.py:655
↓ 1 callersFunction_fp4_all_to_all
All-to-all with SageAttention3 FP4 compression along the last dim.
lightx2v/common/ops/attn/utils/all2all.py:35
↓ 1 callersFunction_fp8_all_to_all
All-to-all with per-token fp8 compression along the last dim. ``input_t`` must be contiguous with dim 0 == world_size (the all-to-all split d
lightx2v/common/ops/attn/utils/all2all.py:12
↓ 1 callersMethod_frame_array_to_tensor
(self, frame, height, width)
lightx2v/models/runners/cosmos3/cosmos3_runner.py:383
↓ 1 callersMethod_frame_schedule
(self)
lightx2v/models/runners/wan/wan_dreamzero_runner.py:547
↓ 1 callersMethod_frame_seq_length
(self, latent)
lightx2v_train/lightx2v_train/infer/video.py:467
↓ 1 callersMethod_frame_seq_length
(self, latent)
lightx2v_train/lightx2v_train/trainers/dmd.py:1116
↓ 1 callersMethod_frame_to_latent_length
(self, frame_length: int)
lightx2v/models/input_encoders/hf/seko_audio/audio_adapter.py:282
↓ 1 callersFunction_fully_shard_module
(module, mesh, mp_policy, reshard_after_forward)
lightx2v_train/lightx2v_train/runtime/fsdp.py:35
↓ 1 callersFunction_func_label
(func)
lightx2v/utils/torch_trace_profiler.py:32
↓ 1 callersMethod_gather_along_seq
(self, x)
lightx2v/models/networks/wan/infer/s2v/transformer_infer.py:52
↓ 1 callersMethod_gather_cfg_parallel_output
(self, output, group)
lightx2v/models/networks/cosmos3/model.py:113
↓ 1 callersMethod_gather_cross_attn_context
Gather context and k_pe from all ranks for cross-attention in sequence parallel mode. Args: context: Local context tenso
lightx2v/models/networks/ltx2/infer/transformer_infer.py:126
↓ 1 callersMethod_gen_all_preds
Generate all enabled predictions (single-GPU path).
lightx2v/models/networks/worldmirror/models/models/worldmirror.py:570
↓ 1 callersMethod_gen_all_preds_frame_sp
Generate predictions with frame-parallel DPT heads for SP inference. Splits S frames across sp_size ranks. Each rank processes S/sp_size fram
lightx2v/models/networks/worldmirror/models/models/worldmirror.py:320
↓ 1 callersFunction_generate_lora_diff_key
Generate LoRA weight key based on original weight key Args: original_key: Original weight key name Returns: LoRA weight
tools/extract/lora_extractor.py:398
↓ 1 callersMethod_get_2d_grid
(self, total_h, total_w, world_size)
lightx2v/models/video_encoders/hf/qwen_image/vae.py:66
↓ 1 callersMethod_get_Ks_transformed
(Ks: torch.Tensor, height_org: int, width_org: int, height_resize: int, width_resize: int, height_final: int,
lightx2v/models/runners/wan/wan_runner.py:1019
↓ 1 callersMethod_get_actual_bias
(self, bias=None)
lightx2v/common/ops/conv/conv3d.py:43
↓ 1 callersMethod_get_actual_weight
(self)
lightx2v/common/ops/conv/conv3d.py:38
↓ 1 callersFunction_get_aiter_sgl_kernel
Get aiter-based sgl_kernel compatibility layer.
lightx2v_platform/base/amd_rocm.py:81
↓ 1 callersMethod_get_ar_config
(self)
lightx2v/models/runners/wan/wan_lingbot_va_runner.py:56
↓ 1 callersFunction_get_array_shape_from_lmdb
(env, array_name)
lightx2v_train/lightx2v_train/data/video_dataset.py:282
↓ 1 callersMethod_get_attn_map_with_target
(self, visual_q, ref_k, shape, ref_target_masks, split_num=2)
lightx2v/models/networks/wan/infer/infinitetalk/transformer_infer.py:172
↓ 1 callersMethod_get_audio_segment
(self, start_frame, frame_count)
lightx2v/models/runners/wan/wan_infinitetalk_runner.py:701
↓ 1 callersMethod_get_base_attrs_mapping
(self)
lightx2v/common/ops/norm/rms_norm_weight.py:57
↓ 1 callersMethod_get_base_attrs_mapping
(self)
lightx2v/common/ops/norm/layer_norm_weight.py:53
↓ 1 callersMethod_get_base_attrs_mapping
(self)
lightx2v/common/ops/mm/mm_weight.py:164
↓ 1 callersMethod_get_base_attrs_mapping
(self)
lightx2v/common/ops/conv/conv3d.py:26
← previousnext →2,401–2,500 of 8,429, ranked by callers