@daocloud-proto/hydra 0.18.0-dev-7 → 0.18.0-dev-9

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.
@@ -7,6 +7,7 @@
7
7
  import * as HydraCommonCommon from "../../../common/common.pb"
8
8
  import * as fm from "../../../fetch.pb"
9
9
  import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
10
+ import * as HydraManagement_apiWorkspaceV1alpha1Workspace from "../../../management-api/workspace/v1alpha1/workspace.pb"
10
11
  import * as HydraAdmin_apiModelV1alpha1Model from "../../model/v1alpha1/model.pb"
11
12
 
12
13
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
@@ -154,6 +155,7 @@ export type MAASModel = {
154
155
  workspaceVisibility?: MAASWorkspaceVisibility
155
156
  capabilityRoutes?: MAASCapabilityRoute[]
156
157
  healthStatus?: MAASModelHealthStatus
158
+ clusterStatus?: HydraManagement_apiWorkspaceV1alpha1Workspace.ClusterStatus
157
159
  }
158
160
 
159
161
  export type LoadBalanceConfig = {
@@ -204,7 +204,8 @@ export type ModelServingSpec = {
204
204
  deployTemplates?: DeployTemplate[]
205
205
  }
206
206
 
207
- export type DeployTemplateResourcesRequirements = {
207
+
208
+ /* hydra modified */ export type BaseDeployTemplateResourcesRequirements = {
208
209
  cpu?: number
209
210
  memory?: number
210
211
  gpuType?: string
@@ -214,6 +215,10 @@ export type DeployTemplateResourcesRequirements = {
214
215
  gpuResourceValues?: {[key: string]: string}
215
216
  }
216
217
 
218
+ export type DeployTemplateResourcesRequirements = BaseDeployTemplateResourcesRequirements
219
+ & OneOf<{ shmSize: number }>
220
+ & OneOf<{ enableShm: boolean }>
221
+
217
222
  export type DeployTemplate = {
218
223
  resourcesRequirements?: DeployTemplateResourcesRequirements
219
224
  runtime?: DeployTemplateInferenceRuntime
@@ -152,6 +152,8 @@ export type ConfigMapMountConfig = {
152
152
 
153
153
  export type ResourceConfig = BaseResourceConfig
154
154
  & OneOf<{ gpuCores: number }>
155
+ & OneOf<{ shmSize: number }>
156
+ & OneOf<{ enableShm: boolean }>
155
157
 
156
158
  export type EnvVar = {
157
159
  name?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.18.0-dev-7",
3
+ "version": "v0.18.0-dev-9",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"