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

Method construct_requests

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

Source from the content-addressed store, hash-verified

307 return " {}".format({0: "False", 1: "True"}[doc["label"]])
308
309 def construct_requests(self, doc, ctx):
310 ll_true, _ = rf.loglikelihood(ctx, " True")
311 ll_false, _ = rf.loglikelihood(ctx, " False")
312 return ll_true, ll_false
313
314 def process_results(self, doc, results):
315 ll_true, ll_false = results

Callers

nothing calls this directly

Calls 1

loglikelihoodMethod · 0.45

Tested by

no test coverage detected