MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / write_experiments

Function write_experiments

deepspeed/autotuning/utils.py:403–413  ·  view source on GitHub ↗
(exps: list, exps_dir: str)

Source from the content-addressed store, hash-verified

401
402
403def write_experiments(exps: list, exps_dir: str):
404 exp_paths = []
405 for exp in exps:
406 exp_name = exp['name']
407 # write the expr config to a json file
408 exp_path = os.path.join(exps_dir, f'{exp_name}.json')
409 with open(exp_path, 'w') as fd:
410
411 json.dump(exp, fd)
412 exp_paths.append(exp_path)
413 return exp_paths
414
415
416def memory_to_string(n, postfix="", units=None, precision=2):

Callers 1

tuneMethod · 0.90

Calls 2

dumpMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected