MCPcopy Create free account

hub / github.com/a1600012888/LaCT / functions

Functions581 in github.com/a1600012888/LaCT

↓ 2 callersFunctionresume_job_dcp
Resume training from a checkpoint. the checkpoint path looks like: exp_name/seed_200/checkpoint_model_000009/ the dcp_folder is in
lact_ar_video/minVid/utils/job_checkpoint_fsdp.py:160
↓ 2 callersFunctionrope_apply
(x, grid_sizes, freqs)
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:40
↓ 2 callersFunctionrope_apply
x: [B, L, N, C]. grid_sizes: [B, 3]. freqs: [M, C // 2].
lact_ar_video/minVid/models/wan/wan_base/distributed/xdit_context_parallel.py:26
↓ 2 callersFunctionsave_job
save_path: str, dir path to save the checkpoint step: int, step number of the checkpoint model: torch.nn.Module, model to save, might be
lact_ar_video/minVid/utils/job_checkpoint_fsdp.py:70
↓ 2 callersFunctionset_seed
Helper function for reproducible behavior to set the seed in `random`, `numpy`, `torch`. Args: seed (`int`): The seed to
lact_ar_video/minVid/utils/dist_utils.py:63
↓ 2 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_llm/lact_model/ttt_operation.py:6
↓ 2 callersFunctionsmart_nframes
calculate the number of frames for video used for model inputs. Args: ele (dict): a dict contains the configuration of video.
lact_ar_video/minVid/models/wan/wan_base/utils/qwen_vl_utils.py:133
↓ 2 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the multistep DPMSolver.
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers.py:706
↓ 2 callersFunctionswiglu_backward_three_bmm_triton
Outs: Hidden: [B, M, N] in other words [B, Hidden, num_tokens] DY0_DY2: [B, 2M, N] in other words [B, 2 * Hidden, num_tokens]
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_bwd_kernels.py:187
↓ 2 callersFunctionswiglu_backward_three_bmm_with_lr_triton
Args: W0: [B, M, K] - [B, Hidden, D] W1: [B, K, M] - [B, D, Hidden] W2: [B, M, K] - [B, Hidden, D] X: [B, N, K] -
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_bwd_with_lr.py:197
↓ 2 callersMethodtrain_one_step
(self, data_batch: dict)
lact_ar_video/minVid/train.py:453
↓ 2 callersFunctiontriton_swiglu_bwd_bwd_fused_cat_inp_out
Fused Triton kernel for the 'ref_pytorch_swiglu_bwd_bwd_fused_cat_inp_out' computation. - Computes all pointwise outputs in one pass. - R
lact_llm/lact_model/lact_triton_kernels/triton_pointwise_kernels.py:239
↓ 2 callersFunctiontwo_mm
(W0, X0, W1, X1, A_transpose=True, B_transpose=True)
lact_llm/lact_model/lact_triton_kernels/triton_fused_matmul_kernels.py:7
↓ 2 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/model.py:782
↓ 2 callersMethodvisual
(self, videos)
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:527
↓ 2 callersFunctionwhitespace_clean
(text)
lact_ar_video/minVid/models/wan/wan_base/modules/tokenizers.py:18
↓ 1 callersMethod__init__
( self, hidden_size: int, num_attn_heads: int, num_lact_heads: int, in
lact_llm/lact_model/layer_lact_swiglu.py:123
↓ 1 callersMethod__init__
(self, config: Config)
lact_ar_video/minVid/models/wan/wan_text_vae_warpper.py:72
↓ 1 callersMethod__init__
r""" Initialize the diffusion model backbone. Args: model_type (`str`, *optional*, defaults to 't2v'): Mo
lact_ar_video/minVid/models/wan/wan_base/modules/wan_model_warpper.py:142
↓ 1 callersMethod_clean
(self, text)
lact_ar_video/minVid/models/wan/wan_base/modules/tokenizers.py:75
↓ 1 callersFunction_clip
(pretrained=False, pretrained_name=None, model_cls=XLMRobertaCLIP, return_transf
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:434
↓ 1 callersMethod_convert_flow_pred_to_x0
Convert flow matching's prediction to x0 prediction. flow_pred: the prediction with shape [B, f, c, h, w] xt: the input noisy
lact_ar_video/minVid/models/wan/wan_warpper.py:241
↓ 1 callersMethod_convert_flow_pred_to_x0
Convert flow matching's prediction to x0 prediction. flow_pred: the prediction with shape [B, f, c, h, w] xt: the input noisy
lact_ar_video/minVid/models/wan/wan_warpper_versatile.py:141
↓ 1 callersMethod_extract_ar_output_from_interleave
Extract the denoised output from the interleaved sequence. Input: interleave_output: [b * ( (num_repeat + 1) * num_windo
lact_ar_video/minVid/models/video_latent_flow_matching_ar.py:242
↓ 1 callersMethod_extract_ar_output_from_interleave
Extract the denoised output from the interleaved sequence. Input: interleave_output: [b * ( (num_repeat + 1) * num_windo
lact_ar_video/minVid/models/video_latent_flow_matching_ar_validation.py:254
↓ 1 callersMethod_init_step_index
Initialize the step_index counter for the scheduler.
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers.py:693
↓ 1 callersMethod_init_step_index
Initialize the step_index counter for the scheduler.
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers_unipc.py:643
↓ 1 callersMethod_norm
(self, x)
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:87
↓ 1 callersMethod_norm
(self, x)
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:283
↓ 1 callersMethod_prepare_ar_input
Prepare the input for the AR video generation. input: noisy_input: [b * num_repeat, num_ar_chunks, ar_window_size, c, h,
lact_ar_video/minVid/models/video_latent_flow_matching_ar.py:176
↓ 1 callersMethod_prepare_ar_input
Prepare the input for the AR video generation. input: noisy_input: [b * num_repeat, num_ar_chunks, ar_window_size, c, h,
lact_ar_video/minVid/models/video_latent_flow_matching_ar_validation.py:188
↓ 1 callersMethod_prepare_input
Given a tensor containing the whole ODE sampling trajectories, randomly choose an intermediate timestep and return the latent as wel
lact_ar_video/minVid/models/video_latent_flow_matching_ar.py:110
↓ 1 callersMethod_prepare_input
Given a tensor containing the whole ODE sampling trajectories, randomly choose an intermediate timestep and return the latent as wel
lact_ar_video/minVid/models/video_latent_flow_matching_ar_validation.py:132
↓ 1 callersMethod_prepare_input
Given a tensor containing the whole ODE sampling trajectories, randomly choose an intermediate timestep and return the latent as wel
lact_ar_video/minVid/models/video_latent_flow_matching.py:84
↓ 1 callersFunction_reference_pytorch
(W0_W2, X)
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_kernels.py:182
↓ 1 callersMethod_relative_position_bucket
(self, rel_pos)
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:245
↓ 1 callersMethod_rescale_qk
q: [b, s, d] k: [b, s, d]
minimal_implementations/causal_lact_with_sliding_window_attn.py:300
↓ 1 callersMethod_rescale_qk
Args: q: [b, s, d] k: [b, s, d] Returns: q: [b, s, d] k: [b, s, d]
lact_llm/lact_model/layer_lact_swiglu.py:259
↓ 1 callersFunction_t5
(name, encoder_only=False, decoder_only=False, return_tokenizer=False, tokeniz
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:415
↓ 1 callersFunction_test_layer
()
minimal_implementations/bidirectional_lact_layer.py:274
↓ 1 callersFunction_test_layer_with_random_input
()
minimal_implementations/causal_lact_with_sliding_window_attn.py:393
↓ 1 callersMethod_upad_input
(self, q, k, v, attention_mask, q_len)
lact_llm/lact_model/layer_lact_swiglu.py:577
↓ 1 callersFunctionadd_model_prefix
(name: str)
lact_ar_video/minVid/inference_scripts/run_wan_inference_distributed.py:109
↓ 1 callersFunctionar_fast_weight_swish_glu_weight_norm_mini_batch
Note: Forward: w1 @ (silu(w0 @ x) * (w2 @ x)) w0, w2: [b, dh, d] w1: [b, d, dh] x: [b, l, d] Fast linear layer
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat.py:23
↓ 1 callersFunctionar_fast_weight_swish_glu_weight_norm_mini_batch_inference
Note: Forward: w1 @ (silu(w0 @ x) * (w2 @ x)) w0, w2: [b, dh, d] w1: [b, d, dh] x: [b, l, d] Fast linear layer
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat.py:172
↓ 1 callersFunctionar_fast_weight_swish_glu_weight_norm_mini_batch_inference_with_momentum
Note: Forward: w1 @ (silu(w0 @ x) * (w2 @ x)) w0, w2: [b, dh, d] w1: [b, d, dh] x: [b, l, d] Fast linear layer
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat_sp.py:197
↓ 1 callersFunctionar_fast_weight_swish_glu_weight_norm_mini_batch_with_momentum
Note: Forward: w1 @ (silu(w0 @ x) * (w2 @ x)) w0, w2: [b, dh, d] w1: [b, d, dh] x: [b, l, d] Fast linear layer
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat_sp.py:28
↓ 1 callersFunctionbatched_sliding_window_attention
q: [b, l, h, d] k: [b, l, h, d] v: [b, l, h, d] l = update_every - mini_batch_size + update_every * (num_chunks - 1)
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat_sp.py:343
↓ 1 callersFunctionbatched_sliding_window_attention
q: [b, l, h, d] k: [b, l, h, d] v: [b, l, h, d] l = update_every - mini_batch_size + update_every * (num_chunks - 1)
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat.py:300
↓ 1 callersFunctionbatched_sliding_window_attention_with_repeated_chunks
q: [b, l, h, d] k: [b, l, h, d] v: [b, l, h, d] l = update_every - mini_batch_size + update_every * (num_chunks - 1) num_repeat
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat_sp.py:417
↓ 1 callersFunctionbatched_sliding_window_attention_with_repeated_chunks
q: [b, l, h, d] k: [b, l, h, d] v: [b, l, h, d] l = update_every - mini_batch_size + update_every * (num_chunks - 1) num_repeat
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat.py:372
↓ 1 callersFunctionbidirectional_lact_swiglu
Bidirectional LaCT with SwiGLU fast weight function. w0, w1, w2 are the fast weights. f(x) = w1 @ (silu(w0 @ x) * (w2 @ x)) About preci
minimal_implementations/bidirectional_lact_layer.py:74
↓ 1 callersFunctionblock_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
minimal_implementations/causal_lact_with_sliding_window_attn.py:84
↓ 1 callersFunctionblock_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:71
↓ 1 callersMethodcache_model
When checkpoint the model, we need to first cache_model() copy_to_model() then save the model weights. resto
lact_ar_video/minVid/utils/ema_param_utils.py:30
↓ 1 callersFunctioncanonicalize
(text, keep_punctuation_exact_string=None)
lact_ar_video/minVid/models/wan/wan_base/modules/tokenizers.py:24
↓ 1 callersFunctioncheck_correctness
(B=2, M=256, N=192, K=320, dtype=torch.bfloat16, device="cuda")
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_bwd_kernels.py:387
↓ 1 callersFunctioncheck_correctness
()
lact_llm/lact_model/lact_triton_kernels/triton_pointwise_kernels.py:448
↓ 1 callersFunctioncheck_correctness
()
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_kernels.py:202
↓ 1 callersFunctioncheck_correctness
(B=4, T=2048, D=384)
lact_llm/lact_model/lact_triton_kernels/l2norm_triton_kernels.py:450
↓ 1 callersFunctioncheck_correctness
()
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_bwd_with_lr.py:343
↓ 1 callersFunctioncheck_correctness_four_mm
Validates fused_four_mm_same_out_interface against a float32 PyTorch reference.
lact_llm/lact_model/lact_triton_kernels/triton_fused_matmul_kernels.py:763
↓ 1 callersFunctionclip_xlm_roberta_vit_h_14
( pretrained=False, pretrained_name='open-clip-xlm-roberta-large-vit-huge-14', **kwarg
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:471
↓ 1 callersFunctionconfigure_lr_scheduler
( optimizer, total_train_steps, warm_up_steps, scheduler_type="cosine" )
lact_ar_video/minVid/utils/optimizer_scheduler.py:54
↓ 1 callersFunctionconvert_folder
Convert a single DL3DV folder to standard format. Args: folder_path: Path to the folder containing nerfstudio/ subfolder
lact_nvs/data_preprocess/dl3dv_format_converter.py:132
↓ 1 callersMethodconvert_model_output
Convert the model output to the corresponding type the DPMSolver/DPMSolver++ algorithm needs. DPM-Solver is designed to discretize an
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers.py:341
↓ 1 callersMethodconvert_model_output
r""" Convert the model output to the corresponding type the UniPC algorithm needs. Args: model_output (`torch.Tensor`):
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers_unipc.py:279
↓ 1 callersMethodcopy_from_model
(self)
lact_ar_video/minVid/utils/ema_param_utils.py:24
↓ 1 callersMethodcopy_to_model
(self)
lact_ar_video/minVid/utils/ema_param_utils.py:19
↓ 1 callersFunctioncorrectness_check_wT_x
( device="cuda", )
lact_llm/lact_model/lact_triton_kernels/triton_fused_matmul_kernels.py:708
↓ 1 callersFunctioncorrectness_check_wT_xT
Validates fused_two_mm_same_out_wT_xT_triton against a float32 PyTorch reference.
lact_llm/lact_model/lact_triton_kernels/triton_fused_matmul_kernels.py:735
↓ 1 callersFunctioncreate_sample_data_path_json
Create dl3dv_sample_data_path.json file. Args: benchmark_dir: Path to the dl3dv_benchmark directory output_file: Path to
lact_nvs/data_preprocess/dl3dv_format_converter.py:166
↓ 1 callersFunctioncycle
(dl)
lact_ar_video/minVid/utils/dist_utils.py:196
↓ 1 callersMethoddebug_train
(self)
lact_ar_video/minVid/train.py:651
↓ 1 callersFunctiondebug_vae
()
lact_ar_video/minVid/models/autoencoder/vae.py:87
↓ 1 callersMethoddecide_system_prompt
(self, tar_lang="zh")
lact_ar_video/minVid/models/wan/wan_base/utils/prompt_extend.py:131
↓ 1 callersMethoddecode
(self, z, scale)
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:544
↓ 1 callersMethoddevice
(self)
lact_ar_video/minVid/models/wan/wan_text_vae_warpper.py:42
↓ 1 callersFunctiondownload_benchmark
Download the benchmark based on the user inputs. 1. download the benchmark-meta.csv 2. based on the args, download the specific subs
lact_nvs/data_preprocess/dl3dv_eval_download.py:86
↓ 1 callersFunctiondownload_by_hash
Given a hash, download the relevant data from the huggingface repo :param filepath_dict: the cache dict that stores all the file relative paths
lact_nvs/data_preprocess/dl3dv_eval_download.py:59
↓ 1 callersMethoddpm_solver_first_order_update
One step for the first-order DPMSolver (equivalent to DDIM). Args: model_output (`torch.Tensor`): The dir
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers.py:415
↓ 1 callersMethodencode
TODO: rgb or bgr? in [0,1] or [-1,1]? videos: A list of videos each with shape [C, T, H, W].
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:647
↓ 1 callersMethodextend_with_img
(self, prompt, system_prompt, image=No
lact_ar_video/minVid/models/wan/wan_base/utils/prompt_extend.py:119
↓ 1 callersFunctionextract_vision_info
( conversations: list[dict] | list[list[dict]])
lact_ar_video/minVid/models/wan/wan_base/utils/qwen_vl_utils.py:328
↓ 1 callersFunctionfast_weight_swish_glu_weight_norm_mini_batch_apply
Note: Forward: (silu(x @ w0) * (x @ w2)) @ w1 w0, w2: [b, d, dh] w1: [b, dh, d] q: [b, l, d] k: [b, l, d] v: [b,
lact_nvs/lact_ttt.py:71
↓ 1 callersFunctionfetch_video
( ele: dict, image_factor: int = IMAGE_FACTOR)
lact_ar_video/minVid/models/wan/wan_base/utils/qwen_vl_utils.py:274
↓ 1 callersFunctionfind_latest_checkpoint
Find the latest checkpoint in the output directory. Returns: str or None: Path to the latest checkpoint directory, or None if no
lact_ar_video/minVid/utils/job_checkpoint_fsdp.py:119
↓ 1 callersMethodforward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, C]
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:485
↓ 1 callersMethodforward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, C]
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:533
↓ 1 callersFunctionfsdp_wrap
( module, sharding_strategy="full", mixed_precision=False, wrap_strategy="size", min_num_p
lact_ar_video/minVid/utils/dist_utils.py:143
↓ 1 callersFunctionfused_four_mm_same_out_interface
( W0, X0, W1, X1, W2, X2, W3, X3, A_transpose=True, B_transpose=False )
lact_llm/lact_model/lact_triton_kernels/triton_fused_matmul_kernels.py:628
↓ 1 callersFunctiongather_scatter
(x, gather_dim=2, scatter_dim=1, process_group=None)
lact_ar_video/minVid/models/wan/wan_base/distributed/sp_support.py:65
↓ 1 callersFunctionget_class_by_name
(name)
lact_nvs/model.py:13
↓ 1 callersFunctionget_interpolated_cameras
For each consecutive pair of cameras, add num_views linearly interpolated views.
lact_nvs/inference.py:71
↓ 1 callersFunctionget_lin_function
Get a linear function that maps x to log(y), and returns exp(y'). f(4680) = 2.1135 f(10920) = 2.2846
lact_ar_video/minVid/models/video_latent_flow_matching_ar.py:35
↓ 1 callersFunctionget_lin_function
Get a linear function that maps x to log(y), and returns exp(y'). f(4680) = 2.1135 f(10920) = 2.2846
lact_ar_video/minVid/models/video_latent_flow_matching_ar_validation.py:34
↓ 1 callersFunctionget_lin_function
Get a linear function that maps x to log(y), and returns exp(y'). f(4680) = 2.1135 f(10920) = 2.2846
lact_ar_video/minVid/models/wan/ar_wan_inference_pipeline.py:25
↓ 1 callersMethodget_scheduler
Update the current scheduler with the interface's static method
lact_ar_video/minVid/models/model_interface.py:37
↓ 1 callersMethodget_scheduler
Update the current scheduler with the interface's static method
lact_ar_video/minVid/models/wan/wan_warpper.py:185
↓ 1 callersMethodget_scheduler
Update the current scheduler with the interface's static method
lact_ar_video/minVid/models/wan/wan_warpper_versatile.py:87
← previousnext →101–200 of 581, ranked by callers