MCPcopy Create free account
hub / github.com/OpenGVLab/InternVL / save_config

Function save_config

classification/main_deepspeed.py:88–92  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

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

Callers 1

main_deepspeed.pyFile · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected