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

Method get_original

test/general/lm_eval/utils.py:215–226  ·  view source on GitHub ↗
(self, newarr)

Source from the content-addressed store, hash-verified

213 return [x[1] for x in self.arr]
214
215 def get_original(self, newarr):
216 res = [None] * self.size
217 cov = [False] * self.size
218
219 for (inds, _), v in zip(self.arr, newarr):
220 for ind in inds:
221 res[ind] = v
222 cov[ind] = True
223
224 assert all(cov)
225
226 return res
227
228
229def positional_deprecated(fn):

Callers 5

_loglikelihood_tokensMethod · 0.95
greedy_untilMethod · 0.95
_loglikelihood_tokensMethod · 0.95
greedy_untilMethod · 0.95
greedy_untilMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected