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

Method step

bitnet/bit_mamba.py:533–543  ·  view source on GitHub ↗
(self, x, caches)

Source from the content-addressed store, hash-verified

531 return x
532
533 def step(self, x, caches):
534 # x : (B, L, D)
535 # caches : [cache(layer) for all layers], cache : (h, inputs)
536
537 # y : (B, L, D)
538 # caches : [cache(layer) for all layers], cache : (h, inputs)
539
540 for i, layer in enumerate(self.layers):
541 x, caches[i] = layer.step(x, caches[i])
542
543 return x, caches
544
545
546class BitMamba(nn.Module):

Callers 2

train.pyFile · 0.45
stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected