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

Method add_partial

test/general/lm_eval/base.py:874–878  ·  view source on GitHub ↗
(self, attr, req, res)

Source from the content-addressed store, hash-verified

872 self.dbdict = cachinglm.dbdict
873
874 def add_partial(self, attr, req, res):
875 if self.dbdict is None:
876 return
877 hsh = hash_args(attr, req)
878 self.dbdict[hsh] = res
879
880
881class CachingLM:

Callers 6

_loglikelihood_tokensMethod · 0.80
greedy_untilMethod · 0.80
_loglikelihood_tokensMethod · 0.80
greedy_untilMethod · 0.80
greedy_untilMethod · 0.80
_loglikelihood_tokensMethod · 0.80

Calls 1

hash_argsFunction · 0.85

Tested by

no test coverage detected