@daocloud-proto/baize 0.121.1 → 0.122.1
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.
|
@@ -126,16 +126,13 @@ export type CreateJobRequest = {
|
|
|
126
126
|
recoveryConfig?: BaizeManagement_apiJobV1alpha1Common.RecoveryConfig
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
export type TrainingConfig = {
|
|
130
|
+
restartPolicy?: RestartPolicy
|
|
131
|
+
maxRetries?: number
|
|
132
|
+
maxTrainingDuration?: string
|
|
131
133
|
rdmaEnabled?: boolean
|
|
132
134
|
}
|
|
133
135
|
|
|
134
|
-
export type TrainingConfig = BaseTrainingConfig
|
|
135
|
-
& OneOf<{ restartPolicy: RestartPolicy }>
|
|
136
|
-
& OneOf<{ maxRetries: number }>
|
|
137
|
-
& OneOf<{ maxTrainingDuration: string }>
|
|
138
|
-
|
|
139
136
|
|
|
140
137
|
/* baize modified */ export type BaseJobActionRequestParams = {
|
|
141
138
|
}
|
|
@@ -10,6 +10,7 @@ import * as fm from "../../../fetch.pb"
|
|
|
10
10
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
11
11
|
import * as GoogleProtobufWrappers from "../../../google/protobuf/wrappers.pb"
|
|
12
12
|
import * as BaizeManagement_apiEventV1alpha1Event from "../../event/v1alpha1/event.pb"
|
|
13
|
+
import * as BaizeManagement_apiImageV1alpha1Image from "../../image/v1alpha1/image.pb"
|
|
13
14
|
import * as BaizeManagement_apiServingTritonModel_config from "../triton/model_config.pb"
|
|
14
15
|
|
|
15
16
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
@@ -154,6 +155,7 @@ export type InferenceServing = {
|
|
|
154
155
|
creationTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
155
156
|
hpaConfig?: HPAConfig
|
|
156
157
|
image?: string
|
|
158
|
+
imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
|
|
157
159
|
}
|
|
158
160
|
|
|
159
161
|
export type InferenceServingStatusModelStatus = {
|
|
@@ -212,6 +214,7 @@ export type CreateInferenceServingRequest = {
|
|
|
212
214
|
hpaConfig?: HPAConfig
|
|
213
215
|
workspace?: number
|
|
214
216
|
image?: string
|
|
217
|
+
imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
|
|
215
218
|
}
|
|
216
219
|
|
|
217
220
|
export type UpdateInferenceServingRequest = {
|
|
@@ -228,6 +231,7 @@ export type UpdateInferenceServingRequest = {
|
|
|
228
231
|
hpaConfig?: HPAConfig
|
|
229
232
|
workspace?: number
|
|
230
233
|
image?: string
|
|
234
|
+
imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
|
|
231
235
|
}
|
|
232
236
|
|
|
233
237
|
export type SingleInferenceServingRequest = {
|
|
@@ -268,7 +272,21 @@ export type ListInferenceEventsRequest = {
|
|
|
268
272
|
page?: BaizeCommonCommon.Pagination
|
|
269
273
|
}
|
|
270
274
|
|
|
275
|
+
export type InferenceImageListRequest = {
|
|
276
|
+
cluster?: string
|
|
277
|
+
namespace?: string
|
|
278
|
+
workspace?: number
|
|
279
|
+
type?: FrameworkType
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export type InferenceImageListResponse = {
|
|
283
|
+
items?: string[]
|
|
284
|
+
}
|
|
285
|
+
|
|
271
286
|
export class InferenceServingManagement {
|
|
287
|
+
static GetInferenceImageList(req: InferenceImageListRequest, initReq?: fm.InitReq): Promise<InferenceImageListResponse> {
|
|
288
|
+
return fm.fetchReq<InferenceImageListRequest, InferenceImageListResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/inference-images?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
289
|
+
}
|
|
272
290
|
static CreateInferenceServing(req: CreateInferenceServingRequest, initReq?: fm.InitReq): Promise<InferenceServing> {
|
|
273
291
|
return fm.fetchReq<CreateInferenceServingRequest, InferenceServing>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/inference-serving`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
274
292
|
}
|