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

Method forward

test/general/wiki_ppl.py:69–74  ·  view source on GitHub ↗
(self, inp, **kwargs)

Source from the content-addressed store, hash-verified

67 self.module = module
68
69 def forward(self, inp, **kwargs):
70 inps[cache['i']] = inp
71 cache['i'] += 1
72 cache['attention_mask'] = kwargs['attention_mask']
73 cache['position_ids'] = kwargs['position_ids']
74 raise ValueError
75
76 layers[0] = Catcher(layers[0])
77 for i in range(nsamples):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected