@daocloud-proto/baize 0.106.2 → 0.107.2
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/management-api/cluster/v1alpha1/cluster.pb.ts +10 -0
- package/management-api/dataset/v1alpha1/dataset.pb.ts +8 -0
- package/management-api/job/v1alpha1/common.pb.ts +5 -0
- package/management-api/job/v1alpha1/job.pb.ts +11 -0
- package/management-api/pod/v1alpha1/pod.pb.ts +2 -0
- package/management-api/serving/v1alpha1/serving.pb.ts +16 -2
- package/package.json +1 -1
|
@@ -6,9 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
8
|
import * as fm from "../../../fetch.pb"
|
|
9
|
+
|
|
10
|
+
export enum ClusterStatus {
|
|
11
|
+
CLUSTER_STATUS_UNSPECIFIED = "CLUSTER_STATUS_UNSPECIFIED",
|
|
12
|
+
CLUSTER_STATUS_RUNNING = "CLUSTER_STATUS_RUNNING",
|
|
13
|
+
CLUSTER_STATUS_NOT_RUNNING = "CLUSTER_STATUS_NOT_RUNNING",
|
|
14
|
+
CLUSTER_STATUS_UNKNOWN = "CLUSTER_STATUS_UNKNOWN",
|
|
15
|
+
}
|
|
16
|
+
|
|
9
17
|
export type AICluster = {
|
|
10
18
|
name?: string
|
|
11
19
|
withAiSuite?: boolean
|
|
20
|
+
clusterStatus?: ClusterStatus
|
|
12
21
|
}
|
|
13
22
|
|
|
14
23
|
export type ListAIClustersRequest = {
|
|
@@ -30,6 +39,7 @@ export type ListClusterNamespaceRequest = {
|
|
|
30
39
|
export type ClusterNamespace = {
|
|
31
40
|
cluster?: string
|
|
32
41
|
name?: string
|
|
42
|
+
clusterStatus?: ClusterStatus
|
|
33
43
|
}
|
|
34
44
|
|
|
35
45
|
export type ListClusterNamespaceResponse = {
|
|
@@ -231,6 +231,11 @@ export type RelatedInstancesResponse = {
|
|
|
231
231
|
page?: BaizeCommonCommon.Pagination
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
export type DatasetSyncProcess = {
|
|
235
|
+
status?: DatasetStatus
|
|
236
|
+
syncProcess?: number
|
|
237
|
+
}
|
|
238
|
+
|
|
234
239
|
export class DatasetManagement {
|
|
235
240
|
static ListDatasets(req: ListDatasetRequest, initReq?: fm.InitReq): Promise<ListDatasetResponse> {
|
|
236
241
|
return fm.fetchReq<ListDatasetRequest, ListDatasetResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
@@ -238,6 +243,9 @@ export class DatasetManagement {
|
|
|
238
243
|
static GetDataset(req: SingleDatasetRequest, initReq?: fm.InitReq): Promise<Dataset> {
|
|
239
244
|
return fm.fetchReq<SingleDatasetRequest, Dataset>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
240
245
|
}
|
|
246
|
+
static GetDatasetSyncProcess(req: SingleDatasetRequest, initReq?: fm.InitReq): Promise<DatasetSyncProcess> {
|
|
247
|
+
return fm.fetchReq<SingleDatasetRequest, DatasetSyncProcess>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}/sync-process?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
248
|
+
}
|
|
241
249
|
static CreateDataset(req: CreateDatasetRequest, initReq?: fm.InitReq): Promise<Dataset> {
|
|
242
250
|
return fm.fetchReq<CreateDatasetRequest, Dataset>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
243
251
|
}
|
|
@@ -36,6 +36,11 @@ export enum JobRole {
|
|
|
36
36
|
TF_EVALUATOR = "TF_EVALUATOR",
|
|
37
37
|
PD_MASTER = "PD_MASTER",
|
|
38
38
|
PD_WORKER = "PD_WORKER",
|
|
39
|
+
MX_SCHEDULER = "MX_SCHEDULER",
|
|
40
|
+
MX_SERVER = "MX_SERVER",
|
|
41
|
+
MX_WORKER = "MX_WORKER",
|
|
42
|
+
MPI_LAUNCHER = "MPI_LAUNCHER",
|
|
43
|
+
MPI_WORKER = "MPI_WORKER",
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
export type CommonConfig = {
|
|
@@ -26,6 +26,8 @@ export enum JobType {
|
|
|
26
26
|
PYTORCH = "PYTORCH",
|
|
27
27
|
TENSORFLOW = "TENSORFLOW",
|
|
28
28
|
PADDLE = "PADDLE",
|
|
29
|
+
MPI = "MPI",
|
|
30
|
+
MXNET = "MXNET",
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export enum RestartPolicy {
|
|
@@ -37,6 +39,7 @@ export enum RestartPolicy {
|
|
|
37
39
|
export enum JobActionRequestAction {
|
|
38
40
|
JOB_ACTION_UNSPECIFIED = "JOB_ACTION_UNSPECIFIED",
|
|
39
41
|
RESTART = "RESTART",
|
|
42
|
+
CHANGE_PRIORITY = "CHANGE_PRIORITY",
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
export enum JobSchedulersResponseSchedulerFeature {
|
|
@@ -112,6 +115,13 @@ export type TrainingConfig = BaseTrainingConfig
|
|
|
112
115
|
& OneOf<{ maxRetries: number }>
|
|
113
116
|
& OneOf<{ maxTrainingDuration: string }>
|
|
114
117
|
|
|
118
|
+
|
|
119
|
+
/* baize modified */ export type BaseJobActionRequestParams = {
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type JobActionRequestParams = BaseJobActionRequestParams
|
|
123
|
+
& OneOf<{ priorityClass: string }>
|
|
124
|
+
|
|
115
125
|
export type JobActionRequest = {
|
|
116
126
|
workspace?: number
|
|
117
127
|
type?: JobType
|
|
@@ -119,6 +129,7 @@ export type JobActionRequest = {
|
|
|
119
129
|
namespace?: string
|
|
120
130
|
name?: string
|
|
121
131
|
action?: JobActionRequestAction
|
|
132
|
+
params?: JobActionRequestParams
|
|
122
133
|
}
|
|
123
134
|
|
|
124
135
|
export type JobSchedulersResponseScheduler = {
|
|
@@ -29,6 +29,7 @@ export enum ServiceType {
|
|
|
29
29
|
export enum FrameworkType {
|
|
30
30
|
FRAMEWORK_TYPE_UNSPECIFIED = "FRAMEWORK_TYPE_UNSPECIFIED",
|
|
31
31
|
FRAMEWORK_TYPE_TRITON = "FRAMEWORK_TYPE_TRITON",
|
|
32
|
+
FRAMEWORK_TYPE_VLLM = "FRAMEWORK_TYPE_VLLM",
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export enum FrameworkTritonBackend {
|
|
@@ -58,13 +59,16 @@ export type FrameworkTriton = {
|
|
|
58
59
|
backend?: FrameworkTritonBackend
|
|
59
60
|
}
|
|
60
61
|
|
|
62
|
+
export type FrameworkVLLM = {
|
|
63
|
+
}
|
|
64
|
+
|
|
61
65
|
|
|
62
66
|
/* baize modified */ export type BaseFramework = {
|
|
63
67
|
type?: FrameworkType
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
export type Framework = BaseFramework
|
|
67
|
-
& OneOf<{ triton: FrameworkTriton }>
|
|
71
|
+
& OneOf<{ triton: FrameworkTriton; vllm: FrameworkVLLM }>
|
|
68
72
|
|
|
69
73
|
export type Model = {
|
|
70
74
|
name?: string
|
|
@@ -72,9 +76,19 @@ export type Model = {
|
|
|
72
76
|
modelPath?: string
|
|
73
77
|
}
|
|
74
78
|
|
|
79
|
+
export type ServingConfigVLLMLoraModel = {
|
|
80
|
+
volume?: BaizeCommonK8s.KubeVolume
|
|
81
|
+
relativePath?: string
|
|
82
|
+
}
|
|
83
|
+
|
|
75
84
|
export type ServingConfigVLLM = {
|
|
76
85
|
trustRemoteCode?: boolean
|
|
77
86
|
tensorParallelSize?: number
|
|
87
|
+
enableLora?: boolean
|
|
88
|
+
loraModels?: ServingConfigVLLMLoraModel[]
|
|
89
|
+
maxLorasRank?: number
|
|
90
|
+
maxLoras?: number
|
|
91
|
+
maxCpuLoras?: number
|
|
78
92
|
}
|
|
79
93
|
|
|
80
94
|
export type ServingConfigTritonModelConfig = {
|
|
@@ -100,7 +114,7 @@ export type ServingConfigTritonServingConfig = BaseServingConfigTritonServingCon
|
|
|
100
114
|
}
|
|
101
115
|
|
|
102
116
|
export type ServingConfig = BaseServingConfig
|
|
103
|
-
& OneOf<{ triton: ServingConfigTritonServingConfig }>
|
|
117
|
+
& OneOf<{ triton: ServingConfigTritonServingConfig; vllm: ServingConfigVLLM }>
|
|
104
118
|
|
|
105
119
|
export type ServiceConfig = {
|
|
106
120
|
serviceType?: ServiceType
|