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

Function get_sampler

lm-eval-harness/lm_eval/api/samplers.py:108–114  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

106
107
108def get_sampler(name):
109 try:
110 return SAMPLER_REGISTRY[name]
111 except KeyError:
112 raise ValueError(
113 f"Attempted to use contextsampler '{name}', but no sampling strategy for this name found! Supported model names: {', '.join(SAMPLER_REGISTRY.keys())}"
114 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected