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

Method fewshot_context

test/general/lm_eval/tasks/prost.py:55–63  ·  view source on GitHub ↗
(
        self, doc, num_fewshot, provide_description=None, rnd=None, description=None
    )

Source from the content-addressed store, hash-verified

53 return map(self._process_doc, self.dataset["test"])
54
55 def fewshot_context(
56 self, doc, num_fewshot, provide_description=None, rnd=None, description=None
57 ):
58 assert (
59 num_fewshot == 0
60 ), "PROST is designed to probe models in a zero-shot fashion only."
61 return super().fewshot_context(
62 doc=doc, num_fewshot=num_fewshot, rnd=rnd, description=description
63 )
64
65 def _process_doc(self, doc):
66 out_doc = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected