@daocloud-proto/baize 0.114.1 → 0.116.0

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/common/k8s.pb.ts CHANGED
@@ -4,6 +4,15 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
8
+ type OneOf<T> =
9
+ | { [k in keyof T]?: undefined }
10
+ | (
11
+ keyof T extends infer K ?
12
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
13
+ : never)
14
+ : never);
15
+
7
16
  export enum KubeVolumeVolumeType {
8
17
  VOLUME_TYPE_UNSPECIFIED = "VOLUME_TYPE_UNSPECIFIED",
9
18
  PERSISTENT_VOLUME_CLAIM = "PERSISTENT_VOLUME_CLAIM",
@@ -57,6 +66,51 @@ export type PodConfig = {
57
66
  tolerationSeconds?: string
58
67
  resourceAffinities?: ResourceAffinity[]
59
68
  shmSize?: number
69
+ livenessProbe?: Probe
70
+ readinessProbe?: Probe
71
+ }
72
+
73
+
74
+ type BaseProbe = {
75
+ exec?: ExecAction
76
+ httpGet?: HTTPGetAction
77
+ tcpSocket?: TCPSocketAction
78
+ grpc?: GRPCAction
79
+ }
80
+
81
+ export type Probe = BaseProbe
82
+ & OneOf<{ initialDelaySeconds: number }>
83
+ & OneOf<{ timeoutSeconds: number }>
84
+ & OneOf<{ periodSeconds: number }>
85
+ & OneOf<{ successThreshold: number }>
86
+ & OneOf<{ failureThreshold: number }>
87
+ & OneOf<{ terminationGracePeriodSeconds: number }>
88
+
89
+ export type ExecAction = {
90
+ command?: string[]
91
+ }
92
+
93
+ export type HTTPGetAction = {
94
+ path?: string
95
+ port?: number
96
+ host?: string
97
+ scheme?: string
98
+ httpHeaders?: HTTPHeader[]
99
+ }
100
+
101
+ export type HTTPHeader = {
102
+ name?: string
103
+ value?: string
104
+ }
105
+
106
+ export type TCPSocketAction = {
107
+ port?: string
108
+ host?: string
109
+ }
110
+
111
+ export type GRPCAction = {
112
+ port?: number
113
+ service?: string
60
114
  }
61
115
 
62
116
  export type Affinity = {
@@ -73,6 +73,7 @@ export type GPUSetting = {
73
73
  type?: string
74
74
  alias?: string
75
75
  resource?: GPUResourceSetting[]
76
+ maxUnits?: number
76
77
  }
77
78
 
78
79
  export type GPUResourceSetting = {
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import * as BaizeCommonCommon from "../../../common/common.pb"
8
+ import * as BaizeCommonK8s from "../../../common/k8s.pb"
8
9
  import * as fm from "../../../fetch.pb"
9
10
  import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
10
11
  import * as BaizeManagement_apiEventV1alpha1Event from "../../event/v1alpha1/event.pb"
@@ -87,6 +88,8 @@ export enum DatasetActionRequestAction {
87
88
  export type DataSource = {
88
89
  type?: DataSourceType
89
90
  uri?: string
91
+ share?: boolean
92
+ sharedToWorkspaces?: BaizeManagement_apiWorkspaceV1alpha1Workspace.Workspace[]
90
93
  options?: DataSourceOptions
91
94
  }
92
95
 
@@ -107,9 +110,10 @@ export type Dataset = {
107
110
  labels?: {[key: string]: string}
108
111
  annotations?: {[key: string]: string}
109
112
  share?: boolean
110
- sharedStoWorkspaces?: BaizeManagement_apiWorkspaceV1alpha1Workspace.Workspace[]
113
+ sharedToWorkspaces?: BaizeManagement_apiWorkspaceV1alpha1Workspace.Workspace[]
111
114
  boundPVC?: DatasetBoundPVC
112
115
  lastSync?: GoogleProtobufTimestamp.Timestamp
116
+ resources?: BaizeCommonK8s.Resources
113
117
  }
114
118
 
115
119
  export type DataSourceOptionsConda = {
@@ -207,6 +211,7 @@ export type CreateDatasetRequest = {
207
211
  description?: string
208
212
  labels?: {[key: string]: string}
209
213
  annotations?: {[key: string]: string}
214
+ resources?: BaizeCommonK8s.Resources
210
215
  }
211
216
 
212
217
  export type ListDatasetRequest = {
@@ -235,12 +240,13 @@ export type SingleDatasetRequest = {
235
240
  namespace?: string
236
241
  name?: string
237
242
  secretOptions?: SecretOptions
238
- share?: boolean
239
- sharedStoWorkspaces?: number[]
240
243
  uri?: string
241
244
  description?: string
242
245
  labels?: {[key: string]: string}
243
246
  annotations?: {[key: string]: string}
247
+ share?: boolean
248
+ sharedToWorkspaces?: BaizeManagement_apiWorkspaceV1alpha1Workspace.Workspace[]
249
+ resources?: BaizeCommonK8s.Resources
244
250
  }
245
251
 
246
252
  export type UpdateDatasetRequest = BaseUpdateDatasetRequest
@@ -138,6 +138,8 @@ export type CreateNotebookRequest = {
138
138
  export type SnapshotConfig = {
139
139
  autoSaveOnTermination?: boolean
140
140
  imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
141
+ containerNoPause?: boolean
142
+ timeout?: number
141
143
  }
142
144
 
143
145
  export type UpdateNotebookRequest = {
@@ -203,9 +203,11 @@ export type ListQueueWorkloadResponse = {
203
203
  export type ResourceFlavor = {
204
204
  name?: string
205
205
  topologyName?: string
206
+ nodeLabels?: {[key: string]: string}
206
207
  }
207
208
 
208
209
  export type ListKueueResourceFlavorsRequest = {
210
+ workspace?: number
209
211
  cluster?: string
210
212
  page?: BaizeCommonCommon.Pagination
211
213
  }
@@ -215,6 +217,32 @@ export type ListKueueResourceFlavorsResponse = {
215
217
  page?: BaizeCommonCommon.Pagination
216
218
  }
217
219
 
220
+ export type CreateResourceFlavorRequest = {
221
+ workspace?: number
222
+ cluster?: string
223
+ name?: string
224
+ flavor?: ResourceFlavor
225
+ }
226
+
227
+ export type UpdateResourceFlavorRequest = {
228
+ workspace?: number
229
+ cluster?: string
230
+ name?: string
231
+ flavor?: ResourceFlavor
232
+ }
233
+
234
+ export type GetResourceFlavorRequest = {
235
+ workspace?: number
236
+ cluster?: string
237
+ name?: string
238
+ }
239
+
240
+ export type DeleteResourceFlavorRequest = {
241
+ workspace?: number
242
+ cluster?: string
243
+ name?: string
244
+ }
245
+
218
246
  export class QueueManagement {
219
247
  static ListQueues(req: ListQueueRequest, initReq?: fm.InitReq): Promise<ListQueueResponse> {
220
248
  return fm.fetchReq<ListQueueRequest, ListQueueResponse>(`/apis/baize.io/v1alpha1/queues?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -246,4 +274,16 @@ export class QueueManagement {
246
274
  static ListKueueResourceFlavors(req: ListKueueResourceFlavorsRequest, initReq?: fm.InitReq): Promise<ListKueueResourceFlavorsResponse> {
247
275
  return fm.fetchReq<ListKueueResourceFlavorsRequest, ListKueueResourceFlavorsResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/kueue/resourceflavors?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
248
276
  }
277
+ static CreateResourceFlavor(req: CreateResourceFlavorRequest, initReq?: fm.InitReq): Promise<ResourceFlavor> {
278
+ return fm.fetchReq<CreateResourceFlavorRequest, ResourceFlavor>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/kueue/resourceflavors`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
279
+ }
280
+ static UpdateResourceFlavor(req: UpdateResourceFlavorRequest, initReq?: fm.InitReq): Promise<ResourceFlavor> {
281
+ return fm.fetchReq<UpdateResourceFlavorRequest, ResourceFlavor>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/kueue/resourceflavors/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
282
+ }
283
+ static GetResourceFlavor(req: GetResourceFlavorRequest, initReq?: fm.InitReq): Promise<ResourceFlavor> {
284
+ return fm.fetchReq<GetResourceFlavorRequest, ResourceFlavor>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/kueue/resourceflavors/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "name"])}`, {...initReq, method: "GET"})
285
+ }
286
+ static DeleteResourceFlavor(req: DeleteResourceFlavorRequest, initReq?: fm.InitReq): Promise<ResourceFlavor> {
287
+ return fm.fetchReq<DeleteResourceFlavorRequest, ResourceFlavor>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/kueue/resourceflavors/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
288
+ }
249
289
  }
@@ -68,6 +68,8 @@ export type FrameworkVLLM = {
68
68
 
69
69
  /* baize modified */ export type BaseFramework = {
70
70
  type?: FrameworkType
71
+ preCmds?: string
72
+ postCmds?: string
71
73
  }
72
74
 
73
75
  export type Framework = BaseFramework
@@ -79,16 +81,21 @@ export type Model = {
79
81
  modelPath?: string
80
82
  }
81
83
 
84
+ export type CustomArg = {
85
+ name?: string
86
+ values?: string[]
87
+ }
88
+
89
+ export type CustomCmd = {
90
+ command?: string
91
+ args?: CustomArg[]
92
+ }
93
+
82
94
  export type ServingConfigVLLMLoraModel = {
83
95
  volume?: BaizeCommonK8s.KubeVolume
84
96
  relativePath?: string
85
97
  }
86
98
 
87
- export type ServingConfigVLLMCustomOptionalArg = {
88
- argName?: string
89
- argValues?: string[]
90
- }
91
-
92
99
  export type ServingConfigVLLM = {
93
100
  trustRemoteCode?: boolean
94
101
  tensorParallelSize?: number
@@ -97,7 +104,8 @@ export type ServingConfigVLLM = {
97
104
  maxLorasRank?: number
98
105
  maxLoras?: number
99
106
  maxCpuLoras?: number
100
- customOptionalArgs?: ServingConfigVLLMCustomOptionalArg[]
107
+ customArgs?: string
108
+ shouldSkip?: boolean
101
109
  }
102
110
 
103
111
  export type ServingConfigTritonModelConfig = {
@@ -214,6 +222,7 @@ export type UpdateInferenceServingRequest = {
214
222
  labels?: {[key: string]: string}
215
223
  annotations?: {[key: string]: string}
216
224
  podConfig?: BaizeCommonK8s.PodConfig
225
+ framework?: Framework
217
226
  auth?: ServingAuth
218
227
  hpaConfig?: HPAConfig
219
228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.114.1",
3
+ "version": "v0.116.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"