nexaroa 0.0.111__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- neuroshard/__init__.py +93 -0
- neuroshard/__main__.py +4 -0
- neuroshard/cli.py +466 -0
- neuroshard/core/__init__.py +92 -0
- neuroshard/core/consensus/verifier.py +252 -0
- neuroshard/core/crypto/__init__.py +20 -0
- neuroshard/core/crypto/ecdsa.py +392 -0
- neuroshard/core/economics/__init__.py +52 -0
- neuroshard/core/economics/constants.py +387 -0
- neuroshard/core/economics/ledger.py +2111 -0
- neuroshard/core/economics/market.py +975 -0
- neuroshard/core/economics/wallet.py +168 -0
- neuroshard/core/governance/__init__.py +74 -0
- neuroshard/core/governance/proposal.py +561 -0
- neuroshard/core/governance/registry.py +545 -0
- neuroshard/core/governance/versioning.py +332 -0
- neuroshard/core/governance/voting.py +453 -0
- neuroshard/core/model/__init__.py +30 -0
- neuroshard/core/model/dynamic.py +4186 -0
- neuroshard/core/model/llm.py +905 -0
- neuroshard/core/model/registry.py +164 -0
- neuroshard/core/model/scaler.py +387 -0
- neuroshard/core/model/tokenizer.py +568 -0
- neuroshard/core/network/__init__.py +56 -0
- neuroshard/core/network/connection_pool.py +72 -0
- neuroshard/core/network/dht.py +130 -0
- neuroshard/core/network/dht_plan.py +55 -0
- neuroshard/core/network/dht_proof_store.py +516 -0
- neuroshard/core/network/dht_protocol.py +261 -0
- neuroshard/core/network/dht_service.py +506 -0
- neuroshard/core/network/encrypted_channel.py +141 -0
- neuroshard/core/network/nat.py +201 -0
- neuroshard/core/network/nat_traversal.py +695 -0
- neuroshard/core/network/p2p.py +929 -0
- neuroshard/core/network/p2p_data.py +150 -0
- neuroshard/core/swarm/__init__.py +106 -0
- neuroshard/core/swarm/aggregation.py +729 -0
- neuroshard/core/swarm/buffers.py +643 -0
- neuroshard/core/swarm/checkpoint.py +709 -0
- neuroshard/core/swarm/compute.py +624 -0
- neuroshard/core/swarm/diloco.py +844 -0
- neuroshard/core/swarm/factory.py +1288 -0
- neuroshard/core/swarm/heartbeat.py +669 -0
- neuroshard/core/swarm/logger.py +487 -0
- neuroshard/core/swarm/router.py +658 -0
- neuroshard/core/swarm/service.py +640 -0
- neuroshard/core/training/__init__.py +29 -0
- neuroshard/core/training/checkpoint.py +600 -0
- neuroshard/core/training/distributed.py +1602 -0
- neuroshard/core/training/global_tracker.py +617 -0
- neuroshard/core/training/production.py +276 -0
- neuroshard/governance_cli.py +729 -0
- neuroshard/grpc_server.py +895 -0
- neuroshard/runner.py +3223 -0
- neuroshard/sdk/__init__.py +92 -0
- neuroshard/sdk/client.py +990 -0
- neuroshard/sdk/errors.py +101 -0
- neuroshard/sdk/types.py +282 -0
- neuroshard/tracker/__init__.py +0 -0
- neuroshard/tracker/server.py +864 -0
- neuroshard/ui/__init__.py +0 -0
- neuroshard/ui/app.py +102 -0
- neuroshard/ui/templates/index.html +1052 -0
- neuroshard/utils/__init__.py +0 -0
- neuroshard/utils/autostart.py +81 -0
- neuroshard/utils/hardware.py +121 -0
- neuroshard/utils/serialization.py +90 -0
- neuroshard/version.py +1 -0
- nexaroa-0.0.111.dist-info/METADATA +283 -0
- nexaroa-0.0.111.dist-info/RECORD +78 -0
- nexaroa-0.0.111.dist-info/WHEEL +5 -0
- nexaroa-0.0.111.dist-info/entry_points.txt +4 -0
- nexaroa-0.0.111.dist-info/licenses/LICENSE +190 -0
- nexaroa-0.0.111.dist-info/top_level.txt +2 -0
- protos/__init__.py +0 -0
- protos/neuroshard.proto +651 -0
- protos/neuroshard_pb2.py +160 -0
- protos/neuroshard_pb2_grpc.py +1298 -0
|
@@ -0,0 +1,1298 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from protos import neuroshard_pb2 as neuroshard__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in neuroshard_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class NeuroShardServiceStub(object):
|
|
29
|
+
"""Service definition for Node-to-Node and Client-to-Node communication
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, channel):
|
|
33
|
+
"""Constructor.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
channel: A grpc.Channel.
|
|
37
|
+
"""
|
|
38
|
+
self.StreamInference = channel.stream_stream(
|
|
39
|
+
'/neuroshard.NeuroShardService/StreamInference',
|
|
40
|
+
request_serializer=neuroshard__pb2.InferenceRequest.SerializeToString,
|
|
41
|
+
response_deserializer=neuroshard__pb2.InferenceResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
self.UnaryInference = channel.unary_unary(
|
|
44
|
+
'/neuroshard.NeuroShardService/UnaryInference',
|
|
45
|
+
request_serializer=neuroshard__pb2.InferenceRequest.SerializeToString,
|
|
46
|
+
response_deserializer=neuroshard__pb2.InferenceResponse.FromString,
|
|
47
|
+
_registered_method=True)
|
|
48
|
+
self.GetWeights = channel.unary_unary(
|
|
49
|
+
'/neuroshard.NeuroShardService/GetWeights',
|
|
50
|
+
request_serializer=neuroshard__pb2.WeightRequest.SerializeToString,
|
|
51
|
+
response_deserializer=neuroshard__pb2.WeightResponse.FromString,
|
|
52
|
+
_registered_method=True)
|
|
53
|
+
self.GossipProof = channel.unary_unary(
|
|
54
|
+
'/neuroshard.NeuroShardService/GossipProof',
|
|
55
|
+
request_serializer=neuroshard__pb2.GossipProofRequest.SerializeToString,
|
|
56
|
+
response_deserializer=neuroshard__pb2.GossipProofResponse.FromString,
|
|
57
|
+
_registered_method=True)
|
|
58
|
+
self.GossipTransaction = channel.unary_unary(
|
|
59
|
+
'/neuroshard.NeuroShardService/GossipTransaction',
|
|
60
|
+
request_serializer=neuroshard__pb2.GossipTransactionRequest.SerializeToString,
|
|
61
|
+
response_deserializer=neuroshard__pb2.GossipTransactionResponse.FromString,
|
|
62
|
+
_registered_method=True)
|
|
63
|
+
self.GossipStake = channel.unary_unary(
|
|
64
|
+
'/neuroshard.NeuroShardService/GossipStake',
|
|
65
|
+
request_serializer=neuroshard__pb2.GossipStakeRequest.SerializeToString,
|
|
66
|
+
response_deserializer=neuroshard__pb2.GossipStakeResponse.FromString,
|
|
67
|
+
_registered_method=True)
|
|
68
|
+
self.RequestProofValidation = channel.unary_unary(
|
|
69
|
+
'/neuroshard.NeuroShardService/RequestProofValidation',
|
|
70
|
+
request_serializer=neuroshard__pb2.ProofValidationRequest.SerializeToString,
|
|
71
|
+
response_deserializer=neuroshard__pb2.ProofValidationResponse.FromString,
|
|
72
|
+
_registered_method=True)
|
|
73
|
+
self.GossipValidationVote = channel.unary_unary(
|
|
74
|
+
'/neuroshard.NeuroShardService/GossipValidationVote',
|
|
75
|
+
request_serializer=neuroshard__pb2.ValidationVoteRequest.SerializeToString,
|
|
76
|
+
response_deserializer=neuroshard__pb2.ValidationVoteResponse.FromString,
|
|
77
|
+
_registered_method=True)
|
|
78
|
+
self.GossipGradient = channel.unary_unary(
|
|
79
|
+
'/neuroshard.NeuroShardService/GossipGradient',
|
|
80
|
+
request_serializer=neuroshard__pb2.GossipGradientRequest.SerializeToString,
|
|
81
|
+
response_deserializer=neuroshard__pb2.GossipGradientResponse.FromString,
|
|
82
|
+
_registered_method=True)
|
|
83
|
+
self.GetCheckpoint = channel.unary_unary(
|
|
84
|
+
'/neuroshard.NeuroShardService/GetCheckpoint',
|
|
85
|
+
request_serializer=neuroshard__pb2.GetCheckpointRequest.SerializeToString,
|
|
86
|
+
response_deserializer=neuroshard__pb2.GetCheckpointResponse.FromString,
|
|
87
|
+
_registered_method=True)
|
|
88
|
+
self.GetCheckpointInfo = channel.unary_unary(
|
|
89
|
+
'/neuroshard.NeuroShardService/GetCheckpointInfo',
|
|
90
|
+
request_serializer=neuroshard__pb2.GetCheckpointInfoRequest.SerializeToString,
|
|
91
|
+
response_deserializer=neuroshard__pb2.GetCheckpointInfoResponse.FromString,
|
|
92
|
+
_registered_method=True)
|
|
93
|
+
self.PipelineForward = channel.unary_unary(
|
|
94
|
+
'/neuroshard.NeuroShardService/PipelineForward',
|
|
95
|
+
request_serializer=neuroshard__pb2.PipelineForwardRequest.SerializeToString,
|
|
96
|
+
response_deserializer=neuroshard__pb2.PipelineForwardResponse.FromString,
|
|
97
|
+
_registered_method=True)
|
|
98
|
+
self.PipelineBackward = channel.unary_unary(
|
|
99
|
+
'/neuroshard.NeuroShardService/PipelineBackward',
|
|
100
|
+
request_serializer=neuroshard__pb2.PipelineBackwardRequest.SerializeToString,
|
|
101
|
+
response_deserializer=neuroshard__pb2.PipelineBackwardResponse.FromString,
|
|
102
|
+
_registered_method=True)
|
|
103
|
+
self.GetShardInfo = channel.unary_unary(
|
|
104
|
+
'/neuroshard.NeuroShardService/GetShardInfo',
|
|
105
|
+
request_serializer=neuroshard__pb2.GetShardInfoRequest.SerializeToString,
|
|
106
|
+
response_deserializer=neuroshard__pb2.GetShardInfoResponse.FromString,
|
|
107
|
+
_registered_method=True)
|
|
108
|
+
self.GetShardChunk = channel.unary_unary(
|
|
109
|
+
'/neuroshard.NeuroShardService/GetShardChunk',
|
|
110
|
+
request_serializer=neuroshard__pb2.GetShardChunkRequest.SerializeToString,
|
|
111
|
+
response_deserializer=neuroshard__pb2.GetShardChunkResponse.FromString,
|
|
112
|
+
_registered_method=True)
|
|
113
|
+
self.DHTPing = channel.unary_unary(
|
|
114
|
+
'/neuroshard.NeuroShardService/DHTPing',
|
|
115
|
+
request_serializer=neuroshard__pb2.DHTPingRequest.SerializeToString,
|
|
116
|
+
response_deserializer=neuroshard__pb2.DHTPingResponse.FromString,
|
|
117
|
+
_registered_method=True)
|
|
118
|
+
self.DHTStore = channel.unary_unary(
|
|
119
|
+
'/neuroshard.NeuroShardService/DHTStore',
|
|
120
|
+
request_serializer=neuroshard__pb2.DHTStoreRequest.SerializeToString,
|
|
121
|
+
response_deserializer=neuroshard__pb2.DHTStoreResponse.FromString,
|
|
122
|
+
_registered_method=True)
|
|
123
|
+
self.DHTFindNode = channel.unary_unary(
|
|
124
|
+
'/neuroshard.NeuroShardService/DHTFindNode',
|
|
125
|
+
request_serializer=neuroshard__pb2.DHTFindNodeRequest.SerializeToString,
|
|
126
|
+
response_deserializer=neuroshard__pb2.DHTFindNodeResponse.FromString,
|
|
127
|
+
_registered_method=True)
|
|
128
|
+
self.DHTFindValue = channel.unary_unary(
|
|
129
|
+
'/neuroshard.NeuroShardService/DHTFindValue',
|
|
130
|
+
request_serializer=neuroshard__pb2.DHTFindValueRequest.SerializeToString,
|
|
131
|
+
response_deserializer=neuroshard__pb2.DHTFindValueResponse.FromString,
|
|
132
|
+
_registered_method=True)
|
|
133
|
+
self.TensorExchange = channel.unary_unary(
|
|
134
|
+
'/neuroshard.NeuroShardService/TensorExchange',
|
|
135
|
+
request_serializer=neuroshard__pb2.TensorExchangeRequest.SerializeToString,
|
|
136
|
+
response_deserializer=neuroshard__pb2.TensorExchangeResponse.FromString,
|
|
137
|
+
_registered_method=True)
|
|
138
|
+
self.SendPartialResult = channel.unary_unary(
|
|
139
|
+
'/neuroshard.NeuroShardService/SendPartialResult',
|
|
140
|
+
request_serializer=neuroshard__pb2.PartialResultRequest.SerializeToString,
|
|
141
|
+
response_deserializer=neuroshard__pb2.PartialResultResponse.FromString,
|
|
142
|
+
_registered_method=True)
|
|
143
|
+
self.AnnounceTensorShard = channel.unary_unary(
|
|
144
|
+
'/neuroshard.NeuroShardService/AnnounceTensorShard',
|
|
145
|
+
request_serializer=neuroshard__pb2.AnnounceShardRequest.SerializeToString,
|
|
146
|
+
response_deserializer=neuroshard__pb2.AnnounceShardResponse.FromString,
|
|
147
|
+
_registered_method=True)
|
|
148
|
+
self.FindTensorShardPeers = channel.unary_unary(
|
|
149
|
+
'/neuroshard.NeuroShardService/FindTensorShardPeers',
|
|
150
|
+
request_serializer=neuroshard__pb2.FindShardPeersRequest.SerializeToString,
|
|
151
|
+
response_deserializer=neuroshard__pb2.FindShardPeersResponse.FromString,
|
|
152
|
+
_registered_method=True)
|
|
153
|
+
self.ListModels = channel.unary_unary(
|
|
154
|
+
'/neuroshard.NeuroShardService/ListModels',
|
|
155
|
+
request_serializer=neuroshard__pb2.ListModelsRequest.SerializeToString,
|
|
156
|
+
response_deserializer=neuroshard__pb2.ListModelsResponse.FromString,
|
|
157
|
+
_registered_method=True)
|
|
158
|
+
self.GetModelStatus = channel.unary_unary(
|
|
159
|
+
'/neuroshard.NeuroShardService/GetModelStatus',
|
|
160
|
+
request_serializer=neuroshard__pb2.GetModelStatusRequest.SerializeToString,
|
|
161
|
+
response_deserializer=neuroshard__pb2.GetModelStatusResponse.FromString,
|
|
162
|
+
_registered_method=True)
|
|
163
|
+
self.SwarmForward = channel.unary_unary(
|
|
164
|
+
'/neuroshard.NeuroShardService/SwarmForward',
|
|
165
|
+
request_serializer=neuroshard__pb2.SwarmForwardRequest.SerializeToString,
|
|
166
|
+
response_deserializer=neuroshard__pb2.SwarmForwardResponse.FromString,
|
|
167
|
+
_registered_method=True)
|
|
168
|
+
self.GetSwarmStatus = channel.unary_unary(
|
|
169
|
+
'/neuroshard.NeuroShardService/GetSwarmStatus',
|
|
170
|
+
request_serializer=neuroshard__pb2.SwarmStatusRequest.SerializeToString,
|
|
171
|
+
response_deserializer=neuroshard__pb2.SwarmStatusResponse.FromString,
|
|
172
|
+
_registered_method=True)
|
|
173
|
+
self.UpdatePeerCapacity = channel.unary_unary(
|
|
174
|
+
'/neuroshard.NeuroShardService/UpdatePeerCapacity',
|
|
175
|
+
request_serializer=neuroshard__pb2.UpdatePeerCapacityRequest.SerializeToString,
|
|
176
|
+
response_deserializer=neuroshard__pb2.UpdatePeerCapacityResponse.FromString,
|
|
177
|
+
_registered_method=True)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
class NeuroShardServiceServicer(object):
|
|
181
|
+
"""Service definition for Node-to-Node and Client-to-Node communication
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
def StreamInference(self, request_iterator, context):
|
|
185
|
+
"""Streaming inference: Client/Node sends a stream of requests, receives a stream of tokens/updates
|
|
186
|
+
"""
|
|
187
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
188
|
+
context.set_details('Method not implemented!')
|
|
189
|
+
raise NotImplementedError('Method not implemented!')
|
|
190
|
+
|
|
191
|
+
def UnaryInference(self, request, context):
|
|
192
|
+
"""Simple unary call for single-step (legacy/fallback)
|
|
193
|
+
"""
|
|
194
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
195
|
+
context.set_details('Method not implemented!')
|
|
196
|
+
raise NotImplementedError('Method not implemented!')
|
|
197
|
+
|
|
198
|
+
def GetWeights(self, request, context):
|
|
199
|
+
"""Gossip weights for training
|
|
200
|
+
"""
|
|
201
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
202
|
+
context.set_details('Method not implemented!')
|
|
203
|
+
raise NotImplementedError('Method not implemented!')
|
|
204
|
+
|
|
205
|
+
def GossipProof(self, request, context):
|
|
206
|
+
"""Gossip Proof of Uptime
|
|
207
|
+
"""
|
|
208
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
209
|
+
context.set_details('Method not implemented!')
|
|
210
|
+
raise NotImplementedError('Method not implemented!')
|
|
211
|
+
|
|
212
|
+
def GossipTransaction(self, request, context):
|
|
213
|
+
"""Gossip Transaction
|
|
214
|
+
"""
|
|
215
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
216
|
+
context.set_details('Method not implemented!')
|
|
217
|
+
raise NotImplementedError('Method not implemented!')
|
|
218
|
+
|
|
219
|
+
def GossipStake(self, request, context):
|
|
220
|
+
"""Gossip Stake Update
|
|
221
|
+
"""
|
|
222
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
223
|
+
context.set_details('Method not implemented!')
|
|
224
|
+
raise NotImplementedError('Method not implemented!')
|
|
225
|
+
|
|
226
|
+
def RequestProofValidation(self, request, context):
|
|
227
|
+
"""Request Proof Validation from Validators
|
|
228
|
+
"""
|
|
229
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
230
|
+
context.set_details('Method not implemented!')
|
|
231
|
+
raise NotImplementedError('Method not implemented!')
|
|
232
|
+
|
|
233
|
+
def GossipValidationVote(self, request, context):
|
|
234
|
+
"""Gossip Validation Vote
|
|
235
|
+
"""
|
|
236
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
237
|
+
context.set_details('Method not implemented!')
|
|
238
|
+
raise NotImplementedError('Method not implemented!')
|
|
239
|
+
|
|
240
|
+
def GossipGradient(self, request, context):
|
|
241
|
+
"""--- Distributed Training RPCs ---
|
|
242
|
+
|
|
243
|
+
Gossip gradients for distributed training
|
|
244
|
+
"""
|
|
245
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
246
|
+
context.set_details('Method not implemented!')
|
|
247
|
+
raise NotImplementedError('Method not implemented!')
|
|
248
|
+
|
|
249
|
+
def GetCheckpoint(self, request, context):
|
|
250
|
+
"""Request checkpoint from peer
|
|
251
|
+
"""
|
|
252
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
253
|
+
context.set_details('Method not implemented!')
|
|
254
|
+
raise NotImplementedError('Method not implemented!')
|
|
255
|
+
|
|
256
|
+
def GetCheckpointInfo(self, request, context):
|
|
257
|
+
"""Get checkpoint info (version, hash) without downloading
|
|
258
|
+
"""
|
|
259
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
260
|
+
context.set_details('Method not implemented!')
|
|
261
|
+
raise NotImplementedError('Method not implemented!')
|
|
262
|
+
|
|
263
|
+
def PipelineForward(self, request, context):
|
|
264
|
+
"""--- Pipeline Parallelism RPCs ---
|
|
265
|
+
|
|
266
|
+
Forward hidden states through this node's layers
|
|
267
|
+
"""
|
|
268
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
269
|
+
context.set_details('Method not implemented!')
|
|
270
|
+
raise NotImplementedError('Method not implemented!')
|
|
271
|
+
|
|
272
|
+
def PipelineBackward(self, request, context):
|
|
273
|
+
"""Backward pass: propagate gradients back to previous node
|
|
274
|
+
"""
|
|
275
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
276
|
+
context.set_details('Method not implemented!')
|
|
277
|
+
raise NotImplementedError('Method not implemented!')
|
|
278
|
+
|
|
279
|
+
def GetShardInfo(self, request, context):
|
|
280
|
+
"""Get shard info from this node
|
|
281
|
+
"""
|
|
282
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
283
|
+
context.set_details('Method not implemented!')
|
|
284
|
+
raise NotImplementedError('Method not implemented!')
|
|
285
|
+
|
|
286
|
+
def GetShardChunk(self, request, context):
|
|
287
|
+
"""--- Data Swarm RPCs (P2P Dataset) ---
|
|
288
|
+
|
|
289
|
+
Request a chunk of a data shard
|
|
290
|
+
"""
|
|
291
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
292
|
+
context.set_details('Method not implemented!')
|
|
293
|
+
raise NotImplementedError('Method not implemented!')
|
|
294
|
+
|
|
295
|
+
def DHTPing(self, request, context):
|
|
296
|
+
"""--- DHT RPCs ---
|
|
297
|
+
"""
|
|
298
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
299
|
+
context.set_details('Method not implemented!')
|
|
300
|
+
raise NotImplementedError('Method not implemented!')
|
|
301
|
+
|
|
302
|
+
def DHTStore(self, request, context):
|
|
303
|
+
"""Missing associated documentation comment in .proto file."""
|
|
304
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
305
|
+
context.set_details('Method not implemented!')
|
|
306
|
+
raise NotImplementedError('Method not implemented!')
|
|
307
|
+
|
|
308
|
+
def DHTFindNode(self, request, context):
|
|
309
|
+
"""Missing associated documentation comment in .proto file."""
|
|
310
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
311
|
+
context.set_details('Method not implemented!')
|
|
312
|
+
raise NotImplementedError('Method not implemented!')
|
|
313
|
+
|
|
314
|
+
def DHTFindValue(self, request, context):
|
|
315
|
+
"""Missing associated documentation comment in .proto file."""
|
|
316
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
317
|
+
context.set_details('Method not implemented!')
|
|
318
|
+
raise NotImplementedError('Method not implemented!')
|
|
319
|
+
|
|
320
|
+
def TensorExchange(self, request, context):
|
|
321
|
+
"""--- Phase 4: Tensor Parallelism RPCs ---
|
|
322
|
+
|
|
323
|
+
Exchange tensor chunks during ring all-reduce
|
|
324
|
+
"""
|
|
325
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
326
|
+
context.set_details('Method not implemented!')
|
|
327
|
+
raise NotImplementedError('Method not implemented!')
|
|
328
|
+
|
|
329
|
+
def SendPartialResult(self, request, context):
|
|
330
|
+
"""Send partial results for async aggregation
|
|
331
|
+
"""
|
|
332
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
333
|
+
context.set_details('Method not implemented!')
|
|
334
|
+
raise NotImplementedError('Method not implemented!')
|
|
335
|
+
|
|
336
|
+
def AnnounceTensorShard(self, request, context):
|
|
337
|
+
"""Announce tensor shard availability
|
|
338
|
+
"""
|
|
339
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
340
|
+
context.set_details('Method not implemented!')
|
|
341
|
+
raise NotImplementedError('Method not implemented!')
|
|
342
|
+
|
|
343
|
+
def FindTensorShardPeers(self, request, context):
|
|
344
|
+
"""Find peer shards for all-reduce coordination
|
|
345
|
+
"""
|
|
346
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
347
|
+
context.set_details('Method not implemented!')
|
|
348
|
+
raise NotImplementedError('Method not implemented!')
|
|
349
|
+
|
|
350
|
+
def ListModels(self, request, context):
|
|
351
|
+
"""--- Phase 4: Model Registry RPCs ---
|
|
352
|
+
|
|
353
|
+
List available models in network
|
|
354
|
+
"""
|
|
355
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
356
|
+
context.set_details('Method not implemented!')
|
|
357
|
+
raise NotImplementedError('Method not implemented!')
|
|
358
|
+
|
|
359
|
+
def GetModelStatus(self, request, context):
|
|
360
|
+
"""Get status of a specific model
|
|
361
|
+
"""
|
|
362
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
363
|
+
context.set_details('Method not implemented!')
|
|
364
|
+
raise NotImplementedError('Method not implemented!')
|
|
365
|
+
|
|
366
|
+
def SwarmForward(self, request, context):
|
|
367
|
+
"""--- Swarm Routing RPCs (Phase 2) ---
|
|
368
|
+
|
|
369
|
+
Async activation forward (non-blocking, buffers locally)
|
|
370
|
+
"""
|
|
371
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
372
|
+
context.set_details('Method not implemented!')
|
|
373
|
+
raise NotImplementedError('Method not implemented!')
|
|
374
|
+
|
|
375
|
+
def GetSwarmStatus(self, request, context):
|
|
376
|
+
"""Get swarm node status (buffer fill rates, capacity)
|
|
377
|
+
"""
|
|
378
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
379
|
+
context.set_details('Method not implemented!')
|
|
380
|
+
raise NotImplementedError('Method not implemented!')
|
|
381
|
+
|
|
382
|
+
def UpdatePeerCapacity(self, request, context):
|
|
383
|
+
"""Update peer capacity (TCP fallback for UDP heartbeat)
|
|
384
|
+
"""
|
|
385
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
386
|
+
context.set_details('Method not implemented!')
|
|
387
|
+
raise NotImplementedError('Method not implemented!')
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
def add_NeuroShardServiceServicer_to_server(servicer, server):
|
|
391
|
+
rpc_method_handlers = {
|
|
392
|
+
'StreamInference': grpc.stream_stream_rpc_method_handler(
|
|
393
|
+
servicer.StreamInference,
|
|
394
|
+
request_deserializer=neuroshard__pb2.InferenceRequest.FromString,
|
|
395
|
+
response_serializer=neuroshard__pb2.InferenceResponse.SerializeToString,
|
|
396
|
+
),
|
|
397
|
+
'UnaryInference': grpc.unary_unary_rpc_method_handler(
|
|
398
|
+
servicer.UnaryInference,
|
|
399
|
+
request_deserializer=neuroshard__pb2.InferenceRequest.FromString,
|
|
400
|
+
response_serializer=neuroshard__pb2.InferenceResponse.SerializeToString,
|
|
401
|
+
),
|
|
402
|
+
'GetWeights': grpc.unary_unary_rpc_method_handler(
|
|
403
|
+
servicer.GetWeights,
|
|
404
|
+
request_deserializer=neuroshard__pb2.WeightRequest.FromString,
|
|
405
|
+
response_serializer=neuroshard__pb2.WeightResponse.SerializeToString,
|
|
406
|
+
),
|
|
407
|
+
'GossipProof': grpc.unary_unary_rpc_method_handler(
|
|
408
|
+
servicer.GossipProof,
|
|
409
|
+
request_deserializer=neuroshard__pb2.GossipProofRequest.FromString,
|
|
410
|
+
response_serializer=neuroshard__pb2.GossipProofResponse.SerializeToString,
|
|
411
|
+
),
|
|
412
|
+
'GossipTransaction': grpc.unary_unary_rpc_method_handler(
|
|
413
|
+
servicer.GossipTransaction,
|
|
414
|
+
request_deserializer=neuroshard__pb2.GossipTransactionRequest.FromString,
|
|
415
|
+
response_serializer=neuroshard__pb2.GossipTransactionResponse.SerializeToString,
|
|
416
|
+
),
|
|
417
|
+
'GossipStake': grpc.unary_unary_rpc_method_handler(
|
|
418
|
+
servicer.GossipStake,
|
|
419
|
+
request_deserializer=neuroshard__pb2.GossipStakeRequest.FromString,
|
|
420
|
+
response_serializer=neuroshard__pb2.GossipStakeResponse.SerializeToString,
|
|
421
|
+
),
|
|
422
|
+
'RequestProofValidation': grpc.unary_unary_rpc_method_handler(
|
|
423
|
+
servicer.RequestProofValidation,
|
|
424
|
+
request_deserializer=neuroshard__pb2.ProofValidationRequest.FromString,
|
|
425
|
+
response_serializer=neuroshard__pb2.ProofValidationResponse.SerializeToString,
|
|
426
|
+
),
|
|
427
|
+
'GossipValidationVote': grpc.unary_unary_rpc_method_handler(
|
|
428
|
+
servicer.GossipValidationVote,
|
|
429
|
+
request_deserializer=neuroshard__pb2.ValidationVoteRequest.FromString,
|
|
430
|
+
response_serializer=neuroshard__pb2.ValidationVoteResponse.SerializeToString,
|
|
431
|
+
),
|
|
432
|
+
'GossipGradient': grpc.unary_unary_rpc_method_handler(
|
|
433
|
+
servicer.GossipGradient,
|
|
434
|
+
request_deserializer=neuroshard__pb2.GossipGradientRequest.FromString,
|
|
435
|
+
response_serializer=neuroshard__pb2.GossipGradientResponse.SerializeToString,
|
|
436
|
+
),
|
|
437
|
+
'GetCheckpoint': grpc.unary_unary_rpc_method_handler(
|
|
438
|
+
servicer.GetCheckpoint,
|
|
439
|
+
request_deserializer=neuroshard__pb2.GetCheckpointRequest.FromString,
|
|
440
|
+
response_serializer=neuroshard__pb2.GetCheckpointResponse.SerializeToString,
|
|
441
|
+
),
|
|
442
|
+
'GetCheckpointInfo': grpc.unary_unary_rpc_method_handler(
|
|
443
|
+
servicer.GetCheckpointInfo,
|
|
444
|
+
request_deserializer=neuroshard__pb2.GetCheckpointInfoRequest.FromString,
|
|
445
|
+
response_serializer=neuroshard__pb2.GetCheckpointInfoResponse.SerializeToString,
|
|
446
|
+
),
|
|
447
|
+
'PipelineForward': grpc.unary_unary_rpc_method_handler(
|
|
448
|
+
servicer.PipelineForward,
|
|
449
|
+
request_deserializer=neuroshard__pb2.PipelineForwardRequest.FromString,
|
|
450
|
+
response_serializer=neuroshard__pb2.PipelineForwardResponse.SerializeToString,
|
|
451
|
+
),
|
|
452
|
+
'PipelineBackward': grpc.unary_unary_rpc_method_handler(
|
|
453
|
+
servicer.PipelineBackward,
|
|
454
|
+
request_deserializer=neuroshard__pb2.PipelineBackwardRequest.FromString,
|
|
455
|
+
response_serializer=neuroshard__pb2.PipelineBackwardResponse.SerializeToString,
|
|
456
|
+
),
|
|
457
|
+
'GetShardInfo': grpc.unary_unary_rpc_method_handler(
|
|
458
|
+
servicer.GetShardInfo,
|
|
459
|
+
request_deserializer=neuroshard__pb2.GetShardInfoRequest.FromString,
|
|
460
|
+
response_serializer=neuroshard__pb2.GetShardInfoResponse.SerializeToString,
|
|
461
|
+
),
|
|
462
|
+
'GetShardChunk': grpc.unary_unary_rpc_method_handler(
|
|
463
|
+
servicer.GetShardChunk,
|
|
464
|
+
request_deserializer=neuroshard__pb2.GetShardChunkRequest.FromString,
|
|
465
|
+
response_serializer=neuroshard__pb2.GetShardChunkResponse.SerializeToString,
|
|
466
|
+
),
|
|
467
|
+
'DHTPing': grpc.unary_unary_rpc_method_handler(
|
|
468
|
+
servicer.DHTPing,
|
|
469
|
+
request_deserializer=neuroshard__pb2.DHTPingRequest.FromString,
|
|
470
|
+
response_serializer=neuroshard__pb2.DHTPingResponse.SerializeToString,
|
|
471
|
+
),
|
|
472
|
+
'DHTStore': grpc.unary_unary_rpc_method_handler(
|
|
473
|
+
servicer.DHTStore,
|
|
474
|
+
request_deserializer=neuroshard__pb2.DHTStoreRequest.FromString,
|
|
475
|
+
response_serializer=neuroshard__pb2.DHTStoreResponse.SerializeToString,
|
|
476
|
+
),
|
|
477
|
+
'DHTFindNode': grpc.unary_unary_rpc_method_handler(
|
|
478
|
+
servicer.DHTFindNode,
|
|
479
|
+
request_deserializer=neuroshard__pb2.DHTFindNodeRequest.FromString,
|
|
480
|
+
response_serializer=neuroshard__pb2.DHTFindNodeResponse.SerializeToString,
|
|
481
|
+
),
|
|
482
|
+
'DHTFindValue': grpc.unary_unary_rpc_method_handler(
|
|
483
|
+
servicer.DHTFindValue,
|
|
484
|
+
request_deserializer=neuroshard__pb2.DHTFindValueRequest.FromString,
|
|
485
|
+
response_serializer=neuroshard__pb2.DHTFindValueResponse.SerializeToString,
|
|
486
|
+
),
|
|
487
|
+
'TensorExchange': grpc.unary_unary_rpc_method_handler(
|
|
488
|
+
servicer.TensorExchange,
|
|
489
|
+
request_deserializer=neuroshard__pb2.TensorExchangeRequest.FromString,
|
|
490
|
+
response_serializer=neuroshard__pb2.TensorExchangeResponse.SerializeToString,
|
|
491
|
+
),
|
|
492
|
+
'SendPartialResult': grpc.unary_unary_rpc_method_handler(
|
|
493
|
+
servicer.SendPartialResult,
|
|
494
|
+
request_deserializer=neuroshard__pb2.PartialResultRequest.FromString,
|
|
495
|
+
response_serializer=neuroshard__pb2.PartialResultResponse.SerializeToString,
|
|
496
|
+
),
|
|
497
|
+
'AnnounceTensorShard': grpc.unary_unary_rpc_method_handler(
|
|
498
|
+
servicer.AnnounceTensorShard,
|
|
499
|
+
request_deserializer=neuroshard__pb2.AnnounceShardRequest.FromString,
|
|
500
|
+
response_serializer=neuroshard__pb2.AnnounceShardResponse.SerializeToString,
|
|
501
|
+
),
|
|
502
|
+
'FindTensorShardPeers': grpc.unary_unary_rpc_method_handler(
|
|
503
|
+
servicer.FindTensorShardPeers,
|
|
504
|
+
request_deserializer=neuroshard__pb2.FindShardPeersRequest.FromString,
|
|
505
|
+
response_serializer=neuroshard__pb2.FindShardPeersResponse.SerializeToString,
|
|
506
|
+
),
|
|
507
|
+
'ListModels': grpc.unary_unary_rpc_method_handler(
|
|
508
|
+
servicer.ListModels,
|
|
509
|
+
request_deserializer=neuroshard__pb2.ListModelsRequest.FromString,
|
|
510
|
+
response_serializer=neuroshard__pb2.ListModelsResponse.SerializeToString,
|
|
511
|
+
),
|
|
512
|
+
'GetModelStatus': grpc.unary_unary_rpc_method_handler(
|
|
513
|
+
servicer.GetModelStatus,
|
|
514
|
+
request_deserializer=neuroshard__pb2.GetModelStatusRequest.FromString,
|
|
515
|
+
response_serializer=neuroshard__pb2.GetModelStatusResponse.SerializeToString,
|
|
516
|
+
),
|
|
517
|
+
'SwarmForward': grpc.unary_unary_rpc_method_handler(
|
|
518
|
+
servicer.SwarmForward,
|
|
519
|
+
request_deserializer=neuroshard__pb2.SwarmForwardRequest.FromString,
|
|
520
|
+
response_serializer=neuroshard__pb2.SwarmForwardResponse.SerializeToString,
|
|
521
|
+
),
|
|
522
|
+
'GetSwarmStatus': grpc.unary_unary_rpc_method_handler(
|
|
523
|
+
servicer.GetSwarmStatus,
|
|
524
|
+
request_deserializer=neuroshard__pb2.SwarmStatusRequest.FromString,
|
|
525
|
+
response_serializer=neuroshard__pb2.SwarmStatusResponse.SerializeToString,
|
|
526
|
+
),
|
|
527
|
+
'UpdatePeerCapacity': grpc.unary_unary_rpc_method_handler(
|
|
528
|
+
servicer.UpdatePeerCapacity,
|
|
529
|
+
request_deserializer=neuroshard__pb2.UpdatePeerCapacityRequest.FromString,
|
|
530
|
+
response_serializer=neuroshard__pb2.UpdatePeerCapacityResponse.SerializeToString,
|
|
531
|
+
),
|
|
532
|
+
}
|
|
533
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
534
|
+
'neuroshard.NeuroShardService', rpc_method_handlers)
|
|
535
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
536
|
+
server.add_registered_method_handlers('neuroshard.NeuroShardService', rpc_method_handlers)
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
# This class is part of an EXPERIMENTAL API.
|
|
540
|
+
class NeuroShardService(object):
|
|
541
|
+
"""Service definition for Node-to-Node and Client-to-Node communication
|
|
542
|
+
"""
|
|
543
|
+
|
|
544
|
+
@staticmethod
|
|
545
|
+
def StreamInference(request_iterator,
|
|
546
|
+
target,
|
|
547
|
+
options=(),
|
|
548
|
+
channel_credentials=None,
|
|
549
|
+
call_credentials=None,
|
|
550
|
+
insecure=False,
|
|
551
|
+
compression=None,
|
|
552
|
+
wait_for_ready=None,
|
|
553
|
+
timeout=None,
|
|
554
|
+
metadata=None):
|
|
555
|
+
return grpc.experimental.stream_stream(
|
|
556
|
+
request_iterator,
|
|
557
|
+
target,
|
|
558
|
+
'/neuroshard.NeuroShardService/StreamInference',
|
|
559
|
+
neuroshard__pb2.InferenceRequest.SerializeToString,
|
|
560
|
+
neuroshard__pb2.InferenceResponse.FromString,
|
|
561
|
+
options,
|
|
562
|
+
channel_credentials,
|
|
563
|
+
insecure,
|
|
564
|
+
call_credentials,
|
|
565
|
+
compression,
|
|
566
|
+
wait_for_ready,
|
|
567
|
+
timeout,
|
|
568
|
+
metadata,
|
|
569
|
+
_registered_method=True)
|
|
570
|
+
|
|
571
|
+
@staticmethod
|
|
572
|
+
def UnaryInference(request,
|
|
573
|
+
target,
|
|
574
|
+
options=(),
|
|
575
|
+
channel_credentials=None,
|
|
576
|
+
call_credentials=None,
|
|
577
|
+
insecure=False,
|
|
578
|
+
compression=None,
|
|
579
|
+
wait_for_ready=None,
|
|
580
|
+
timeout=None,
|
|
581
|
+
metadata=None):
|
|
582
|
+
return grpc.experimental.unary_unary(
|
|
583
|
+
request,
|
|
584
|
+
target,
|
|
585
|
+
'/neuroshard.NeuroShardService/UnaryInference',
|
|
586
|
+
neuroshard__pb2.InferenceRequest.SerializeToString,
|
|
587
|
+
neuroshard__pb2.InferenceResponse.FromString,
|
|
588
|
+
options,
|
|
589
|
+
channel_credentials,
|
|
590
|
+
insecure,
|
|
591
|
+
call_credentials,
|
|
592
|
+
compression,
|
|
593
|
+
wait_for_ready,
|
|
594
|
+
timeout,
|
|
595
|
+
metadata,
|
|
596
|
+
_registered_method=True)
|
|
597
|
+
|
|
598
|
+
@staticmethod
|
|
599
|
+
def GetWeights(request,
|
|
600
|
+
target,
|
|
601
|
+
options=(),
|
|
602
|
+
channel_credentials=None,
|
|
603
|
+
call_credentials=None,
|
|
604
|
+
insecure=False,
|
|
605
|
+
compression=None,
|
|
606
|
+
wait_for_ready=None,
|
|
607
|
+
timeout=None,
|
|
608
|
+
metadata=None):
|
|
609
|
+
return grpc.experimental.unary_unary(
|
|
610
|
+
request,
|
|
611
|
+
target,
|
|
612
|
+
'/neuroshard.NeuroShardService/GetWeights',
|
|
613
|
+
neuroshard__pb2.WeightRequest.SerializeToString,
|
|
614
|
+
neuroshard__pb2.WeightResponse.FromString,
|
|
615
|
+
options,
|
|
616
|
+
channel_credentials,
|
|
617
|
+
insecure,
|
|
618
|
+
call_credentials,
|
|
619
|
+
compression,
|
|
620
|
+
wait_for_ready,
|
|
621
|
+
timeout,
|
|
622
|
+
metadata,
|
|
623
|
+
_registered_method=True)
|
|
624
|
+
|
|
625
|
+
@staticmethod
|
|
626
|
+
def GossipProof(request,
|
|
627
|
+
target,
|
|
628
|
+
options=(),
|
|
629
|
+
channel_credentials=None,
|
|
630
|
+
call_credentials=None,
|
|
631
|
+
insecure=False,
|
|
632
|
+
compression=None,
|
|
633
|
+
wait_for_ready=None,
|
|
634
|
+
timeout=None,
|
|
635
|
+
metadata=None):
|
|
636
|
+
return grpc.experimental.unary_unary(
|
|
637
|
+
request,
|
|
638
|
+
target,
|
|
639
|
+
'/neuroshard.NeuroShardService/GossipProof',
|
|
640
|
+
neuroshard__pb2.GossipProofRequest.SerializeToString,
|
|
641
|
+
neuroshard__pb2.GossipProofResponse.FromString,
|
|
642
|
+
options,
|
|
643
|
+
channel_credentials,
|
|
644
|
+
insecure,
|
|
645
|
+
call_credentials,
|
|
646
|
+
compression,
|
|
647
|
+
wait_for_ready,
|
|
648
|
+
timeout,
|
|
649
|
+
metadata,
|
|
650
|
+
_registered_method=True)
|
|
651
|
+
|
|
652
|
+
@staticmethod
|
|
653
|
+
def GossipTransaction(request,
|
|
654
|
+
target,
|
|
655
|
+
options=(),
|
|
656
|
+
channel_credentials=None,
|
|
657
|
+
call_credentials=None,
|
|
658
|
+
insecure=False,
|
|
659
|
+
compression=None,
|
|
660
|
+
wait_for_ready=None,
|
|
661
|
+
timeout=None,
|
|
662
|
+
metadata=None):
|
|
663
|
+
return grpc.experimental.unary_unary(
|
|
664
|
+
request,
|
|
665
|
+
target,
|
|
666
|
+
'/neuroshard.NeuroShardService/GossipTransaction',
|
|
667
|
+
neuroshard__pb2.GossipTransactionRequest.SerializeToString,
|
|
668
|
+
neuroshard__pb2.GossipTransactionResponse.FromString,
|
|
669
|
+
options,
|
|
670
|
+
channel_credentials,
|
|
671
|
+
insecure,
|
|
672
|
+
call_credentials,
|
|
673
|
+
compression,
|
|
674
|
+
wait_for_ready,
|
|
675
|
+
timeout,
|
|
676
|
+
metadata,
|
|
677
|
+
_registered_method=True)
|
|
678
|
+
|
|
679
|
+
@staticmethod
|
|
680
|
+
def GossipStake(request,
|
|
681
|
+
target,
|
|
682
|
+
options=(),
|
|
683
|
+
channel_credentials=None,
|
|
684
|
+
call_credentials=None,
|
|
685
|
+
insecure=False,
|
|
686
|
+
compression=None,
|
|
687
|
+
wait_for_ready=None,
|
|
688
|
+
timeout=None,
|
|
689
|
+
metadata=None):
|
|
690
|
+
return grpc.experimental.unary_unary(
|
|
691
|
+
request,
|
|
692
|
+
target,
|
|
693
|
+
'/neuroshard.NeuroShardService/GossipStake',
|
|
694
|
+
neuroshard__pb2.GossipStakeRequest.SerializeToString,
|
|
695
|
+
neuroshard__pb2.GossipStakeResponse.FromString,
|
|
696
|
+
options,
|
|
697
|
+
channel_credentials,
|
|
698
|
+
insecure,
|
|
699
|
+
call_credentials,
|
|
700
|
+
compression,
|
|
701
|
+
wait_for_ready,
|
|
702
|
+
timeout,
|
|
703
|
+
metadata,
|
|
704
|
+
_registered_method=True)
|
|
705
|
+
|
|
706
|
+
@staticmethod
|
|
707
|
+
def RequestProofValidation(request,
|
|
708
|
+
target,
|
|
709
|
+
options=(),
|
|
710
|
+
channel_credentials=None,
|
|
711
|
+
call_credentials=None,
|
|
712
|
+
insecure=False,
|
|
713
|
+
compression=None,
|
|
714
|
+
wait_for_ready=None,
|
|
715
|
+
timeout=None,
|
|
716
|
+
metadata=None):
|
|
717
|
+
return grpc.experimental.unary_unary(
|
|
718
|
+
request,
|
|
719
|
+
target,
|
|
720
|
+
'/neuroshard.NeuroShardService/RequestProofValidation',
|
|
721
|
+
neuroshard__pb2.ProofValidationRequest.SerializeToString,
|
|
722
|
+
neuroshard__pb2.ProofValidationResponse.FromString,
|
|
723
|
+
options,
|
|
724
|
+
channel_credentials,
|
|
725
|
+
insecure,
|
|
726
|
+
call_credentials,
|
|
727
|
+
compression,
|
|
728
|
+
wait_for_ready,
|
|
729
|
+
timeout,
|
|
730
|
+
metadata,
|
|
731
|
+
_registered_method=True)
|
|
732
|
+
|
|
733
|
+
@staticmethod
|
|
734
|
+
def GossipValidationVote(request,
|
|
735
|
+
target,
|
|
736
|
+
options=(),
|
|
737
|
+
channel_credentials=None,
|
|
738
|
+
call_credentials=None,
|
|
739
|
+
insecure=False,
|
|
740
|
+
compression=None,
|
|
741
|
+
wait_for_ready=None,
|
|
742
|
+
timeout=None,
|
|
743
|
+
metadata=None):
|
|
744
|
+
return grpc.experimental.unary_unary(
|
|
745
|
+
request,
|
|
746
|
+
target,
|
|
747
|
+
'/neuroshard.NeuroShardService/GossipValidationVote',
|
|
748
|
+
neuroshard__pb2.ValidationVoteRequest.SerializeToString,
|
|
749
|
+
neuroshard__pb2.ValidationVoteResponse.FromString,
|
|
750
|
+
options,
|
|
751
|
+
channel_credentials,
|
|
752
|
+
insecure,
|
|
753
|
+
call_credentials,
|
|
754
|
+
compression,
|
|
755
|
+
wait_for_ready,
|
|
756
|
+
timeout,
|
|
757
|
+
metadata,
|
|
758
|
+
_registered_method=True)
|
|
759
|
+
|
|
760
|
+
@staticmethod
|
|
761
|
+
def GossipGradient(request,
|
|
762
|
+
target,
|
|
763
|
+
options=(),
|
|
764
|
+
channel_credentials=None,
|
|
765
|
+
call_credentials=None,
|
|
766
|
+
insecure=False,
|
|
767
|
+
compression=None,
|
|
768
|
+
wait_for_ready=None,
|
|
769
|
+
timeout=None,
|
|
770
|
+
metadata=None):
|
|
771
|
+
return grpc.experimental.unary_unary(
|
|
772
|
+
request,
|
|
773
|
+
target,
|
|
774
|
+
'/neuroshard.NeuroShardService/GossipGradient',
|
|
775
|
+
neuroshard__pb2.GossipGradientRequest.SerializeToString,
|
|
776
|
+
neuroshard__pb2.GossipGradientResponse.FromString,
|
|
777
|
+
options,
|
|
778
|
+
channel_credentials,
|
|
779
|
+
insecure,
|
|
780
|
+
call_credentials,
|
|
781
|
+
compression,
|
|
782
|
+
wait_for_ready,
|
|
783
|
+
timeout,
|
|
784
|
+
metadata,
|
|
785
|
+
_registered_method=True)
|
|
786
|
+
|
|
787
|
+
@staticmethod
|
|
788
|
+
def GetCheckpoint(request,
|
|
789
|
+
target,
|
|
790
|
+
options=(),
|
|
791
|
+
channel_credentials=None,
|
|
792
|
+
call_credentials=None,
|
|
793
|
+
insecure=False,
|
|
794
|
+
compression=None,
|
|
795
|
+
wait_for_ready=None,
|
|
796
|
+
timeout=None,
|
|
797
|
+
metadata=None):
|
|
798
|
+
return grpc.experimental.unary_unary(
|
|
799
|
+
request,
|
|
800
|
+
target,
|
|
801
|
+
'/neuroshard.NeuroShardService/GetCheckpoint',
|
|
802
|
+
neuroshard__pb2.GetCheckpointRequest.SerializeToString,
|
|
803
|
+
neuroshard__pb2.GetCheckpointResponse.FromString,
|
|
804
|
+
options,
|
|
805
|
+
channel_credentials,
|
|
806
|
+
insecure,
|
|
807
|
+
call_credentials,
|
|
808
|
+
compression,
|
|
809
|
+
wait_for_ready,
|
|
810
|
+
timeout,
|
|
811
|
+
metadata,
|
|
812
|
+
_registered_method=True)
|
|
813
|
+
|
|
814
|
+
@staticmethod
|
|
815
|
+
def GetCheckpointInfo(request,
|
|
816
|
+
target,
|
|
817
|
+
options=(),
|
|
818
|
+
channel_credentials=None,
|
|
819
|
+
call_credentials=None,
|
|
820
|
+
insecure=False,
|
|
821
|
+
compression=None,
|
|
822
|
+
wait_for_ready=None,
|
|
823
|
+
timeout=None,
|
|
824
|
+
metadata=None):
|
|
825
|
+
return grpc.experimental.unary_unary(
|
|
826
|
+
request,
|
|
827
|
+
target,
|
|
828
|
+
'/neuroshard.NeuroShardService/GetCheckpointInfo',
|
|
829
|
+
neuroshard__pb2.GetCheckpointInfoRequest.SerializeToString,
|
|
830
|
+
neuroshard__pb2.GetCheckpointInfoResponse.FromString,
|
|
831
|
+
options,
|
|
832
|
+
channel_credentials,
|
|
833
|
+
insecure,
|
|
834
|
+
call_credentials,
|
|
835
|
+
compression,
|
|
836
|
+
wait_for_ready,
|
|
837
|
+
timeout,
|
|
838
|
+
metadata,
|
|
839
|
+
_registered_method=True)
|
|
840
|
+
|
|
841
|
+
@staticmethod
|
|
842
|
+
def PipelineForward(request,
|
|
843
|
+
target,
|
|
844
|
+
options=(),
|
|
845
|
+
channel_credentials=None,
|
|
846
|
+
call_credentials=None,
|
|
847
|
+
insecure=False,
|
|
848
|
+
compression=None,
|
|
849
|
+
wait_for_ready=None,
|
|
850
|
+
timeout=None,
|
|
851
|
+
metadata=None):
|
|
852
|
+
return grpc.experimental.unary_unary(
|
|
853
|
+
request,
|
|
854
|
+
target,
|
|
855
|
+
'/neuroshard.NeuroShardService/PipelineForward',
|
|
856
|
+
neuroshard__pb2.PipelineForwardRequest.SerializeToString,
|
|
857
|
+
neuroshard__pb2.PipelineForwardResponse.FromString,
|
|
858
|
+
options,
|
|
859
|
+
channel_credentials,
|
|
860
|
+
insecure,
|
|
861
|
+
call_credentials,
|
|
862
|
+
compression,
|
|
863
|
+
wait_for_ready,
|
|
864
|
+
timeout,
|
|
865
|
+
metadata,
|
|
866
|
+
_registered_method=True)
|
|
867
|
+
|
|
868
|
+
@staticmethod
|
|
869
|
+
def PipelineBackward(request,
|
|
870
|
+
target,
|
|
871
|
+
options=(),
|
|
872
|
+
channel_credentials=None,
|
|
873
|
+
call_credentials=None,
|
|
874
|
+
insecure=False,
|
|
875
|
+
compression=None,
|
|
876
|
+
wait_for_ready=None,
|
|
877
|
+
timeout=None,
|
|
878
|
+
metadata=None):
|
|
879
|
+
return grpc.experimental.unary_unary(
|
|
880
|
+
request,
|
|
881
|
+
target,
|
|
882
|
+
'/neuroshard.NeuroShardService/PipelineBackward',
|
|
883
|
+
neuroshard__pb2.PipelineBackwardRequest.SerializeToString,
|
|
884
|
+
neuroshard__pb2.PipelineBackwardResponse.FromString,
|
|
885
|
+
options,
|
|
886
|
+
channel_credentials,
|
|
887
|
+
insecure,
|
|
888
|
+
call_credentials,
|
|
889
|
+
compression,
|
|
890
|
+
wait_for_ready,
|
|
891
|
+
timeout,
|
|
892
|
+
metadata,
|
|
893
|
+
_registered_method=True)
|
|
894
|
+
|
|
895
|
+
@staticmethod
|
|
896
|
+
def GetShardInfo(request,
|
|
897
|
+
target,
|
|
898
|
+
options=(),
|
|
899
|
+
channel_credentials=None,
|
|
900
|
+
call_credentials=None,
|
|
901
|
+
insecure=False,
|
|
902
|
+
compression=None,
|
|
903
|
+
wait_for_ready=None,
|
|
904
|
+
timeout=None,
|
|
905
|
+
metadata=None):
|
|
906
|
+
return grpc.experimental.unary_unary(
|
|
907
|
+
request,
|
|
908
|
+
target,
|
|
909
|
+
'/neuroshard.NeuroShardService/GetShardInfo',
|
|
910
|
+
neuroshard__pb2.GetShardInfoRequest.SerializeToString,
|
|
911
|
+
neuroshard__pb2.GetShardInfoResponse.FromString,
|
|
912
|
+
options,
|
|
913
|
+
channel_credentials,
|
|
914
|
+
insecure,
|
|
915
|
+
call_credentials,
|
|
916
|
+
compression,
|
|
917
|
+
wait_for_ready,
|
|
918
|
+
timeout,
|
|
919
|
+
metadata,
|
|
920
|
+
_registered_method=True)
|
|
921
|
+
|
|
922
|
+
@staticmethod
|
|
923
|
+
def GetShardChunk(request,
|
|
924
|
+
target,
|
|
925
|
+
options=(),
|
|
926
|
+
channel_credentials=None,
|
|
927
|
+
call_credentials=None,
|
|
928
|
+
insecure=False,
|
|
929
|
+
compression=None,
|
|
930
|
+
wait_for_ready=None,
|
|
931
|
+
timeout=None,
|
|
932
|
+
metadata=None):
|
|
933
|
+
return grpc.experimental.unary_unary(
|
|
934
|
+
request,
|
|
935
|
+
target,
|
|
936
|
+
'/neuroshard.NeuroShardService/GetShardChunk',
|
|
937
|
+
neuroshard__pb2.GetShardChunkRequest.SerializeToString,
|
|
938
|
+
neuroshard__pb2.GetShardChunkResponse.FromString,
|
|
939
|
+
options,
|
|
940
|
+
channel_credentials,
|
|
941
|
+
insecure,
|
|
942
|
+
call_credentials,
|
|
943
|
+
compression,
|
|
944
|
+
wait_for_ready,
|
|
945
|
+
timeout,
|
|
946
|
+
metadata,
|
|
947
|
+
_registered_method=True)
|
|
948
|
+
|
|
949
|
+
@staticmethod
|
|
950
|
+
def DHTPing(request,
|
|
951
|
+
target,
|
|
952
|
+
options=(),
|
|
953
|
+
channel_credentials=None,
|
|
954
|
+
call_credentials=None,
|
|
955
|
+
insecure=False,
|
|
956
|
+
compression=None,
|
|
957
|
+
wait_for_ready=None,
|
|
958
|
+
timeout=None,
|
|
959
|
+
metadata=None):
|
|
960
|
+
return grpc.experimental.unary_unary(
|
|
961
|
+
request,
|
|
962
|
+
target,
|
|
963
|
+
'/neuroshard.NeuroShardService/DHTPing',
|
|
964
|
+
neuroshard__pb2.DHTPingRequest.SerializeToString,
|
|
965
|
+
neuroshard__pb2.DHTPingResponse.FromString,
|
|
966
|
+
options,
|
|
967
|
+
channel_credentials,
|
|
968
|
+
insecure,
|
|
969
|
+
call_credentials,
|
|
970
|
+
compression,
|
|
971
|
+
wait_for_ready,
|
|
972
|
+
timeout,
|
|
973
|
+
metadata,
|
|
974
|
+
_registered_method=True)
|
|
975
|
+
|
|
976
|
+
@staticmethod
|
|
977
|
+
def DHTStore(request,
|
|
978
|
+
target,
|
|
979
|
+
options=(),
|
|
980
|
+
channel_credentials=None,
|
|
981
|
+
call_credentials=None,
|
|
982
|
+
insecure=False,
|
|
983
|
+
compression=None,
|
|
984
|
+
wait_for_ready=None,
|
|
985
|
+
timeout=None,
|
|
986
|
+
metadata=None):
|
|
987
|
+
return grpc.experimental.unary_unary(
|
|
988
|
+
request,
|
|
989
|
+
target,
|
|
990
|
+
'/neuroshard.NeuroShardService/DHTStore',
|
|
991
|
+
neuroshard__pb2.DHTStoreRequest.SerializeToString,
|
|
992
|
+
neuroshard__pb2.DHTStoreResponse.FromString,
|
|
993
|
+
options,
|
|
994
|
+
channel_credentials,
|
|
995
|
+
insecure,
|
|
996
|
+
call_credentials,
|
|
997
|
+
compression,
|
|
998
|
+
wait_for_ready,
|
|
999
|
+
timeout,
|
|
1000
|
+
metadata,
|
|
1001
|
+
_registered_method=True)
|
|
1002
|
+
|
|
1003
|
+
@staticmethod
|
|
1004
|
+
def DHTFindNode(request,
|
|
1005
|
+
target,
|
|
1006
|
+
options=(),
|
|
1007
|
+
channel_credentials=None,
|
|
1008
|
+
call_credentials=None,
|
|
1009
|
+
insecure=False,
|
|
1010
|
+
compression=None,
|
|
1011
|
+
wait_for_ready=None,
|
|
1012
|
+
timeout=None,
|
|
1013
|
+
metadata=None):
|
|
1014
|
+
return grpc.experimental.unary_unary(
|
|
1015
|
+
request,
|
|
1016
|
+
target,
|
|
1017
|
+
'/neuroshard.NeuroShardService/DHTFindNode',
|
|
1018
|
+
neuroshard__pb2.DHTFindNodeRequest.SerializeToString,
|
|
1019
|
+
neuroshard__pb2.DHTFindNodeResponse.FromString,
|
|
1020
|
+
options,
|
|
1021
|
+
channel_credentials,
|
|
1022
|
+
insecure,
|
|
1023
|
+
call_credentials,
|
|
1024
|
+
compression,
|
|
1025
|
+
wait_for_ready,
|
|
1026
|
+
timeout,
|
|
1027
|
+
metadata,
|
|
1028
|
+
_registered_method=True)
|
|
1029
|
+
|
|
1030
|
+
@staticmethod
|
|
1031
|
+
def DHTFindValue(request,
|
|
1032
|
+
target,
|
|
1033
|
+
options=(),
|
|
1034
|
+
channel_credentials=None,
|
|
1035
|
+
call_credentials=None,
|
|
1036
|
+
insecure=False,
|
|
1037
|
+
compression=None,
|
|
1038
|
+
wait_for_ready=None,
|
|
1039
|
+
timeout=None,
|
|
1040
|
+
metadata=None):
|
|
1041
|
+
return grpc.experimental.unary_unary(
|
|
1042
|
+
request,
|
|
1043
|
+
target,
|
|
1044
|
+
'/neuroshard.NeuroShardService/DHTFindValue',
|
|
1045
|
+
neuroshard__pb2.DHTFindValueRequest.SerializeToString,
|
|
1046
|
+
neuroshard__pb2.DHTFindValueResponse.FromString,
|
|
1047
|
+
options,
|
|
1048
|
+
channel_credentials,
|
|
1049
|
+
insecure,
|
|
1050
|
+
call_credentials,
|
|
1051
|
+
compression,
|
|
1052
|
+
wait_for_ready,
|
|
1053
|
+
timeout,
|
|
1054
|
+
metadata,
|
|
1055
|
+
_registered_method=True)
|
|
1056
|
+
|
|
1057
|
+
@staticmethod
|
|
1058
|
+
def TensorExchange(request,
|
|
1059
|
+
target,
|
|
1060
|
+
options=(),
|
|
1061
|
+
channel_credentials=None,
|
|
1062
|
+
call_credentials=None,
|
|
1063
|
+
insecure=False,
|
|
1064
|
+
compression=None,
|
|
1065
|
+
wait_for_ready=None,
|
|
1066
|
+
timeout=None,
|
|
1067
|
+
metadata=None):
|
|
1068
|
+
return grpc.experimental.unary_unary(
|
|
1069
|
+
request,
|
|
1070
|
+
target,
|
|
1071
|
+
'/neuroshard.NeuroShardService/TensorExchange',
|
|
1072
|
+
neuroshard__pb2.TensorExchangeRequest.SerializeToString,
|
|
1073
|
+
neuroshard__pb2.TensorExchangeResponse.FromString,
|
|
1074
|
+
options,
|
|
1075
|
+
channel_credentials,
|
|
1076
|
+
insecure,
|
|
1077
|
+
call_credentials,
|
|
1078
|
+
compression,
|
|
1079
|
+
wait_for_ready,
|
|
1080
|
+
timeout,
|
|
1081
|
+
metadata,
|
|
1082
|
+
_registered_method=True)
|
|
1083
|
+
|
|
1084
|
+
@staticmethod
|
|
1085
|
+
def SendPartialResult(request,
|
|
1086
|
+
target,
|
|
1087
|
+
options=(),
|
|
1088
|
+
channel_credentials=None,
|
|
1089
|
+
call_credentials=None,
|
|
1090
|
+
insecure=False,
|
|
1091
|
+
compression=None,
|
|
1092
|
+
wait_for_ready=None,
|
|
1093
|
+
timeout=None,
|
|
1094
|
+
metadata=None):
|
|
1095
|
+
return grpc.experimental.unary_unary(
|
|
1096
|
+
request,
|
|
1097
|
+
target,
|
|
1098
|
+
'/neuroshard.NeuroShardService/SendPartialResult',
|
|
1099
|
+
neuroshard__pb2.PartialResultRequest.SerializeToString,
|
|
1100
|
+
neuroshard__pb2.PartialResultResponse.FromString,
|
|
1101
|
+
options,
|
|
1102
|
+
channel_credentials,
|
|
1103
|
+
insecure,
|
|
1104
|
+
call_credentials,
|
|
1105
|
+
compression,
|
|
1106
|
+
wait_for_ready,
|
|
1107
|
+
timeout,
|
|
1108
|
+
metadata,
|
|
1109
|
+
_registered_method=True)
|
|
1110
|
+
|
|
1111
|
+
@staticmethod
|
|
1112
|
+
def AnnounceTensorShard(request,
|
|
1113
|
+
target,
|
|
1114
|
+
options=(),
|
|
1115
|
+
channel_credentials=None,
|
|
1116
|
+
call_credentials=None,
|
|
1117
|
+
insecure=False,
|
|
1118
|
+
compression=None,
|
|
1119
|
+
wait_for_ready=None,
|
|
1120
|
+
timeout=None,
|
|
1121
|
+
metadata=None):
|
|
1122
|
+
return grpc.experimental.unary_unary(
|
|
1123
|
+
request,
|
|
1124
|
+
target,
|
|
1125
|
+
'/neuroshard.NeuroShardService/AnnounceTensorShard',
|
|
1126
|
+
neuroshard__pb2.AnnounceShardRequest.SerializeToString,
|
|
1127
|
+
neuroshard__pb2.AnnounceShardResponse.FromString,
|
|
1128
|
+
options,
|
|
1129
|
+
channel_credentials,
|
|
1130
|
+
insecure,
|
|
1131
|
+
call_credentials,
|
|
1132
|
+
compression,
|
|
1133
|
+
wait_for_ready,
|
|
1134
|
+
timeout,
|
|
1135
|
+
metadata,
|
|
1136
|
+
_registered_method=True)
|
|
1137
|
+
|
|
1138
|
+
@staticmethod
|
|
1139
|
+
def FindTensorShardPeers(request,
|
|
1140
|
+
target,
|
|
1141
|
+
options=(),
|
|
1142
|
+
channel_credentials=None,
|
|
1143
|
+
call_credentials=None,
|
|
1144
|
+
insecure=False,
|
|
1145
|
+
compression=None,
|
|
1146
|
+
wait_for_ready=None,
|
|
1147
|
+
timeout=None,
|
|
1148
|
+
metadata=None):
|
|
1149
|
+
return grpc.experimental.unary_unary(
|
|
1150
|
+
request,
|
|
1151
|
+
target,
|
|
1152
|
+
'/neuroshard.NeuroShardService/FindTensorShardPeers',
|
|
1153
|
+
neuroshard__pb2.FindShardPeersRequest.SerializeToString,
|
|
1154
|
+
neuroshard__pb2.FindShardPeersResponse.FromString,
|
|
1155
|
+
options,
|
|
1156
|
+
channel_credentials,
|
|
1157
|
+
insecure,
|
|
1158
|
+
call_credentials,
|
|
1159
|
+
compression,
|
|
1160
|
+
wait_for_ready,
|
|
1161
|
+
timeout,
|
|
1162
|
+
metadata,
|
|
1163
|
+
_registered_method=True)
|
|
1164
|
+
|
|
1165
|
+
@staticmethod
|
|
1166
|
+
def ListModels(request,
|
|
1167
|
+
target,
|
|
1168
|
+
options=(),
|
|
1169
|
+
channel_credentials=None,
|
|
1170
|
+
call_credentials=None,
|
|
1171
|
+
insecure=False,
|
|
1172
|
+
compression=None,
|
|
1173
|
+
wait_for_ready=None,
|
|
1174
|
+
timeout=None,
|
|
1175
|
+
metadata=None):
|
|
1176
|
+
return grpc.experimental.unary_unary(
|
|
1177
|
+
request,
|
|
1178
|
+
target,
|
|
1179
|
+
'/neuroshard.NeuroShardService/ListModels',
|
|
1180
|
+
neuroshard__pb2.ListModelsRequest.SerializeToString,
|
|
1181
|
+
neuroshard__pb2.ListModelsResponse.FromString,
|
|
1182
|
+
options,
|
|
1183
|
+
channel_credentials,
|
|
1184
|
+
insecure,
|
|
1185
|
+
call_credentials,
|
|
1186
|
+
compression,
|
|
1187
|
+
wait_for_ready,
|
|
1188
|
+
timeout,
|
|
1189
|
+
metadata,
|
|
1190
|
+
_registered_method=True)
|
|
1191
|
+
|
|
1192
|
+
@staticmethod
|
|
1193
|
+
def GetModelStatus(request,
|
|
1194
|
+
target,
|
|
1195
|
+
options=(),
|
|
1196
|
+
channel_credentials=None,
|
|
1197
|
+
call_credentials=None,
|
|
1198
|
+
insecure=False,
|
|
1199
|
+
compression=None,
|
|
1200
|
+
wait_for_ready=None,
|
|
1201
|
+
timeout=None,
|
|
1202
|
+
metadata=None):
|
|
1203
|
+
return grpc.experimental.unary_unary(
|
|
1204
|
+
request,
|
|
1205
|
+
target,
|
|
1206
|
+
'/neuroshard.NeuroShardService/GetModelStatus',
|
|
1207
|
+
neuroshard__pb2.GetModelStatusRequest.SerializeToString,
|
|
1208
|
+
neuroshard__pb2.GetModelStatusResponse.FromString,
|
|
1209
|
+
options,
|
|
1210
|
+
channel_credentials,
|
|
1211
|
+
insecure,
|
|
1212
|
+
call_credentials,
|
|
1213
|
+
compression,
|
|
1214
|
+
wait_for_ready,
|
|
1215
|
+
timeout,
|
|
1216
|
+
metadata,
|
|
1217
|
+
_registered_method=True)
|
|
1218
|
+
|
|
1219
|
+
@staticmethod
|
|
1220
|
+
def SwarmForward(request,
|
|
1221
|
+
target,
|
|
1222
|
+
options=(),
|
|
1223
|
+
channel_credentials=None,
|
|
1224
|
+
call_credentials=None,
|
|
1225
|
+
insecure=False,
|
|
1226
|
+
compression=None,
|
|
1227
|
+
wait_for_ready=None,
|
|
1228
|
+
timeout=None,
|
|
1229
|
+
metadata=None):
|
|
1230
|
+
return grpc.experimental.unary_unary(
|
|
1231
|
+
request,
|
|
1232
|
+
target,
|
|
1233
|
+
'/neuroshard.NeuroShardService/SwarmForward',
|
|
1234
|
+
neuroshard__pb2.SwarmForwardRequest.SerializeToString,
|
|
1235
|
+
neuroshard__pb2.SwarmForwardResponse.FromString,
|
|
1236
|
+
options,
|
|
1237
|
+
channel_credentials,
|
|
1238
|
+
insecure,
|
|
1239
|
+
call_credentials,
|
|
1240
|
+
compression,
|
|
1241
|
+
wait_for_ready,
|
|
1242
|
+
timeout,
|
|
1243
|
+
metadata,
|
|
1244
|
+
_registered_method=True)
|
|
1245
|
+
|
|
1246
|
+
@staticmethod
|
|
1247
|
+
def GetSwarmStatus(request,
|
|
1248
|
+
target,
|
|
1249
|
+
options=(),
|
|
1250
|
+
channel_credentials=None,
|
|
1251
|
+
call_credentials=None,
|
|
1252
|
+
insecure=False,
|
|
1253
|
+
compression=None,
|
|
1254
|
+
wait_for_ready=None,
|
|
1255
|
+
timeout=None,
|
|
1256
|
+
metadata=None):
|
|
1257
|
+
return grpc.experimental.unary_unary(
|
|
1258
|
+
request,
|
|
1259
|
+
target,
|
|
1260
|
+
'/neuroshard.NeuroShardService/GetSwarmStatus',
|
|
1261
|
+
neuroshard__pb2.SwarmStatusRequest.SerializeToString,
|
|
1262
|
+
neuroshard__pb2.SwarmStatusResponse.FromString,
|
|
1263
|
+
options,
|
|
1264
|
+
channel_credentials,
|
|
1265
|
+
insecure,
|
|
1266
|
+
call_credentials,
|
|
1267
|
+
compression,
|
|
1268
|
+
wait_for_ready,
|
|
1269
|
+
timeout,
|
|
1270
|
+
metadata,
|
|
1271
|
+
_registered_method=True)
|
|
1272
|
+
|
|
1273
|
+
@staticmethod
|
|
1274
|
+
def UpdatePeerCapacity(request,
|
|
1275
|
+
target,
|
|
1276
|
+
options=(),
|
|
1277
|
+
channel_credentials=None,
|
|
1278
|
+
call_credentials=None,
|
|
1279
|
+
insecure=False,
|
|
1280
|
+
compression=None,
|
|
1281
|
+
wait_for_ready=None,
|
|
1282
|
+
timeout=None,
|
|
1283
|
+
metadata=None):
|
|
1284
|
+
return grpc.experimental.unary_unary(
|
|
1285
|
+
request,
|
|
1286
|
+
target,
|
|
1287
|
+
'/neuroshard.NeuroShardService/UpdatePeerCapacity',
|
|
1288
|
+
neuroshard__pb2.UpdatePeerCapacityRequest.SerializeToString,
|
|
1289
|
+
neuroshard__pb2.UpdatePeerCapacityResponse.FromString,
|
|
1290
|
+
options,
|
|
1291
|
+
channel_credentials,
|
|
1292
|
+
insecure,
|
|
1293
|
+
call_credentials,
|
|
1294
|
+
compression,
|
|
1295
|
+
wait_for_ready,
|
|
1296
|
+
timeout,
|
|
1297
|
+
metadata,
|
|
1298
|
+
_registered_method=True)
|