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

Method construct_requests

test/general/lm_eval/tasks/superglue.py:195–202  ·  view source on GitHub ↗
(self, doc, ctx)

Source from the content-addressed store, hash-verified

193 return " " + self.convert_choice(correct_choice)
194
195 def construct_requests(self, doc, ctx):
196 choice1 = " " + self.convert_choice(doc["choice1"])
197 choice2 = " " + self.convert_choice(doc["choice2"])
198
199 ll_choice1, _ = rf.loglikelihood(ctx, choice1)
200 ll_choice2, _ = rf.loglikelihood(ctx, choice2)
201
202 return ll_choice1, ll_choice2
203
204 def process_results(self, doc, results):
205 gold = doc["label"]

Callers

nothing calls this directly

Calls 2

convert_choiceMethod · 0.95
loglikelihoodMethod · 0.45

Tested by

no test coverage detected