-
Notifications
You must be signed in to change notification settings - Fork 189
/
Copy pathmodel_repository.proto
77 lines (60 loc) · 1.72 KB
/
model_repository.proto
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
syntax = "proto3";
package inference.model_repository;
service ModelRepositoryService
{
// Get the index of model repository contents.
rpc RepositoryIndex(RepositoryIndexRequest)
returns (RepositoryIndexResponse) {}
// Load or reload a model from a repository.
rpc RepositoryModelLoad(RepositoryModelLoadRequest)
returns (RepositoryModelLoadResponse) {}
// Unload a model.
rpc RepositoryModelUnload(RepositoryModelUnloadRequest)
returns (RepositoryModelUnloadResponse) {}
}
message RepositoryIndexRequest
{
// The name of the repository. If empty the index is returned
// for all repositories.
string repository_name = 1;
// If true return only models currently ready for inferencing.
bool ready = 2;
}
message RepositoryIndexResponse
{
// Index entry for a model.
message ModelIndex {
// The name of the model.
string name = 1;
// The version of the model.
string version = 2;
// The state of the model.
string state = 3;
// The reason, if any, that the model is in the given state.
string reason = 4;
}
// An index entry for each model.
repeated ModelIndex models = 1;
}
message RepositoryModelLoadRequest
{
// The name of the repository to load from. If empty the model
// is loaded from any repository.
string repository_name = 1;
// The name of the model to load, or reload.
string model_name = 2;
}
message RepositoryModelLoadResponse
{
}
message RepositoryModelUnloadRequest
{
// The name of the repository from which the model was originally
// loaded. If empty the repository is not considered.
string repository_name = 1;
// The name of the model to unload.
string model_name = 2;
}
message RepositoryModelUnloadResponse
{
}