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

Function create_all_tasks

test/general/lm_eval/tasks/hendrycks_test.py:88–93  ·  view source on GitHub ↗

Creates a dictionary of tasks from a list of subjects :return: {task_name: task} e.g. {hendrycksTest-abstract_algebra: Task, hendrycksTest-anatomy: Task}

()

Source from the content-addressed store, hash-verified

86
87
88def create_all_tasks():
89 """Creates a dictionary of tasks from a list of subjects
90 :return: {task_name: task}
91 e.g. {hendrycksTest-abstract_algebra: Task, hendrycksTest-anatomy: Task}
92 """
93 return {f"hendrycksTest-{sub}": create_task(sub) for sub in SUBJECTS}
94
95
96def create_task(subject):

Callers

nothing calls this directly

Calls 1

create_taskFunction · 0.70

Tested by

no test coverage detected