MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / save_config

Function save_config

lit_gpt/utils.py:491–494  ·  view source on GitHub ↗
(config: 'Config', checkpoint_dir: Path)

Source from the content-addressed store, hash-verified

489
490
491def save_config(config: 'Config', checkpoint_dir: Path) -> None:
492 config_dict = asdict(config)
493 with open(checkpoint_dir / 'model_config.yaml', 'w') as fp:
494 yaml.dump(config_dict, fp)
495
496
497def parse_devices(devices: Union[str, int]) -> int:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected