@mlhub/models-ts-sdk 0.15.0 → 0.16.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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/dist/models/DiscoveryCriterion.d.ts +2 -177
- package/dist/models/DiscoveryCriterion.js +0 -58
- package/dist/models/ForkModelResponse.d.ts +51 -0
- package/dist/models/ForkModelResponse.js +48 -0
- package/dist/models/ModelMetadata.d.ts +2 -171
- package/dist/models/ModelMetadata.js +0 -56
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/DiscoveryCriterion.ts +1 -242
- package/src/models/ForkModelResponse.ts +88 -0
- package/src/models/ModelMetadata.ts +1 -234
- package/src/models/index.ts +1 -0
|
@@ -26,46 +26,18 @@ function ModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
|
-
'annotations': !(0, runtime_1.exists)(json, 'annotations') ? undefined : json['annotations'],
|
|
30
29
|
'author': json['author'],
|
|
31
|
-
'bias_evaluation_score': !(0, runtime_1.exists)(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
32
30
|
'canonical': !(0, runtime_1.exists)(json, 'canonical') ? undefined : (0, _1.CanonicalFromJSON)(json['canonical']),
|
|
33
31
|
'deployment_strategy_refs': (json['deployment_strategy_refs'].map(_1.DeploymentStrategyReferenceFromJSON)),
|
|
34
32
|
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
35
|
-
'edge_optimized': !(0, runtime_1.exists)(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
36
|
-
'finetuning_datasets': !(0, runtime_1.exists)(json, 'finetuning_datasets') ? undefined : json['finetuning_datasets'],
|
|
37
|
-
'image': !(0, runtime_1.exists)(json, 'image') ? undefined : json['image'],
|
|
38
|
-
'inference_distributed': !(0, runtime_1.exists)(json, 'inference_distributed') ? undefined : json['inference_distributed'],
|
|
39
|
-
'inference_hardware': !(0, runtime_1.exists)(json, 'inference_hardware') ? undefined : (0, _1.HardwareRequirementsFromJSON)(json['inference_hardware']),
|
|
40
|
-
'inference_max_compute_utilization_percentage': !(0, runtime_1.exists)(json, 'inference_max_compute_utilization_percentage') ? undefined : json['inference_max_compute_utilization_percentage'],
|
|
41
|
-
'inference_max_energy_consumption_watts': !(0, runtime_1.exists)(json, 'inference_max_energy_consumption_watts') ? undefined : json['inference_max_energy_consumption_watts'],
|
|
42
|
-
'inference_max_latency_ms': !(0, runtime_1.exists)(json, 'inference_max_latency_ms') ? undefined : json['inference_max_latency_ms'],
|
|
43
|
-
'inference_max_memory_usage_mb': !(0, runtime_1.exists)(json, 'inference_max_memory_usage_mb') ? undefined : json['inference_max_memory_usage_mb'],
|
|
44
|
-
'inference_min_throughput': !(0, runtime_1.exists)(json, 'inference_min_throughput') ? undefined : json['inference_min_throughput'],
|
|
45
|
-
'inference_precision': !(0, runtime_1.exists)(json, 'inference_precision') ? undefined : json['inference_precision'],
|
|
46
|
-
'inference_software_dependencies': !(0, runtime_1.exists)(json, 'inference_software_dependencies') ? undefined : json['inference_software_dependencies'],
|
|
47
33
|
'libraries': !(0, runtime_1.exists)(json, 'libraries') ? undefined : json['libraries'],
|
|
48
34
|
'license': !(0, runtime_1.exists)(json, 'license') ? undefined : json['license'],
|
|
49
|
-
'model_inputs': !(0, runtime_1.exists)(json, 'model_inputs') ? undefined : (json['model_inputs'] === null ? null : json['model_inputs'].map(_1.ModelIOFromJSON)),
|
|
50
|
-
'model_outputs': !(0, runtime_1.exists)(json, 'model_outputs') ? undefined : (json['model_outputs'] === null ? null : json['model_outputs'].map(_1.ModelIOFromJSON)),
|
|
51
35
|
'model_type': !(0, runtime_1.exists)(json, 'model_type') ? undefined : json['model_type'],
|
|
52
|
-
'multi_modal': !(0, runtime_1.exists)(json, 'multi_modal') ? undefined : json['multi_modal'],
|
|
53
36
|
'name': json['name'],
|
|
54
|
-
'pretrained': !(0, runtime_1.exists)(json, 'pretrained') ? undefined : json['pretrained'],
|
|
55
|
-
'pretraining_datasets': !(0, runtime_1.exists)(json, 'pretraining_datasets') ? undefined : json['pretraining_datasets'],
|
|
56
|
-
'pruned': !(0, runtime_1.exists)(json, 'pruned') ? undefined : json['pruned'],
|
|
57
|
-
'quantization_aware': !(0, runtime_1.exists)(json, 'quantization_aware') ? undefined : json['quantization_aware'],
|
|
58
37
|
'regulatory': !(0, runtime_1.exists)(json, 'regulatory') ? undefined : json['regulatory'],
|
|
59
|
-
'slimmed': !(0, runtime_1.exists)(json, 'slimmed') ? undefined : json['slimmed'],
|
|
60
|
-
'supports_quantization': !(0, runtime_1.exists)(json, 'supports_quantization') ? undefined : json['supports_quantization'],
|
|
61
38
|
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
62
39
|
'task_types': !(0, runtime_1.exists)(json, 'task_types') ? undefined : (json['task_types'] === null ? null : json['task_types'].map(_1.TaskFromJSON)),
|
|
63
40
|
'tenant_id': json['tenant_id'],
|
|
64
|
-
'training_distributed': !(0, runtime_1.exists)(json, 'training_distributed') ? undefined : json['training_distributed'],
|
|
65
|
-
'training_hardware': !(0, runtime_1.exists)(json, 'training_hardware') ? undefined : (0, _1.HardwareRequirementsFromJSON)(json['training_hardware']),
|
|
66
|
-
'training_max_energy_consumption_watts': !(0, runtime_1.exists)(json, 'training_max_energy_consumption_watts') ? undefined : json['training_max_energy_consumption_watts'],
|
|
67
|
-
'training_precision': !(0, runtime_1.exists)(json, 'training_precision') ? undefined : json['training_precision'],
|
|
68
|
-
'training_time': !(0, runtime_1.exists)(json, 'training_time') ? undefined : json['training_time'],
|
|
69
41
|
};
|
|
70
42
|
}
|
|
71
43
|
function ModelMetadataToJSON(value) {
|
|
@@ -76,45 +48,17 @@ function ModelMetadataToJSON(value) {
|
|
|
76
48
|
return null;
|
|
77
49
|
}
|
|
78
50
|
return {
|
|
79
|
-
'annotations': value.annotations,
|
|
80
51
|
'author': value.author,
|
|
81
|
-
'bias_evaluation_score': value.bias_evaluation_score,
|
|
82
52
|
'canonical': (0, _1.CanonicalToJSON)(value.canonical),
|
|
83
53
|
'deployment_strategy_refs': (value.deployment_strategy_refs.map(_1.DeploymentStrategyReferenceToJSON)),
|
|
84
54
|
'description': value.description,
|
|
85
|
-
'edge_optimized': value.edge_optimized,
|
|
86
|
-
'finetuning_datasets': value.finetuning_datasets,
|
|
87
|
-
'image': value.image,
|
|
88
|
-
'inference_distributed': value.inference_distributed,
|
|
89
|
-
'inference_hardware': (0, _1.HardwareRequirementsToJSON)(value.inference_hardware),
|
|
90
|
-
'inference_max_compute_utilization_percentage': value.inference_max_compute_utilization_percentage,
|
|
91
|
-
'inference_max_energy_consumption_watts': value.inference_max_energy_consumption_watts,
|
|
92
|
-
'inference_max_latency_ms': value.inference_max_latency_ms,
|
|
93
|
-
'inference_max_memory_usage_mb': value.inference_max_memory_usage_mb,
|
|
94
|
-
'inference_min_throughput': value.inference_min_throughput,
|
|
95
|
-
'inference_precision': value.inference_precision,
|
|
96
|
-
'inference_software_dependencies': value.inference_software_dependencies,
|
|
97
55
|
'libraries': value.libraries,
|
|
98
56
|
'license': value.license,
|
|
99
|
-
'model_inputs': value.model_inputs === undefined ? undefined : (value.model_inputs === null ? null : value.model_inputs.map(_1.ModelIOToJSON)),
|
|
100
|
-
'model_outputs': value.model_outputs === undefined ? undefined : (value.model_outputs === null ? null : value.model_outputs.map(_1.ModelIOToJSON)),
|
|
101
57
|
'model_type': value.model_type,
|
|
102
|
-
'multi_modal': value.multi_modal,
|
|
103
58
|
'name': value.name,
|
|
104
|
-
'pretrained': value.pretrained,
|
|
105
|
-
'pretraining_datasets': value.pretraining_datasets,
|
|
106
|
-
'pruned': value.pruned,
|
|
107
|
-
'quantization_aware': value.quantization_aware,
|
|
108
59
|
'regulatory': value.regulatory,
|
|
109
|
-
'slimmed': value.slimmed,
|
|
110
|
-
'supports_quantization': value.supports_quantization,
|
|
111
60
|
'tags': value.tags,
|
|
112
61
|
'task_types': value.task_types === undefined ? undefined : (value.task_types === null ? null : value.task_types.map(_1.TaskToJSON)),
|
|
113
62
|
'tenant_id': value.tenant_id,
|
|
114
|
-
'training_distributed': value.training_distributed,
|
|
115
|
-
'training_hardware': (0, _1.HardwareRequirementsToJSON)(value.training_hardware),
|
|
116
|
-
'training_max_energy_consumption_watts': value.training_max_energy_consumption_watts,
|
|
117
|
-
'training_precision': value.training_precision,
|
|
118
|
-
'training_time': value.training_time,
|
|
119
63
|
};
|
|
120
64
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './DiscoverModelsByPlatformResponse';
|
|
|
16
16
|
export * from './DiscoverModelsResponse';
|
|
17
17
|
export * from './DiscoveryCriteria';
|
|
18
18
|
export * from './DiscoveryCriterion';
|
|
19
|
+
export * from './ForkModelResponse';
|
|
19
20
|
export * from './GetModelArtifactResponse';
|
|
20
21
|
export * from './GetModelByPlatformResponse';
|
|
21
22
|
export * from './GetModelIngestionResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __exportStar(require("./DiscoverModelsByPlatformResponse"), exports);
|
|
|
34
34
|
__exportStar(require("./DiscoverModelsResponse"), exports);
|
|
35
35
|
__exportStar(require("./DiscoveryCriteria"), exports);
|
|
36
36
|
__exportStar(require("./DiscoveryCriterion"), exports);
|
|
37
|
+
__exportStar(require("./ForkModelResponse"), exports);
|
|
37
38
|
__exportStar(require("./GetModelArtifactResponse"), exports);
|
|
38
39
|
__exportStar(require("./GetModelByPlatformResponse"), exports);
|
|
39
40
|
__exportStar(require("./GetModelIngestionResponse"), exports);
|
package/package.json
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Models API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ForkModelResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ForkModelResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ForkModelResponse
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @memberof ForkModelResponse
|
|
32
|
+
*/
|
|
33
|
+
metadata: object;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {any}
|
|
37
|
+
* @memberof ForkModelResponse
|
|
38
|
+
*/
|
|
39
|
+
result: any | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ForkModelResponse
|
|
44
|
+
*/
|
|
45
|
+
status: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ForkModelResponse
|
|
50
|
+
*/
|
|
51
|
+
version: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ForkModelResponseFromJSON(json: any): ForkModelResponse {
|
|
55
|
+
return ForkModelResponseFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ForkModelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForkModelResponse {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'message': json['message'],
|
|
65
|
+
'metadata': json['metadata'],
|
|
66
|
+
'result': json['result'],
|
|
67
|
+
'status': json['status'],
|
|
68
|
+
'version': json['version'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ForkModelResponseToJSON(value?: ForkModelResponse | null): any {
|
|
73
|
+
if (value === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
if (value === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'message': value.message,
|
|
82
|
+
'metadata': value.metadata,
|
|
83
|
+
'result': value.result,
|
|
84
|
+
'status': value.status,
|
|
85
|
+
'version': value.version,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|