MCPcopy Index your code
hub / github.com/OpenGVLab/InternVL / save_config

Function save_config

classification/main_accelerate.py:91–95  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

89
90
91def save_config(config):
92 path = os.path.join(config.OUTPUT, 'config.json')
93 with open(path, 'w') as f:
94 f.write(config.dump())
95 logger.info(f'Full config saved to {path}')
96
97
98def build_criterion(config):

Callers 1

mainFunction · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected