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

Method forward

bitnet/bit_mamba.py:174–180  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

172 self.norm = RMSNorm(config.dim)
173
174 def forward(self, x):
175 # x : (B, L, D)
176
177 # output : (B, L, D)
178
179 output = self.mixer(self.norm(x)) + x
180 return output
181
182 def step(self, x, cache):
183 # x : (B, D)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected