Python function
validate_hf_repo_access
validate_hf_repo_access()β
max.pipelines.lib.validate_hf_repo_access(repo_id, revision)
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:
-
Raises:
-
ValueError β With user-friendly error messages for various access issues
-
Return type:
-
None
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!