loadModel

abstract fun <T : InferenceModel, U : InferenceModel> loadModel(modelType: ModelType<T, U>, loadingMode: LoadingMode = LoadingMode.SKIP_LOADING_IF_EXISTS): T

Loads model configuration without weights.

Return

Raw model without weights. Needs in compilation and weights loading before usage.

Parameters

modelType

This unique identifier defines the way to the S3 bucket with the model and its weights and the local directory for the model and its weights.

loadingMode

Strategy of existing model use-case handling.