Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBitSys/BitDistiller
/ hash_args
Function
hash_args
test/general/lm_eval/base.py:861–863 ·
view source on GitHub ↗
(attr, args)
Source
from the content-addressed store, hash-verified
859
860
861
def
hash_args(attr, args):
862
dat = json.dumps([attr] + list(args))
863
return
hashlib.sha256(dat.encode(
"utf-8"
)).hexdigest()
864
865
866
class
CacheHook:
Callers
2
add_partial
Method · 0.85
fn
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected