@daocloud-proto/baize 0.106.1 → 0.107.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.
@@ -212,6 +212,30 @@ export type GetDatasetCondaOptionsResponse = {
212
212
  pythonVersions?: string[]
213
213
  }
214
214
 
215
+ export type RelatedInstancesRequest = {
216
+ workspace?: number
217
+ cluster?: string
218
+ namespace?: string
219
+ name?: string
220
+ page?: BaizeCommonCommon.Pagination
221
+ }
222
+
223
+ export type RelatedInstancesResponseInstance = {
224
+ name?: string
225
+ namespace?: string
226
+ cluster?: string
227
+ }
228
+
229
+ export type RelatedInstancesResponse = {
230
+ items?: RelatedInstancesResponseInstance[]
231
+ page?: BaizeCommonCommon.Pagination
232
+ }
233
+
234
+ export type DatasetSyncProcess = {
235
+ status?: DatasetStatus
236
+ syncProcess?: number
237
+ }
238
+
215
239
  export class DatasetManagement {
216
240
  static ListDatasets(req: ListDatasetRequest, initReq?: fm.InitReq): Promise<ListDatasetResponse> {
217
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"})
@@ -219,6 +243,9 @@ export class DatasetManagement {
219
243
  static GetDataset(req: SingleDatasetRequest, initReq?: fm.InitReq): Promise<Dataset> {
220
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"})
221
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
+ }
222
249
  static CreateDataset(req: CreateDatasetRequest, initReq?: fm.InitReq): Promise<Dataset> {
223
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)})
224
251
  }
@@ -234,4 +261,7 @@ export class DatasetManagement {
234
261
  static GetDatasetCondaOptions(req: GetDatasetCondaOptionsRequest, initReq?: fm.InitReq): Promise<GetDatasetCondaOptionsResponse> {
235
262
  return fm.fetchReq<GetDatasetCondaOptionsRequest, GetDatasetCondaOptionsResponse>(`/apis/baize.io/v1alpha1/datasets/conda/options?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
236
263
  }
264
+ static GetRelatedInstances(req: RelatedInstancesRequest, initReq?: fm.InitReq): Promise<RelatedInstancesResponse> {
265
+ return fm.fetchReq<RelatedInstancesRequest, RelatedInstancesResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}/related-instances?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
266
+ }
237
267
  }
@@ -37,6 +37,7 @@ export enum RestartPolicy {
37
37
  export enum JobActionRequestAction {
38
38
  JOB_ACTION_UNSPECIFIED = "JOB_ACTION_UNSPECIFIED",
39
39
  RESTART = "RESTART",
40
+ CHANGE_PRIORITY = "CHANGE_PRIORITY",
40
41
  }
41
42
 
42
43
  export enum JobSchedulersResponseSchedulerFeature {
@@ -112,6 +113,13 @@ export type TrainingConfig = BaseTrainingConfig
112
113
  & OneOf<{ maxRetries: number }>
113
114
  & OneOf<{ maxTrainingDuration: string }>
114
115
 
116
+
117
+ /* baize modified */ export type BaseJobActionRequestParams = {
118
+ }
119
+
120
+ export type JobActionRequestParams = BaseJobActionRequestParams
121
+ & OneOf<{ priorityClass: string }>
122
+
115
123
  export type JobActionRequest = {
116
124
  workspace?: number
117
125
  type?: JobType
@@ -119,6 +127,7 @@ export type JobActionRequest = {
119
127
  namespace?: string
120
128
  name?: string
121
129
  action?: JobActionRequestAction
130
+ params?: JobActionRequestParams
122
131
  }
123
132
 
124
133
  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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.106.1",
3
+ "version": "v0.107.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"