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

Method construct_requests

test/general/lm_eval/tasks/scrolls.py:315–321  ·  view source on GitHub ↗
(self, doc, ctx)

Source from the content-addressed store, hash-verified

313 }
314
315 def construct_requests(self, doc, ctx):
316 if doc["is_yes_no"]:
317 ll_yes, _ = rf.loglikelihood(ctx, " yes")
318 ll_no, _ = rf.loglikelihood(ctx, " no")
319 return [ll_yes, ll_no]
320 else:
321 return [rf.greedy_until(ctx, {'until': ["\n"]})]
322
323
324class QuALITY(_SCROLLSMultipleChoiceTask):

Callers

nothing calls this directly

Calls 2

loglikelihoodMethod · 0.45
greedy_untilMethod · 0.45

Tested by

no test coverage detected