mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-07-19 07:36:59 +08:00
Merge branch 'comfyanonymous:master' into master
This commit is contained in:
commit
e8327ffc3d
@ -261,8 +261,8 @@ class CrossAttention(nn.Module):
|
|||||||
self.heads = heads
|
self.heads = heads
|
||||||
self.dim_head = dim_head
|
self.dim_head = dim_head
|
||||||
|
|
||||||
self.q_norm = operations.RMSNorm(inner_dim, dtype=dtype, device=device)
|
self.q_norm = operations.RMSNorm(inner_dim, eps=1e-5, dtype=dtype, device=device)
|
||||||
self.k_norm = operations.RMSNorm(inner_dim, dtype=dtype, device=device)
|
self.k_norm = operations.RMSNorm(inner_dim, eps=1e-5, dtype=dtype, device=device)
|
||||||
|
|
||||||
self.to_q = operations.Linear(query_dim, inner_dim, bias=True, dtype=dtype, device=device)
|
self.to_q = operations.Linear(query_dim, inner_dim, bias=True, dtype=dtype, device=device)
|
||||||
self.to_k = operations.Linear(context_dim, inner_dim, bias=True, dtype=dtype, device=device)
|
self.to_k = operations.Linear(context_dim, inner_dim, bias=True, dtype=dtype, device=device)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user