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

Method construct_requests

test/general/lm_eval/base.py:747–752  ·  view source on GitHub ↗
(self, doc, ctx)

Source from the content-addressed store, hash-verified

745 return " " + doc["choices"][doc["gold"]]
746
747 def construct_requests(self, doc, ctx):
748 lls = [
749 rf.loglikelihood(ctx, " {}".format(choice))[0] for choice in doc["choices"]
750 ]
751
752 return lls
753
754 def process_results(self, doc, results):
755 gold = doc["gold"]

Callers

nothing calls this directly

Calls 1

loglikelihoodMethod · 0.45

Tested by

no test coverage detected