MCPcopy Create free account
hub / github.com/OpenSparseLLMs/MoM / fewshot_context

Method fewshot_context

lm-eval-harness/lm_eval/api/task.py:1424–1429  ·  view source on GitHub ↗
(self, doc: dict, num_fewshot: int)

Source from the content-addressed store, hash-verified

1422 return []
1423
1424 def fewshot_context(self, doc: dict, num_fewshot: int) -> Literal[""]:
1425 assert (
1426 num_fewshot == 0
1427 ), "The number of fewshot examples must be 0 for perplexity tasks."
1428
1429 return ""
1430
1431 def higher_is_better(self) -> dict:
1432 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected