MCPcopy
hub / github.com/zai-org/GLM-130B / find_all_tasks

Function find_all_tasks

evaluate.py:21–28  ·  view source on GitHub ↗
(all_task_config_path)

Source from the content-addressed store, hash-verified

19
20
21def find_all_tasks(all_task_config_path):
22 tasks = []
23 for task in all_task_config_path:
24 if isdir(task):
25 tasks += [relpath(path, ".") for path in glob(join(task, "**/*.yaml"), recursive=True)]
26 elif isfile(task):
27 tasks.append(task)
28 return tasks
29
30
31def evaluate_all_tasks(data_path, model, tokenizer, all_task_config_path, task_classes):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected