@daocloud-proto/infery 0.0.0-dev-a2d0b8e6 → 0.0.0-dev-7fac1a95

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 = {
@@ -341,24 +337,28 @@ export type GetModelServingRequest = {
341
337
  export type ListModelServingResourcesRequest = {
342
338
  workspace?: number
343
339
  name?: string
344
- kind?: string
345
- healthStatus?: HealthStatus
346
- resourceName?: string
347
- status?: string
348
340
  }
349
341
 
350
- export type ModelServingResource = {
342
+ export type ModelServingResourceReplicas = {
343
+ desired?: number
344
+ ready?: number
345
+ }
346
+
347
+
348
+ type BaseModelServingResource = {
351
349
  apiVersion?: string
352
350
  kind?: string
353
351
  namespace?: string
354
352
  name?: string
355
- healthStatus?: HealthStatus
356
353
  status?: string
357
354
  message?: string
358
- nodeName?: string
359
- logsAvailable?: boolean
360
355
  }
361
356
 
357
+ export type ModelServingResource = BaseModelServingResource
358
+ & OneOf<{ nodeName: string }>
359
+ & OneOf<{ replicas: ModelServingResourceReplicas }>
360
+ & OneOf<{ resources: string }>
361
+
362
362
  export type ModelServingResourceGroup = {
363
363
  role?: RoleType
364
364
  componentName?: string
@@ -371,6 +371,19 @@ export type ListModelServingResourcesResponse = {
371
371
  groups?: ModelServingResourceGroup[]
372
372
  }
373
373
 
374
+ export type GetModelServingResourceManifestRequest = {
375
+ workspace?: number
376
+ name?: string
377
+ apiVersion?: string
378
+ kind?: string
379
+ namespace?: string
380
+ resourceName?: string
381
+ }
382
+
383
+ export type GetModelServingResourceManifestResponse = {
384
+ manifest?: string
385
+ }
386
+
374
387
  export type UpdateModelServingRequest = {
375
388
  workspace?: number
376
389
  name?: string
@@ -381,7 +394,6 @@ export type UpdateModelServingRequest = {
381
394
  export type DeleteModelServingRequest = {
382
395
  workspace?: number
383
396
  name?: string
384
- resourceVersion?: string
385
397
  }
386
398
 
387
399
  export type ModelServingActionRequest = {
@@ -447,6 +459,9 @@ export class ModelServingManagement {
447
459
  static ListModelServingResources(req: ListModelServingResourcesRequest, initReq?: fm.InitReq): Promise<ListModelServingResourcesResponse> {
448
460
  return fm.fetchReq<ListModelServingResourcesRequest, ListModelServingResourcesResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}/resources?${fm.renderURLSearchParams(req, ["workspace", "name"])}`, {...initReq, method: "GET"})
449
461
  }
462
+ static GetModelServingResourceManifest(req: GetModelServingResourceManifestRequest, initReq?: fm.InitReq): Promise<GetModelServingResourceManifestResponse> {
463
+ 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"})
464
+ }
450
465
  static UpdateModelServing(req: UpdateModelServingRequest, initReq?: fm.InitReq): Promise<UpdateModelServingResponse> {
451
466
  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)})
452
467
  }
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-7fac1a95",
4
4
  "description": "Infery frontend protobuf SDK",
5
5
  "license": "ISC"
6
6
  }