Interface Management
- All Known Implementing Classes:
DefaultManagement
public interface Management
Management API
-
Method Summary
Modifier and TypeMethodDescriptionGet openapi description.describeModel(String modelName) Provides detailed information about the default version of a model.describeModel(String modelName, String modelVersion) Provides detailed information about the specified version of a model.listModels(Integer limit, String nextPageToken) List registered models in TorchServe.registerModel(String url, RegisterOptions options) Register a new model in TorchServe.setAutoScale(String modelName, String modelVersion, ScaleWorkerOptions options) Configure number of workers for a specified version of a model.setAutoScale(String modelName, ScaleWorkerOptions options) Configure number of workers for a default version of a model.setDefault(String modelName, String modelVersion) Set default version of a model.Not supported yet.unregisterModel(String modelName, String modelVersion, UnregisterOptions options) Unregister the specified version of a model from TorchServe.unregisterModel(String modelName, UnregisterOptions options) Unregister the default version of a model from TorchServe if it is the only version available.
-
Method Details
-
registerModel
Register a new model in TorchServe.- Throws:
ApiException
-
setAutoScale
Configure number of workers for a default version of a model. This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.- Throws:
ApiException
-
setAutoScale
Response setAutoScale(String modelName, String modelVersion, ScaleWorkerOptions options) throws ApiException Configure number of workers for a specified version of a model. This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.- Throws:
ApiException
-
describeModel
Provides detailed information about the default version of a model.- Throws:
ApiException
-
describeModel
Provides detailed information about the specified version of a model. If "all" is specified as version, returns the details about all the versions of the model.- Throws:
ApiException
-
unregisterModel
Unregister the default version of a model from TorchServe if it is the only version available. This is an asynchronous call by default. Caller can call listModels to confirm model is unregistered.- Throws:
ApiException
-
unregisterModel
Response unregisterModel(String modelName, String modelVersion, UnregisterOptions options) throws ApiException Unregister the specified version of a model from TorchServe. This is an asynchronous call by default. Caller can call listModels to confirm model is unregistered.- Throws:
ApiException
-
listModels
List registered models in TorchServe.- Throws:
ApiException
-
setDefault
Set default version of a model.- Throws:
ApiException
-
apiDescription
Get openapi description.- Throws:
ApiException
-
token
Not supported yet.- Throws:
ApiException
-