@daocloud-proto/hydra 0.0.0-dev-23801a3d → 0.0.0-dev-997245b5

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.
@@ -8,6 +8,15 @@ 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
10
 
11
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
12
+ type OneOf<T> =
13
+ | { [k in keyof T]?: undefined }
14
+ | (
15
+ keyof T extends infer K ?
16
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
17
+ : never)
18
+ : never);
19
+
11
20
  export enum TrainingStage {
12
21
  TRAINING_STAGE_UNSPECIFIED = "TRAINING_STAGE_UNSPECIFIED",
13
22
  SFT = "SFT",
@@ -86,19 +95,18 @@ export type DpoConfig = {
86
95
  refModel?: string
87
96
  }
88
97
 
89
- export type ResourceQuota = {
90
- request?: string
91
- limit?: string
92
- }
93
98
 
94
- export type ResourceConfig = {
95
- replicas?: number
99
+ /* hydra modified */ export type BaseResourceConfig = {
96
100
  gpuType?: string
97
101
  gpuCount?: number
98
- cpu?: ResourceQuota
99
- memory?: ResourceQuota
102
+ cpu?: number
103
+ memory?: number
104
+ perGpuMemory?: number
100
105
  }
101
106
 
107
+ export type ResourceConfig = BaseResourceConfig
108
+ & OneOf<{ gpuCores: number }>
109
+
102
110
  export type FineTuneConfig = {
103
111
  name?: string
104
112
  cluster?: string
@@ -51,6 +51,7 @@ export type FineTuneJob = {
51
51
  creationTimestamp?: GoogleProtobufTimestamp.Timestamp
52
52
  completionTimestamp?: GoogleProtobufTimestamp.Timestamp
53
53
  metrics?: MetricPoint[]
54
+ trainingParams?: GoogleProtobufStruct.Struct
54
55
  }
55
56
 
56
57
  export type CreateWSFineTuneJobRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.0.0-dev-23801a3d",
3
+ "version": "v0.0.0-dev-997245b5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"