MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / __init__

Method __init__

k_diffusion/models/modules.py:565–570  ·  view source on GitHub ↗
(self, d_model, d_ff, dropout=0.0)

Source from the content-addressed store, hash-verified

563
564class MappingFeedForwardBlock(nn.Module):
565 def __init__(self, d_model, d_ff, dropout=0.0):
566 super().__init__()
567 self.norm = RMSNorm(d_model)
568 self.up_proj = apply_wd(LinearGEGLU(d_model, d_ff, bias=False))
569 self.dropout = nn.Dropout(dropout)
570 self.down_proj = apply_wd(zero_init(Linear(d_ff, d_model, bias=False)))
571
572 def forward(self, x):
573 skip = x

Callers

nothing calls this directly

Calls 6

RMSNormClass · 0.85
apply_wdFunction · 0.85
LinearGEGLUClass · 0.85
zero_initFunction · 0.85
LinearClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected