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

Method construct_requests

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

Source from the content-addressed store, hash-verified

462 return " {}".format(yesno(doc["label"]))
463
464 def construct_requests(self, doc, ctx):
465 ll_yes, _ = rf.loglikelihood(ctx, " yes")
466 ll_no, _ = rf.loglikelihood(ctx, " no")
467 return ll_yes, ll_no
468
469 def process_results(self, doc, results):
470 ll_yes, ll_no = results

Callers

nothing calls this directly

Calls 1

loglikelihoodMethod · 0.45

Tested by

no test coverage detected