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

Function get_model

lm-eval-harness/lm_eval/api/registry.py:33–39  ·  view source on GitHub ↗
(model_name)

Source from the content-addressed store, hash-verified

31
32
33def get_model(model_name):
34 try:
35 return MODEL_REGISTRY[model_name]
36 except KeyError:
37 raise ValueError(
38 f"Attempted to load model '{model_name}', but no model for this name found! Supported model names: {', '.join(MODEL_REGISTRY.keys())}"
39 )
40
41
42TASK_REGISTRY = {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected