@daocloud-proto/baize 0.112.0 → 0.114.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
@@ -56,6 +56,7 @@ export type PodConfig = {
56
56
  queue?: string
57
57
  tolerationSeconds?: string
58
58
  resourceAffinities?: ResourceAffinity[]
59
+ shmSize?: number
59
60
  }
60
61
 
61
62
  export type Affinity = {
@@ -82,6 +82,22 @@ export type ListJobsResponse = {
82
82
  page?: BaizeCommonCommon.Pagination
83
83
  }
84
84
 
85
+ export type ListRdmasRequest = {
86
+ workspace?: number
87
+ cluster?: string
88
+ namespace?: string
89
+ page?: BaizeCommonCommon.Pagination
90
+ }
91
+
92
+ export type Rdma = {
93
+ name?: string
94
+ }
95
+
96
+ export type ListRdmasResponse = {
97
+ items?: Rdma[]
98
+ page?: BaizeCommonCommon.Pagination
99
+ }
100
+
85
101
 
86
102
  /* baize modified */ export type BaseSingleJobRequest = {
87
103
  workspace?: number
@@ -111,6 +127,7 @@ export type CreateJobRequest = {
111
127
 
112
128
 
113
129
  /* baize modified */ export type BaseTrainingConfig = {
130
+ rdmaEnabled?: boolean
114
131
  }
115
132
 
116
133
  export type TrainingConfig = BaseTrainingConfig
@@ -177,4 +194,7 @@ export class JobsManagement {
177
194
  static ListSchedulers(req: CreateJobRequest, initReq?: fm.InitReq): Promise<JobSchedulersResponse> {
178
195
  return fm.fetchReq<CreateJobRequest, JobSchedulersResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}/schedulers`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
179
196
  }
197
+ static ListRdmas(req: ListRdmasRequest, initReq?: fm.InitReq): Promise<ListRdmasResponse> {
198
+ return fm.fetchReq<ListRdmasRequest, ListRdmasResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rdmas?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
199
+ }
180
200
  }
@@ -80,6 +80,7 @@ export type NotebookConfig = {
80
80
  affinity?: BaizeCommonK8s.Affinity
81
81
  tolerationSeconds?: string
82
82
  imageConfig?: BaizeManagement_apiImageV1alpha1Image.ImageConfig
83
+ shmSize?: number
83
84
  }
84
85
 
85
86
  export type NotebookStatus = {
@@ -83,6 +83,7 @@ export type Queue = {
83
83
  workspaceAlias?: string
84
84
  preemptionWithinClusterQueue?: QueuePreemptionWithinClusterQueuePolicy
85
85
  flavors?: FlavorQuota[]
86
+ tasEnabled?: boolean
86
87
  }
87
88
 
88
89
  export type ListQueueRequest = {
@@ -201,6 +202,7 @@ export type ListQueueWorkloadResponse = {
201
202
 
202
203
  export type ResourceFlavor = {
203
204
  name?: string
205
+ topologyName?: string
204
206
  }
205
207
 
206
208
  export type ListKueueResourceFlavorsRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.112.0",
3
+ "version": "v0.114.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"