IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/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. /max/get-started.md).

Python function

validate_hf_repo_access

validate_hf_repo_access()​

max.pipelines.weights.validate_hf_repo_access(repo_id, revision)

source

Validates repository access and raises clear, user-friendly errors.

Results are cached to avoid redundant Hugging Face API calls when the same repository is validated multiple times within a process.

Parameters:

  • repo_id (str) – The Hugging Face repository ID to validate
  • revision (str) – The revision/branch to validate

Raises:

ValueError – With user-friendly error messages for various access issues

Return type:

None