@daocloud-proto/infery 0.0.0-dev-62a40402 → 0.0.0-dev-1b4bc97d
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.
|
@@ -76,13 +76,6 @@ export enum AvailabilityStatus {
|
|
|
76
76
|
AVAILABILITY_STATUS_UNKNOWN = "AVAILABILITY_STATUS_UNKNOWN",
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export enum ConditionStatus {
|
|
80
|
-
CONDITION_STATUS_UNSPECIFIED = "CONDITION_STATUS_UNSPECIFIED",
|
|
81
|
-
CONDITION_STATUS_TRUE = "CONDITION_STATUS_TRUE",
|
|
82
|
-
CONDITION_STATUS_FALSE = "CONDITION_STATUS_FALSE",
|
|
83
|
-
CONDITION_STATUS_UNKNOWN = "CONDITION_STATUS_UNKNOWN",
|
|
84
|
-
}
|
|
85
|
-
|
|
86
79
|
export enum ModelServingOriginType {
|
|
87
80
|
MODEL_SERVING_ORIGIN_TYPE_UNSPECIFIED = "MODEL_SERVING_ORIGIN_TYPE_UNSPECIFIED",
|
|
88
81
|
MODEL_SERVING_ORIGIN_TYPE_STRUCTURED = "MODEL_SERVING_ORIGIN_TYPE_STRUCTURED",
|
|
@@ -91,13 +84,6 @@ export enum ModelServingOriginType {
|
|
|
91
84
|
MODEL_SERVING_ORIGIN_TYPE_EXTERNAL = "MODEL_SERVING_ORIGIN_TYPE_EXTERNAL",
|
|
92
85
|
}
|
|
93
86
|
|
|
94
|
-
export enum RoleCapability {
|
|
95
|
-
ROLE_CAPABILITY_UNSPECIFIED = "ROLE_CAPABILITY_UNSPECIFIED",
|
|
96
|
-
ROLE_CAPABILITY_ENTRY = "ROLE_CAPABILITY_ENTRY",
|
|
97
|
-
ROLE_CAPABILITY_ROUTING = "ROLE_CAPABILITY_ROUTING",
|
|
98
|
-
ROLE_CAPABILITY_KV_CACHE_OFFLOAD = "ROLE_CAPABILITY_KV_CACHE_OFFLOAD",
|
|
99
|
-
}
|
|
100
|
-
|
|
101
87
|
export enum ModelServingAction {
|
|
102
88
|
MODEL_SERVING_ACTION_UNSPECIFIED = "MODEL_SERVING_ACTION_UNSPECIFIED",
|
|
103
89
|
MODEL_SERVING_ACTION_START = "MODEL_SERVING_ACTION_START",
|
|
@@ -177,14 +163,6 @@ export type InferenceTemplateDeployment = {
|
|
|
177
163
|
inferenceTemplateName?: string
|
|
178
164
|
}
|
|
179
165
|
|
|
180
|
-
export type StatusCondition = {
|
|
181
|
-
type?: string
|
|
182
|
-
status?: ConditionStatus
|
|
183
|
-
reason?: string
|
|
184
|
-
message?: string
|
|
185
|
-
lastTransitionTime?: GoogleProtobufTimestamp.Timestamp
|
|
186
|
-
}
|
|
187
|
-
|
|
188
166
|
export type ModelServingStatusSummary = {
|
|
189
167
|
phase?: OperationPhase
|
|
190
168
|
syncStatus?: SyncStatus
|
|
@@ -192,20 +170,11 @@ export type ModelServingStatusSummary = {
|
|
|
192
170
|
availability?: AvailabilityStatus
|
|
193
171
|
}
|
|
194
172
|
|
|
195
|
-
export type RoleStatus = {
|
|
196
|
-
role?: RoleType
|
|
197
|
-
desiredReplicas?: number
|
|
198
|
-
readyReplicas?: number
|
|
199
|
-
restartingPods?: number
|
|
200
|
-
}
|
|
201
|
-
|
|
202
173
|
export type ModelServiceStatus = {
|
|
203
174
|
phase?: OperationPhase
|
|
204
175
|
syncStatus?: SyncStatus
|
|
205
176
|
healthStatus?: HealthStatus
|
|
206
177
|
availability?: AvailabilityStatus
|
|
207
|
-
roles?: RoleStatus[]
|
|
208
|
-
conditions?: StatusCondition[]
|
|
209
178
|
}
|
|
210
179
|
|
|
211
180
|
export type ModelServingOrigin = {
|
|
@@ -271,15 +240,6 @@ export type CreateModelServingResponse = {
|
|
|
271
240
|
|
|
272
241
|
export type ListModelServingRequest = {
|
|
273
242
|
workspace?: number
|
|
274
|
-
name?: string
|
|
275
|
-
phase?: OperationPhase
|
|
276
|
-
availability?: AvailabilityStatus
|
|
277
|
-
syncStatus?: SyncStatus
|
|
278
|
-
cluster?: string
|
|
279
|
-
namespace?: string
|
|
280
|
-
stack?: InferyCommonCommon.InferenceStack
|
|
281
|
-
disaggregationMode?: InferyCommonCommon.DisaggregationMode
|
|
282
|
-
gpuModel?: string
|
|
283
243
|
page?: InferyCommonCommon.Pagination
|
|
284
244
|
}
|
|
285
245
|
|
|
@@ -310,6 +270,20 @@ export type ListModelServingResponse = {
|
|
|
310
270
|
page?: InferyCommonCommon.Pagination
|
|
311
271
|
}
|
|
312
272
|
|
|
273
|
+
|
|
274
|
+
type BaseRoleCapability = {
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export type RoleCapability = BaseRoleCapability
|
|
278
|
+
& OneOf<{ kvCacheOffload: KVCacheOffloadConfig }>
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
type BaseKVCacheOffloadConfig = {
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export type KVCacheOffloadConfig = BaseKVCacheOffloadConfig
|
|
285
|
+
& OneOf<{ redhare: RedhareConfig }>
|
|
286
|
+
|
|
313
287
|
export type GPUAllocation = {
|
|
314
288
|
vendor?: string
|
|
315
289
|
model?: string
|
|
@@ -319,17 +293,29 @@ export type GPUAllocation = {
|
|
|
319
293
|
totalGpuCount?: number
|
|
320
294
|
}
|
|
321
295
|
|
|
322
|
-
|
|
296
|
+
|
|
297
|
+
type BaseModelServingRoleOverview = {
|
|
323
298
|
role?: RoleType
|
|
324
299
|
componentName?: string
|
|
325
300
|
desiredReplicas?: number
|
|
326
301
|
readyReplicas?: number
|
|
327
302
|
image?: string
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export type ModelServingRoleOverview = BaseModelServingRoleOverview
|
|
306
|
+
& OneOf<{ worker: ModelServingWorkerOverview }>
|
|
307
|
+
|
|
308
|
+
export type ModelServingWorkerOverview = {
|
|
328
309
|
gpu?: GPUAllocation
|
|
329
310
|
parallelism?: ParallelismConfig
|
|
330
311
|
capabilities?: RoleCapability[]
|
|
331
312
|
}
|
|
332
313
|
|
|
314
|
+
export type RedhareConfig = {
|
|
315
|
+
redisUrl?: string
|
|
316
|
+
capacityBytes?: string
|
|
317
|
+
}
|
|
318
|
+
|
|
333
319
|
export type ModelServingAccess = {
|
|
334
320
|
serviceAddress?: string
|
|
335
321
|
accessPath?: string
|
|
@@ -340,6 +326,7 @@ export type GetModelServingResponse = {
|
|
|
340
326
|
modelServing?: ModelServing
|
|
341
327
|
topology?: ModelServingRoleOverview[]
|
|
342
328
|
access?: ModelServingAccess
|
|
329
|
+
modelConfiguration?: ModelConfiguration
|
|
343
330
|
}
|
|
344
331
|
|
|
345
332
|
export type GetModelServingRequest = {
|
|
@@ -390,7 +377,6 @@ export type UpdateModelServingRequest = {
|
|
|
390
377
|
export type DeleteModelServingRequest = {
|
|
391
378
|
workspace?: number
|
|
392
379
|
name?: string
|
|
393
|
-
resourceVersion?: string
|
|
394
380
|
}
|
|
395
381
|
|
|
396
382
|
export type ModelServingActionRequest = {
|