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

Method construct_requests

test/general/lm_eval/tasks/glue.py:258–261  ·  view source on GitHub ↗
(self, doc, ctx)

Source from the content-addressed store, hash-verified

256 return " {}".format({0: "yes", 1: "no"}[doc["label"]])
257
258 def construct_requests(self, doc, ctx):
259 ll_yes, _ = rf.loglikelihood(ctx, " yes")
260 ll_no, _ = rf.loglikelihood(ctx, " no")
261 return ll_yes, ll_no
262
263 def process_results(self, doc, results):
264 ll_yes, ll_no = results

Callers

nothing calls this directly

Calls 1

loglikelihoodMethod · 0.45

Tested by

no test coverage detected