File size: 12,422 Bytes
eada27c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
{
    "config": {
        "name": "cuda_inference_timm_image-classification_timm/resnet50.a1_in1k",
        "backend": {
            "name": "pytorch",
            "version": "2.2.2",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "image-classification",
            "model": "timm/resnet50.a1_in1k",
            "library": "timm",
            "device": "cuda",
            "device_ids": "0",
            "seed": 42,
            "inter_op_num_threads": null,
            "intra_op_num_threads": null,
            "hub_kwargs": {
                "revision": "main",
                "force_download": false,
                "local_files_only": false,
                "trust_remote_code": false
            },
            "no_weights": false,
            "device_map": null,
            "torch_dtype": null,
            "eval_mode": true,
            "to_bettertransformer": false,
            "low_cpu_mem_usage": null,
            "attn_implementation": null,
            "cache_implementation": null,
            "autocast_enabled": false,
            "autocast_dtype": null,
            "torch_compile": false,
            "torch_compile_target": "forward",
            "torch_compile_config": {},
            "quantization_scheme": null,
            "quantization_config": {},
            "deepspeed_inference": false,
            "deepspeed_inference_config": {},
            "peft_type": null,
            "peft_config": {}
        },
        "scenario": {
            "name": "inference",
            "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
            "iterations": 1,
            "duration": 1,
            "warmup_runs": 1,
            "input_shapes": {
                "batch_size": 1,
                "num_choices": 2,
                "sequence_length": 2
            },
            "new_tokens": null,
            "latency": true,
            "memory": true,
            "energy": true,
            "forward_kwargs": {},
            "generate_kwargs": {
                "max_new_tokens": 2,
                "min_new_tokens": 2
            },
            "call_kwargs": {
                "num_inference_steps": 2
            }
        },
        "launcher": {
            "name": "process",
            "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
            "device_isolation": true,
            "device_isolation_action": "error",
            "start_method": "spawn"
        },
        "environment": {
            "cpu": " AMD EPYC 7R32",
            "cpu_count": 16,
            "cpu_ram_mb": 66697.29792,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.10.214-202.855.amzn2.x86_64-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.14",
            "gpu": [
                "NVIDIA A10G"
            ],
            "gpu_count": 1,
            "gpu_vram_mb": 24146608128,
            "optimum_benchmark_version": "0.2.0",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.40.2",
            "transformers_commit": null,
            "accelerate_version": "0.30.0",
            "accelerate_commit": null,
            "diffusers_version": "0.27.2",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "0.9.16",
            "timm_commit": null,
            "peft_version": null,
            "peft_commit": null
        }
    },
    "report": {
        "forward": {
            "memory": {
                "unit": "MB",
                "max_ram": 945.463296,
                "max_global_vram": 1047.003136,
                "max_process_vram": 0.0,
                "max_reserved": 396.361728,
                "max_allocated": 253.912576
            },
            "latency": {
                "unit": "s",
                "count": 179,
                "total": 0.9962271671295163,
                "mean": 0.005565514900164897,
                "stdev": 0.0002488616081462451,
                "p50": 0.005605440139770507,
                "p90": 0.0057956352233886725,
                "p95": 0.005870796680450439,
                "p99": 0.006352179040908813,
                "values": [
                    0.0062341117858886715,
                    0.0057825279235839844,
                    0.005980160236358643,
                    0.005783552169799804,
                    0.0059023361206054685,
                    0.00582860803604126,
                    0.005847040176391601,
                    0.005988351821899414,
                    0.005825535774230957,
                    0.005786623954772949,
                    0.005738495826721191,
                    0.00568012809753418,
                    0.005637119770050049,
                    0.005730303764343261,
                    0.005656576156616211,
                    0.0057118721008300784,
                    0.005566400051116943,
                    0.005565440177917481,
                    0.005565440177917481,
                    0.005634047985076904,
                    0.005629951953887939,
                    0.005697535991668701,
                    0.005745664119720459,
                    0.005699584007263184,
                    0.005723135948181152,
                    0.00568832015991211,
                    0.005635072231292724,
                    0.005598207950592041,
                    0.005661695957183838,
                    0.005831679821014404,
                    0.005714975833892823,
                    0.005750783920288086,
                    0.005708799839019775,
                    0.005798912048339844,
                    0.005772287845611572,
                    0.005628928184509278,
                    0.00572211217880249,
                    0.005706751823425293,
                    0.005712959766387939,
                    0.005703680038452149,
                    0.005616608142852783,
                    0.00555622386932373,
                    0.005549056053161621,
                    0.005566463947296142,
                    0.005605440139770507,
                    0.0055808000564575196,
                    0.005587007999420166,
                    0.005626880168914795,
                    0.005676032066345215,
                    0.005665791988372803,
                    0.005725183963775635,
                    0.005757952213287353,
                    0.005761023998260498,
                    0.005755904197692871,
                    0.005731391906738281,
                    0.005735424041748047,
                    0.005660672187805176,
                    0.005646336078643799,
                    0.005675007820129394,
                    0.0057784318923950195,
                    0.005676032066345215,
                    0.005641215801239013,
                    0.005752831935882568,
                    0.005615647792816162,
                    0.005577727794647217,
                    0.005608448028564453,
                    0.0056483840942382815,
                    0.005665823936462402,
                    0.005650432109832764,
                    0.005794816017150879,
                    0.0056442880630493165,
                    0.005727231979370117,
                    0.005607423782348633,
                    0.00572211217880249,
                    0.005623807907104492,
                    0.005814271926879883,
                    0.005708799839019775,
                    0.005605408191680908,
                    0.005640160083770752,
                    0.005639167785644531,
                    0.005724160194396972,
                    0.0057497601509094234,
                    0.0057487359046936035,
                    0.005761023998260498,
                    0.00577839994430542,
                    0.005816319942474365,
                    0.005656576156616211,
                    0.00570470380783081,
                    0.005881855964660645,
                    0.00561356782913208,
                    0.005836800098419189,
                    0.005612512111663818,
                    0.007020544052124023,
                    0.006162432193756104,
                    0.00586956787109375,
                    0.005570559978485107,
                    0.005627903938293457,
                    0.005463071823120117,
                    0.005391359806060791,
                    0.0053350400924682614,
                    0.005341184139251709,
                    0.005436416149139404,
                    0.0054568958282470706,
                    0.005637119770050049,
                    0.005470208168029785,
                    0.005561344146728516,
                    0.005668863773345947,
                    0.005683199882507324,
                    0.005448703765869141,
                    0.005362688064575195,
                    0.005315584182739258,
                    0.00535756778717041,
                    0.005338111877441406,
                    0.005311488151550293,
                    0.005362688064575195,
                    0.005312511920928955,
                    0.0052930560111999515,
                    0.0053637118339538575,
                    0.005345280170440674,
                    0.0052971520423889164,
                    0.005362688064575195,
                    0.005315584182739258,
                    0.005330880165100097,
                    0.005354496002197265,
                    0.005342207908630371,
                    0.005303296089172363,
                    0.005416959762573242,
                    0.0052899842262268066,
                    0.005311488151550293,
                    0.005306367874145508,
                    0.005310463905334473,
                    0.005313536167144775,
                    0.0053043198585510255,
                    0.0053441920280456546,
                    0.005280767917633057,
                    0.005325823783874512,
                    0.005323775768280029,
                    0.005319680213928223,
                    0.005311488151550293,
                    0.0053350400924682614,
                    0.0053043198585510255,
                    0.005339136123657226,
                    0.005305344104766845,
                    0.0053002238273620605,
                    0.005296127796173096,
                    0.005336063861846924,
                    0.005282815933227539,
                    0.006303743839263916,
                    0.006523903846740723,
                    0.005336063861846924,
                    0.0053309440612792965,
                    0.005406720161437988,
                    0.005380095958709717,
                    0.0053606400489807126,
                    0.005325823783874512,
                    0.00538316822052002,
                    0.00531660795211792,
                    0.0053432960510253905,
                    0.005314559936523438,
                    0.0053350400924682614,
                    0.00530944013595581,
                    0.005342207908630371,
                    0.0053606400489807126,
                    0.005343232154846191,
                    0.0053002238273620605,
                    0.005309375762939453,
                    0.005296127796173096,
                    0.00531763219833374,
                    0.005296127796173096,
                    0.005326848030090332,
                    0.005292064189910889,
                    0.0053012480735778805,
                    0.005320703983306885,
                    0.0053043198585510255,
                    0.005311456203460694,
                    0.005326848030090332,
                    0.005321728229522705,
                    0.005291007995605469,
                    0.005342207908630371
                ]
            },
            "throughput": {
                "unit": "samples/s",
                "value": 179.67789466709928
            },
            "energy": {
                "unit": "kWh",
                "cpu": 6.292989539931902e-08,
                "ram": 3.44065424296931e-08,
                "gpu": 1.3212679588359838e-07,
                "total": 2.2946323371261053e-07
            },
            "efficiency": {
                "unit": "samples/kWh",
                "value": 4357996.633362372
            }
        }
    }
}