@daocloud-proto/infery 0.0.0-dev-eedaba15 → 0.0.0-dev-3186c9a3
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.
|
@@ -98,7 +98,7 @@ type BaseExportInferenceTemplateRequest = {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
export type ExportInferenceTemplateRequest = BaseExportInferenceTemplateRequest
|
|
101
|
-
& OneOf<{
|
|
101
|
+
& OneOf<{ resourceVersion: string }>
|
|
102
102
|
|
|
103
103
|
export type ParseInferenceTemplateRequest = {
|
|
104
104
|
workspace?: number
|
|
@@ -32,12 +32,6 @@ export enum RoleType {
|
|
|
32
32
|
ROLE_TYPE_DYNAMO_DECODE = "ROLE_TYPE_DYNAMO_DECODE",
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export enum KVCacheMode {
|
|
36
|
-
KV_CACHE_MODE_UNSPECIFIED = "KV_CACHE_MODE_UNSPECIFIED",
|
|
37
|
-
KV_CACHE_MODE_LOCAL_GPU = "KV_CACHE_MODE_LOCAL_GPU",
|
|
38
|
-
KV_CACHE_MODE_REDHARD_OFFLOAD = "KV_CACHE_MODE_REDHARD_OFFLOAD",
|
|
39
|
-
}
|
|
40
|
-
|
|
41
35
|
export enum OperationPhase {
|
|
42
36
|
OPERATION_PHASE_UNSPECIFIED = "OPERATION_PHASE_UNSPECIFIED",
|
|
43
37
|
OPERATION_PHASE_RUNNING = "OPERATION_PHASE_RUNNING",
|
|
@@ -99,7 +93,7 @@ export type ModelConfiguration = {
|
|
|
99
93
|
|
|
100
94
|
|
|
101
95
|
type BaseParallelismConfig = {
|
|
102
|
-
|
|
96
|
+
expertParallelEnabled?: boolean
|
|
103
97
|
}
|
|
104
98
|
|
|
105
99
|
export type ParallelismConfig = BaseParallelismConfig
|
|
@@ -107,23 +101,11 @@ export type ParallelismConfig = BaseParallelismConfig
|
|
|
107
101
|
& OneOf<{ dataParallelSize: number }>
|
|
108
102
|
& OneOf<{ pipelineParallelSize: number }>
|
|
109
103
|
|
|
110
|
-
export type KVCacheConfig = {
|
|
111
|
-
mode?: KVCacheMode
|
|
112
|
-
redisInstance?: string
|
|
113
|
-
}
|
|
114
|
-
|
|
115
104
|
export type InferenceTemplateReference = {
|
|
116
105
|
name?: string
|
|
117
106
|
}
|
|
118
107
|
|
|
119
|
-
export type
|
|
120
|
-
phase?: OperationPhase
|
|
121
|
-
syncStatus?: SyncStatus
|
|
122
|
-
healthStatus?: HealthStatus
|
|
123
|
-
availability?: AvailabilityStatus
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export type ModelServiceStatus = {
|
|
108
|
+
export type ModelServingStatus = {
|
|
127
109
|
phase?: OperationPhase
|
|
128
110
|
syncStatus?: SyncStatus
|
|
129
111
|
healthStatus?: HealthStatus
|
|
@@ -141,7 +123,7 @@ export type ModelServing = {
|
|
|
141
123
|
alias?: string
|
|
142
124
|
cluster?: string
|
|
143
125
|
namespace?: string
|
|
144
|
-
status?:
|
|
126
|
+
status?: ModelServingStatus
|
|
145
127
|
createTime?: GoogleProtobufTimestamp.Timestamp
|
|
146
128
|
updateTime?: GoogleProtobufTimestamp.Timestamp
|
|
147
129
|
origin?: ModelServingOrigin
|
|
@@ -221,7 +203,7 @@ export type ModelServingListItem = {
|
|
|
221
203
|
disaggregationMode?: InferyCommonCommon.DisaggregationMode
|
|
222
204
|
stack?: InferyCommonCommon.InferenceStack
|
|
223
205
|
createTime?: GoogleProtobufTimestamp.Timestamp
|
|
224
|
-
status?:
|
|
206
|
+
status?: ModelServingStatus
|
|
225
207
|
roles?: ModelServingRoleSummary[]
|
|
226
208
|
totalGpuCount?: number
|
|
227
209
|
accelerators?: AcceleratorSummary[]
|
|
@@ -385,13 +367,13 @@ export type GetModelServingResourceDiffResponse = {
|
|
|
385
367
|
type BaseUpdateModelServingRequest = {
|
|
386
368
|
workspace?: number
|
|
387
369
|
name?: string
|
|
388
|
-
alias?: string
|
|
389
370
|
resourceVersion?: string
|
|
390
371
|
modelConfiguration?: ModelConfiguration
|
|
391
372
|
origin?: ModelServingOrigin
|
|
392
373
|
}
|
|
393
374
|
|
|
394
375
|
export type UpdateModelServingRequest = BaseUpdateModelServingRequest
|
|
376
|
+
& OneOf<{ alias: string }>
|
|
395
377
|
& OneOf<{ form: string }>
|
|
396
378
|
& OneOf<{ formVersion: string }>
|
|
397
379
|
|
|
@@ -450,14 +432,14 @@ export type GetModelServingJSONRequest = {
|
|
|
450
432
|
|
|
451
433
|
export type GetModelServingJSONResponse = {
|
|
452
434
|
helmValues?: string
|
|
453
|
-
|
|
435
|
+
resourceVersion?: string
|
|
454
436
|
}
|
|
455
437
|
|
|
456
438
|
export type UpdateModelServingJSONRequest = {
|
|
457
439
|
workspace?: number
|
|
458
440
|
name?: string
|
|
459
441
|
helmValues?: string
|
|
460
|
-
|
|
442
|
+
resourceVersion?: string
|
|
461
443
|
}
|
|
462
444
|
|
|
463
445
|
export type UpdateModelServingJSONResponse = {
|
|
@@ -490,29 +472,11 @@ type BaseGetModelServingFormRequest = {
|
|
|
490
472
|
export type GetModelServingFormRequest = BaseGetModelServingFormRequest
|
|
491
473
|
& OneOf<{ inferenceTemplateName: string; modelServingName: string }>
|
|
492
474
|
|
|
493
|
-
export type ModelServingFormInstance = {
|
|
494
|
-
modelConfiguration?: ModelConfiguration
|
|
495
|
-
name?: string
|
|
496
|
-
workspace?: number
|
|
497
|
-
alias?: string
|
|
498
|
-
cluster?: string
|
|
499
|
-
namespace?: string
|
|
500
|
-
resourceVersion?: string
|
|
501
|
-
origin?: ModelServingOrigin
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
export type ModelServingFormParseIssue = {
|
|
505
|
-
path?: string
|
|
506
|
-
message?: string
|
|
507
|
-
blocking?: boolean
|
|
508
|
-
}
|
|
509
|
-
|
|
510
475
|
export type GetModelServingFormResponse = {
|
|
511
476
|
form?: string
|
|
512
477
|
stack?: InferyCommonCommon.InferenceStack
|
|
513
478
|
disaggregationMode?: InferyCommonCommon.DisaggregationMode
|
|
514
479
|
version?: string
|
|
515
|
-
parseIssues?: ModelServingFormParseIssue[]
|
|
516
480
|
canContinueEditing?: boolean
|
|
517
481
|
}
|
|
518
482
|
|
|
@@ -68,24 +68,41 @@ export type ListClusterGPUTypesRequest = {
|
|
|
68
68
|
export type GPUType = {
|
|
69
69
|
type?: string
|
|
70
70
|
alias?: string
|
|
71
|
+
resource?: GPUResourceSetting[]
|
|
72
|
+
resourceTemplate?: GPUResourceSetting
|
|
73
|
+
isDynamic?: boolean
|
|
74
|
+
provider?: string
|
|
75
|
+
productKey?: string
|
|
76
|
+
products?: string[]
|
|
77
|
+
vendor?: string
|
|
71
78
|
}
|
|
72
79
|
|
|
73
|
-
export type
|
|
74
|
-
|
|
80
|
+
export type GPUResourceSetting = {
|
|
81
|
+
key?: string
|
|
82
|
+
alias?: string
|
|
83
|
+
isAllocatable?: boolean
|
|
84
|
+
description?: string
|
|
85
|
+
aliasZh?: string
|
|
86
|
+
range?: ResourceRange
|
|
87
|
+
available?: AvailableResource
|
|
88
|
+
type?: string
|
|
89
|
+
descriptionZh?: string
|
|
75
90
|
}
|
|
76
91
|
|
|
77
|
-
export type
|
|
78
|
-
|
|
79
|
-
|
|
92
|
+
export type AvailableResource = {
|
|
93
|
+
available?: string
|
|
94
|
+
errorMessage?: string
|
|
80
95
|
}
|
|
81
96
|
|
|
82
|
-
export type
|
|
83
|
-
|
|
84
|
-
|
|
97
|
+
export type ResourceRange = {
|
|
98
|
+
min?: number
|
|
99
|
+
minDesc?: string
|
|
100
|
+
max?: number
|
|
101
|
+
maxDesc?: string
|
|
85
102
|
}
|
|
86
103
|
|
|
87
|
-
export type
|
|
88
|
-
items?:
|
|
104
|
+
export type ListClusterGPUTypesResponse = {
|
|
105
|
+
items?: GPUType[]
|
|
89
106
|
}
|
|
90
107
|
|
|
91
108
|
export type ListClusterRDMANetworksRequest = {
|
|
@@ -182,9 +199,6 @@ export type ListConfigMapsResponse = {
|
|
|
182
199
|
}
|
|
183
200
|
|
|
184
201
|
export class WorkspaceService {
|
|
185
|
-
static ListClusterGPUVendors(req: ListClusterGPUVendorsRequest, initReq?: fm.InitReq): Promise<ListClusterGPUVendorsResponse> {
|
|
186
|
-
return fm.fetchReq<ListClusterGPUVendorsRequest, ListClusterGPUVendorsResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/gpu-vendors?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
|
|
187
|
-
}
|
|
188
202
|
static ListClusterRDMANetworks(req: ListClusterRDMANetworksRequest, initReq?: fm.InitReq): Promise<ListClusterRDMANetworksResponse> {
|
|
189
203
|
return fm.fetchReq<ListClusterRDMANetworksRequest, ListClusterRDMANetworksResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/rdma-networks?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
|
|
190
204
|
}
|