↓ 32 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
lact_ar_video/minVid/models/wan/wan_base/modules/attention.py:43
↓ 8 callersMethod__init__(self,
vocab_size,
dim,
dim_attn,
dim_ffn,
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:374
↓ 8 callersFunctionrope_apply_ar freqs: list of 3 tensors, freq_f, freq_h, freq_w of shape [1024, 22], [1024, 21], [1024, 21] for head_dim=64. Does not support variable
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:72
↓ 8 callersFunctionrope_apply_ar_with_repeat freqs: list of 3 tensors, freq_f, freq_h, freq_w of shape [1024, 22], [1024, 21], [1024, 21] for head_dim=64. Does not support variable
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:164
↓ 7 callersMethodextend(self, prompt, system_prompt, seed=-1, *args, **kwargs)
lact_ar_video/minVid/models/wan/wan_base/utils/prompt_extend.py:128
↓ 4 callersFunctionfused_swiglu_ffn_fwd Args: W0_W2: [B, 2 * Hidden, D] W1: [B, D, Hidden] X: [B, num_Tokens, D] Outs: Hidden: [B, num_token
lact_llm/lact_model/lact_triton_kernels/lact_swiglu_ffn.py:79
↓ 4 callersFunctionretrieve_timesteps(
scheduler,
num_inference_steps=None,
device=None,
timesteps=None,
sigmas=None,
**kwa
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers.py:29
↓ 4 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_ar_video/minVid/models/blocks/functions.py:7
↓ 3 callersMethodbackward Args: grad_out: [B, num_tokens, D] Outs: grad_W0_W2: [B, 2 * Hidden, D] grad_W1: [B, D, Hidden]
lact_llm/lact_model/lact_triton_kernels/lact_swiglu_ffn.py:48
↓ 3 callersMethodencode Input: - videos_rgb: a tensor with shape [B, F+1, C, H, W] in RGB format, [0-1] Output: - video_rgb: a tensor
lact_ar_video/minVid/models/wan/wan_warpper.py:128
↓ 3 callersFunctionl2_norm_add_fused x: [B, T, D] x_add: [B, T, D] tgt_scale: [B, T] eps: float tgt_dtype: if None, will use the same dtype as x
lact_llm/lact_model/lact_triton_kernels/l2norm_triton_kernels.py:419
↓ 2 callersMethoddecode_to_pixel latents: [batch_size, num_frames, num_channels, height, width] output: [batch_size, num_channels, num_frames, height, width]
lact_ar_video/minVid/models/wan/wan_warpper.py:108
↓ 2 callersFunctionfused_lact_swiglu_ffn_fast_weight_grads Args: W0_W2: [B, 2 * Hidden, D] W1: [B, D, Hidden] K, V: [B, num_Tokens, D] lr0, lr1, lr2: [B, N]
lact_llm/lact_model/lact_triton_kernels/lact_fw_grad.py:159
↓ 2 callersFunctionfused_two_mm_same_out_interface(W0, X0, W1, X1, A_transpose=True, B_transpose=True)
lact_llm/lact_model/lact_triton_kernels/triton_fused_matmul_kernels.py:620
↓ 2 callersFunctionfused_two_mm_same_out_wT_xT_triton W0, W1: [B, K, M] (bf16/fp16/fp32) X0T, X1T: [B, N, K] Returns O: [B, M, N] with O = W0^T @ X0T.T + W1^T @ X1T.T
lact_llm/lact_model/lact_triton_kernels/triton_fused_matmul_kernels.py:496
↓ 2 callersFunctionfused_two_mm_same_out_wT_x_triton W0, W1: [B, K, M] X0, X1: [B, K, N] Returns O: [B, M, N] with O = W0^T @ X0 + W1^T @ X1
lact_llm/lact_model/lact_triton_kernels/triton_fused_matmul_kernels.py:555
↓ 2 callersFunctionfused_two_mm_swiglu_triton Wraps the Triton kernel. Shapes: W0, W2: [B, M, K] (bf16) X : [B, N, K] (bf16) returns O: [B, M, N] (bf16) where O = SiLU
lact_llm/lact_model/lact_triton_kernels/triton_swiglu_kernels.py:123
↓ 2 callersFunctionmake_inputs(
B,
n,
D,
x_main_dtype=torch.float32,
dx_dtype=torch.bfloat16,
lact_llm/lact_model/lact_triton_kernels/triton_prenorm_update_with_momentum.py:406
↓ 2 callersFunctionprecompute_freqs_time_for_repeat freqs: list of 3 tensors, freq_f, freq_h, freq_w of shape [1024, 22], [1024, 21], [1024, 21] for head_dim=64.
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:130
↓ 2 callersFunctionreference_l2_norm_add_fused_with_momentum Args: x: [B, D1, D2], must be fp32 dx: [B, D1, D2], bf16 dx_momentum: [B, D1, 1], fp32 recommended momentum_mu: f
lact_llm/lact_model/lact_triton_kernels/triton_prenorm_update_with_momentum.py:10