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

Method construct_requests

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

Source from the content-addressed store, hash-verified

410 return " {}".format(yesno(doc["label"]))
411
412 def construct_requests(self, doc, ctx):
413 ll_yes, _ = rf.loglikelihood(ctx, " yes")
414 ll_no, _ = rf.loglikelihood(ctx, " no")
415 return ll_yes, ll_no
416
417 def process_results(self, doc, results):
418 ll_yes, ll_no = results

Callers

nothing calls this directly

Calls 1

loglikelihoodMethod · 0.45

Tested by

no test coverage detected