File size: 12,825 Bytes
743dc1e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
323
324
325
326
327
328
329
330
331
332
{
    "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.215-203.850.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": 946.139136,
                "max_global_vram": 1047.003136,
                "max_process_vram": 0.0,
                "max_reserved": 396.361728,
                "max_allocated": 253.912576
            },
            "latency": {
                "unit": "s",
                "count": 189,
                "total": 0.9951875820159912,
                "mean": 0.005265542761989372,
                "stdev": 0.00017791048691492866,
                "p50": 0.005214208126068115,
                "p90": 0.005360844802856445,
                "p95": 0.005745664024353027,
                "p99": 0.0058924646377563495,
                "values": [
                    0.006188032150268555,
                    0.005753856182098388,
                    0.005835775852203369,
                    0.0058091521263122555,
                    0.0058122239112854005,
                    0.005772287845611572,
                    0.005852159976959229,
                    0.005735424041748047,
                    0.005768191814422607,
                    0.005742591857910156,
                    0.005747712135314941,
                    0.0057292799949646,
                    0.0063539199829101565,
                    0.0052070398330688475,
                    0.005007359981536865,
                    0.005064703941345215,
                    0.005244927883148193,
                    0.005192704200744629,
                    0.005203968048095703,
                    0.00520908784866333,
                    0.005201920032501221,
                    0.00522649621963501,
                    0.005254144191741943,
                    0.005264383792877197,
                    0.005264448165893555,
                    0.005345280170440674,
                    0.005258240222930908,
                    0.0052306241989135745,
                    0.005258240222930908,
                    0.005265408039093018,
                    0.005242879867553711,
                    0.005266335964202881,
                    0.005258240222930908,
                    0.005237760066986084,
                    0.005495808124542236,
                    0.005455872058868408,
                    0.005281792163848877,
                    0.005298175811767578,
                    0.00526643180847168,
                    0.0052070398330688475,
                    0.0052111358642578124,
                    0.005249023914337158,
                    0.005213183879852295,
                    0.005361663818359375,
                    0.0052705278396606445,
                    0.005196832180023194,
                    0.005203968048095703,
                    0.005283840179443359,
                    0.005210207939147949,
                    0.005215231895446777,
                    0.00522441577911377,
                    0.005186560153961181,
                    0.005185535907745361,
                    0.005277696132659912,
                    0.005195775985717774,
                    0.005154751777648926,
                    0.005247935771942138,
                    0.005203968048095703,
                    0.0051773757934570315,
                    0.005178368091583252,
                    0.005208064079284668,
                    0.00517632007598877,
                    0.005268415927886963,
                    0.005231584072113037,
                    0.005241856098175048,
                    0.005272607803344726,
                    0.005280799865722656,
                    0.005258240222930908,
                    0.005245952129364013,
                    0.005279776096343994,
                    0.005221375942230225,
                    0.005194752216339111,
                    0.0052295680046081545,
                    0.005191679954528809,
                    0.00516812801361084,
                    0.005208064079284668,
                    0.005183487892150879,
                    0.005180416107177735,
                    0.0051968002319335935,
                    0.00526643180847168,
                    0.005252096176147461,
                    0.005305344104766845,
                    0.0052111358642578124,
                    0.005169151782989502,
                    0.005184512138366699,
                    0.005203968048095703,
                    0.005198847770690918,
                    0.005154751777648926,
                    0.005181407928466797,
                    0.005214208126068115,
                    0.0053606400489807126,
                    0.005187583923339844,
                    0.0052008957862854,
                    0.0051363840103149415,
                    0.005158912181854248,
                    0.005175295829772949,
                    0.005187583923339844,
                    0.005155839920043945,
                    0.005155839920043945,
                    0.005186560153961181,
                    0.005252096176147461,
                    0.0051773438453674315,
                    0.005198847770690918,
                    0.005138495922088623,
                    0.005114880084991455,
                    0.00515993595123291,
                    0.0051701760292053225,
                    0.005163008213043213,
                    0.005167103767395019,
                    0.005242879867553711,
                    0.005161983966827393,
                    0.005190591812133789,
                    0.005173247814178467,
                    0.005145599842071533,
                    0.005139455795288086,
                    0.00515993595123291,
                    0.005184512138366699,
                    0.00515993595123291,
                    0.005161983966827393,
                    0.00526643180847168,
                    0.005159999847412109,
                    0.005178368091583252,
                    0.005174272060394287,
                    0.005171199798583984,
                    0.005234687805175781,
                    0.005285888195037842,
                    0.005323775768280029,
                    0.005251071929931641,
                    0.0053606400489807126,
                    0.005262335777282715,
                    0.005251071929931641,
                    0.005305344104766845,
                    0.0052070398330688475,
                    0.005161983966827393,
                    0.00537395191192627,
                    0.0052674560546875,
                    0.005185535907745361,
                    0.005274623870849609,
                    0.005178368091583252,
                    0.005204991817474365,
                    0.005173247814178467,
                    0.005193727970123291,
                    0.0053637118339538575,
                    0.005212160110473632,
                    0.005242879867553711,
                    0.005185535907745361,
                    0.005166016101837158,
                    0.005276671886444092,
                    0.0051528000831604,
                    0.005187583923339844,
                    0.005194752216339111,
                    0.00520908784866333,
                    0.005156864166259765,
                    0.005252096176147461,
                    0.005180416107177735,
                    0.00515174388885498,
                    0.005256192207336426,
                    0.00522547197341919,
                    0.005210112094879151,
                    0.005178368091583252,
                    0.0051660799980163576,
                    0.005185535907745361,
                    0.005228544235229492,
                    0.005248000144958496,
                    0.00526639986038208,
                    0.005280767917633057,
                    0.005286911964416504,
                    0.005242879867553711,
                    0.005239808082580567,
                    0.005277696132659912,
                    0.005271615982055664,
                    0.005258240222930908,
                    0.0052674560546875,
                    0.00520908784866333,
                    0.0051773438453674315,
                    0.005268479824066162,
                    0.005180384159088135,
                    0.005214208126068115,
                    0.005241856098175048,
                    0.0052367358207702636,
                    0.005222400188446045,
                    0.005494783878326416,
                    0.005257215976715088,
                    0.005256192207336426,
                    0.005237760066986084,
                    0.005179391860961914,
                    0.005182400226593018,
                    0.005164031982421875,
                    0.005191679954528809
                ]
            },
            "throughput": {
                "unit": "samples/s",
                "value": 189.91394528570697
            },
            "energy": {
                "unit": "kWh",
                "cpu": 6.139217760621918e-08,
                "ram": 3.356103035365744e-08,
                "gpu": 1.3043188327461932e-07,
                "total": 2.2538509123449595e-07
            },
            "efficiency": {
                "unit": "samples/kWh",
                "value": 4436850.700828195
            }
        }
    }
}