MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / __init__

Method __init__

inference/models/falcon.py:212–219  ·  view source on GitHub ↗
(
        self,
        dim: int,
    )

Source from the content-addressed store, hash-verified

210
211class FalconMLP(nn.Module):
212 def __init__(
213 self,
214 dim: int,
215 ):
216 super().__init__()
217 self.dense_h_to_4h = nn.Linear(dim, 4 * dim, bias=False)
218 self.act = nn.GELU()
219 self.dense_4h_to_h = nn.Linear(4 * dim, dim, bias=False)
220
221 def forward(self, x):
222 x = self.act(self.dense_h_to_4h(x))

Callers 5

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected