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

Method fewshot_examples

test/general/lm_eval/tasks/cbt.py:88–92  ·  view source on GitHub ↗
(self, k, rnd)

Source from the content-addressed store, hash-verified

86 return ""
87
88 def fewshot_examples(self, k, rnd):
89 assert (
90 k == 0
91 ), f"CBT is only implemented for the zero-shot setting. Given k={k}."
92 return super().fewshot_examples(k, rnd)
93
94 def construct_requests(self, doc, ctx):
95 """Uses RequestFactory to construct Requests and returns an iterable of

Callers 2

fewshot_contextMethod · 0.45
fewshot_contextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected