Expand description
Write run, build and platform metadata to a TOML file.
This module collects information about the current run (model path and
start time), build information provided by the built script, and basic
platform details. The aggregated metadata is written as metadata.toml in
the output directory.
Modulesยง
- built_
info ๐ - Build-time information included by the build script (via the
builtcrate).
Structsยง
- Metadata ๐
- Top-level metadata structure serialized to TOML.
- Platform
Metadata ๐ - Information about the platform on which MUSE is running.
- Program
Metadata ๐ - RunMetadata ๐
- Information about the model run
Constantsยง
- METADATA_
FILE_ ๐NAME - The output filename used for metadata.
Functionsยง
- get_
git_ ๐hash - Return a short git commit hash for the build, or
"unknown"when not available. If the source tree was dirty at build time,-dirtyis appended. - write_
metadata - Write metadata to
metadata.tomlin the given output directory.