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

Method construct_requests

test/general/lm_eval/tasks/webqs.py:82–87  ·  view source on GitHub ↗
(self, doc, ctx)

Source from the content-addressed store, hash-verified

80 return ret
81
82 def construct_requests(self, doc, ctx):
83 ret = []
84 for alias in self._remove_prefixes(doc["answers"]):
85 _, is_prediction = rf.loglikelihood(ctx, " " + alias)
86 ret.append(is_prediction)
87 return ret
88
89 def process_results(self, doc, results):
90 return {"acc": float(any(results))}

Callers

nothing calls this directly

Calls 2

_remove_prefixesMethod · 0.95
loglikelihoodMethod · 0.45

Tested by

no test coverage detected