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
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
{
    "config": {
        "name": "pytorch_generate",
        "backend": {
            "name": "pytorch",
            "version": "2.4.0+cu121",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "text-generation",
            "library": "transformers",
            "model_type": "gemma",
            "model": "google/gemma-2b",
            "processor": "google/gemma-2b",
            "device": "cuda",
            "device_ids": "0",
            "seed": 42,
            "inter_op_num_threads": null,
            "intra_op_num_threads": null,
            "model_kwargs": {},
            "processor_kwargs": {},
            "no_weights": true,
            "device_map": null,
            "torch_dtype": "float16",
            "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": {
                "backend": "inductor",
                "mode": "reduce-overhead",
                "fullgraph": true
            },
            "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": 2,
            "duration": 0,
            "warmup_runs": 10,
            "input_shapes": {
                "batch_size": 1,
                "num_choices": 2,
                "sequence_length": 7
            },
            "new_tokens": null,
            "memory": true,
            "latency": true,
            "energy": false,
            "forward_kwargs": {},
            "generate_kwargs": {
                "max_new_tokens": 128,
                "min_new_tokens": 128,
                "do_sample": false
            },
            "call_kwargs": {}
        },
        "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 7R32",
            "cpu_count": 16,
            "cpu_ram_mb": 66697.261056,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.29",
            "processor": "x86_64",
            "python_version": "3.8.10",
            "gpu": [
                "NVIDIA A10G"
            ],
            "gpu_count": 1,
            "gpu_vram_mb": 24146608128,
            "optimum_benchmark_version": "0.4.0",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.45.0.dev0",
            "transformers_commit": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b",
            "accelerate_version": "0.35.0.dev0",
            "accelerate_commit": null,
            "diffusers_version": null,
            "diffusers_commit": null,
            "optimum_version": "1.22.0.dev0",
            "optimum_commit": null,
            "timm_version": "0.9.16",
            "timm_commit": null,
            "peft_version": "0.12.1.dev0",
            "peft_commit": null
        }
    },
    "report": {
        "load": {
            "memory": {
                "unit": "MB",
                "max_ram": 1334.882304,
                "max_global_vram": 6775.373824,
                "max_process_vram": 0.0,
                "max_reserved": 6138.363904,
                "max_allocated": 6060.931072
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 11.4697255859375,
                "mean": 11.4697255859375,
                "stdev": 0.0,
                "p50": 11.4697255859375,
                "p90": 11.4697255859375,
                "p95": 11.4697255859375,
                "p99": 11.4697255859375,
                "values": [
                    11.4697255859375
                ]
            },
            "throughput": null,
            "energy": null,
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 1768.46848,
                "max_global_vram": 6796.345344,
                "max_process_vram": 0.0,
                "max_reserved": 6142.558208,
                "max_allocated": 5028.431872
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 0.04159295845031738,
                "mean": 0.02079647922515869,
                "stdev": 3.7856101989745816e-05,
                "p50": 0.02079647922515869,
                "p90": 0.020826764106750488,
                "p95": 0.020830549716949462,
                "p99": 0.02083357820510864,
                "values": [
                    0.020834335327148436,
                    0.020758623123168944
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 336.59543638192855
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1826.443264,
                "max_global_vram": 6800.539648,
                "max_process_vram": 0.0,
                "max_reserved": 6146.752512,
                "max_allocated": 5031.801344
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 5.03159765625,
                "mean": 2.515798828125,
                "stdev": 0.007148193359374888,
                "p50": 2.515798828125,
                "p90": 2.5215173828125,
                "p95": 2.5222322021484374,
                "p99": 2.5228040576171873,
                "values": [
                    2.522947021484375,
                    2.508650634765625
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 50.4809838450604
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 254,
                "total": 5.031286792755129,
                "mean": 0.019808215719508374,
                "stdev": 0.0003891032057323679,
                "p50": 0.0198287353515625,
                "p90": 0.02026444778442383,
                "p95": 0.020362086772918703,
                "p99": 0.020712244091033935,
                "values": [
                    0.02044825553894043,
                    0.02003660774230957,
                    0.020171775817871093,
                    0.020048896789550782,
                    0.019801088333129883,
                    0.019981311798095702,
                    0.01942937660217285,
                    0.0195020809173584,
                    0.019513343811035155,
                    0.020123647689819335,
                    0.019885055541992186,
                    0.02024345588684082,
                    0.020148223876953125,
                    0.020121599197387697,
                    0.02022707176208496,
                    0.020158464431762696,
                    0.020131839752197265,
                    0.02008166313171387,
                    0.019564544677734375,
                    0.02004684829711914,
                    0.020147199630737304,
                    0.02020249557495117,
                    0.020121599197387697,
                    0.019398656845092774,
                    0.019467264175415038,
                    0.019363840103149413,
                    0.019497983932495116,
                    0.019404800415039062,
                    0.019898399353027344,
                    0.01985532760620117,
                    0.01983590316772461,
                    0.020117504119873047,
                    0.020057088851928712,
                    0.020137983322143553,
                    0.019960832595825196,
                    0.019811328887939454,
                    0.020063295364379882,
                    0.01931360054016113,
                    0.019338239669799806,
                    0.019364864349365234,
                    0.019417087554931642,
                    0.019388416290283202,
                    0.019376127243041993,
                    0.019414016723632813,
                    0.02000588798522949,
                    0.019939327239990236,
                    0.019757055282592775,
                    0.019752960205078125,
                    0.019878911972045898,
                    0.020113407135009767,
                    0.02002022361755371,
                    0.02008883285522461,
                    0.020411392211914063,
                    0.020386816024780274,
                    0.019357696533203125,
                    0.019333120346069335,
                    0.019373056411743163,
                    0.01942527961730957,
                    0.01944473648071289,
                    0.01963929557800293,
                    0.019532800674438477,
                    0.020369407653808593,
                    0.020296703338623046,
                    0.020192256927490236,
                    0.02022502326965332,
                    0.02028646469116211,
                    0.020210752487182616,
                    0.02038265609741211,
                    0.020256767272949217,
                    0.02022502326965332,
                    0.020296703338623046,
                    0.020192256927490236,
                    0.019958784103393554,
                    0.020148223876953125,
                    0.02030080032348633,
                    0.020288511276245116,
                    0.02020249557495117,
                    0.020222976684570314,
                    0.019946495056152345,
                    0.019955711364746095,
                    0.02023321533203125,
                    0.02024448013305664,
                    0.020314111709594726,
                    0.019919872283935547,
                    0.019979263305664064,
                    0.019497983932495116,
                    0.01960857582092285,
                    0.019508224487304687,
                    0.019466239929199217,
                    0.019508256912231445,
                    0.01952457618713379,
                    0.01987174415588379,
                    0.020239360809326173,
                    0.019934207916259765,
                    0.02001817512512207,
                    0.01987276840209961,
                    0.02005401611328125,
                    0.02022400093078613,
                    0.020265983581542968,
                    0.020544511795043945,
                    0.019957759857177734,
                    0.019948543548583983,
                    0.019877887725830077,
                    0.02003046417236328,
                    0.020354047775268554,
                    0.019804159164428712,
                    0.019321855545043946,
                    0.0196945915222168,
                    0.019805183410644533,
                    0.0194334716796875,
                    0.019306495666503908,
                    0.019315711975097655,
                    0.01942425537109375,
                    0.019895296096801757,
                    0.01998028755187988,
                    0.02003763198852539,
                    0.019886079788208007,
                    0.0198922233581543,
                    0.0200130558013916,
                    0.019317760467529296,
                    0.01929113578796387,
                    0.01942937660217285,
                    0.01927987289428711,
                    0.019348480224609374,
                    0.019318784713745117,
                    0.019636224746704102,
                    0.019325952529907226,
                    0.019102720260620116,
                    0.0191016960144043,
                    0.019294208526611328,
                    0.01947648048400879,
                    0.020447231292724608,
                    0.02000383949279785,
                    0.01922355270385742,
                    0.01923174476623535,
                    0.01921843147277832,
                    0.019146751403808594,
                    0.019188735961914064,
                    0.01927168083190918,
                    0.021511167526245118,
                    0.020178943634033202,
                    0.01981644821166992,
                    0.02026700782775879,
                    0.020215808868408205,
                    0.020136959075927736,
                    0.019886079788208007,
                    0.019910655975341796,
                    0.02002227210998535,
                    0.020144128799438478,
                    0.020143104553222657,
                    0.020083711624145507,
                    0.019987455368041994,
                    0.020254720687866212,
                    0.019887104034423828,
                    0.019943424224853516,
                    0.020090879440307616,
                    0.02084249687194824,
                    0.0202926082611084,
                    0.020187135696411132,
                    0.02006425666809082,
                    0.019175424575805664,
                    0.020118528366088868,
                    0.02007244873046875,
                    0.019802112579345704,
                    0.019788799285888673,
                    0.019787776947021486,
                    0.019953664779663087,
                    0.019843072891235353,
                    0.01985740852355957,
                    0.020011007308959963,
                    0.01982156753540039,
                    0.019763200759887696,
                    0.019785728454589844,
                    0.019805183410644533,
                    0.019970048904418947,
                    0.019764223098754884,
                    0.019745792388916016,
                    0.019912704467773438,
                    0.019788799285888673,
                    0.019736576080322265,
                    0.019809280395507813,
                    0.019918848037719726,
                    0.019810304641723633,
                    0.019762176513671875,
                    0.019895296096801757,
                    0.019854335784912108,
                    0.020039680480957032,
                    0.01988198471069336,
                    0.01988403129577637,
                    0.01988403129577637,
                    0.019353599548339845,
                    0.019551231384277345,
                    0.019531839370727538,
                    0.019648448944091797,
                    0.019677183151245118,
                    0.02045849609375,
                    0.020249599456787108,
                    0.020221952438354493,
                    0.020175872802734376,
                    0.020337663650512695,
                    0.020358144760131838,
                    0.0202608642578125,
                    0.020305919647216796,
                    0.020405248641967775,
                    0.019511295318603517,
                    0.019631103515625,
                    0.019382272720336914,
                    0.01955027198791504,
                    0.020047807693481447,
                    0.021317632675170898,
                    0.020596736907958983,
                    0.019438592910766602,
                    0.0196628475189209,
                    0.019511295318603517,
                    0.019537919998168944,
                    0.01924403190612793,
                    0.019308544158935546,
                    0.01948467254638672,
                    0.019604480743408204,
                    0.01944371223449707,
                    0.019405824661254883,
                    0.019422271728515624,
                    0.019510208129882814,
                    0.019467264175415038,
                    0.019507200241088866,
                    0.019512319564819337,
                    0.019568639755249022,
                    0.019354623794555666,
                    0.019316736221313476,
                    0.019310592651367187,
                    0.019392511367797852,
                    0.019318784713745117,
                    0.019323904037475585,
                    0.019301376342773437,
                    0.019567615509033204,
                    0.019505151748657225,
                    0.01945907211303711,
                    0.019302400588989257,
                    0.019519487380981446,
                    0.019467264175415038,
                    0.019316736221313476,
                    0.019325952529907226,
                    0.01946419143676758,
                    0.019515392303466796,
                    0.01949286460876465,
                    0.019392511367797852,
                    0.019479551315307618,
                    0.019482624053955077,
                    0.019508224487304687,
                    0.019393535614013673,
                    0.019589120864868165,
                    0.019438592910766602,
                    0.019479551315307618,
                    0.01945395278930664
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 50.48410286723288
            },
            "energy": null,
            "efficiency": null
        }
    }
}