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

Function register_group

lm-eval-harness/lm_eval/api/registry.py:62–72  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

60
61
62def register_group(name):
63 def decorate(fn):
64 func_name = func2task_index[fn.__name__]
65 if name in GROUP_REGISTRY:
66 GROUP_REGISTRY[name].append(func_name)
67 else:
68 GROUP_REGISTRY[name] = [func_name]
69 ALL_TASKS.add(name)
70 return fn
71
72 return decorate
73
74
75OUTPUT_TYPE_REGISTRY = {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected