@mlhub/models-ts-sdk 0.15.0 → 0.17.0

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.
@@ -14,14 +14,6 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  import {
17
- HardwareRequirements,
18
- HardwareRequirementsFromJSON,
19
- HardwareRequirementsFromJSONTyped,
20
- HardwareRequirementsToJSON,
21
- ModelIO,
22
- ModelIOFromJSON,
23
- ModelIOFromJSONTyped,
24
- ModelIOToJSON,
25
17
  Task,
26
18
  TaskFromJSON,
27
19
  TaskFromJSONTyped,
@@ -34,96 +26,12 @@ import {
34
26
  * @interface CreateModelMetadataBody
35
27
  */
36
28
  export interface CreateModelMetadataBody {
37
- /**
38
- *
39
- * @type {any}
40
- * @memberof CreateModelMetadataBody
41
- */
42
- annotations?: any | null;
43
- /**
44
- *
45
- * @type {number}
46
- * @memberof CreateModelMetadataBody
47
- */
48
- bias_evaluation_score?: number | null;
49
29
  /**
50
30
  *
51
31
  * @type {string}
52
32
  * @memberof CreateModelMetadataBody
53
33
  */
54
34
  description?: string | null;
55
- /**
56
- *
57
- * @type {boolean}
58
- * @memberof CreateModelMetadataBody
59
- */
60
- edge_optimized?: boolean | null;
61
- /**
62
- *
63
- * @type {Array<string>}
64
- * @memberof CreateModelMetadataBody
65
- */
66
- finetuning_datasets?: Array<string> | null;
67
- /**
68
- *
69
- * @type {string}
70
- * @memberof CreateModelMetadataBody
71
- */
72
- image?: string | null;
73
- /**
74
- *
75
- * @type {boolean}
76
- * @memberof CreateModelMetadataBody
77
- */
78
- inference_distributed?: boolean | null;
79
- /**
80
- *
81
- * @type {HardwareRequirements}
82
- * @memberof CreateModelMetadataBody
83
- */
84
- inference_hardware?: HardwareRequirements;
85
- /**
86
- *
87
- * @type {number}
88
- * @memberof CreateModelMetadataBody
89
- */
90
- inference_max_compute_utilization_percentage?: number | null;
91
- /**
92
- *
93
- * @type {number}
94
- * @memberof CreateModelMetadataBody
95
- */
96
- inference_max_energy_consumption_watts?: number | null;
97
- /**
98
- * Inference performance fields
99
- * @type {number}
100
- * @memberof CreateModelMetadataBody
101
- */
102
- inference_max_latency_ms?: number | null;
103
- /**
104
- *
105
- * @type {number}
106
- * @memberof CreateModelMetadataBody
107
- */
108
- inference_max_memory_usage_mb?: number | null;
109
- /**
110
- *
111
- * @type {number}
112
- * @memberof CreateModelMetadataBody
113
- */
114
- inference_min_throughput?: number | null;
115
- /**
116
- *
117
- * @type {string}
118
- * @memberof CreateModelMetadataBody
119
- */
120
- inference_precision?: string | null;
121
- /**
122
- *
123
- * @type {Array<string>}
124
- * @memberof CreateModelMetadataBody
125
- */
126
- inference_software_dependencies?: Array<string> | null;
127
35
  /**
128
36
  *
129
37
  * @type {Array<string>}
@@ -136,30 +44,12 @@ export interface CreateModelMetadataBody {
136
44
  * @memberof CreateModelMetadataBody
137
45
  */
138
46
  license?: string | null;
139
- /**
140
- *
141
- * @type {Array<ModelIO>}
142
- * @memberof CreateModelMetadataBody
143
- */
144
- model_inputs?: Array<ModelIO> | null;
145
- /**
146
- *
147
- * @type {Array<ModelIO>}
148
- * @memberof CreateModelMetadataBody
149
- */
150
- model_outputs?: Array<ModelIO> | null;
151
47
  /**
152
48
  *
153
49
  * @type {string}
154
50
  * @memberof CreateModelMetadataBody
155
51
  */
156
52
  model_type?: string | null;
157
- /**
158
- * Architecture fields
159
- * @type {boolean}
160
- * @memberof CreateModelMetadataBody
161
- */
162
- multi_modal?: boolean | null;
163
53
  /**
164
54
  *
165
55
  * @type {string}
@@ -168,89 +58,22 @@ export interface CreateModelMetadataBody {
168
58
  name: string;
169
59
  /**
170
60
  *
171
- * @type {boolean}
172
- * @memberof CreateModelMetadataBody
173
- */
174
- pretrained?: boolean | null;
175
- /**
176
- *
177
- * @type {Array<string>}
178
- * @memberof CreateModelMetadataBody
179
- */
180
- pretraining_datasets?: Array<string> | null;
181
- /**
182
- *
183
- * @type {boolean}
184
- * @memberof CreateModelMetadataBody
185
- */
186
- pruned?: boolean | null;
187
- /**
188
- *
189
- * @type {boolean}
190
- * @memberof CreateModelMetadataBody
191
- */
192
- quantization_aware?: boolean | null;
193
- /**
194
- * Regulatory and Compliance Fields
195
- * A vector or strings that represent regulatory standards. Ex HIPPA
196
61
  * @type {Array<string>}
197
62
  * @memberof CreateModelMetadataBody
198
63
  */
199
64
  regulatory?: Array<string> | null;
200
65
  /**
201
66
  *
202
- * @type {boolean}
203
- * @memberof CreateModelMetadataBody
204
- */
205
- slimmed?: boolean | null;
206
- /**
207
- *
208
- * @type {boolean}
209
- * @memberof CreateModelMetadataBody
210
- */
211
- supports_quantization?: boolean | null;
212
- /**
213
- * Arbitrary labels
214
67
  * @type {Array<string>}
215
68
  * @memberof CreateModelMetadataBody
216
69
  */
217
70
  tags?: Array<string> | null;
218
71
  /**
219
- * Inference Fields
72
+ *
220
73
  * @type {Array<Task>}
221
74
  * @memberof CreateModelMetadataBody
222
75
  */
223
76
  task_types?: Array<Task> | null;
224
- /**
225
- *
226
- * @type {boolean}
227
- * @memberof CreateModelMetadataBody
228
- */
229
- training_distributed?: boolean | null;
230
- /**
231
- *
232
- * @type {HardwareRequirements}
233
- * @memberof CreateModelMetadataBody
234
- */
235
- training_hardware?: HardwareRequirements;
236
- /**
237
- * Training performance fields
238
- * @type {number}
239
- * @memberof CreateModelMetadataBody
240
- */
241
- training_max_energy_consumption_watts?: number | null;
242
- /**
243
- *
244
- * @type {string}
245
- * @memberof CreateModelMetadataBody
246
- */
247
- training_precision?: string | null;
248
- /**
249
- * Training-related Fields
250
- * @type {number}
251
- * @memberof CreateModelMetadataBody
252
- */
253
- training_time?: number | null;
254
77
  }
255
78
 
256
79
  export function CreateModelMetadataBodyFromJSON(json: any): CreateModelMetadataBody {
@@ -263,42 +86,14 @@ export function CreateModelMetadataBodyFromJSONTyped(json: any, ignoreDiscrimina
263
86
  }
264
87
  return {
265
88
 
266
- 'annotations': !exists(json, 'annotations') ? undefined : json['annotations'],
267
- 'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
268
89
  'description': !exists(json, 'description') ? undefined : json['description'],
269
- 'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
270
- 'finetuning_datasets': !exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
271
- 'image': !exists(json, 'image') ? undefined : json['image'],
272
- 'inference_distributed': !exists(json, 'inference_distributed') ? undefined : json['inference_distributed'],
273
- 'inference_hardware': !exists(json, 'inference_hardware') ? undefined : HardwareRequirementsFromJSON(json['inference_hardware']),
274
- 'inference_max_compute_utilization_percentage': !exists(json, 'inference_max_compute_utilization_percentage') ? undefined : json['inference_max_compute_utilization_percentage'],
275
- 'inference_max_energy_consumption_watts': !exists(json, 'inference_max_energy_consumption_watts') ? undefined : json['inference_max_energy_consumption_watts'],
276
- 'inference_max_latency_ms': !exists(json, 'inference_max_latency_ms') ? undefined : json['inference_max_latency_ms'],
277
- 'inference_max_memory_usage_mb': !exists(json, 'inference_max_memory_usage_mb') ? undefined : json['inference_max_memory_usage_mb'],
278
- 'inference_min_throughput': !exists(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
279
- 'inference_precision': !exists(json, 'inference_precision') ? undefined : json['inference_precision'],
280
- 'inference_software_dependencies': !exists(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
281
90
  'libraries': !exists(json, 'libraries') ? undefined : json['libraries'],
282
91
  'license': !exists(json, 'license') ? undefined : json['license'],
283
- 'model_inputs': !exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : (json['model_inputs'] as Array<any>).map(ModelIOFromJSON)),
284
- 'model_outputs': !exists(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : (json['model_outputs'] as Array<any>).map(ModelIOFromJSON)),
285
92
  'model_type': !exists(json, 'model_type') ? undefined : json['model_type'],
286
- 'multi_modal': !exists(json, 'multi_modal') ? undefined : json['multi_modal'],
287
93
  'name': json['name'],
288
- 'pretrained': !exists(json, 'pretrained') ? undefined : json['pretrained'],
289
- 'pretraining_datasets': !exists(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
290
- 'pruned': !exists(json, 'pruned') ? undefined : json['pruned'],
291
- 'quantization_aware': !exists(json, 'quantization_aware') ? undefined : json['quantization_aware'],
292
94
  'regulatory': !exists(json, 'regulatory') ? undefined : json['regulatory'],
293
- 'slimmed': !exists(json, 'slimmed') ? undefined : json['slimmed'],
294
- 'supports_quantization': !exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
295
95
  'tags': !exists(json, 'tags') ? undefined : json['tags'],
296
96
  'task_types': !exists(json, 'task_types') ? undefined : (json['task_types'] === null ? null : (json['task_types'] as Array<any>).map(TaskFromJSON)),
297
- 'training_distributed': !exists(json, 'training_distributed') ? undefined : json['training_distributed'],
298
- 'training_hardware': !exists(json, 'training_hardware') ? undefined : HardwareRequirementsFromJSON(json['training_hardware']),
299
- 'training_max_energy_consumption_watts': !exists(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
300
- 'training_precision': !exists(json, 'training_precision') ? undefined : json['training_precision'],
301
- 'training_time': !exists(json, 'training_time') ? undefined : json['training_time'],
302
97
  };
303
98
  }
304
99
 
@@ -311,42 +106,14 @@ export function CreateModelMetadataBodyToJSON(value?: CreateModelMetadataBody |
311
106
  }
312
107
  return {
313
108
 
314
- 'annotations': value.annotations,
315
- 'bias_evaluation_score': value.bias_evaluation_score,
316
109
  'description': value.description,
317
- 'edge_optimized': value.edge_optimized,
318
- 'finetuning_datasets': value.finetuning_datasets,
319
- 'image': value.image,
320
- 'inference_distributed': value.inference_distributed,
321
- 'inference_hardware': HardwareRequirementsToJSON(value.inference_hardware),
322
- 'inference_max_compute_utilization_percentage': value.inference_max_compute_utilization_percentage,
323
- 'inference_max_energy_consumption_watts': value.inference_max_energy_consumption_watts,
324
- 'inference_max_latency_ms': value.inference_max_latency_ms,
325
- 'inference_max_memory_usage_mb': value.inference_max_memory_usage_mb,
326
- 'inference_min_throughput': value.inference_min_throughput,
327
- 'inference_precision': value.inference_precision,
328
- 'inference_software_dependencies': value.inference_software_dependencies,
329
110
  'libraries': value.libraries,
330
111
  'license': value.license,
331
- 'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : (value.model_inputs as Array<any>).map(ModelIOToJSON)),
332
- 'model_outputs': value.model_outputs === undefined ? undefined : (value.model_outputs === null ? null : (value.model_outputs as Array<any>).map(ModelIOToJSON)),
333
112
  'model_type': value.model_type,
334
- 'multi_modal': value.multi_modal,
335
113
  'name': value.name,
336
- 'pretrained': value.pretrained,
337
- 'pretraining_datasets': value.pretraining_datasets,
338
- 'pruned': value.pruned,
339
- 'quantization_aware': value.quantization_aware,
340
114
  'regulatory': value.regulatory,
341
- 'slimmed': value.slimmed,
342
- 'supports_quantization': value.supports_quantization,
343
115
  'tags': value.tags,
344
116
  'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : (value.task_types as Array<any>).map(TaskToJSON)),
345
- 'training_distributed': value.training_distributed,
346
- 'training_hardware': HardwareRequirementsToJSON(value.training_hardware),
347
- 'training_max_energy_consumption_watts': value.training_max_energy_consumption_watts,
348
- 'training_precision': value.training_precision,
349
- 'training_time': value.training_time,
350
117
  };
351
118
  }
352
119
 
@@ -14,14 +14,6 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  import {
17
- HardwareRequirements,
18
- HardwareRequirementsFromJSON,
19
- HardwareRequirementsFromJSONTyped,
20
- HardwareRequirementsToJSON,
21
- ModelIO,
22
- ModelIOFromJSON,
23
- ModelIOFromJSONTyped,
24
- ModelIOToJSON,
25
17
  Task,
26
18
  TaskFromJSON,
27
19
  TaskFromJSONTyped,
@@ -34,96 +26,12 @@ import {
34
26
  * @interface DiscoveryCriterion
35
27
  */
36
28
  export interface DiscoveryCriterion {
37
- /**
38
- *
39
- * @type {any}
40
- * @memberof DiscoveryCriterion
41
- */
42
- annotations?: any | null;
43
29
  /**
44
30
  *
45
31
  * @type {string}
46
32
  * @memberof DiscoveryCriterion
47
33
  */
48
34
  author?: string | null;
49
- /**
50
- *
51
- * @type {number}
52
- * @memberof DiscoveryCriterion
53
- */
54
- bias_evaluation_score?: number | null;
55
- /**
56
- *
57
- * @type {boolean}
58
- * @memberof DiscoveryCriterion
59
- */
60
- edge_optimized?: boolean | null;
61
- /**
62
- *
63
- * @type {Array<string>}
64
- * @memberof DiscoveryCriterion
65
- */
66
- finetuning_datasets?: Array<string> | null;
67
- /**
68
- *
69
- * @type {string}
70
- * @memberof DiscoveryCriterion
71
- */
72
- image?: string | null;
73
- /**
74
- *
75
- * @type {boolean}
76
- * @memberof DiscoveryCriterion
77
- */
78
- inference_distributed?: boolean | null;
79
- /**
80
- *
81
- * @type {HardwareRequirements}
82
- * @memberof DiscoveryCriterion
83
- */
84
- inference_hardware?: HardwareRequirements;
85
- /**
86
- *
87
- * @type {number}
88
- * @memberof DiscoveryCriterion
89
- */
90
- inference_max_compute_utilization_percentage?: number | null;
91
- /**
92
- *
93
- * @type {number}
94
- * @memberof DiscoveryCriterion
95
- */
96
- inference_max_energy_consumption_watts?: number | null;
97
- /**
98
- * Inference performance fields
99
- * @type {number}
100
- * @memberof DiscoveryCriterion
101
- */
102
- inference_max_latency_ms?: number | null;
103
- /**
104
- *
105
- * @type {number}
106
- * @memberof DiscoveryCriterion
107
- */
108
- inference_max_memory_usage_mb?: number | null;
109
- /**
110
- *
111
- * @type {number}
112
- * @memberof DiscoveryCriterion
113
- */
114
- inference_min_throughput?: number | null;
115
- /**
116
- *
117
- * @type {string}
118
- * @memberof DiscoveryCriterion
119
- */
120
- inference_precision?: string | null;
121
- /**
122
- *
123
- * @type {Array<string>}
124
- * @memberof DiscoveryCriterion
125
- */
126
- inference_software_dependencies?: Array<string> | null;
127
35
  /**
128
36
  *
129
37
  * @type {Array<string>}
@@ -136,127 +44,36 @@ export interface DiscoveryCriterion {
136
44
  * @memberof DiscoveryCriterion
137
45
  */
138
46
  license?: string | null;
139
- /**
140
- *
141
- * @type {Array<ModelIO>}
142
- * @memberof DiscoveryCriterion
143
- */
144
- model_inputs?: Array<ModelIO> | null;
145
- /**
146
- *
147
- * @type {Array<ModelIO>}
148
- * @memberof DiscoveryCriterion
149
- */
150
- model_outputs?: Array<ModelIO> | null;
151
47
  /**
152
48
  *
153
49
  * @type {string}
154
50
  * @memberof DiscoveryCriterion
155
51
  */
156
52
  model_type?: string | null;
157
- /**
158
- * Architecture fields
159
- * @type {boolean}
160
- * @memberof DiscoveryCriterion
161
- */
162
- multi_modal?: boolean | null;
163
53
  /**
164
54
  *
165
55
  * @type {string}
166
56
  * @memberof DiscoveryCriterion
167
57
  */
168
58
  name?: string | null;
169
- /**
170
- *
171
- * @type {boolean}
172
- * @memberof DiscoveryCriterion
173
- */
174
- pretrained?: boolean | null;
175
59
  /**
176
60
  *
177
61
  * @type {Array<string>}
178
62
  * @memberof DiscoveryCriterion
179
63
  */
180
- pretraining_datasets?: Array<string> | null;
181
- /**
182
- *
183
- * @type {boolean}
184
- * @memberof DiscoveryCriterion
185
- */
186
- pruned?: boolean | null;
187
- /**
188
- *
189
- * @type {boolean}
190
- * @memberof DiscoveryCriterion
191
- */
192
- quantization_aware?: boolean | null;
193
- /**
194
- * Regulatory and Compliance Fields
195
- * A vector or strings that represent regulatory standards. Ex HIPPA
196
- * @type {Array<string>}
197
- * @memberof DiscoveryCriterion
198
- */
199
64
  regulatory?: Array<string> | null;
200
65
  /**
201
66
  *
202
- * @type {boolean}
203
- * @memberof DiscoveryCriterion
204
- */
205
- slimmed?: boolean | null;
206
- /**
207
- *
208
- * @type {boolean}
209
- * @memberof DiscoveryCriterion
210
- */
211
- supports_quantization?: boolean | null;
212
- /**
213
- * Arbitrary labels
214
67
  * @type {Array<string>}
215
68
  * @memberof DiscoveryCriterion
216
69
  */
217
70
  tags?: Array<string> | null;
218
71
  /**
219
- * Inference Fields
72
+ *
220
73
  * @type {Array<Task>}
221
74
  * @memberof DiscoveryCriterion
222
75
  */
223
76
  task_types?: Array<Task> | null;
224
- /**
225
- *
226
- * @type {boolean}
227
- * @memberof DiscoveryCriterion
228
- */
229
- training_distributed?: boolean | null;
230
- /**
231
- *
232
- * @type {HardwareRequirements}
233
- * @memberof DiscoveryCriterion
234
- */
235
- training_hardware?: HardwareRequirements;
236
- /**
237
- * Training performance fields
238
- * @type {number}
239
- * @memberof DiscoveryCriterion
240
- */
241
- training_max_energy_consumption_watts?: number | null;
242
- /**
243
- *
244
- * @type {string}
245
- * @memberof DiscoveryCriterion
246
- */
247
- training_precision?: string | null;
248
- /**
249
- * Training-related Fields
250
- * @type {number}
251
- * @memberof DiscoveryCriterion
252
- */
253
- training_time?: number | null;
254
- /**
255
- *
256
- * @type {string}
257
- * @memberof DiscoveryCriterion
258
- */
259
- version?: string | null;
260
77
  }
261
78
 
262
79
  export function DiscoveryCriterionFromJSON(json: any): DiscoveryCriterion {
@@ -269,43 +86,14 @@ export function DiscoveryCriterionFromJSONTyped(json: any, ignoreDiscriminator:
269
86
  }
270
87
  return {
271
88
 
272
- 'annotations': !exists(json, 'annotations') ? undefined : json['annotations'],
273
89
  'author': !exists(json, 'author') ? undefined : json['author'],
274
- 'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
275
- 'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
276
- 'finetuning_datasets': !exists(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
277
- 'image': !exists(json, 'image') ? undefined : json['image'],
278
- 'inference_distributed': !exists(json, 'inference_distributed') ? undefined : json['inference_distributed'],
279
- 'inference_hardware': !exists(json, 'inference_hardware') ? undefined : HardwareRequirementsFromJSON(json['inference_hardware']),
280
- 'inference_max_compute_utilization_percentage': !exists(json, 'inference_max_compute_utilization_percentage') ? undefined : json['inference_max_compute_utilization_percentage'],
281
- 'inference_max_energy_consumption_watts': !exists(json, 'inference_max_energy_consumption_watts') ? undefined : json['inference_max_energy_consumption_watts'],
282
- 'inference_max_latency_ms': !exists(json, 'inference_max_latency_ms') ? undefined : json['inference_max_latency_ms'],
283
- 'inference_max_memory_usage_mb': !exists(json, 'inference_max_memory_usage_mb') ? undefined : json['inference_max_memory_usage_mb'],
284
- 'inference_min_throughput': !exists(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
285
- 'inference_precision': !exists(json, 'inference_precision') ? undefined : json['inference_precision'],
286
- 'inference_software_dependencies': !exists(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
287
90
  'libraries': !exists(json, 'libraries') ? undefined : json['libraries'],
288
91
  'license': !exists(json, 'license') ? undefined : json['license'],
289
- 'model_inputs': !exists(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : (json['model_inputs'] as Array<any>).map(ModelIOFromJSON)),
290
- 'model_outputs': !exists(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : (json['model_outputs'] as Array<any>).map(ModelIOFromJSON)),
291
92
  'model_type': !exists(json, 'model_type') ? undefined : json['model_type'],
292
- 'multi_modal': !exists(json, 'multi_modal') ? undefined : json['multi_modal'],
293
93
  'name': !exists(json, 'name') ? undefined : json['name'],
294
- 'pretrained': !exists(json, 'pretrained') ? undefined : json['pretrained'],
295
- 'pretraining_datasets': !exists(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
296
- 'pruned': !exists(json, 'pruned') ? undefined : json['pruned'],
297
- 'quantization_aware': !exists(json, 'quantization_aware') ? undefined : json['quantization_aware'],
298
94
  'regulatory': !exists(json, 'regulatory') ? undefined : json['regulatory'],
299
- 'slimmed': !exists(json, 'slimmed') ? undefined : json['slimmed'],
300
- 'supports_quantization': !exists(json, 'supports_quantization') ? undefined : json['supports_quantization'],
301
95
  'tags': !exists(json, 'tags') ? undefined : json['tags'],
302
96
  'task_types': !exists(json, 'task_types') ? undefined : (json['task_types'] === null ? null : (json['task_types'] as Array<any>).map(TaskFromJSON)),
303
- 'training_distributed': !exists(json, 'training_distributed') ? undefined : json['training_distributed'],
304
- 'training_hardware': !exists(json, 'training_hardware') ? undefined : HardwareRequirementsFromJSON(json['training_hardware']),
305
- 'training_max_energy_consumption_watts': !exists(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
306
- 'training_precision': !exists(json, 'training_precision') ? undefined : json['training_precision'],
307
- 'training_time': !exists(json, 'training_time') ? undefined : json['training_time'],
308
- 'version': !exists(json, 'version') ? undefined : json['version'],
309
97
  };
310
98
  }
311
99
 
@@ -318,43 +106,14 @@ export function DiscoveryCriterionToJSON(value?: DiscoveryCriterion | null): any
318
106
  }
319
107
  return {
320
108
 
321
- 'annotations': value.annotations,
322
109
  'author': value.author,
323
- 'bias_evaluation_score': value.bias_evaluation_score,
324
- 'edge_optimized': value.edge_optimized,
325
- 'finetuning_datasets': value.finetuning_datasets,
326
- 'image': value.image,
327
- 'inference_distributed': value.inference_distributed,
328
- 'inference_hardware': HardwareRequirementsToJSON(value.inference_hardware),
329
- 'inference_max_compute_utilization_percentage': value.inference_max_compute_utilization_percentage,
330
- 'inference_max_energy_consumption_watts': value.inference_max_energy_consumption_watts,
331
- 'inference_max_latency_ms': value.inference_max_latency_ms,
332
- 'inference_max_memory_usage_mb': value.inference_max_memory_usage_mb,
333
- 'inference_min_throughput': value.inference_min_throughput,
334
- 'inference_precision': value.inference_precision,
335
- 'inference_software_dependencies': value.inference_software_dependencies,
336
110
  'libraries': value.libraries,
337
111
  'license': value.license,
338
- 'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : (value.model_inputs as Array<any>).map(ModelIOToJSON)),
339
- 'model_outputs': value.model_outputs === undefined ? undefined : (value.model_outputs === null ? null : (value.model_outputs as Array<any>).map(ModelIOToJSON)),
340
112
  'model_type': value.model_type,
341
- 'multi_modal': value.multi_modal,
342
113
  'name': value.name,
343
- 'pretrained': value.pretrained,
344
- 'pretraining_datasets': value.pretraining_datasets,
345
- 'pruned': value.pruned,
346
- 'quantization_aware': value.quantization_aware,
347
114
  'regulatory': value.regulatory,
348
- 'slimmed': value.slimmed,
349
- 'supports_quantization': value.supports_quantization,
350
115
  'tags': value.tags,
351
116
  'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : (value.task_types as Array<any>).map(TaskToJSON)),
352
- 'training_distributed': value.training_distributed,
353
- 'training_hardware': HardwareRequirementsToJSON(value.training_hardware),
354
- 'training_max_energy_consumption_watts': value.training_max_energy_consumption_watts,
355
- 'training_precision': value.training_precision,
356
- 'training_time': value.training_time,
357
- 'version': value.version,
358
117
  };
359
118
  }
360
119