"test/pipelines/pipelines-it-remote.yml" did not exist on "8fd18a5a8edff2d7a81617631fd7f6d7af887994"
server.proto 1.1 KB
Newer Older
sunzhq2's avatar
init  
sunzhq2 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
syntax = "proto3";

package llm_perf;

// Containers to hold repeated fundamental values.
message FloatList {
    repeated double values = 1;
}

message Int64List {
    repeated int64 values = 1;
}

message BytesList {
    repeated bytes values = 1;
}

message StringList {
    repeated string values = 1;
}

message Struct {
  // Unordered map of dynamically typed values.
  map<string, Value> fields = 1;
}

// Container for non-sequential data.
message Value {
  oneof kind {
    FloatList float_list = 1;
    Int64List int64_list = 2;
    BytesList bytes_list = 3;
    float float_ = 4;
    int64 int64_ = 5;
    bytes bytes_ = 6;
    StringList string_list = 7;
    string string_ = 8;
    Struct struct_ = 9;
  }
}

message InferenceRequest {
  string req_id = 1;
  map<string, Value> inputs = 2;
}

message InferenceResponse {
  string req_id = 1;
  map<string, Value> outputs = 2;
}

service Inference {
  // 1 request -> 1 response
  rpc CompleteInference(InferenceRequest) returns (InferenceResponse) {}
  // 1 request -> m response
  rpc StreamingInference(InferenceRequest) returns (stream InferenceResponse) {}
}