mirror of
https://github.com/GayPizzaSpecifications/stable-diffusion-rpc.git
synced 2025-08-03 13:31:32 +00:00
43 lines
841 B
Protocol Buffer
43 lines
841 B
Protocol Buffer
/**
|
|
* Host management for the Stable Diffusion RPC service.
|
|
*/
|
|
syntax = "proto3";
|
|
package gay.pizza.stable.diffusion;
|
|
import "shared.proto";
|
|
|
|
/**
|
|
* Utilize a prefix of 'Sd' for Swift.
|
|
*/
|
|
option swift_prefix = "Sd";
|
|
option java_multiple_files = true;
|
|
|
|
/**
|
|
* Represents a request to load a model into a specified compute unit.
|
|
*/
|
|
message LoadModelRequest {
|
|
/**
|
|
* The model name to load onto the compute unit.
|
|
*/
|
|
string model_name = 1;
|
|
|
|
/**
|
|
* The compute units to load the model onto.
|
|
*/
|
|
ComputeUnits compute_units = 2;
|
|
}
|
|
|
|
/**
|
|
* Represents a response to loading a model.
|
|
*/
|
|
message LoadModelResponse {}
|
|
|
|
/**
|
|
* The model service, for management and loading of models.
|
|
*/
|
|
service HostModelService {
|
|
/**
|
|
* Loads a model onto a compute unit.
|
|
*/
|
|
rpc LoadModel(LoadModelRequest) returns (LoadModelResponse);
|
|
}
|