IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python module

max.pipelines.lib.artifact

Exports a pipeline to, and loads it from, a .m model artifact.

An artifact is a directory holding metadata.json (provenance and file checksums), artifact.json (one section per pipeline component), and any files the components reference, such as the compiled MEF.

Classesโ€‹

ArtifactComponentA pipeline component that can be stored in a model artifact.
ArtifactFileA file stored inside the .m artifact directory.
ArtifactMetadataWhere an artifact came from and the checksums of its files.
ArtifactTypeA value a component may return from __serialize__.
HuggingFaceRefA reference to a Hugging Face repo, or a file in one, at a revision.
ModelArtifactSerializable serve-able pipeline.

Exceptionsโ€‹

ArtifactErrorRaised when an artifact cannot be written, read, or validated.

Functionsโ€‹

deserializeDeserializes a model artifact from a .m directory.
serializeSerializes a model artifact to a .m directory.