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 class

HuggingFaceRef

HuggingFaceRef​

class max.pipelines.lib.artifact.HuggingFaceRef(repo_id, revision, path=None)

source

Bases: object

A reference to a Hugging Face repo, or a file in one, at a revision.

Parameters:

  • repo_id (str) – The Hugging Face repo ID.
  • revision (str) – The commit the artifact was exported against.
  • path (str | None) – The path of a file within the repo, or None for the whole repo.

path​

path: str | None = None

source

repo_id​

repo_id: str

source

revision​

revision: str

source