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

Method doc_to_target

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

Source from the content-addressed store, hash-verified

1368 OUTPUT_TYPE: str = "loglikelihood"
1369
1370 def doc_to_target(self, doc: dict) -> str:
1371 return " " + doc["choices"][doc["gold"]]
1372
1373 def construct_requests(self, doc: dict, ctx: str, **kwargs) -> List[Instance]:
1374 # TODO: add mutual info here?

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected