qwak-core 0.4.257__py3-none-any.whl → 0.4.259__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.
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
15
15
 
16
16
 
17
17
 
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%qwak/automation/v1/auto_scaling.proto\x12\x12qwak.automation.v1\"\xad\x01\n\x11\x41utoScalingConfig\x12\x19\n\x11min_replica_count\x18\x01 \x01(\x05\x12\x19\n\x11max_replica_count\x18\x02 \x01(\x05\x12\x18\n\x10polling_interval\x18\x03 \x01(\x05\x12\x18\n\x10\x63ool_down_period\x18\x04 \x01(\x05\x12.\n\x08triggers\x18\x05 \x01(\x0b\x32\x1c.qwak.automation.v1.Triggers\">\n\x08Triggers\x12\x32\n\x08triggers\x18\x01 \x03(\x0b\x32 .qwak.automation.v1.ScaleTrigger\"n\n\x0cScaleTrigger\x12N\n\x12prometheus_trigger\x18\x01 \x01(\x0b\x32\x30.qwak.automation.v1.AutoScalingPrometheusTriggerH\x00\x42\x0e\n\x0ctrigger_type\"d\n\x1c\x41utoScalingPrometheusTrigger\x12\x31\n\nquery_spec\x18\x01 \x01(\x0b\x32\x1d.qwak.automation.v1.QuerySpec\x12\x11\n\tthreshold\x18\x02 \x01(\x05\"\xaa\x01\n\tQuerySpec\x12>\n\x0bmetric_type\x18\x01 \x01(\x0e\x32).qwak.automation.v1.AutoScalingMetricType\x12H\n\x10\x61ggregation_type\x18\x02 \x01(\x0e\x32..qwak.automation.v1.AutoScalingAggregationType\x12\x13\n\x0btime_period\x18\x03 \x01(\x05*x\n\x15\x41utoScalingMetricType\x12\x19\n\x15METRIC_TYPE_NOT_VALID\x10\x00\x12\x13\n\x0fMETRIC_TYPE_CPU\x10\x01\x12\x16\n\x12METRIC_TYPE_MEMORY\x10\x02\x12\x17\n\x13METRIC_TYPE_LATENCY\x10\x03*\x90\x02\n\x1a\x41utoScalingAggregationType\x12\x1e\n\x1a\x41GGREGATION_TYPE_NOT_VALID\x10\x00\x12\x18\n\x14\x41GGREGATION_TYPE_MIN\x10\x01\x12\x18\n\x14\x41GGREGATION_TYPE_MAX\x10\x02\x12\x1c\n\x18\x41GGREGATION_TYPE_AVERAGE\x10\x03\x12\x18\n\x14\x41GGREGATION_TYPE_SUM\x10\x04\x12\x18\n\x14\x41GGREGATION_TYPE_P50\x10\x05\x12\x18\n\x14\x41GGREGATION_TYPE_P90\x10\x06\x12\x18\n\x14\x41GGREGATION_TYPE_P95\x10\x07\x12\x18\n\x14\x41GGREGATION_TYPE_P99\x10\x08\x42!\n\x1d\x63om.qwak.ai.automation.api.v1P\x01\x62\x06proto3')
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%qwak/automation/v1/auto_scaling.proto\x12\x12qwak.automation.v1\"\xad\x01\n\x11\x41utoScalingConfig\x12\x19\n\x11min_replica_count\x18\x01 \x01(\x05\x12\x19\n\x11max_replica_count\x18\x02 \x01(\x05\x12\x18\n\x10polling_interval\x18\x03 \x01(\x05\x12\x18\n\x10\x63ool_down_period\x18\x04 \x01(\x05\x12.\n\x08triggers\x18\x05 \x01(\x0b\x32\x1c.qwak.automation.v1.Triggers\">\n\x08Triggers\x12\x32\n\x08triggers\x18\x01 \x03(\x0b\x32 .qwak.automation.v1.ScaleTrigger\"n\n\x0cScaleTrigger\x12N\n\x12prometheus_trigger\x18\x01 \x01(\x0b\x32\x30.qwak.automation.v1.AutoScalingPrometheusTriggerH\x00\x42\x0e\n\x0ctrigger_type\"d\n\x1c\x41utoScalingPrometheusTrigger\x12\x31\n\nquery_spec\x18\x01 \x01(\x0b\x32\x1d.qwak.automation.v1.QuerySpec\x12\x11\n\tthreshold\x18\x02 \x01(\x05\"\xaa\x01\n\tQuerySpec\x12>\n\x0bmetric_type\x18\x01 \x01(\x0e\x32).qwak.automation.v1.AutoScalingMetricType\x12H\n\x10\x61ggregation_type\x18\x02 \x01(\x0e\x32..qwak.automation.v1.AutoScalingAggregationType\x12\x13\n\x0btime_period\x18\x03 \x01(\x05*\xc5\x01\n\x15\x41utoScalingMetricType\x12\x19\n\x15METRIC_TYPE_NOT_VALID\x10\x00\x12\x13\n\x0fMETRIC_TYPE_CPU\x10\x01\x12\x16\n\x12METRIC_TYPE_MEMORY\x10\x02\x12\x17\n\x13METRIC_TYPE_LATENCY\x10\x03\x12\x13\n\x0fMETRIC_TYPE_GPU\x10\x04\x12\x1a\n\x16METRIC_TYPE_ERROR_RATE\x10\x05\x12\x1a\n\x16METRIC_TYPE_THROUGHPUT\x10\x06*\x90\x02\n\x1a\x41utoScalingAggregationType\x12\x1e\n\x1a\x41GGREGATION_TYPE_NOT_VALID\x10\x00\x12\x18\n\x14\x41GGREGATION_TYPE_MIN\x10\x01\x12\x18\n\x14\x41GGREGATION_TYPE_MAX\x10\x02\x12\x1c\n\x18\x41GGREGATION_TYPE_AVERAGE\x10\x03\x12\x18\n\x14\x41GGREGATION_TYPE_SUM\x10\x04\x12\x18\n\x14\x41GGREGATION_TYPE_P50\x10\x05\x12\x18\n\x14\x41GGREGATION_TYPE_P90\x10\x06\x12\x18\n\x14\x41GGREGATION_TYPE_P95\x10\x07\x12\x18\n\x14\x41GGREGATION_TYPE_P99\x10\x08\x42!\n\x1d\x63om.qwak.ai.automation.api.v1P\x01\x62\x06proto3')
19
19
 
20
20
  _AUTOSCALINGMETRICTYPE = DESCRIPTOR.enum_types_by_name['AutoScalingMetricType']
21
21
  AutoScalingMetricType = enum_type_wrapper.EnumTypeWrapper(_AUTOSCALINGMETRICTYPE)
@@ -25,6 +25,9 @@ METRIC_TYPE_NOT_VALID = 0
25
25
  METRIC_TYPE_CPU = 1
26
26
  METRIC_TYPE_MEMORY = 2
27
27
  METRIC_TYPE_LATENCY = 3
28
+ METRIC_TYPE_GPU = 4
29
+ METRIC_TYPE_ERROR_RATE = 5
30
+ METRIC_TYPE_THROUGHPUT = 6
28
31
  AGGREGATION_TYPE_NOT_VALID = 0
29
32
  AGGREGATION_TYPE_MIN = 1
30
33
  AGGREGATION_TYPE_MAX = 2
@@ -80,10 +83,10 @@ if _descriptor._USE_C_DESCRIPTORS == False:
80
83
 
81
84
  DESCRIPTOR._options = None
82
85
  DESCRIPTOR._serialized_options = b'\n\035com.qwak.ai.automation.api.v1P\001'
83
- _AUTOSCALINGMETRICTYPE._serialized_start=688
84
- _AUTOSCALINGMETRICTYPE._serialized_end=808
85
- _AUTOSCALINGAGGREGATIONTYPE._serialized_start=811
86
- _AUTOSCALINGAGGREGATIONTYPE._serialized_end=1083
86
+ _AUTOSCALINGMETRICTYPE._serialized_start=689
87
+ _AUTOSCALINGMETRICTYPE._serialized_end=886
88
+ _AUTOSCALINGAGGREGATIONTYPE._serialized_start=889
89
+ _AUTOSCALINGAGGREGATIONTYPE._serialized_end=1161
87
90
  _AUTOSCALINGCONFIG._serialized_start=62
88
91
  _AUTOSCALINGCONFIG._serialized_end=235
89
92
  _TRIGGERS._serialized_start=237
@@ -28,6 +28,9 @@ class _AutoScalingMetricTypeEnumTypeWrapper(google.protobuf.internal.enum_type_w
28
28
  METRIC_TYPE_CPU: _AutoScalingMetricType.ValueType # 1
29
29
  METRIC_TYPE_MEMORY: _AutoScalingMetricType.ValueType # 2
30
30
  METRIC_TYPE_LATENCY: _AutoScalingMetricType.ValueType # 3
31
+ METRIC_TYPE_GPU: _AutoScalingMetricType.ValueType # 4
32
+ METRIC_TYPE_ERROR_RATE: _AutoScalingMetricType.ValueType # 5
33
+ METRIC_TYPE_THROUGHPUT: _AutoScalingMetricType.ValueType # 6
31
34
 
32
35
  class AutoScalingMetricType(_AutoScalingMetricType, metaclass=_AutoScalingMetricTypeEnumTypeWrapper): ...
33
36
 
@@ -35,6 +38,9 @@ METRIC_TYPE_NOT_VALID: AutoScalingMetricType.ValueType # 0
35
38
  METRIC_TYPE_CPU: AutoScalingMetricType.ValueType # 1
36
39
  METRIC_TYPE_MEMORY: AutoScalingMetricType.ValueType # 2
37
40
  METRIC_TYPE_LATENCY: AutoScalingMetricType.ValueType # 3
41
+ METRIC_TYPE_GPU: AutoScalingMetricType.ValueType # 4
42
+ METRIC_TYPE_ERROR_RATE: AutoScalingMetricType.ValueType # 5
43
+ METRIC_TYPE_THROUGHPUT: AutoScalingMetricType.ValueType # 6
38
44
  global___AutoScalingMetricType = AutoScalingMetricType
39
45
 
40
46
  class _AutoScalingAggregationType:
qwak/__init__.py CHANGED
@@ -1,7 +1,7 @@
1
1
  """Top-level package for qwak-core."""
2
2
 
3
3
  __author__ = "Qwak.ai"
4
- __version__ = "0.4.257"
4
+ __version__ = "0.4.259"
5
5
 
6
6
  from qwak.inner.di_configuration import wire_dependencies
7
7
  from qwak.model.experiment_tracking import log_metric, log_param
@@ -32,6 +32,9 @@ from _qwak_proto.qwak.automation.v1.auto_scaling_pb2 import (
32
32
  METRIC_TYPE_CPU,
33
33
  METRIC_TYPE_LATENCY,
34
34
  METRIC_TYPE_MEMORY,
35
+ METRIC_TYPE_ERROR_RATE,
36
+ METRIC_TYPE_THROUGHPUT,
37
+ METRIC_TYPE_GPU,
35
38
  AutoScalingConfig as AutoScalingConfigProto,
36
39
  AutoScalingPrometheusTrigger as AutoScalingPrometheusTriggerProto,
37
40
  QuerySpec,
@@ -427,6 +430,9 @@ class MetricType(Enum):
427
430
  cpu = METRIC_TYPE_CPU
428
431
  latency = METRIC_TYPE_LATENCY
429
432
  memory = METRIC_TYPE_MEMORY
433
+ error_rate = METRIC_TYPE_ERROR_RATE
434
+ throughput = METRIC_TYPE_THROUGHPUT
435
+ gpu = METRIC_TYPE_GPU
430
436
 
431
437
 
432
438
  class AggregationType(Enum):
@@ -725,10 +731,11 @@ class AutoScaleQuerySpec:
725
731
  time_period: int = field(default=None)
726
732
 
727
733
  def to_proto(self):
734
+ aggregation_type_lower: str = self.aggregation_type.lower()
728
735
  return QuerySpec(
729
736
  time_period=self.time_period,
730
737
  metric_type=MetricType[self.metric_type.lower()].value,
731
- aggregation_type=AggregationType[self.aggregation_type.lower()].value,
738
+ aggregation_type=AggregationType[aggregation_type_lower].value,
732
739
  )
733
740
 
734
741
  @staticmethod
@@ -792,6 +799,9 @@ def map_auto_scaling_metric_type_proto_to_name(metric_type):
792
799
  METRIC_TYPE_CPU: "cpu",
793
800
  METRIC_TYPE_LATENCY: "latency",
794
801
  METRIC_TYPE_MEMORY: "memory",
802
+ METRIC_TYPE_ERROR_RATE: "error_rate",
803
+ METRIC_TYPE_THROUGHPUT: "throughput",
804
+ METRIC_TYPE_GPU: "gpu",
795
805
  }
796
806
  return mapping.get(metric_type)
797
807
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: qwak-core
3
- Version: 0.4.257
3
+ Version: 0.4.259
4
4
  Summary: Qwak Core contains the necessary objects and communication tools for using the Qwak Platform
5
5
  License: Apache-2.0
6
6
  Keywords: mlops,ml,deployment,serving,model
@@ -141,8 +141,8 @@ _qwak_proto/qwak/auto_scaling/v1/auto_scaling_service_pb2_grpc.py,sha256=ZoSiJl4
141
141
  _qwak_proto/qwak/automation/v1/action_pb2.py,sha256=HCO3QIkzPd-SZ1oL3yUPQ83MeX0LyYquxzIEipG_S_A,15551
142
142
  _qwak_proto/qwak/automation/v1/action_pb2.pyi,sha256=-hxFRA3W3IvGS5IQ17qcbXZm7p87eHDV4aLn7BAONJo,24021
143
143
  _qwak_proto/qwak/automation/v1/action_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
144
- _qwak_proto/qwak/automation/v1/auto_scaling_pb2.py,sha256=m_5lrMxN5gqs4NiM1uoUWfciR4ML4D09f6vAH00ZAdo,5775
145
- _qwak_proto/qwak/automation/v1/auto_scaling_pb2.pyi,sha256=1FEyVniyvThNB310NXXW0U5FGUNqnVDn9k8L9ilmbY0,8308
144
+ _qwak_proto/qwak/automation/v1/auto_scaling_pb2.py,sha256=p8bpypvNmPuedRxYr5-9jenvs788VPQJQAq74hrv3mE,5981
145
+ _qwak_proto/qwak/automation/v1/auto_scaling_pb2.pyi,sha256=yNbnp_7V1qOCCgRuquFPEczo_MMfpISag_aHvU5gIiQ,8675
146
146
  _qwak_proto/qwak/automation/v1/auto_scaling_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
147
147
  _qwak_proto/qwak/automation/v1/automation_execution_pb2.py,sha256=2j-fYwsWGNcYK0mBRMo0NM7Om061LUfbfC6cb5h1bxc,3954
148
148
  _qwak_proto/qwak/automation/v1/automation_execution_pb2.pyi,sha256=Ed-N6PChJkWypLSpFCwxdhn-lGkM0KHSSQY0-eEZWyU,5309
@@ -591,12 +591,12 @@ _qwak_proto/qwak/workspace/workspace_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXH
591
591
  _qwak_proto/qwak/workspace/workspace_service_pb2.py,sha256=AB3C9S_AbOD7Nx1Ni4j1rW6PNtYTV1zjiqFQk-goQ74,21429
592
592
  _qwak_proto/qwak/workspace/workspace_service_pb2.pyi,sha256=nKKCHwnovZhsy8TSVmdz-Vtl0nviOOoX56HD-41Xo08,13726
593
593
  _qwak_proto/qwak/workspace/workspace_service_pb2_grpc.py,sha256=yKGuexxTBza99Ihe0DSTniV2ZSd_AG47inHenqfi890,27193
594
- qwak/__init__.py,sha256=jSjpSdJQ_cdICs1YVCDvR9PKSEbi9-ycBYzfRBFiy6s,587
594
+ qwak/__init__.py,sha256=o1Ri3XPwFCL8EvO3654Cap5qmKdWZoGFWmhQZHkVqH8,587
595
595
  qwak/automations/__init__.py,sha256=qFZRvCxUUn8gcxkJR0v19ulHW2oJ0x6-Rif7HiheDP4,1522
596
596
  qwak/automations/automation_executions.py,sha256=5MeH_epYYWb8NKXgAozwT_jPyyUDednBHG7izloi7RY,3228
597
597
  qwak/automations/automations.py,sha256=3yx8e2v0uSKDnXbqyknasyEoQ5vxGni6K40Hbi1_zkk,12599
598
598
  qwak/automations/batch_execution_action.py,sha256=I5US-ZZwaDVoOjkndNr1_xpLSKdZqgToe5tyJcbO6RQ,12907
599
- qwak/automations/build_and_deploy_action.py,sha256=kTQ0xbuFmGTIzgvW6qTuGTop-mciGJQMxwU01J5Rbxw,30477
599
+ qwak/automations/build_and_deploy_action.py,sha256=K3Vp0RR-5_C6HpkLXid9bltljwylVxMmsGlyxDuoBqU,30845
600
600
  qwak/automations/common.py,sha256=tVUBYnmYBBj47B_iwwhSOirArH62XQUoA_42KOxSIA8,2695
601
601
  qwak/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
602
602
  qwak/clients/_inner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -1065,6 +1065,6 @@ qwak_services_mock/mocks/workspace_manager_service_mock.py,sha256=O9ZSwln4T4kHVk
1065
1065
  qwak_services_mock/services_mock.py,sha256=zXtHcX8a_acz7ynxuCBxxVpHpde7aAGjIn6Uw52LY1s,19593
1066
1066
  qwak_services_mock/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1067
1067
  qwak_services_mock/utils/service_utils.py,sha256=ZlB0CnB1J6oBn6_m7fQO2U8tKoboHdUa6ljjkRMYNXU,265
1068
- qwak_core-0.4.257.dist-info/METADATA,sha256=AJ1uzdA1Y4SeVcWf_jwDvl777WV67Mt0A_TBkj0HM1I,2549
1069
- qwak_core-0.4.257.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
1070
- qwak_core-0.4.257.dist-info/RECORD,,
1068
+ qwak_core-0.4.259.dist-info/METADATA,sha256=fMNaJNSbM9jWHXIQr8-M1FW7Ya1lOkKENa4uGb6XhjY,2549
1069
+ qwak_core-0.4.259.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
1070
+ qwak_core-0.4.259.dist-info/RECORD,,