@flyteorg/flyteidl 0.21.2 → 0.21.6

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.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This is one of the core repositories of Flyte and contains the Specification of the Flyte Lanugage using protobuf messages, the Backend API specification in gRPC and Swagger REST. The repo contains generated clients and protocol message structures in multiple languages. Along-with the generated code, the repository also contains the Golang clients for Flyte's backend API's (the services grouped under Flyteadmin).
4
4
 
5
+ [![Slack](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://slack.flyte.org)
6
+
5
7
  * [flyte.org](https://flyte.org)
6
8
  * [Flyte Docs](http://docs.flyte.org)
7
9
  * [FlyteIDL API reference documentation](https://docs.flyte.org/projects/flyteidl/en/stable/index.html)
@@ -4436,6 +4436,9 @@ export namespace flyteidl {
4436
4436
 
4437
4437
  /** Container dataConfig */
4438
4438
  dataConfig?: (flyteidl.core.IDataLoadingConfig|null);
4439
+
4440
+ /** Container architecture */
4441
+ architecture?: (flyteidl.core.Container.Architecture|null);
4439
4442
  }
4440
4443
 
4441
4444
  /** Represents a Container. */
@@ -4471,6 +4474,9 @@ export namespace flyteidl {
4471
4474
  /** Container dataConfig. */
4472
4475
  public dataConfig?: (flyteidl.core.IDataLoadingConfig|null);
4473
4476
 
4477
+ /** Container architecture. */
4478
+ public architecture: flyteidl.core.Container.Architecture;
4479
+
4474
4480
  /**
4475
4481
  * Creates a new Container instance using the specified properties.
4476
4482
  * @param [properties] Properties to set
@@ -4504,6 +4510,18 @@ export namespace flyteidl {
4504
4510
  public static verify(message: { [k: string]: any }): (string|null);
4505
4511
  }
4506
4512
 
4513
+ namespace Container {
4514
+
4515
+ /** Architecture enum. */
4516
+ enum Architecture {
4517
+ UNKNOWN = 0,
4518
+ AMD64 = 1,
4519
+ ARM64 = 2,
4520
+ ARM_V6 = 3,
4521
+ ARM_V7 = 4
4522
+ }
4523
+ }
4524
+
4507
4525
  /** Properties of a IOStrategy. */
4508
4526
  interface IIOStrategy {
4509
4527
 
@@ -10577,6 +10577,7 @@ export const flyteidl = $root.flyteidl = (() => {
10577
10577
  * @property {Array.<flyteidl.core.IKeyValuePair>|null} [config] Container config
10578
10578
  * @property {Array.<flyteidl.core.IContainerPort>|null} [ports] Container ports
10579
10579
  * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] Container dataConfig
10580
+ * @property {flyteidl.core.Container.Architecture|null} [architecture] Container architecture
10580
10581
  */
10581
10582
 
10582
10583
  /**
@@ -10663,6 +10664,14 @@ export const flyteidl = $root.flyteidl = (() => {
10663
10664
  */
10664
10665
  Container.prototype.dataConfig = null;
10665
10666
 
10667
+ /**
10668
+ * Container architecture.
10669
+ * @member {flyteidl.core.Container.Architecture} architecture
10670
+ * @memberof flyteidl.core.Container
10671
+ * @instance
10672
+ */
10673
+ Container.prototype.architecture = 0;
10674
+
10666
10675
  /**
10667
10676
  * Creates a new Container instance using the specified properties.
10668
10677
  * @function create
@@ -10708,6 +10717,8 @@ export const flyteidl = $root.flyteidl = (() => {
10708
10717
  $root.flyteidl.core.ContainerPort.encode(message.ports[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
10709
10718
  if (message.dataConfig != null && message.hasOwnProperty("dataConfig"))
10710
10719
  $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
10720
+ if (message.architecture != null && message.hasOwnProperty("architecture"))
10721
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.architecture);
10711
10722
  return writer;
10712
10723
  };
10713
10724
 
@@ -10763,6 +10774,9 @@ export const flyteidl = $root.flyteidl = (() => {
10763
10774
  case 9:
10764
10775
  message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32());
10765
10776
  break;
10777
+ case 10:
10778
+ message.architecture = reader.int32();
10779
+ break;
10766
10780
  default:
10767
10781
  reader.skipType(tag & 7);
10768
10782
  break;
@@ -10836,9 +10850,40 @@ export const flyteidl = $root.flyteidl = (() => {
10836
10850
  if (error)
10837
10851
  return "dataConfig." + error;
10838
10852
  }
10853
+ if (message.architecture != null && message.hasOwnProperty("architecture"))
10854
+ switch (message.architecture) {
10855
+ default:
10856
+ return "architecture: enum value expected";
10857
+ case 0:
10858
+ case 1:
10859
+ case 2:
10860
+ case 3:
10861
+ case 4:
10862
+ break;
10863
+ }
10839
10864
  return null;
10840
10865
  };
10841
10866
 
10867
+ /**
10868
+ * Architecture enum.
10869
+ * @name flyteidl.core.Container.Architecture
10870
+ * @enum {string}
10871
+ * @property {number} UNKNOWN=0 UNKNOWN value
10872
+ * @property {number} AMD64=1 AMD64 value
10873
+ * @property {number} ARM64=2 ARM64 value
10874
+ * @property {number} ARM_V6=3 ARM_V6 value
10875
+ * @property {number} ARM_V7=4 ARM_V7 value
10876
+ */
10877
+ Container.Architecture = (function() {
10878
+ const valuesById = {}, values = Object.create(valuesById);
10879
+ values[valuesById[0] = "UNKNOWN"] = 0;
10880
+ values[valuesById[1] = "AMD64"] = 1;
10881
+ values[valuesById[2] = "ARM64"] = 2;
10882
+ values[valuesById[3] = "ARM_V6"] = 3;
10883
+ values[valuesById[4] = "ARM_V7"] = 4;
10884
+ return values;
10885
+ })();
10886
+
10842
10887
  return Container;
10843
10888
  })();
10844
10889
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "0.21.2",
3
+ "version": "0.21.6",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,6 +48,48 @@ will be executed concurrently.
48
48
 
49
49
 
50
50
 
51
+ .. _ref_flyteidl/plugins/mpi.proto:
52
+
53
+ flyteidl/plugins/mpi.proto
54
+ ==================================================================
55
+
56
+
57
+
58
+
59
+
60
+ .. _ref_flyteidl.plugins.DistributedMPITrainingTask:
61
+
62
+ DistributedMPITrainingTask
63
+ ------------------------------------------------------------------
64
+
65
+ MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md
66
+ Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator
67
+
68
+
69
+
70
+ .. csv-table:: DistributedMPITrainingTask type fields
71
+ :header: "Field", "Type", "Label", "Description"
72
+ :widths: auto
73
+
74
+ "num_workers", ":ref:`ref_int32`", "", "number of worker spawned in the cluster for this job"
75
+ "num_launcher_replicas", ":ref:`ref_int32`", "", "number of launcher replicas spawned in the cluster for this job The launcher pod invokes mpirun and communicates with worker pods through MPI."
76
+ "slots", ":ref:`ref_int32`", "", "number of slots per worker used in hostfile. The available slots (GPUs) in each pod."
77
+
78
+
79
+
80
+
81
+
82
+ <!-- end messages -->
83
+
84
+ <!-- end enums -->
85
+
86
+ <!-- end HasExtensions -->
87
+
88
+ <!-- end services -->
89
+
90
+
91
+
92
+
51
93
  .. _ref_flyteidl/plugins/presto.proto:
52
94
 
53
95
  flyteidl/plugins/presto.proto
@@ -182,6 +182,16 @@ message Container {
182
182
  // to understand the default paths.
183
183
  // Only K8s
184
184
  DataLoadingConfig data_config = 9;
185
+
186
+ // Architecture-type the container image supports.
187
+ enum Architecture {
188
+ UNKNOWN = 0;
189
+ AMD64 = 1;
190
+ ARM64 = 2;
191
+ ARM_V6 = 3;
192
+ ARM_V7 = 4;
193
+ }
194
+ Architecture architecture = 10;
185
195
  }
186
196
 
187
197
  // Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
@@ -0,0 +1,20 @@
1
+ syntax = "proto3";
2
+
3
+ package flyteidl.plugins;
4
+
5
+ option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins";
6
+
7
+ // MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md
8
+ // Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator
9
+ message DistributedMPITrainingTask {
10
+ // number of worker spawned in the cluster for this job
11
+ int32 num_workers = 1;
12
+
13
+ // number of launcher replicas spawned in the cluster for this job
14
+ // The launcher pod invokes mpirun and communicates with worker pods through MPI.
15
+ int32 num_launcher_replicas = 2;
16
+
17
+ // number of slots per worker used in hostfile.
18
+ // The available slots (GPUs) in each pod.
19
+ int32 slots = 3;
20
+ }