Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBitSys/BitDistiller
/ doc_to_target
Method
doc_to_target
test/general/lm_eval/tasks/lambada.py:55–56 ·
view source on GitHub ↗
(self, doc)
Source
from the content-addressed store, hash-verified
53
return
doc[
"text"
]
54
55
def
doc_to_target(self, doc):
56
return
" "
+ doc[
"text"
].rsplit(
" "
, 1)[1]
57
58
def
construct_requests(self, doc, ctx):
59
ll, is_greedy = rf.loglikelihood(ctx, self.doc_to_target(doc))
Callers
1
construct_requests
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected