MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / load_result

Function load_result

experiments/run_gsm8k.py:36–42  ·  view source on GitHub ↗
(result_file: Path)

Source from the content-addressed store, hash-verified

34
35
36def load_result(result_file: Path) -> list:
37 if not result_file.exists():
38 os.makedirs(result_file.parent, exist_ok=True)
39 with open(result_file, "w", encoding="utf-8") as file:
40 json.dump([], file)
41 with open(result_file, "r", encoding="utf-8") as file:
42 return json.load(file)
43
44
45def dataloader(data_list, batch_size, i_batch):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected