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

Method construct_requests

test/general/lm_eval/tasks/glue.py:519–531  ·  view source on GitHub ↗

Uses RequestFactory to construct Requests and returns an iterable of Requests which will be sent to the LM. :param doc: The document as returned from training_docs, validation_docs, or test_docs. :param ctx: str The context string, generated by fewsho

(self, doc, ctx)

Source from the content-addressed store, hash-verified

517 return " {}".format(doc["label"])
518
519 def construct_requests(self, doc, ctx):
520 """Uses RequestFactory to construct Requests and returns an iterable of
521 Requests which will be sent to the LM.
522
523 :param doc:
524 The document as returned from training_docs, validation_docs, or test_docs.
525 :param ctx: str
526 The context string, generated by fewshot_context. This includes the natural
527 language description, as well as the few shot examples, and the question
528 part of the document for `doc`.
529 """
530 # TODO: implement evaluation.
531 raise NotImplementedError("Evaluation not implemented")
532
533 def process_results(self, doc, results):
534 """Take a single document and the LM results and evaluates, returning a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected