MCPcopy Create free account

hub / github.com/a1600012888/LaCT / functions

Functions581 in github.com/a1600012888/LaCT

↓ 1 callersFunctionget_sp_rank
()
lact_ar_video/minVid/models/wan/wan_base/distributed/sp_support.py:27
↓ 1 callersFunctionget_sp_world_size
()
lact_ar_video/minVid/models/wan/wan_base/distributed/sp_support.py:31
↓ 1 callersMethodget_trainable_params
(self, attn_only=True, **kwargs)
lact_ar_video/minVid/models/wan/wan_base/modules/wan_model_warpper.py:425
↓ 1 callersMethodget_trainable_params
(self, **kwargs)
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat.py:1011
↓ 1 callersFunctionget_turntable_cameras_with_zoom_in
rotate the camera around the object, and change the radius and elevation periodically
lact_nvs/inference.py:17
↓ 1 callersFunctionget_video_reader_backend
()
lact_ar_video/minVid/models/wan/wan_base/utils/qwen_vl_utils.py:261
↓ 1 callersFunctioninit_logger
()
lact_ar_video/minVid/train.py:51
↓ 1 callersFunctioninit_logging_folder
Initialize the logging folder and wandb run Given: args: output_path: path to save the output wandb_host: wan
lact_ar_video/minVid/utils/dist_utils.py:82
↓ 1 callersFunctioninit_sp_group
(sp_size)
lact_ar_video/minVid/models/wan/wan_base/distributed/sp_support.py:16
↓ 1 callersMethodinit_weights
r""" Initialize model parameters using Xavier initialization.
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:757
↓ 1 callersMethodinit_weights
r""" Initialize model parameters using Xavier initialization.
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:807
↓ 1 callersFunctioninv_softplus
(x)
minimal_implementations/bidirectional_lact_layer.py:163
↓ 1 callersFunctioninv_softplus
(x)
minimal_implementations/causal_lact_with_sliding_window_attn.py:214
↓ 1 callersFunctioninv_softplus
(x)
lact_nvs/lact_ttt.py:13
↓ 1 callersFunctioninv_softplus
(x)
lact_llm/lact_model/layer_lact_swiglu.py:44
↓ 1 callersFunctionis_decord_available
()
lact_ar_video/minVid/models/wan/wan_base/utils/qwen_vl_utils.py:215
↓ 1 callersFunctionl2_norm_add_fwd
( x: torch.Tensor, # [B, D1, D2] x_add: torch.Tensor, # [B, D1, D2] tgt_scale: torch.Tensor, #
lact_llm/lact_model/lact_triton_kernels/l2norm_triton_kernels.py:273
↓ 1 callersFunctionl2_norm_bwd
( dy: torch.Tensor, # [B, D1, D2] y: torch.Tensor, # [B, D1, D2] tgt_scale: torch.Tensor, # [B,
lact_llm/lact_model/lact_triton_kernels/l2norm_triton_kernels.py:321
↓ 1 callersFunctionload_dcp
Load the model using torch.distributed.checkpoint ckpt_path: str, dir path where the checkpoint is saved shard_strategy: str, either "ful
lact_ar_video/minVid/utils/job_checkpoint_fsdp.py:36
↓ 1 callersFunctionlocal_scatter
(x, scatter_dim=1, process_group=None)
lact_ar_video/minVid/models/wan/wan_base/distributed/sp_support.py:91
↓ 1 callersFunctionmain
Main function to convert all DL3DV benchmark data.
lact_nvs/data_preprocess/dl3dv_format_converter.py:197
↓ 1 callersFunctionmain
()
lact_ar_video/minVid/inference_scripts/run_wan_inference_distributed.py:153
↓ 1 callersFunctionmake_inputs
(B, M, K, N, dtype=torch.bfloat16, device="cuda")
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_bwd_kernels.py:378
↓ 1 callersFunctionmake_inputs
(B, D, L, lr_dtype=torch.float32)
lact_llm/lact_model/lact_triton_kernels/triton_pointwise_kernels.py:437
↓ 1 callersFunctionmake_inputs
(B, T, D)
lact_llm/lact_model/lact_triton_kernels/l2norm_triton_kernels.py:443
↓ 1 callersFunctionmake_inputs
W0, W1: [B, K, M] X0, X1: [B, K, N] W2: [B, M, N] X2: [B, K, M]
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_bwd_with_lr.py:317
↓ 1 callersFunctionmake_inputs_ffn
(B, M, K, N, require_grad=True)
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_kernels.py:191
↓ 1 callersMethodmultistep_dpm_solver_second_order_update
One step for the second-order multistep DPMSolver. Args: model_output_list (`List[torch.Tensor]`): The di
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers.py:486
↓ 1 callersMethodmultistep_dpm_solver_third_order_update
One step for the third-order multistep DPMSolver. Args: model_output_list (`List[torch.Tensor]`): The dir
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers.py:596
↓ 1 callersMethodmultistep_uni_c_bh_update
One step for the UniC (B(h) version). Args: this_model_output (`torch.Tensor`): The model outputs at `x_
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers_unipc.py:486
↓ 1 callersMethodmultistep_uni_p_bh_update
One step for the UniP (B(h) version). Alternatively, `self.solver_p` is used if is specified. Args: model_output (`torch
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers_unipc.py:350
↓ 1 callersFunctionnormalize_with_mean_pose
(c2ws: torch.Tensor)
lact_nvs/data.py:60
↓ 1 callersFunctionpad0_tensor
(x, dim, pad_len)
lact_ar_video/minVid/models/wan/wan_base/distributed/sp_support.py:52
↓ 1 callersFunctionpad_freqs
(original_tensor, target_len)
lact_ar_video/minVid/models/wan/wan_base/distributed/xdit_context_parallel.py:12
↓ 1 callersMethodpad_video_frames
x of shape [B, C, F, H, W] pad zeros to the begging frames, pad self.patch_size[0] -1 frames with all zeros in the beginning
lact_ar_video/minVid/models/autoencoder/vae.py:47
↓ 1 callersFunctionplot_logit_normal_distribution
Plot logit normal distribution weighting function Args: num_train_timesteps: Number of training timesteps mu: Mean in lo
lact_ar_video/minVid/utils/logit_normal_weighting.py:53
↓ 1 callersFunctionpos_interpolate
(pos, seq_len)
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:22
↓ 1 callersMethodpost_init
A few custom initialization steps that should be called after the object is created. Currently, the only one we have is to bind a few
lact_ar_video/minVid/models/wan/wan_warpper_versatile.py:101
↓ 1 callersFunctionpostnorm_block_causal_lact_swiglu_fused_kernel_triton
Block causal LaCT with SwiGLU fast weight function. Apply then Update => Shifted Block Causal LaCT w0, w1, w2 are the fast weights. f
lact_llm/lact_model/ttt_operation_fused_kernel.py:67
↓ 1 callersFunctionprenorm_block_causal_lact_swiglu
Block causal LaCT with SwiGLU fast weight function. Apply then Update => Shifted Block Causal LaCT w0, w1, w2 are the fast weights. f
lact_llm/lact_model/ttt_operation.py:219
↓ 1 callersFunctionprenorm_block_causal_lact_swiglu_fused_kernel_triton
Block causal LaCT with SwiGLU fast weight function. Apply then Update => Shifted Block Causal LaCT w0, w1, w2 are the fast weights. f
lact_llm/lact_model/ttt_operation_fused_kernel.py:190
↓ 1 callersFunctionprenorm_update_with_momentum_and_l2_norm
Args: x: [B, n, D2], fp32 dx: [B, n, D2], bf16 dx_momentum: [B, n, D2], fp32 momentum_mu: [B], fp32 tgt_s
lact_llm/lact_model/lact_triton_kernels/triton_prenorm_update_with_momentum.py:122
↓ 1 callersFunctionprenorm_update_with_momentum_and_l2_norm_backward
( y_normalized: torch.Tensor, # [B, n, D2], fp32 dx_momentum: torch.Tensor, # [B, n, D2], fp32 m
lact_llm/lact_model/lact_triton_kernels/triton_prenorm_update_with_momentum.py:280
↓ 1 callersFunctionprocess_one_scene
Process one scene following the rules from process_dl3dv.py This is copied from Ziwen Chen's code here: https://github.com/arthurhero/Long-L
lact_nvs/data_preprocess/dl3dv_format_converter.py:23
↓ 1 callersFunctionrand_name
(length=8, suffix='')
lact_ar_video/minVid/models/wan/wan_base/utils/utils.py:14
↓ 1 callersMethodreconstruct
(self, input_data_dict)
lact_nvs/model.py:272
↓ 1 callersFunctionref_func
Shapes: W0: [B, M, K] W1: [B, K, M] W2: [B, M, K] X : [B, N, K] dOut (a.k.a. V): [B, N, K] lr0, lr1, lr2: [B,
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_bwd_with_lr.py:291
↓ 1 callersFunctionref_pytorch_swiglu_bwd_bwd_fused_cat_inp_out
In previous fwd pass: dx0 = lr0 * dh * x2 * sigma * (1 + x0 * (1 - sigma)) dx2 = lr2 * dh * silu(x0) hidden_lr1 = lr1 * x2 * silu(x0)
lact_llm/lact_model/lact_triton_kernels/triton_pointwise_kernels.py:353
↓ 1 callersFunctionreference_l2_norm_add_fused
( x: torch.Tensor, # [B, D1, D2] x_add: torch.Tensor, # [B, D1, D2] tgt_scale: torch.Tensor, #
lact_llm/lact_model/lact_triton_kernels/l2norm_triton_kernels.py:430
↓ 1 callersFunctionremove_model_prefix
(name: str)
lact_ar_video/minVid/inference_scripts/run_wan_inference_distributed.py:111
↓ 1 callersFunctionremove_module_prefix
(state_dict)
lact_nvs/train.py:128
↓ 1 callersFunctionrename_param
(name: str)
lact_ar_video/minVid/inference_scripts/run_wan_inference_distributed.py:113
↓ 1 callersMethodrendering
(self, target_data_dict, states, h, w)
lact_nvs/model.py:317
↓ 1 callersMethodreparameterize
(self, mu, log_var)
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:570
↓ 1 callersFunctionrescale_qk
q: [b, s, n_h, d] k: [b, s, n_h, d]
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat_sp.py:584
↓ 1 callersFunctionrescale_qk
q: [b, s, n_h, d] k: [b, s, n_h, d]
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat.py:538
↓ 1 callersFunctionresize_and_crop
Resize and crop image to target_size, adjusting camera parameters accordingly. Args: image: PIL Image target_size: (heig
lact_nvs/data.py:11
↓ 1 callersMethodrestore_model_from_cache
(self)
lact_ar_video/minVid/utils/ema_param_utils.py:50
↓ 1 callersMethodreturn_act_ckpt_check_fn
Will be used to apply activation checkpointing to the WanAttentionBlock. Check if the submodule is a WanAttentionBlock.
lact_ar_video/minVid/models/wan/wan_warpper.py:228
↓ 1 callersFunctionsave_dcp
Save the model using torch.distributed.checkpoint ckp_path: str, dir path to save the checkpoint
lact_ar_video/minVid/utils/job_checkpoint_fsdp.py:20
↓ 1 callersFunctionsave_image_rgb
Save tensor as RGB image.
lact_nvs/inference.py:199
↓ 1 callersFunctionsetup_model_and_load_weights
(config, args, checkpoint_folder, device)
lact_ar_video/minVid/inference_scripts/run_wan_inference_distributed.py:48
↓ 1 callersFunctionshard_model_set_ema_set_optimizer
config: config object should have the following keys: - train: train config. - train.fsdp_modules: list of modules to wrap with FSDP.
lact_ar_video/minVid/train.py:66
↓ 1 callersFunctionsilu_backprop
Args: dy: [b, d, l], gradient of the outer loss wrt the y x: [b, d, l], input of the silu activation outs: dx: [b, d,
minimal_implementations/bidirectional_lact_layer.py:10
↓ 1 callersFunctionsilu_backprop
Args: dy: [b, d, l], gradient of the outer loss wrt the y x: [b, d, l], input of the silu activation outs: dx: [b, d,
minimal_implementations/causal_lact_with_sliding_window_attn.py:20
↓ 1 callersFunctionsilu_backprop
Args: dy: [b, d, l], gradient of the outer loss wrt the y x: [b, d, l], input of the silu activation outs: dx: [b, d,
lact_nvs/lact_ttt.py:18
↓ 1 callersFunctionsinusoidal_embedding_1d
(dim, position)
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:17
↓ 1 callersFunctionsliding_window_attention_inference
q: [b, l, h, d] k: [b, l, h, d] v: [b, l, h, d] kv_cache: [2, b, l, h, d] Three cases: 1. first ar noise chunk, where kv_ca
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat_sp.py:512
↓ 1 callersFunctionsliding_window_attention_inference
q: [b, l, h, d] k: [b, l, h, d] v: [b, l, h, d] kv_cache: [2, b, l, h, d] Three cases: 1. first ar noise chunk, where kv_ca
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat.py:466
↓ 1 callersFunctionsp_broadcast
(x: torch.Tensor)
lact_ar_video/minVid/models/wan/wan_base/distributed/sp_support.py:35
↓ 1 callersFunctionsp_gather_scatter
(x, gather_dim=2, scatter_dim=1)
lact_ar_video/minVid/models/wan/wan_base/distributed/sp_support.py:87
↓ 1 callersFunctionsp_input_broadcast_scatter
Note: 1. need all rank have the same size and type of x. 2. it will auto-pad and shard among the scatter_dim given the sp world s
lact_ar_video/minVid/models/wan/wan_base/distributed/sp_support.py:109
↓ 1 callersFunctionsp_local_scatter
(x, scatter_dim=1)
lact_ar_video/minVid/models/wan/wan_base/distributed/sp_support.py:105
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the multistep UniPC.
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers_unipc.py:655
↓ 1 callersFunctionswiglu_backward_three_bmm_ref
Reference implementation in PyTorch (for correctness checks). Shapes / layouts (contiguous, unless noted): W0: [B, M, K] W1: [B,
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_bwd_kernels.py:338
↓ 1 callersFunctiontest_correctness_of_prenorm_update_with_momentum_and_l2_norm
()
lact_llm/lact_model/lact_triton_kernels/triton_prenorm_update_with_momentum.py:404
↓ 1 callersMethodtime_shift
(self, mu: float, sigma: float, t: torch.Tensor)
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers.py:337
↓ 1 callersMethodtime_shift
(self, mu: float, sigma: float, t: torch.Tensor)
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers_unipc.py:276
↓ 1 callersMethodtrain
(self)
lact_ar_video/minVid/train.py:604
↓ 1 callersMethodunpatchify
r""" Reconstruct video tensors from patch embeddings. Args: x (List[Tensor]): List of patchified features
lact_ar_video/minVid/models/wan/wan_base/modules/wan_model_warpper.py:376
↓ 1 callersMethodunpatchify
r""" Reconstruct video tensors from patch embeddings. Args: x (List[Tensor]): List of patchified features
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:732
Method__call__
(self, sequence, **kwargs)
lact_ar_video/minVid/models/wan/wan_base/modules/tokenizers.py:49
Method__call__
(self, texts, device)
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:506
Method__call__
(self, prompt, tar_lang="zh", image=None,
lact_ar_video/minVid/models/wan/wan_base/utils/prompt_extend.py:138
Method__getitem__
(self, index)
lact_nvs/data.py:113
Method__getitem__
(self, idx)
lact_ar_video/minVid/inference_scripts/run_wan_inference.py:25
Method__getitem__
(self, idx)
lact_ar_video/minVid/inference_scripts/run_wan_inference_distributed.py:45
Method__init__
( self, dim: int, head_dim: int, inter_multi: float = 1, use_o_norm: b
minimal_implementations/bidirectional_lact_layer.py:173
Method__init__
( self, dim: int, head_dim: int, # ttt head dim attn_head_dim: int, # attn hea
minimal_implementations/causal_lact_with_sliding_window_attn.py:230
Method__init__
( self, dim: int, head_dim: int, inter_multi: int = 1, bias: bool = Fa
lact_nvs/lact_ttt.py:166
Method__init__
image_size is (h, w) or just a int (as size).
lact_nvs/data.py:91
Method__init__
( self, dim, head_dim, use_qk_norm=True, causal=False, bias=Fa
lact_nvs/model.py:39
Method__init__
(self, dim, bias, block_config)
lact_nvs/model.py:96
Method__init__
(self, patch_size, dim, layers, block_config)
lact_nvs/model.py:175
Method__init__
( self, num_heads, out_features, in_features, rank=32, init_ga
lact_llm/lact_model/layer_lact_swiglu.py:69
Method__init__
( self, hidden_size: int = 2048, num_hidden_layers: int = 24, num_attn_heads:
lact_llm/lact_model/configuration_lact_swiglu.py:23
Method__init__
(self, *inputs, **kwargs)
lact_llm/lact_model/modeling_lact.py:136
Method__init__
(self, config: LaCTSWIGLUConfig)
lact_llm/lact_model/modeling_lact.py:204
Method__init__
(self, config)
lact_llm/lact_model/modeling_lact.py:354
Method__init__
(self, args)
lact_ar_video/minVid/train.py:268
← previousnext →201–300 of 581, ranked by callers