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
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
{
    "config": {
        "name": "pytorch_generate",
        "backend": {
            "name": "pytorch",
            "version": "2.3.0+cu121",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "text-generation",
            "library": "transformers",
            "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": {},
            "hub_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": "static",
            "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,
            "latency": true,
            "memory": 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",
            "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.217-205.860.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.2.1",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.42.0.dev0",
            "transformers_commit": "35a6d9d6483d4d4d7cd817ed4ecfd5f86e1f9a23",
            "accelerate_version": "0.32.0.dev0",
            "accelerate_commit": null,
            "diffusers_version": null,
            "diffusers_commit": null,
            "optimum_version": "1.21.0.dev0",
            "optimum_commit": null,
            "timm_version": "0.9.16",
            "timm_commit": null,
            "peft_version": "0.11.2.dev0",
            "peft_commit": null
        }
    },
    "report": {
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 1750.618112,
                "max_global_vram": 6793.199616,
                "max_process_vram": 0.0,
                "max_reserved": 6146.752512,
                "max_allocated": 5036.936192
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 0.04374707221984863,
                "mean": 0.021873536109924315,
                "stdev": 0.0006145601272583012,
                "p50": 0.021873536109924315,
                "p90": 0.022365184211730955,
                "p95": 0.022426640224456788,
                "p99": 0.02247580503463745,
                "values": [
                    0.022488096237182616,
                    0.021258975982666014
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 320.0214160537128
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1750.6304,
                "max_global_vram": 6793.199616,
                "max_process_vram": 0.0,
                "max_reserved": 6146.752512,
                "max_allocated": 5036.936704
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 4.992007324218751,
                "mean": 2.4960036621093753,
                "stdev": 0.005812744140625048,
                "p50": 2.4960036621093753,
                "p90": 2.500653857421875,
                "p95": 2.5012351318359376,
                "p99": 2.5017001513671877,
                "values": [
                    2.50181640625,
                    2.49019091796875
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 50.88133560375956
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 253,
                "total": 4.99309157371521,
                "mean": 0.019735539817056166,
                "stdev": 0.0013689270958941455,
                "p50": 0.019509248733520508,
                "p90": 0.020166437911987304,
                "p95": 0.020301005172729494,
                "p99": 0.020579819412231443,
                "values": [
                    0.021006336212158205,
                    0.020468736648559572,
                    0.020248575210571287,
                    0.020017152786254884,
                    0.020133888244628906,
                    0.019997695922851562,
                    0.02005504035949707,
                    0.019812351226806642,
                    0.01986662483215332,
                    0.019953664779663087,
                    0.020197376251220703,
                    0.02016972732543945,
                    0.019965951919555663,
                    0.020410367965698242,
                    0.02032640075683594,
                    0.020307968139648438,
                    0.02004991912841797,
                    0.02007142448425293,
                    0.02014726448059082,
                    0.02015328025817871,
                    0.019894271850585937,
                    0.0198973445892334,
                    0.019991552352905274,
                    0.019861503601074217,
                    0.01999564743041992,
                    0.019933183670043944,
                    0.020135936737060548,
                    0.02030284881591797,
                    0.020299776077270508,
                    0.019961856842041017,
                    0.020363264083862305,
                    0.020102144241333008,
                    0.019948543548583983,
                    0.019987455368041994,
                    0.020145151138305666,
                    0.020109312057495117,
                    0.019908672332763673,
                    0.0199617919921875,
                    0.019957759857177734,
                    0.019955711364746095,
                    0.01986355209350586,
                    0.01978265571594238,
                    0.020050943374633787,
                    0.019677183151245118,
                    0.01982975959777832,
                    0.019900415420532228,
                    0.01982361602783203,
                    0.01979903984069824,
                    0.0198604793548584,
                    0.019843072891235353,
                    0.019523584365844726,
                    0.019717119216918946,
                    0.019530752182006835,
                    0.0194334716796875,
                    0.01947238349914551,
                    0.019188735961914064,
                    0.01944780731201172,
                    0.01947648048400879,
                    0.01946828842163086,
                    0.019474431991577147,
                    0.01943756866455078,
                    0.019478527069091797,
                    0.019494911193847657,
                    0.019414016723632813,
                    0.019503103256225587,
                    0.019491840362548828,
                    0.019511295318603517,
                    0.019474431991577147,
                    0.01944883155822754,
                    0.019406848907470704,
                    0.019449855804443358,
                    0.01945088005065918,
                    0.01943142318725586,
                    0.01947340774536133,
                    0.01948876762390137,
                    0.01942323112487793,
                    0.01943449592590332,
                    0.019408895492553712,
                    0.019491840362548828,
                    0.01948467254638672,
                    0.01944883155822754,
                    0.019430400848388672,
                    0.019467264175415038,
                    0.019475456237792968,
                    0.01943552017211914,
                    0.019400703430175782,
                    0.019458047866821288,
                    0.01944268798828125,
                    0.019507200241088866,
                    0.0194652156829834,
                    0.019501056671142578,
                    0.01946009635925293,
                    0.01947648048400879,
                    0.0195020809173584,
                    0.01945292854309082,
                    0.0194201602935791,
                    0.019471359252929688,
                    0.01949286460876465,
                    0.019518463134765626,
                    0.01946828842163086,
                    0.019479551315307618,
                    0.01945088005065918,
                    0.019491840362548828,
                    0.019483648300170898,
                    0.01947340774536133,
                    0.019499008178710937,
                    0.019277856826782225,
                    0.019397600173950195,
                    0.019479551315307618,
                    0.01944166374206543,
                    0.019280895233154297,
                    0.01925632095336914,
                    0.01944883155822754,
                    0.019474431991577147,
                    0.019532800674438477,
                    0.019504127502441407,
                    0.019499008178710937,
                    0.019479551315307618,
                    0.019487743377685548,
                    0.019581951141357423,
                    0.01947750473022461,
                    0.01944576072692871,
                    0.01948569679260254,
                    0.01947340774536133,
                    0.019518463134765626,
                    0.01946419143676758,
                    0.0409354248046875,
                    0.019520511627197267,
                    0.019540992736816407,
                    0.01946419143676758,
                    0.019430400848388672,
                    0.01946931266784668,
                    0.01944576072692871,
                    0.019518463134765626,
                    0.019511295318603517,
                    0.01946828842163086,
                    0.019562496185302734,
                    0.01945907211303711,
                    0.019569664001464843,
                    0.019471359252929688,
                    0.019606527328491212,
                    0.019505151748657225,
                    0.019506175994873046,
                    0.019517440795898438,
                    0.019513343811035155,
                    0.019482624053955077,
                    0.019535871505737306,
                    0.019524608612060547,
                    0.01946316719055176,
                    0.019510271072387696,
                    0.019518463134765626,
                    0.0194703369140625,
                    0.01946419143676758,
                    0.019514368057250975,
                    0.019553279876708983,
                    0.01945497512817383,
                    0.01945395278930664,
                    0.01943449592590332,
                    0.019481599807739256,
                    0.019531776428222656,
                    0.019503103256225587,
                    0.01944371223449707,
                    0.01942630386352539,
                    0.01946419143676758,
                    0.019528703689575197,
                    0.01946316719055176,
                    0.01946316719055176,
                    0.01946009635925293,
                    0.0194652156829834,
                    0.02002124786376953,
                    0.019544063568115236,
                    0.019329023361206055,
                    0.019375104904174805,
                    0.0194467830657959,
                    0.019795967102050782,
                    0.020237312316894532,
                    0.019538944244384765,
                    0.019490816116333007,
                    0.019524608612060547,
                    0.019523584365844726,
                    0.019516416549682617,
                    0.019509248733520508,
                    0.01949286460876465,
                    0.019511295318603517,
                    0.019495935440063478,
                    0.01944576072692871,
                    0.01945395278930664,
                    0.01944063949584961,
                    0.0194652156829834,
                    0.019491840362548828,
                    0.01946419143676758,
                    0.019479551315307618,
                    0.0194969596862793,
                    0.019481599807739256,
                    0.02023321533203125,
                    0.02042470359802246,
                    0.020346879959106445,
                    0.020700159072875975,
                    0.019696640014648437,
                    0.01970790481567383,
                    0.019575807571411134,
                    0.019535871505737306,
                    0.01948057556152344,
                    0.01945292854309082,
                    0.019538944244384765,
                    0.019546112060546874,
                    0.01948467254638672,
                    0.019505151748657225,
                    0.019512319564819337,
                    0.019499008178710937,
                    0.01949286460876465,
                    0.019475456237792968,
                    0.019813375473022463,
                    0.02025881576538086,
                    0.020090879440307616,
                    0.020328447341918944,
                    0.020175872802734376,
                    0.02024140739440918,
                    0.020297727584838866,
                    0.02029465675354004,
                    0.020341760635375978,
                    0.02024448013305664,
                    0.020257791519165038,
                    0.01965977668762207,
                    0.019530752182006835,
                    0.01963827133178711,
                    0.019487743377685548,
                    0.019515455245971678,
                    0.019467199325561523,
                    0.019507200241088866,
                    0.019474431991577147,
                    0.019516416549682617,
                    0.019570688247680663,
                    0.019597312927246095,
                    0.01946931266784668,
                    0.019514368057250975,
                    0.01946419143676758,
                    0.019503103256225587,
                    0.01947340774536133,
                    0.019475456237792968,
                    0.019511295318603517,
                    0.01947238349914551,
                    0.019546112060546874,
                    0.019526655197143555,
                    0.019577856063842772,
                    0.019545087814331053,
                    0.019516416549682617,
                    0.019511295318603517,
                    0.019546112060546874,
                    0.019552255630493166,
                    0.019555328369140625,
                    0.019524608612060547,
                    0.01946931266784668
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 50.67001000579492
            },
            "energy": null,
            "efficiency": null
        }
    }
}