Auto resolution cache
inference_models.models.auto_loaders.auto_resolution_cache
¶
Classes¶
AutoResolutionCache
¶
Bases: ABC
Source code in inference_source/inference_models/inference_models/models/auto_loaders/auto_resolution_cache.py
Functions¶
find_compatible
¶
Return the newest matching entry when the cache can enumerate.
Custom cache implementations remain source-compatible and may opt in by overriding this method.
Source code in inference_source/inference_models/inference_models/models/auto_loaders/auto_resolution_cache.py
find_compatible_candidates
¶
Return compatible entries in preferred order when supported.
The default wraps the original single-result extension point so custom
cache implementations that only override find_compatible keep
working without changes.
Source code in inference_source/inference_models/inference_models/models/auto_loaders/auto_resolution_cache.py
find_model_candidates
¶
Return entries for an exact requested identity and credential.