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

Method construct_requests

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

Source from the content-addressed store, hash-verified

358 return " {}".format({0: "True", 1: "False"}[doc["label"]])
359
360 def construct_requests(self, doc, ctx):
361 ll_true, _ = rf.loglikelihood(ctx, " True")
362 ll_false, _ = rf.loglikelihood(ctx, " False")
363 return ll_true, ll_false
364
365 def process_results(self, doc, results):
366 ll_true, ll_false = results

Callers

nothing calls this directly

Calls 1

loglikelihoodMethod · 0.45

Tested by

no test coverage detected