MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / get_task

Function get_task

test/general/lm_eval/tasks/__init__.py:370–377  ·  view source on GitHub ↗
(task_name)

Source from the content-addressed store, hash-verified

368
369
370def get_task(task_name):
371 try:
372 add_json_task(task_name)
373 return TASK_REGISTRY[task_name]
374 except KeyError:
375 print("Available tasks:")
376 pprint(TASK_REGISTRY)
377 raise KeyError(f"Missing task {task_name}")
378
379
380def get_task_name_from_object(task_object):

Callers 1

get_task_dictFunction · 0.85

Calls 1

add_json_taskFunction · 0.85

Tested by

no test coverage detected