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

Function hash_args

lm-eval-harness/lm_eval/api/model.py:155–157  ·  view source on GitHub ↗
(attr, args)

Source from the content-addressed store, hash-verified

153
154### SQLite-based caching of LM responses
155def hash_args(attr, args):
156 dat = json.dumps([attr] + list(args))
157 return hashlib.sha256(dat.encode("utf-8")).hexdigest()
158
159
160class CacheHook:

Callers 2

add_partialMethod · 0.70
fnMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected