MCPcopy Create free account
hub / github.com/InternScience/SciReason / submit

Function submit

opencompass/runners/local_api.py:139–145  ·  view source on GitHub ↗

Helper for launch the task.

(task, type, tokens)

Source from the content-addressed store, hash-verified

137
138
139def submit(task, type, tokens):
140 """Helper for launch the task."""
141 task = TASKS.build(dict(cfg=task, type=type))
142 tqdm.write(f'Launch {task.name} on CPU ')
143
144 res = launch(task, tokens)
145 return res
146
147
148@RUNNERS.register_module()

Callers

nothing calls this directly

Calls 2

launchFunction · 0.85
buildMethod · 0.80

Tested by

no test coverage detected