@daocloud-proto/baize 0.128.0 → 0.129.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.
|
@@ -118,6 +118,25 @@ export type Tag = {
|
|
|
118
118
|
creationTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
export type GetImageInfoRequest = {
|
|
122
|
+
workspace?: number
|
|
123
|
+
image?: string
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type GetImageInfoResponse = {
|
|
127
|
+
origin?: string
|
|
128
|
+
info?: ImageInfo
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type ImageInfo = {
|
|
132
|
+
registry?: string
|
|
133
|
+
project?: string
|
|
134
|
+
image?: string
|
|
135
|
+
tag?: string
|
|
136
|
+
public?: boolean
|
|
137
|
+
global?: boolean
|
|
138
|
+
}
|
|
139
|
+
|
|
121
140
|
export type ImageConfig = {
|
|
122
141
|
input?: InputImage
|
|
123
142
|
kangaroo?: KangarooImage
|
|
@@ -155,4 +174,7 @@ export class ImageService {
|
|
|
155
174
|
static ListArtifacts(req: ListArtifactsRequest, initReq?: fm.InitReq): Promise<ListArtifactsResponse> {
|
|
156
175
|
return fm.fetchReq<ListArtifactsRequest, ListArtifactsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository"])}`, {...initReq, method: "GET"})
|
|
157
176
|
}
|
|
177
|
+
static GetImageInfo(req: GetImageInfoRequest, initReq?: fm.InitReq): Promise<GetImageInfoResponse> {
|
|
178
|
+
return fm.fetchReq<GetImageInfoRequest, GetImageInfoResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/imageinfo?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
179
|
+
}
|
|
158
180
|
}
|
|
@@ -153,13 +153,16 @@ export type CleanCheckpointConfig = {
|
|
|
153
153
|
whitelist?: string
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
|
|
157
|
+
/* baize modified */ export type BaseTrainingConfig = {
|
|
157
158
|
restartPolicy?: RestartPolicy
|
|
158
|
-
maxRetries?: number
|
|
159
159
|
maxTrainingDuration?: string
|
|
160
160
|
rdmaEnabled?: boolean
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
export type TrainingConfig = BaseTrainingConfig
|
|
164
|
+
& OneOf<{ maxRetries: number }>
|
|
165
|
+
|
|
163
166
|
|
|
164
167
|
/* baize modified */ export type BaseJobActionRequestParams = {
|
|
165
168
|
}
|
|
@@ -153,13 +153,16 @@ export type CleanCheckpointConfig = {
|
|
|
153
153
|
whitelist?: string
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
|
|
157
|
+
/* baize modified */ export type BaseTrainingConfig = {
|
|
157
158
|
restartPolicy?: RestartPolicy
|
|
158
|
-
maxRetries?: number
|
|
159
159
|
maxTrainingDuration?: string
|
|
160
160
|
rdmaEnabled?: boolean
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
export type TrainingConfig = BaseTrainingConfig
|
|
164
|
+
& OneOf<{ maxRetries: number }>
|
|
165
|
+
|
|
163
166
|
|
|
164
167
|
/* baize modified */ export type BaseJobActionRequestParams = {
|
|
165
168
|
}
|