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

Method _process_doc

test/general/lm_eval/tasks/piqa.py:52–58  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

50 return map(self._process_doc, self.dataset["validation"])
51
52 def _process_doc(self, doc):
53 out_doc = {
54 "goal": doc["goal"],
55 "choices": [doc["sol1"], doc["sol2"]],
56 "gold": doc["label"],
57 }
58 return out_doc
59
60 def doc_to_text(self, doc):
61 return "Question: " + doc["goal"] + "\nAnswer:"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected