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
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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
{
    "config": {
        "name": "cuda_inference_transformers_fill-mask_hf-internal-testing/tiny-random-BertModel",
        "backend": {
            "name": "pytorch",
            "version": "2.3.1+rocm5.7",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "fill-mask",
            "library": "transformers",
            "model_type": "bert",
            "model": "hf-internal-testing/tiny-random-BertModel",
            "processor": "hf-internal-testing/tiny-random-BertModel",
            "device": "cuda",
            "device_ids": "5",
            "seed": 42,
            "inter_op_num_threads": null,
            "intra_op_num_threads": null,
            "model_kwargs": {},
            "processor_kwargs": {},
            "no_weights": true,
            "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": 2,
                "sequence_length": 16,
                "num_choices": 2
            },
            "new_tokens": null,
            "memory": true,
            "latency": true,
            "energy": false,
            "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": "warn",
            "numactl": false,
            "numactl_kwargs": {},
            "start_method": "spawn"
        },
        "environment": {
            "cpu": " AMD EPYC 7763 64-Core Processor",
            "cpu_count": 128,
            "cpu_ram_mb": 1082014.490624,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.15.0-122-generic-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.12",
            "gpu": [
                "Advanced Micro Devices, Inc. [AMD/ATI]",
                "Advanced Micro Devices, Inc. [AMD/ATI]",
                "Advanced Micro Devices, Inc. [AMD/ATI]",
                "Advanced Micro Devices, Inc. [AMD/ATI]",
                "Advanced Micro Devices, Inc. [AMD/ATI]",
                "Advanced Micro Devices, Inc. [AMD/ATI]",
                "Advanced Micro Devices, Inc. [AMD/ATI]",
                "Advanced Micro Devices, Inc. [AMD/ATI]"
            ],
            "gpu_count": 8,
            "gpu_vram_mb": 549621596160,
            "optimum_benchmark_version": "0.5.0.dev0",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.47.0",
            "transformers_commit": null,
            "accelerate_version": "1.2.0",
            "accelerate_commit": null,
            "diffusers_version": "0.31.0",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "1.0.12",
            "timm_commit": null,
            "peft_version": "0.14.0",
            "peft_commit": null
        },
        "print_report": true,
        "log_report": true
    },
    "report": {
        "load_model": {
            "memory": {
                "unit": "MB",
                "max_ram": 1051.336704,
                "max_global_vram": 68702.69952,
                "max_process_vram": 3287.310336,
                "max_reserved": 2.097152,
                "max_allocated": 0.534528
            },
            "latency": {
                "unit": "s",
                "values": [
                    0.07990399169921875
                ],
                "count": 1,
                "total": 0.07990399169921875,
                "mean": 0.07990399169921875,
                "p50": 0.07990399169921875,
                "p90": 0.07990399169921875,
                "p95": 0.07990399169921875,
                "p99": 0.07990399169921875,
                "stdev": 0,
                "stdev_": 0
            },
            "throughput": null,
            "energy": null,
            "efficiency": null
        },
        "forward": {
            "memory": {
                "unit": "MB",
                "max_ram": 1175.494656,
                "max_global_vram": 68702.69952,
                "max_process_vram": 59981.529088,
                "max_reserved": 2.097152,
                "max_allocated": 0.543744
            },
            "latency": {
                "unit": "s",
                "values": [
                    0.0037439699172973633,
                    0.003654690980911255,
                    0.003495331048965454,
                    0.003726690053939819,
                    0.0035642910003662108,
                    0.003627969980239868,
                    0.0035228519439697266,
                    0.0036444509029388427,
                    0.003677570104598999,
                    0.0036348500251770018,
                    0.00355101203918457,
                    0.0036770908832550048,
                    0.0035087718963623046,
                    0.003520451068878174,
                    0.0035697309970855714,
                    0.0035457310676574707,
                    0.0035465309619903563,
                    0.00353357195854187,
                    0.0034730920791625976,
                    0.0035345311164855955,
                    0.00368333101272583,
                    0.0037025299072265625,
                    0.003653731107711792,
                    0.0036718111038208006,
                    0.0036809298992156983,
                    0.003657571077346802,
                    0.003666691064834595,
                    0.003671170949935913,
                    0.003647650957107544,
                    0.003667490005493164,
                    0.003552931070327759,
                    0.0034881319999694824,
                    0.003496450901031494,
                    0.003415812969207764,
                    0.0034054129123687743,
                    0.003299014091491699,
                    0.0034606130123138426,
                    0.0034114930629730224,
                    0.00344621205329895,
                    0.00323293399810791,
                    0.0035828509330749513,
                    0.003520931005477905,
                    0.003478372097015381,
                    0.0034431729316711426,
                    0.003509891986846924,
                    0.0035041320323944093,
                    0.0035994908809661866,
                    0.0035298919677734376,
                    0.0032826929092407225,
                    0.003527010917663574,
                    0.0034313321113586424,
                    0.003264293909072876,
                    0.0035873310565948486,
                    0.003513092041015625,
                    0.0032471740245819092,
                    0.0035290908813476562,
                    0.003477411985397339,
                    0.003664289951324463,
                    0.003456932067871094,
                    0.0036031711101531983,
                    0.0034350121021270753,
                    0.0035798110961914064,
                    0.003522531032562256,
                    0.0035974109172821045,
                    0.00368333101272583,
                    0.0036745309829711915,
                    0.0036921310424804688,
                    0.003692770004272461,
                    0.0036889300346374513,
                    0.0036913299560546874,
                    0.0037422099113464356,
                    0.0036985299587249756,
                    0.003713089942932129,
                    0.0036954898834228515,
                    0.00368333101272583,
                    0.0037039709091186523,
                    0.003677251100540161,
                    0.003670530080795288,
                    0.003658051013946533,
                    0.0036751708984375,
                    0.0036705310344696046,
                    0.0036574110984802246,
                    0.0036550109386444094,
                    0.0036599709987640383,
                    0.0036705310344696046,
                    0.0036567699909210204,
                    0.0036466898918151853,
                    0.00365516996383667,
                    0.0036511709690093992,
                    0.0036710109710693358,
                    0.0036481308937072756,
                    0.0036743710041046143,
                    0.0036623709201812744,
                    0.0036454110145568847,
                    0.003643009901046753,
                    0.003663650035858154,
                    0.0036569309234619142,
                    0.0036578910350799562,
                    0.0036686110496520997,
                    0.0036719710826873778,
                    0.00367405104637146,
                    0.003663650989532471,
                    0.003697731018066406,
                    0.0037082901000976562,
                    0.0036841299533843996,
                    0.0036668500900268555,
                    0.003671649932861328,
                    0.0036758100986480713,
                    0.003660290002822876,
                    0.003673569917678833,
                    0.003655649900436401,
                    0.0036753299236297605,
                    0.003688770055770874,
                    0.0036903700828552245,
                    0.003676769971847534,
                    0.0036770899295806886,
                    0.0038831679821014404,
                    0.0037148499488830564,
                    0.0036889300346374513,
                    0.0036950109004974365,
                    0.0036362910270690916,
                    0.0036716508865356446,
                    0.0036694099903106688,
                    0.0036822099685668947,
                    0.0036703710556030274,
                    0.0036860508918762206,
                    0.0036698911190032957,
                    0.0036868510246276854,
                    0.0036828510761260985,
                    0.0036735711097717286,
                    0.0036606109142303467,
                    0.003662691116333008,
                    0.0036954910755157473,
                    0.003672131061553955,
                    0.0036433310508728026,
                    0.003680290937423706,
                    0.0036889309883117675,
                    0.003707809925079346,
                    0.0036938900947570802,
                    0.0036762900352478025,
                    0.0036678099632263183,
                    0.0036519699096679687,
                    0.0036818900108337403,
                    0.0036743700504302977,
                    0.0036830101013183595,
                    0.0036550099849700928,
                    0.00366717004776001,
                    0.00365405011177063,
                    0.003636610984802246,
                    0.003665251016616821,
                    0.003664130926132202,
                    0.003673249959945679,
                    0.0036809298992156983,
                    0.0036670100688934327,
                    0.0036647698879241943,
                    0.0036678099632263183,
                    0.003654210090637207,
                    0.0036700499057769776,
                    0.0036649301052093506,
                    0.0036639699935913086,
                    0.00369116997718811,
                    0.003657249927520752,
                    0.0036462109088897703,
                    0.0036474909782409667,
                    0.003669090986251831,
                    0.003658690929412842,
                    0.0036726109981536866,
                    0.0036450910568237307,
                    0.003684770107269287,
                    0.0036783699989318846,
                    0.0036708500385284424,
                    0.003664129972457886,
                    0.0036628499031066894,
                    0.0036679699420928955,
                    0.003669250011444092,
                    0.003668450117111206,
                    0.0036412510871887205,
                    0.0036479709148406984,
                    0.0036769309043884276,
                    0.0036606109142303467,
                    0.003658051013946533,
                    0.003662851095199585,
                    0.003651650905609131,
                    0.0036774098873138426,
                    0.0036780500411987306,
                    0.0036735711097717286,
                    0.0036735711097717286,
                    0.003667810916900635,
                    0.0036473300457000733,
                    0.0036599700450897217,
                    0.0036402900218963623,
                    0.0036545310020446777,
                    0.003632131099700928,
                    0.0036718099117279052,
                    0.0036862099170684812,
                    0.0036590108871459963,
                    0.0036718099117279052,
                    0.0036666901111602783,
                    0.003671329975128174,
                    0.0036820499897003175,
                    0.0036850900650024416,
                    0.003664290904998779,
                    0.0036569309234619142,
                    0.0036862099170684812,
                    0.0036447710990905762,
                    0.003663650035858154,
                    0.003643170118331909,
                    0.003660130023956299,
                    0.003664931058883667,
                    0.00366477108001709,
                    0.0036530909538269045,
                    0.003657571077346802,
                    0.003668131113052368,
                    0.0036657299995422363,
                    0.0036617300510406493,
                    0.003669250011444092,
                    0.003653090000152588,
                    0.003656610012054443,
                    0.0036598100662231445,
                    0.003662691116333008,
                    0.003666210889816284,
                    0.003651810884475708,
                    0.003659811019897461,
                    0.003662689924240112,
                    0.0036559700965881348,
                    0.0036508500576019286,
                    0.003679650068283081,
                    0.003668610095977783,
                    0.0036833300590515135,
                    0.003659329891204834,
                    0.0036487700939178466,
                    0.0036438109874725342,
                    0.003632131099700928,
                    0.0036910099983215334,
                    0.0036809310913085936,
                    0.003677251100540161,
                    0.003681091070175171,
                    0.0036798110008239744,
                    0.003684770107269287,
                    0.003700769901275635,
                    0.0036905300617218017,
                    0.0032644529342651368,
                    0.0033839728832244873,
                    0.003402213096618652,
                    0.003475811958312988,
                    0.0033636529445648196,
                    0.0036052510738372803,
                    0.003259494066238403,
                    0.0033854129314422605,
                    0.003319653034210205,
                    0.0032404539585113527,
                    0.0033239729404449464,
                    0.003528611898422241,
                    0.003274852991104126,
                    0.003439811944961548,
                    0.0034015719890594484,
                    0.003357093095779419,
                    0.0035393309593200685,
                    0.003337733030319214,
                    0.0034865310192108154,
                    0.0035452520847320556,
                    0.003301573038101196,
                    0.003397892951965332,
                    0.003427333116531372,
                    0.003412933111190796,
                    0.0034631729125976563,
                    0.003564450979232788,
                    0.0033191730976104734,
                    0.0035052518844604494,
                    0.003338052988052368,
                    0.003550050973892212,
                    0.0033599729537963866,
                    0.0032782130241394043,
                    0.0035050909519195555
                ],
                "count": 274,
                "total": 0.9886366784572603,
                "mean": 0.003608163060062993,
                "p50": 0.0036600505113601684,
                "p90": 0.0036881943464279177,
                "p95": 0.003695490300655365,
                "p99": 0.0037308804154396052,
                "stdev": 0.00011538006940002736,
                "stdev_": 3.197750974092978
            },
            "throughput": {
                "unit": "samples/s",
                "value": 554.2986740641048
            },
            "energy": null,
            "efficiency": null
        }
    }
}