@daocloud-proto/hydra 0.18.0-dev-39 → 0.18.0-dev-42

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.
@@ -10,6 +10,7 @@ import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
10
10
  import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
11
11
  import * as HydraManagement_apiModelV1alpha1Model_weights_volume from "../../model/v1alpha1/model_weights_volume.pb"
12
12
  import * as HydraManagement_apiFinetuneV1alpha1Common from "./common.pb"
13
+ import * as HydraManagement_apiFinetuneV1alpha1Finetuneconfig from "./finetuneconfig.pb"
13
14
 
14
15
  export enum ExportDevice {
15
16
  cpu = "cpu",
@@ -35,6 +36,7 @@ export type ExportJob = {
35
36
  pvcName?: string
36
37
  storageSource?: HydraManagement_apiModelV1alpha1Model_weights_volume.StorageSourceType
37
38
  exportMountPath?: string
39
+ resources?: HydraManagement_apiFinetuneV1alpha1Finetuneconfig.ResourceConfig
38
40
  }
39
41
 
40
42
  export type SaveExportJobRequest = {
@@ -52,6 +54,7 @@ export type SaveExportJobRequest = {
52
54
  pvcNamespace?: string
53
55
  pvcName?: string
54
56
  storageSource?: HydraManagement_apiModelV1alpha1Model_weights_volume.StorageSourceType
57
+ resources?: HydraManagement_apiFinetuneV1alpha1Finetuneconfig.ResourceConfig
55
58
  }
56
59
 
57
60
  export type SingleExportJobRequest = {
@@ -355,6 +355,15 @@ export type UpdateWSModelServingReplicasRequest = {
355
355
  replicas?: number
356
356
  }
357
357
 
358
+ export type UpdateWSModelServingRuntimeRequest = {
359
+ workspace?: number
360
+ cluster?: string
361
+ namespace?: string
362
+ id?: string
363
+ runtimeConfig?: RuntimeConfig
364
+ resourceConfig?: ResourceConfig
365
+ }
366
+
358
367
  export type ModelServingActionRequest = {
359
368
  id?: string
360
369
  action?: ModelServingActionRequestAction
@@ -456,6 +465,9 @@ export class WSModelServingManagement {
456
465
  static UpdateWSModelServingReplicas(req: UpdateWSModelServingReplicasRequest, initReq?: fm.InitReq): Promise<WSModelServing> {
457
466
  return fm.fetchReq<UpdateWSModelServingReplicasRequest, WSModelServing>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["id"]}/replicas`, {...initReq, method: "PATCH", body: JSON.stringify(req, fm.replacer)})
458
467
  }
468
+ static UpdateWSModelServingRuntime(req: UpdateWSModelServingRuntimeRequest, initReq?: fm.InitReq): Promise<WSModelServing> {
469
+ return fm.fetchReq<UpdateWSModelServingRuntimeRequest, WSModelServing>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["id"]}/runtime-config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
470
+ }
459
471
  static DoModelWSServingAction(req: WSModelServingActionRequest, initReq?: fm.InitReq): Promise<WSModelServing> {
460
472
  return fm.fetchReq<WSModelServingActionRequest, WSModelServing>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["id"]}/actions`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
461
473
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.18.0-dev-39",
3
+ "version": "v0.18.0-dev-42",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"