123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- syntax = "proto3";
- service ConnectionHandler {
- // Listens to incoming requests for expert computation
- rpc info(ExpertUID) returns (ExpertInfo);
- rpc forward(ExpertRequest) returns (ExpertResponse);
- rpc backward(ExpertRequest) returns (ExpertResponse);
- }
- message ExpertUID {
- string uid = 1;
- }
- message ExpertInfo {
- bytes serialized_info = 1;
- }
- message ExpertRequest {
- string uid = 1;
- repeated Tensor tensors = 2;
- }
- message ExpertResponse {
- repeated Tensor tensors = 2;
- }
- enum CompressionType{
- NONE = 0;
- MEANSTD_16BIT = 1;
- FLOAT16 = 2;
- QUANTILE_8BIT = 3;
- UNIFORM_8BIT = 4;
- }
- message Tensor {
- bytes buffer = 1;
- repeated uint32 size = 2;
- bool requires_grad = 3;
- string dtype = 4;
- CompressionType compression = 5;
- int32 chunks = 6;
- }
|