MCPcopy Create free account
hub / github.com/OpenSparseLLMs/MoM / add_partial

Method add_partial

lm-eval-harness/lm_eval/api/model.py:168–172  ·  view source on GitHub ↗
(self, attr, req, res)

Source from the content-addressed store, hash-verified

166 self.dbdict = cachinglm.dbdict
167
168 def add_partial(self, attr, req, res) -> None:
169 if self.dbdict is None:
170 return
171 hsh = hash_args(attr, req)
172 self.dbdict[hsh] = res
173
174
175class CachingLM:

Callers 12

generate_untilMethod · 0.80
generate_untilMethod · 0.80
_loglikelihood_tokensMethod · 0.80
loglikelihoodMethod · 0.80
generate_untilMethod · 0.80
_loglikelihood_tokensMethod · 0.80
generate_untilMethod · 0.80
_loglikelihood_tokensMethod · 0.80
generate_untilMethod · 0.80
generate_untilMethod · 0.80
_loglikelihood_tokensMethod · 0.80
generate_untilMethod · 0.80

Calls 1

hash_argsFunction · 0.70

Tested by

no test coverage detected