@daocloud-proto/infery 0.0.0-dev-a2d0b8e6 → 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 = {
@@ -301,6 +270,20 @@ export type ListModelServingResponse = {
301
270
  page?: InferyCommonCommon.Pagination
302
271
  }
303
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
+
304
287
  export type GPUAllocation = {
305
288
  vendor?: string
306
289
  model?: string
@@ -310,17 +293,29 @@ export type GPUAllocation = {
310
293
  totalGpuCount?: number
311
294
  }
312
295
 
313
- export type ModelServingRoleOverview = {
296
+
297
+ type BaseModelServingRoleOverview = {
314
298
  role?: RoleType
315
299
  componentName?: string
316
300
  desiredReplicas?: number
317
301
  readyReplicas?: number
318
302
  image?: string
303
+ }
304
+
305
+ export type ModelServingRoleOverview = BaseModelServingRoleOverview
306
+ & OneOf<{ worker: ModelServingWorkerOverview }>
307
+
308
+ export type ModelServingWorkerOverview = {
319
309
  gpu?: GPUAllocation
320
310
  parallelism?: ParallelismConfig
321
311
  capabilities?: RoleCapability[]
322
312
  }
323
313
 
314
+ export type RedhareConfig = {
315
+ redisUrl?: string
316
+ capacityBytes?: string
317
+ }
318
+
324
319
  export type ModelServingAccess = {
325
320
  serviceAddress?: string
326
321
  accessPath?: string
@@ -331,6 +326,7 @@ export type GetModelServingResponse = {
331
326
  modelServing?: ModelServing
332
327
  topology?: ModelServingRoleOverview[]
333
328
  access?: ModelServingAccess
329
+ modelConfiguration?: ModelConfiguration
334
330
  }
335
331
 
336
332
  export type GetModelServingRequest = {
@@ -381,7 +377,6 @@ export type UpdateModelServingRequest = {
381
377
  export type DeleteModelServingRequest = {
382
378
  workspace?: number
383
379
  name?: string
384
- resourceVersion?: string
385
380
  }
386
381
 
387
382
  export type ModelServingActionRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/infery",
3
- "version": "v0.0.0-dev-a2d0b8e6",
3
+ "version": "v0.0.0-dev-1b4bc97d",
4
4
  "description": "Infery frontend protobuf SDK",
5
5
  "license": "ISC"
6
6
  }