Supported Storage Types¶
This library currently supports several places where you can save your models. You specify the storage type when you create a ModelStore instance:
Storage |
Requires |
Example code |
---|---|---|
The name of an existing s3 bucket |
||
The name of an existing bucket and access credentials |
||
The name of an existing container |
||
The name of an existing bucket |
||
File system |
A path |
File system storage¶
The file system model storage assumes that (a) the root directory exists, and (b) the library user has permission to write to it.
If you want to create the root directory if it does not exist, pass along the create_directory=True argument.
model_store = ModelStore.from_file_system(
root_directory="/path/to/directory",
create_directory=True,
)