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

Method construct_requests

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

Source from the content-addressed store, hash-verified

82 return " {}".format({1: "yes", 0: "no"}[doc["label"]])
83
84 def construct_requests(self, doc, ctx):
85 ll_true, _ = rf.loglikelihood(ctx, " yes")
86 ll_false, _ = rf.loglikelihood(ctx, " no")
87 return ll_true, ll_false
88
89 def process_results(self, doc, results):
90 ll_true, ll_false = results

Callers

nothing calls this directly

Calls 1

loglikelihoodMethod · 0.45

Tested by

no test coverage detected