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

Method __init__

lm-eval-harness/lm_eval/api/model.py:161–166  ·  view source on GitHub ↗
(self, cachinglm)

Source from the content-addressed store, hash-verified

159
160class CacheHook:
161 def __init__(self, cachinglm) -> None:
162 if cachinglm is None:
163 self.dbdict = None
164 return
165
166 self.dbdict = cachinglm.dbdict
167
168 def add_partial(self, attr, req, res) -> None:
169 if self.dbdict is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected