@daocloud-proto/infery 0.0.0-dev-f59c3dee → 0.0.0-dev-6a784606
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.
|
@@ -35,13 +35,17 @@ export enum InferenceEngine {
|
|
|
35
35
|
INFERENCE_ENGINE_SGLANG = "INFERENCE_ENGINE_SGLANG",
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
type BaseParallelSpec = {
|
|
39
40
|
tp?: number
|
|
40
41
|
dp?: number
|
|
41
42
|
ep?: boolean
|
|
42
43
|
gpuPerNode?: number
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
export type ParallelSpec = BaseParallelSpec
|
|
47
|
+
& OneOf<{ pp: number }>
|
|
48
|
+
|
|
45
49
|
export type RoleSpec = {
|
|
46
50
|
replicas?: number
|
|
47
51
|
nodes?: number
|
|
@@ -21,8 +21,7 @@ type OneOf<T> =
|
|
|
21
21
|
export enum TestTaskAction {
|
|
22
22
|
TEST_TASK_ACTION_UNSPECIFIED = "TEST_TASK_ACTION_UNSPECIFIED",
|
|
23
23
|
TEST_TASK_ACTION_PAUSE = "TEST_TASK_ACTION_PAUSE",
|
|
24
|
-
|
|
25
|
-
TEST_TASK_ACTION_RETRY = "TEST_TASK_ACTION_RETRY",
|
|
24
|
+
TEST_TASK_ACTION_START = "TEST_TASK_ACTION_START",
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
export enum InferenceTestType {
|
|
@@ -52,8 +51,6 @@ export enum ResultStatus {
|
|
|
52
51
|
RESULT_STATUS_UNSPECIFIED = "RESULT_STATUS_UNSPECIFIED",
|
|
53
52
|
RESULT_STATUS_PASSED = "RESULT_STATUS_PASSED",
|
|
54
53
|
RESULT_STATUS_FAILED = "RESULT_STATUS_FAILED",
|
|
55
|
-
RESULT_STATUS_WARNING = "RESULT_STATUS_WARNING",
|
|
56
|
-
RESULT_STATUS_ERROR = "RESULT_STATUS_ERROR",
|
|
57
54
|
RESULT_STATUS_SKIPPED = "RESULT_STATUS_SKIPPED",
|
|
58
55
|
RESULT_STATUS_PARTIAL = "RESULT_STATUS_PARTIAL",
|
|
59
56
|
}
|
|
@@ -117,13 +114,18 @@ export type DeleteInferenceTestTaskRequest = {
|
|
|
117
114
|
namespace?: string
|
|
118
115
|
}
|
|
119
116
|
|
|
120
|
-
|
|
117
|
+
|
|
118
|
+
type BaseListInferenceTestTasksRequest = {
|
|
121
119
|
workspace?: number
|
|
122
120
|
cluster?: string
|
|
123
121
|
namespace?: string
|
|
124
122
|
page?: InferyCommonCommon.Pagination
|
|
125
123
|
}
|
|
126
124
|
|
|
125
|
+
export type ListInferenceTestTasksRequest = BaseListInferenceTestTasksRequest
|
|
126
|
+
& OneOf<{ type: InferenceTestType }>
|
|
127
|
+
& OneOf<{ phase: TaskStatus }>
|
|
128
|
+
|
|
127
129
|
export type ListInferenceTestTasksResponse = {
|
|
128
130
|
items?: TestTaskSummary[]
|
|
129
131
|
page?: InferyCommonCommon.Pagination
|
|
@@ -142,13 +144,12 @@ export type PerformInferenceTestTaskActionRequest = {
|
|
|
142
144
|
cluster?: string
|
|
143
145
|
name?: string
|
|
144
146
|
action?: TestTaskAction
|
|
145
|
-
retryPolicy?: RetryPolicy
|
|
146
147
|
namespace?: string
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
export type FunctionalTestReportSummary = {
|
|
150
151
|
attempt?: string
|
|
151
|
-
|
|
152
|
+
result?: ResultStatus
|
|
152
153
|
summary?: FunctionalTestSummary
|
|
153
154
|
}
|
|
154
155
|
|
|
@@ -161,6 +162,7 @@ export type TestTaskSummary = {
|
|
|
161
162
|
phase?: TaskStatus
|
|
162
163
|
functional?: FunctionalTestReportSummary
|
|
163
164
|
createTime?: GoogleProtobufTimestamp.Timestamp
|
|
165
|
+
result?: ResultStatus
|
|
164
166
|
}
|
|
165
167
|
|
|
166
168
|
export type ExecutionSpec = {
|
|
@@ -205,14 +207,13 @@ export type FunctionalTestSummary = {
|
|
|
205
207
|
selected?: number
|
|
206
208
|
passed?: number
|
|
207
209
|
failed?: number
|
|
208
|
-
warning?: number
|
|
209
210
|
skipped?: number
|
|
210
211
|
partial?: number
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
export type FunctionalTestReport = {
|
|
214
215
|
attempt?: string
|
|
215
|
-
|
|
216
|
+
result?: ResultStatus
|
|
216
217
|
summary?: FunctionalTestSummary
|
|
217
218
|
cases?: FunctionalCaseResult[]
|
|
218
219
|
generatedAt?: GoogleProtobufTimestamp.Timestamp
|
|
@@ -243,6 +244,7 @@ export type InferenceTestTaskStatus = {
|
|
|
243
244
|
functional?: FunctionalTestStatus
|
|
244
245
|
activeExecution?: ExecutionStatus
|
|
245
246
|
healthCheck?: HealthCheckResult
|
|
247
|
+
result?: ResultStatus
|
|
246
248
|
}
|
|
247
249
|
|
|
248
250
|
export type FunctionalCaseProgress = {
|
|
@@ -360,6 +360,27 @@ export type GetModelServingResourceManifestResponse = {
|
|
|
360
360
|
manifest?: string
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
+
export type GetModelServingResourceDiffRequest = {
|
|
364
|
+
workspace?: number
|
|
365
|
+
name?: string
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
type BaseModelServingResourceDiff = {
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export type ModelServingResourceDiff = BaseModelServingResourceDiff
|
|
373
|
+
& OneOf<{ group: string }>
|
|
374
|
+
& OneOf<{ kind: string }>
|
|
375
|
+
& OneOf<{ namespace: string }>
|
|
376
|
+
& OneOf<{ name: string }>
|
|
377
|
+
& OneOf<{ normalizedLiveState: string }>
|
|
378
|
+
& OneOf<{ predictedLiveState: string }>
|
|
379
|
+
|
|
380
|
+
export type GetModelServingResourceDiffResponse = {
|
|
381
|
+
items?: ModelServingResourceDiff[]
|
|
382
|
+
}
|
|
383
|
+
|
|
363
384
|
|
|
364
385
|
type BaseUpdateModelServingRequest = {
|
|
365
386
|
workspace?: number
|
|
@@ -523,6 +544,9 @@ export class ModelServingManagement {
|
|
|
523
544
|
static GetModelServingResourceManifest(req: GetModelServingResourceManifestRequest, initReq?: fm.InitReq): Promise<GetModelServingResourceManifestResponse> {
|
|
524
545
|
return fm.fetchReq<GetModelServingResourceManifestRequest, GetModelServingResourceManifestResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}/resources/${req["resourceName"]}/manifest?${fm.renderURLSearchParams(req, ["workspace", "name", "resourceName"])}`, {...initReq, method: "GET"})
|
|
525
546
|
}
|
|
547
|
+
static GetModelServingResourceDiff(req: GetModelServingResourceDiffRequest, initReq?: fm.InitReq): Promise<GetModelServingResourceDiffResponse> {
|
|
548
|
+
return fm.fetchReq<GetModelServingResourceDiffRequest, GetModelServingResourceDiffResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}/resource-diff?${fm.renderURLSearchParams(req, ["workspace", "name"])}`, {...initReq, method: "GET"})
|
|
549
|
+
}
|
|
526
550
|
static UpdateModelServing(req: UpdateModelServingRequest, initReq?: fm.InitReq): Promise<UpdateModelServingResponse> {
|
|
527
551
|
return fm.fetchReq<UpdateModelServingRequest, UpdateModelServingResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
528
552
|
}
|