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

Function register_task

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

Source from the content-addressed store, hash-verified

46
47
48def register_task(name):
49 def decorate(fn):
50 assert (
51 name not in TASK_REGISTRY
52 ), f"task named '{name}' conflicts with existing registered task!"
53
54 TASK_REGISTRY[name] = fn
55 ALL_TASKS.add(name)
56 func2task_index[fn.__name__] = name
57 return fn
58
59 return decorate
60
61
62def register_group(name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected