MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / doc_to_target

Method doc_to_target

test/general/lm_eval/tasks/asdiv.py:75–79  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

73 return doc["body"] + " " + doc["question"]
74
75 def doc_to_target(self, doc):
76 # TODO: add formula
77
78 answer = doc["answer"].split(" (")[0]
79 return " " + answer
80
81 def construct_requests(self, doc, ctx):
82 ll, is_greedy = rf.loglikelihood(ctx, self.doc_to_target(doc))

Callers 1

construct_requestsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected