Model Bundles¶
CloudpickleArtifactFlavor ¶
Bases: BaseModel
app_config
instance-attribute
¶
Optional configuration for the application.
framework
class-attribute
instance-attribute
¶
framework: Union[PytorchFramework, TensorflowFramework, CustomFramework] = Field(..., discriminator='framework_type')
Machine Learning framework specification. Either
PytorchFramework
,
TensorflowFramework
, or
CustomFramework
.
load_model_fn
instance-attribute
¶
Function which, when called, returns the model object.
load_predict_fn
instance-attribute
¶
Function which, when called, returns the prediction function.
requirements
instance-attribute
¶
List of requirements to install in the environment before running the model.
CreateModelBundleV2Response ¶
Bases: BaseModel
Response object for creating a Model Bundle.
CustomFramework ¶
ListModelBundlesV2Response ¶
Bases: BaseModel
Response object for listing Model Bundles.
model_bundles
instance-attribute
¶
A list of Model Bundles.
ModelBundle
dataclass
¶
Represents a ModelBundle.
app_config
class-attribute
instance-attribute
¶
An optional user-specified configuration mapping for the bundle.
env_params
class-attribute
instance-attribute
¶
A dictionary that dictates environment information. See LaunchClient.create_model_bundle for more information.
id
class-attribute
instance-attribute
¶
A globally unique identifier for the bundle.
location
class-attribute
instance-attribute
¶
An opaque location for the bundle.
metadata
class-attribute
instance-attribute
¶
Arbitrary metadata for the bundle.
name
instance-attribute
¶
The name of the bundle. Must be unique across all bundles that the user owns.
packaging_type
class-attribute
instance-attribute
¶
The packaging type for the bundle. Can be cloudpickle
or zip
.
requirements
class-attribute
instance-attribute
¶
A list of Python package requirements for the bundle. See LaunchClient.create_model_bundle for more information.
ModelBundleV2Response ¶
Bases: BaseModel
Response object for a single Model Bundle.
created_at
instance-attribute
¶
Timestamp of when the Model Bundle was created.
flavor
class-attribute
instance-attribute
¶
Flavor of the Model Bundle, representing how the model bundle was packaged.
See ModelBundleFlavors
for details.
model_artifact_ids
instance-attribute
¶
IDs of the Model Artifacts associated with the Model Bundle.
PytorchFramework ¶
Bases: BaseModel
pytorch_image_tag
instance-attribute
¶
Image tag of the Pytorch image to use.
RunnableImageFlavor ¶
Bases: RunnableImageLike
Model bundles that use custom docker images that expose an HTTP server for inference.
TensorflowFramework ¶
Bases: BaseModel
ZipArtifactFlavor ¶
Bases: BaseModel
app_config
class-attribute
instance-attribute
¶
Optional configuration for the application.
framework
class-attribute
instance-attribute
¶
framework: Union[PytorchFramework, TensorflowFramework, CustomFramework] = Field(..., discriminator='framework_type')
Machine Learning framework specification. Either
PytorchFramework
,
TensorflowFramework
, or
CustomFramework
.
load_model_fn_module_path
instance-attribute
¶
Path to the module to load the model object.
load_predict_fn_module_path
instance-attribute
¶
Path to the module to load the prediction function.
requirements
instance-attribute
¶
List of requirements to install in the environment before running the model.