caikit.core.model_management.local_model_finder
The LocalModelFinder locates models locally on disk that contain a caikit-native config.yml file.
Configuration for LocalModelFinder lives under the config as follows:
- model_management:
- finders:
- <finder name>:
type: LOCAL config:
# Path to a local directory that holds models for relative paths load_path: <null or str>
Attributes
Classes
A class can be constructed by a factory if its constructor takes exactly |
Module Contents
- caikit.core.model_management.local_model_finder.error
- class caikit.core.model_management.local_model_finder.LocalModelFinder(config: aconfig.Config, instance_name: str)[source]
Bases:
caikit.core.model_management.model_finder_base.ModelFinderBaseA class can be constructed by a factory if its constructor takes exactly one argument that is an aconfig.Config object and it has a name to identify itself with the factory.
- __doc__ = Multiline-String
Show Value
""" The LocalModelFinder locates models locally on disk that contain a caikit-native config.yml file. Configuration for LocalModelFinder lives under the config as follows: model_management: finders: <finder name>: type: LOCAL config: # Path to a local directory that holds models for relative paths load_path: <null or str> """
- name = 'LOCAL'
This is the name of this constructible type that will be used by the factory to identify this class
- _instance_name
- _load_path
- find_model(model_path: str, **__) caikit.core.modules.ModuleConfig | None[source]
Find a model at the local path or with the configured prefix