MCPcopy Create free account
hub / github.com/kyegomez/BitNet / __init__

Method __init__

bitnet/bit_mamba.py:14–18  ·  view source on GitHub ↗
(self, dim: int, eps: float = 1e-5)

Source from the content-addressed store, hash-verified

12# taken straight from https://github.com/johnma2006/mamba-minimal/blob/master/model.py
13class RMSNorm(nn.Module):
14 def __init__(self, dim: int, eps: float = 1e-5):
15 super().__init__()
16
17 self.eps = eps
18 self.weight = nn.Parameter(torch.ones(dim))
19
20 def forward(self, x):
21 output = (

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected