gimlet-api 0.0.13__py3-none-any.whl → 0.0.15__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.
- {gimlet_api-0.0.13.dist-info → gimlet_api-0.0.15.dist-info}/METADATA +2 -2
- {gimlet_api-0.0.13.dist-info → gimlet_api-0.0.15.dist-info}/RECORD +25 -22
- gml/client.py +70 -25
- gml/compile.py +0 -11
- gml/device.py +2 -2
- gml/hf.py +101 -63
- gml/model_utils.py +10 -1
- gml/pipelines.py +97 -23
- gml/proto/opentelemetry/proto/common/v1/common_pb2.py +3 -1
- gml/proto/opentelemetry/proto/resource/v1/resource_pb2.py +2 -2
- gml/proto/src/api/corepb/v1/actor_net_pb2.py +77 -0
- gml/proto/src/api/corepb/v1/compiled_pipeline_pb2.py +28 -28
- gml/proto/src/api/corepb/v1/controlplane_pb2.py +35 -33
- gml/proto/src/api/corepb/v1/cp_dp_pb2.py +92 -0
- gml/proto/src/api/corepb/v1/cp_edge_pb2.py +90 -77
- gml/proto/src/api/corepb/v1/dataplane_pb2.py +33 -0
- gml/proto/src/api/corepb/v1/device_info_pb2.py +19 -17
- gml/proto/src/api/corepb/v1/mediastream_pb2.py +11 -9
- gml/proto/src/api/corepb/v1/model_exec_pb2.py +164 -141
- gml/proto/src/common/typespb/jwt_pb2.py +14 -10
- gml/proto/src/controlplane/compiler/cpb/v1/cpb_pb2.py +10 -8
- gml/proto/src/controlplane/logicalpipeline/lppb/v1/lppb_pb2.py +17 -11
- gml/proto/src/controlplane/logicalpipeline/lppb/v1/lppb_pb2_grpc.py +33 -0
- gml/tensor.py +7 -0
- {gimlet_api-0.0.13.dist-info → gimlet_api-0.0.15.dist-info}/WHEEL +0 -0
@@ -29,6 +29,11 @@ class LogicalPipelineServiceStub(object):
|
|
29
29
|
request_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.CreateLogicalPipelineRequest.SerializeToString,
|
30
30
|
response_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.CreateLogicalPipelineResponse.FromString,
|
31
31
|
)
|
32
|
+
self.UpdateLogicalPipeline = channel.unary_unary(
|
33
|
+
'/gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineService/UpdateLogicalPipeline',
|
34
|
+
request_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.UpdateLogicalPipelineRequest.SerializeToString,
|
35
|
+
response_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.UpdateLogicalPipelineResponse.FromString,
|
36
|
+
)
|
32
37
|
self.ParseLogicalPipelineYAML = channel.unary_unary(
|
33
38
|
'/gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineService/ParseLogicalPipelineYAML',
|
34
39
|
request_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.ParseLogicalPipelineYAMLRequest.SerializeToString,
|
@@ -62,6 +67,12 @@ class LogicalPipelineServiceServicer(object):
|
|
62
67
|
context.set_details('Method not implemented!')
|
63
68
|
raise NotImplementedError('Method not implemented!')
|
64
69
|
|
70
|
+
def UpdateLogicalPipeline(self, request, context):
|
71
|
+
"""Missing associated documentation comment in .proto file."""
|
72
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
73
|
+
context.set_details('Method not implemented!')
|
74
|
+
raise NotImplementedError('Method not implemented!')
|
75
|
+
|
65
76
|
def ParseLogicalPipelineYAML(self, request, context):
|
66
77
|
"""Missing associated documentation comment in .proto file."""
|
67
78
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -92,6 +103,11 @@ def add_LogicalPipelineServiceServicer_to_server(servicer, server):
|
|
92
103
|
request_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.CreateLogicalPipelineRequest.FromString,
|
93
104
|
response_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.CreateLogicalPipelineResponse.SerializeToString,
|
94
105
|
),
|
106
|
+
'UpdateLogicalPipeline': grpc.unary_unary_rpc_method_handler(
|
107
|
+
servicer.UpdateLogicalPipeline,
|
108
|
+
request_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.UpdateLogicalPipelineRequest.FromString,
|
109
|
+
response_serializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.UpdateLogicalPipelineResponse.SerializeToString,
|
110
|
+
),
|
95
111
|
'ParseLogicalPipelineYAML': grpc.unary_unary_rpc_method_handler(
|
96
112
|
servicer.ParseLogicalPipelineYAML,
|
97
113
|
request_deserializer=src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.ParseLogicalPipelineYAMLRequest.FromString,
|
@@ -163,6 +179,23 @@ class LogicalPipelineService(object):
|
|
163
179
|
options, channel_credentials,
|
164
180
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
165
181
|
|
182
|
+
@staticmethod
|
183
|
+
def UpdateLogicalPipeline(request,
|
184
|
+
target,
|
185
|
+
options=(),
|
186
|
+
channel_credentials=None,
|
187
|
+
call_credentials=None,
|
188
|
+
insecure=False,
|
189
|
+
compression=None,
|
190
|
+
wait_for_ready=None,
|
191
|
+
timeout=None,
|
192
|
+
metadata=None):
|
193
|
+
return grpc.experimental.unary_unary(request, target, '/gml.internal.controlplane.logicalpipeline.v1.LogicalPipelineService/UpdateLogicalPipeline',
|
194
|
+
src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.UpdateLogicalPipelineRequest.SerializeToString,
|
195
|
+
src_dot_controlplane_dot_logicalpipeline_dot_lppb_dot_v1_dot_lppb__pb2.UpdateLogicalPipelineResponse.FromString,
|
196
|
+
options, channel_credentials,
|
197
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
198
|
+
|
166
199
|
@staticmethod
|
167
200
|
def ParseLogicalPipelineYAML(request,
|
168
201
|
target,
|
gml/tensor.py
CHANGED
@@ -278,6 +278,13 @@ class EmbeddingDimension(DimensionSemantics):
|
|
278
278
|
)
|
279
279
|
|
280
280
|
|
281
|
+
class PositionIDsDimension(DimensionSemantics):
|
282
|
+
def to_proto(self) -> modelexecpb.DimensionSemantics:
|
283
|
+
return modelexecpb.DimensionSemantics(
|
284
|
+
kind=modelexecpb.DimensionSemantics.DIMENSION_SEMANTICS_KIND_POSITION_IDS,
|
285
|
+
)
|
286
|
+
|
287
|
+
|
281
288
|
class TensorSemantics:
|
282
289
|
def __init__(
|
283
290
|
self,
|
File without changes
|