Models DownloadModel RPC
Requests the download of an existing model from the model repository.
rpc DownloadModel(ModelsDownloadModelRequest) returns (stream ModelsDownloadModelResponse);
Messages
ModelsDownloadModelRequest
ModelsDownloadModelResponse
message ModelsModelsDownloadModelRequestDeleteModelRequest {
RequestHeader header = 1;
Identifier model_id = 2;
}
Properties
header
type: message
Standard RPC request header.
See RequestHeader for details.
model_id
type: message
Unique identifier of the model to delete.
Required. If the identifier value is omitted from the request or does not match any known model identifier, Clara Deploy SDK will be unable to fulfill the request.
See Identifier for details.
ModelsDownloadModelResponse
message ModelsDownloadModelResponse {
ResponseHeader header = 1;
ModelDetails details = 2;
bytes data = 4;
}
Clara Deploy SDK Models service will respond to any delete request with a ModelsDownloadModelResponse message. Requestors can use the response header to determine the result of their request.
Properties
header
type: message
Standard RPC response header.
See ResponseHeader for details.
details
type: message
Details about the inference model download from the model repository.
See ModelDetails for details.
data
type: bytes
Raw binary data of the zip compressed inference model. Includes multi-part file and folder data.
Use a utility like unzip
to inflate the downloaded data.