↓ 8 callersFunctionattention(
q,
k,
v,
q_lens=None,
k_lens=None,
dropout_p=0.,
softmax_scale=None,
q_scale
wan/models/attention_utils.py:152
↓ 3 callersMethodprepare_control_latents(
self, control, control_image, batch_size, height, width, dtype, device, generator, do_classifier_fre
wan/pipeline/pipeline_wan_fun_control.py:342
↓ 2 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
wan/models/attention_utils.py:43
↓ 2 callersFunctionmerge_lora(pipeline, lora_path, multiplier, device='cpu', dtype=torch.float32, state_dict=None, transformer_only=False,
wan/utils/lora_utils.py:384