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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
{
    "config": {
        "name": "2024-10-21-17-02-49/openvino",
        "backend": {
            "name": "openvino",
            "version": "2024.4.0",
            "_target_": "optimum_benchmark.backends.openvino.backend.OVBackend",
            "task": "text-generation",
            "library": "transformers",
            "model_type": "gpt2",
            "model": "openai-community/gpt2",
            "processor": "openai-community/gpt2",
            "device": "cpu",
            "device_ids": null,
            "seed": 42,
            "inter_op_num_threads": null,
            "intra_op_num_threads": null,
            "model_kwargs": {},
            "processor_kwargs": {},
            "no_weights": false,
            "export": true,
            "use_cache": true,
            "use_merged": true,
            "openvino_config": {},
            "half": false,
            "reshape": false,
            "quantization": false,
            "quantization_config": {},
            "calibration": false,
            "calibration_config": {}
        },
        "scenario": {
            "name": "inference",
            "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
            "iterations": 10,
            "duration": 10,
            "warmup_runs": 10,
            "input_shapes": {
                "batch_size": 2,
                "num_choices": 2,
                "sequence_length": 16
            },
            "new_tokens": null,
            "memory": true,
            "latency": true,
            "energy": false,
            "forward_kwargs": {},
            "generate_kwargs": {
                "max_new_tokens": 32,
                "min_new_tokens": 32
            },
            "call_kwargs": {}
        },
        "launcher": {
            "name": "process",
            "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
            "device_isolation": false,
            "device_isolation_action": null,
            "numactl": true,
            "numactl_kwargs": {
                "cpunodebind": 0,
                "membind": 0
            },
            "start_method": "spawn"
        },
        "environment": {
            "cpu": " AMD EPYC 7R13 Processor",
            "cpu_count": 64,
            "cpu_ram_mb": 529717.02272,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.10.205-195.807.amzn2.x86_64-x86_64-with-glibc2.36",
            "processor": "",
            "python_version": "3.10.15",
            "optimum_benchmark_version": "0.5.0",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.44.2",
            "transformers_commit": null,
            "accelerate_version": "0.34.2",
            "accelerate_commit": null,
            "diffusers_version": null,
            "diffusers_commit": null,
            "optimum_version": "1.22.0",
            "optimum_commit": null,
            "timm_version": null,
            "timm_commit": null,
            "peft_version": null,
            "peft_commit": null
        },
        "print_report": false,
        "log_report": true
    },
    "report": {
        "load": {
            "memory": {
                "unit": "MB",
                "max_ram": 2315.85792,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "values": [
                    7.028849016875029
                ],
                "count": 1,
                "total": 7.028849016875029,
                "mean": 7.028849016875029,
                "p50": 7.028849016875029,
                "p90": 7.028849016875029,
                "p95": 7.028849016875029,
                "p99": 7.028849016875029,
                "stdev": 0,
                "stdev_": 0
            },
            "throughput": null,
            "energy": null,
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 2377.310208,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "values": [
                    0.05885552987456322,
                    0.02364581823348999,
                    0.02979157492518425,
                    0.081603292375803,
                    0.024604961276054382,
                    0.03558286651968956,
                    0.022596970200538635,
                    0.02347884327173233,
                    0.0287240631878376,
                    0.06448216363787651
                ],
                "count": 10,
                "total": 0.39336608350276947,
                "mean": 0.03933660835027695,
                "p50": 0.029257819056510925,
                "p90": 0.06619427651166915,
                "p95": 0.07389878444373606,
                "p99": 0.0800623907893896,
                "stdev": 0.02003120241280407,
                "stdev_": 50.92254582406833
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 813.4915881677609
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 2377.310208,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "values": [
                    1.9008748643100262,
                    1.5702370442450047,
                    1.4045211784541607,
                    1.5048012360930443,
                    1.6685373783111572,
                    1.6798498593270779,
                    1.6700320430099964,
                    1.3675638362765312,
                    1.5951625742018223,
                    1.6965471729636192
                ],
                "count": 10,
                "total": 16.05812718719244,
                "mean": 1.605812718719244,
                "p50": 1.6318499762564898,
                "p90": 1.7169799420982599,
                "p95": 1.808927403204143,
                "p99": 1.8824853720888495,
                "stdev": 0.14754579006284801,
                "stdev_": 9.188231500652632
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 38.60973280212256
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "values": [
                    0.036176424473524094,
                    0.05428296700119972,
                    0.02464061602950096,
                    0.08513526618480682,
                    0.02010687068104744,
                    0.020006313920021057,
                    0.06976010277867317,
                    0.021404825150966644,
                    0.014879975467920303,
                    0.07643061131238937,
                    0.01432371512055397,
                    0.1944337747991085,
                    0.060791198164224625,
                    0.11901348829269409,
                    0.016998346894979477,
                    0.09148794040083885,
                    0.01641702651977539,
                    0.06851667538285255,
                    0.02731948345899582,
                    0.060079947113990784,
                    0.0403645858168602,
                    0.0627397894859314,
                    0.01878589391708374,
                    0.018383584916591644,
                    0.198827613145113,
                    0.06102588400244713,
                    0.020124860107898712,
                    0.09604520350694656,
                    0.18714530393481255,
                    0.019056327641010284,
                    0.08565982058644295,
                    0.08736962825059891,
                    0.01662125438451767,
                    0.0666731745004654,
                    0.023834440857172012,
                    0.08509980514645576,
                    0.03194505721330643,
                    0.05671308934688568,
                    0.023673735558986664,
                    0.08370515704154968,
                    0.016121380031108856,
                    0.18330584093928337,
                    0.016942862421274185,
                    0.019826151430606842,
                    0.06402275711297989,
                    0.024109169840812683,
                    0.02349981665611267,
                    0.05536828935146332,
                    0.0965951681137085,
                    0.016446467489004135,
                    0.019964180886745453,
                    0.07023829966783524,
                    0.018490798771381378,
                    0.01844802126288414,
                    0.08825085312128067,
                    0.060346346348524094,
                    0.02796701341867447,
                    0.016128692775964737,
                    0.09161108732223511,
                    0.08825647830963135,
                    0.016346096992492676,
                    0.06183292344212532,
                    0.08622807264328003,
                    0.08939162641763687,
                    0.01624978333711624,
                    0.019875366240739822,
                    0.0642765425145626,
                    0.019905708730220795,
                    0.02384750172495842,
                    0.16680911928415298,
                    0.017454661428928375,
                    0.07736801728606224,
                    0.08609164133667946,
                    0.02417011186480522,
                    0.016088124364614487,
                    0.07214627042412758,
                    0.01984882354736328,
                    0.024059448391199112,
                    0.05259424448013306,
                    0.023592565208673477,
                    0.018422629684209824,
                    0.05475291982293129,
                    0.09818245097994804,
                    0.01482165977358818,
                    0.018721625208854675,
                    0.01875666156411171,
                    0.06027049943804741,
                    0.023840509355068207,
                    0.0598735548555851,
                    0.019784022122621536,
                    0.01630326360464096,
                    0.08386922255158424,
                    0.016408007591962814,
                    0.08145488053560257,
                    0.01514400914311409,
                    0.08483690023422241,
                    0.03235502541065216,
                    0.18316690996289253,
                    0.016780678182840347,
                    0.07359784469008446,
                    0.019301362335681915,
                    0.02865409106016159,
                    0.15020259842276573,
                    0.016309525817632675,
                    0.02379743754863739,
                    0.06469862908124924,
                    0.02717866748571396,
                    0.016059957444667816,
                    0.0616898275911808,
                    0.01833246648311615,
                    0.019599024206399918,
                    0.05348118767142296,
                    0.03474726527929306,
                    0.06018758937716484,
                    0.023925792425870895,
                    0.01898156851530075,
                    0.06914648041129112,
                    0.013354502618312836,
                    0.018743343651294708,
                    0.16115761175751686,
                    0.01690155640244484,
                    0.021828006953001022,
                    0.05819404125213623,
                    0.020490460097789764,
                    0.08371565118432045,
                    0.0166214257478714,
                    0.06962482631206512,
                    0.016564153134822845,
                    0.02182687819004059,
                    0.06415772810578346,
                    0.019905369728803635,
                    0.08758079633116722,
                    0.014441467821598053,
                    0.0660480335354805,
                    0.023825090378522873,
                    0.019976232200860977,
                    0.14736100286245346,
                    0.21549655124545097,
                    0.02508758008480072,
                    0.06394831836223602,
                    0.19531801715493202,
                    0.01973665878176689,
                    0.020975448191165924,
                    0.06230177730321884,
                    0.017150647938251495,
                    0.018937837332487106,
                    0.06138579547405243,
                    0.09978949651122093,
                    0.016425367444753647,
                    0.020011935383081436,
                    0.0200921930372715,
                    0.06024748086929321,
                    0.019599895924329758,
                    0.01854591816663742,
                    0.06135965883731842,
                    0.07949794828891754,
                    0.06553152948617935,
                    0.024959489703178406,
                    0.08956144377589226,
                    0.12447753548622131,
                    0.06405750662088394,
                    0.023217380046844482,
                    0.02090325579047203,
                    0.05239633098244667,
                    0.21963677927851677,
                    0.01925045996904373,
                    0.08429602906107903,
                    0.016404889523983,
                    0.0660945288836956,
                    0.023662734776735306,
                    0.022025257349014282,
                    0.051127951592206955,
                    0.09856290370225906,
                    0.016997188329696655,
                    0.021547455340623856,
                    0.018351897597312927,
                    0.1449412852525711,
                    0.019166219979524612,
                    0.029609329998493195,
                    0.052306659519672394,
                    0.019531354308128357,
                    0.02019285410642624,
                    0.019346892833709717,
                    0.09189707785844803,
                    0.057242151349782944,
                    0.022510111331939697,
                    0.061612892895936966,
                    0.020097699016332626,
                    0.016806136816740036,
                    0.04976274073123932,
                    0.022699501365423203,
                    0.018645301461219788,
                    0.08746004104614258,
                    0.07734161987900734,
                    0.090744998306036,
                    0.219412662088871,
                    0.029494095593690872,
                    0.0793362595140934,
                    0.016445204615592957,
                    0.07349149137735367,
                    0.018414881080389023,
                    0.09930755570530891,
                    0.06452012434601784,
                    0.01846388727426529,
                    0.021430183202028275,
                    0.060364991426467896,
                    0.13504431024193764,
                    0.0675152987241745,
                    0.029580768197774887,
                    0.06766440719366074,
                    0.016069885343313217,
                    0.020411498844623566,
                    0.06012666970491409,
                    0.027205459773540497,
                    0.020012598484754562,
                    0.06250866502523422,
                    0.017567716538906097,
                    0.017949119210243225,
                    0.04415910318493843,
                    0.017150182276964188,
                    0.02092793583869934,
                    0.05154724046587944,
                    0.01663682982325554,
                    0.035442836582660675,
                    0.08005334809422493,
                    0.016321904957294464,
                    0.06007276847958565,
                    0.02007818967103958,
                    0.0227806456387043,
                    0.05317587032914162,
                    0.043545328080654144,
                    0.0522884801030159,
                    0.01854587346315384,
                    0.08510943129658699,
                    0.014439847320318222,
                    0.024514853954315186,
                    0.05818137899041176,
                    0.01931953802704811,
                    0.01923982799053192,
                    0.06838909909129143,
                    0.19146821647882462,
                    0.019697070121765137,
                    0.0273909792304039,
                    0.06459451466798782,
                    0.09649816900491714,
                    0.015466634184122086,
                    0.020998533815145493,
                    0.07105062529444695,
                    0.05960690975189209,
                    0.016850106418132782,
                    0.019021283835172653,
                    0.06036694720387459,
                    0.024242423474788666,
                    0.022064629942178726,
                    0.062265634536743164,
                    0.09091807901859283,
                    0.01966267079114914,
                    0.01854228973388672,
                    0.0856449231505394,
                    0.014919143170118332,
                    0.10112086683511734,
                    0.08424531295895576,
                    0.016448576003313065,
                    0.10723071917891502,
                    0.058740418404340744,
                    0.021799985319375992,
                    0.023913100361824036,
                    0.056245073676109314,
                    0.2209479622542858,
                    0.019006289541721344,
                    0.06391571462154388,
                    0.023955032229423523,
                    0.09148820862174034,
                    0.01675424352288246,
                    0.07108772546052933,
                    0.02404189109802246,
                    0.06105734407901764,
                    0.019740786403417587,
                    0.01877014711499214,
                    0.020291924476623535,
                    0.10648790001869202,
                    0.014973364770412445,
                    0.06640227511525154,
                    0.0878971628844738,
                    0.1353103555738926,
                    0.06469268351793289,
                    0.020083896815776825,
                    0.020029433071613312,
                    0.062288060784339905,
                    0.1015404723584652,
                    0.01956021413207054,
                    0.17987413331866264,
                    0.016679774969816208,
                    0.08370039239525795,
                    0.024614591151475906,
                    0.022093791514635086,
                    0.06377182528376579,
                    0.02155681699514389,
                    0.08370539173483849,
                    0.016545671969652176,
                    0.11255328729748726,
                    0.06365567073225975,
                    0.014998208731412888,
                    0.08454111218452454,
                    0.014412760734558105,
                    0.023259207606315613,
                    0.0602559819817543,
                    0.018257364630699158,
                    0.02027173712849617,
                    0.05169415846467018
                ],
                "count": 310,
                "total": 16.052994020283222,
                "mean": 0.05178385167833297,
                "p50": 0.02907409332692623,
                "p90": 0.09650786891579628,
                "p95": 0.14627212993800642,
                "p99": 0.21399634681642096,
                "stdev": 0.043476343631525236,
                "stdev_": 83.95733847993446
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 38.62207879829892
            },
            "energy": null,
            "efficiency": null
        }
    }
}