Python function
generate_local_model_path
generate_local_model_path()
max.pipelines.lib.generate_local_model_path(repo_id, revision)
Generates the local filesystem path where a Hugging Face model repo is cached.
This function resolves the model from the local Hugging Face cache only.
Missing snapshots should be pre-downloaded explicitly so tests without the
requires-network tag do not silently fetch remote artifacts at runtime.
-
Parameters:
-
Returns:
-
The absolute path to the cached model files for the specified revision.
-
Return type:
-
Raises:
-
FileNotFoundError – If the model is not found in the local cache.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!