unilab.training.experiment.write_run_config_snapshot

unilab.training.experiment.write_run_config_snapshot(log_dir, *, run_metadata, full_cfg, filename='run_config.json', contract_snapshot=None, trailing_newline=False)[source]

Write the run-config snapshot into log_dir and return the payload.

Parameters:
Return type:

dict[str, Any]