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

Method construct_requests

lm-eval-harness/lm_eval/api/task.py:1447–1456  ·  view source on GitHub ↗
(self, doc: dict, ctx: Union[str, None], **kwargs)

Source from the content-addressed store, hash-verified

1445 return doc
1446
1447 def construct_requests(self, doc: dict, ctx: Union[str, None], **kwargs):
1448 assert not ctx
1449
1450 return Instance(
1451 request_type=self.OUTPUT_TYPE,
1452 doc=doc,
1453 arguments=(self.doc_to_target(doc),),
1454 idx=0,
1455 **kwargs,
1456 )
1457
1458 def process_results(self, doc: dict, results: float) -> dict:
1459 (loglikelihood,) = results

Callers

nothing calls this directly

Calls 2

doc_to_targetMethod · 0.95
InstanceClass · 0.90

Tested by

no test coverage detected