Skip to main content
Log in

Mojo function

read_version

read_version[PathLike: PathLike](path: PathLike) -> VersionInfo

Reads the header of a MAX checkpoint and returns the version info.

Args:

  • path (PathLike): Path to MAX checkpoint file.

Returns:

VersionInfo containing the major and minor versions of the file.

Raises:

Error if the serialization header does not match.