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

Function apply_template

lm-eval-harness/lm_eval/utils.py:424–426  ·  view source on GitHub ↗
(template: str, doc: dict)

Source from the content-addressed store, hash-verified

422
423
424def apply_template(template: str, doc: dict) -> str:
425 rtemplate = env.from_string(template)
426 return rtemplate.render(**doc)
427
428
429def create_iterator(raw_iterator, rank, world_size, limit=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected