ctrl-x icon indicating copy to clipboard operation
ctrl-x copied to clipboard

Question about parameters W_q and W_k in adaattention.

Open hanzifan opened this issue 2 years ago • 1 comments

I think parameters W_q and W_k are fixed, but I'm confused how to get them.

hanzifan avatar Jul 23 '24 01:07 hanzifan

$\mathbf{W}^Q_l$ and $\mathbf{W}^K_l$ are the query and key projection matrices (linear layers) of self-attention layer $l$ before the attention operation. These are from the diffusion model (e.g., SDXL) itself.

kuanhenglin avatar Aug 07 '24 22:08 kuanhenglin