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

try_to_load_from_cache

try_to_load_from_cache()

max.pipelines.weights.try_to_load_from_cache(repo_id, filename, revision)

source

Wrapper around huggingface_hub.try_to_load_from_cache; validates repo exists.

validate_hf_repo_access is called first to ensure the repo exists.

Parameters:

  • repo_id (str)
  • filename (str)
  • revision (str)

Return type:

str | Any | None