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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": 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,
            "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": "b7672826cad31e30319487af876e608d8af7d37b",
            "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": 1703.899136,
                "max_global_vram": 6793.199616,
                "max_process_vram": 0.0,
                "max_reserved": 6146.752512,
                "max_allocated": 5034.576896
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 0.0394006404876709,
                "mean": 0.01970032024383545,
                "stdev": 0.0002354879379272458,
                "p50": 0.01970032024383545,
                "p90": 0.019888710594177246,
                "p95": 0.01991225938796997,
                "p99": 0.01993109842300415,
                "values": [
                    0.019935808181762694,
                    0.019464832305908203
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 355.3241730773597
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1703.989248,
                "max_global_vram": 6795.296768,
                "max_process_vram": 0.0,
                "max_reserved": 6148.849664,
                "max_allocated": 5034.577408
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 4.782302001953125,
                "mean": 2.3911510009765626,
                "stdev": 0.004780395507812507,
                "p50": 2.3911510009765626,
                "p90": 2.3949753173828126,
                "p95": 2.395453356933594,
                "p99": 2.3958357885742187,
                "values": [
                    2.395931396484375,
                    2.38637060546875
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 53.11249684697132
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 253,
                "total": 4.78247526359558,
                "mean": 0.01890306428298649,
                "stdev": 0.001235033105667377,
                "p50": 0.0188272647857666,
                "p90": 0.01889751091003418,
                "p95": 0.01893766403198242,
                "p99": 0.019935887908935544,
                "values": [
                    0.02027622413635254,
                    0.01886617660522461,
                    0.018725887298583984,
                    0.018710527420043945,
                    0.018686975479125977,
                    0.018715648651123046,
                    0.018711551666259766,
                    0.018770944595336913,
                    0.018714624404907225,
                    0.018761728286743166,
                    0.018751487731933594,
                    0.018746368408203123,
                    0.018746368408203123,
                    0.018765823364257812,
                    0.018710527420043945,
                    0.018751487731933594,
                    0.018897920608520507,
                    0.018748416900634765,
                    0.01880473518371582,
                    0.018760704040527345,
                    0.018743295669555664,
                    0.01877299118041992,
                    0.018698335647583008,
                    0.018693023681640625,
                    0.018775039672851563,
                    0.018761728286743166,
                    0.01877299118041992,
                    0.018780160903930664,
                    0.018722816467285155,
                    0.018774015426635742,
                    0.018726911544799805,
                    0.018718719482421875,
                    0.018744319915771485,
                    0.018722816467285155,
                    0.018759679794311524,
                    0.018722816467285155,
                    0.018700288772583007,
                    0.0188272647857666,
                    0.018815999984741212,
                    0.018691072463989256,
                    0.018959360122680666,
                    0.018712575912475587,
                    0.018576383590698242,
                    0.018727935791015626,
                    0.018684928894042968,
                    0.018683904647827147,
                    0.018765823364257812,
                    0.018766847610473633,
                    0.018742271423339844,
                    0.018718719482421875,
                    0.018723840713500976,
                    0.018736127853393555,
                    0.01893891143798828,
                    0.01893475151062012,
                    0.019166208267211913,
                    0.019319807052612305,
                    0.018884607315063476,
                    0.018907136917114258,
                    0.018832384109497072,
                    0.01883647918701172,
                    0.018915327072143554,
                    0.018894847869873048,
                    0.019323904037475585,
                    0.018940927505493164,
                    0.018899967193603515,
                    0.018865152359008788,
                    0.01886412811279297,
                    0.01886412811279297,
                    0.018876415252685547,
                    0.018881536483764647,
                    0.018851839065551757,
                    0.01882521629333496,
                    0.018893823623657227,
                    0.018815999984741212,
                    0.018852863311767578,
                    0.018865152359008788,
                    0.018869247436523438,
                    0.018884607315063476,
                    0.018876415252685547,
                    0.018890752792358398,
                    0.01887027168273926,
                    0.018832384109497072,
                    0.01881395149230957,
                    0.01884774398803711,
                    0.01885491180419922,
                    0.01882521629333496,
                    0.018869247436523438,
                    0.01880985641479492,
                    0.0188590087890625,
                    0.018930688858032226,
                    0.01884979248046875,
                    0.018865152359008788,
                    0.018860031127929687,
                    0.018856960296630858,
                    0.01883852767944336,
                    0.01887539291381836,
                    0.018856960296630858,
                    0.018968576431274413,
                    0.01881907272338867,
                    0.018851839065551757,
                    0.01885798454284668,
                    0.018890752792358398,
                    0.01884979248046875,
                    0.018898944854736328,
                    0.01887948799133301,
                    0.01884262466430664,
                    0.018817024230957033,
                    0.01883955192565918,
                    0.01886412811279297,
                    0.01879449653625488,
                    0.01883545684814453,
                    0.018851839065551757,
                    0.01886720085144043,
                    0.01886617660522461,
                    0.01883852767944336,
                    0.018865152359008788,
                    0.019803136825561524,
                    0.020065280914306642,
                    0.01981644821166992,
                    0.018902015686035157,
                    0.01883033561706543,
                    0.0189040641784668,
                    0.018799615859985352,
                    0.01881497573852539,
                    0.01886310386657715,
                    0.01887027168273926,
                    0.03829043197631836,
                    0.01860505676269531,
                    0.01861324882507324,
                    0.018685951232910156,
                    0.01863987159729004,
                    0.018695167541503906,
                    0.018703359603881836,
                    0.018679807662963867,
                    0.0186746883392334,
                    0.018716672897338867,
                    0.018710527420043945,
                    0.018726911544799805,
                    0.018715648651123046,
                    0.018689023971557618,
                    0.018721792221069337,
                    0.018732032775878905,
                    0.018671615600585938,
                    0.01865830421447754,
                    0.018707487106323244,
                    0.01871971130371094,
                    0.018726911544799805,
                    0.018714624404907225,
                    0.01868185615539551,
                    0.018712575912475587,
                    0.018715648651123046,
                    0.018677759170532226,
                    0.018695167541503906,
                    0.018704383850097657,
                    0.018751487731933594,
                    0.018733055114746093,
                    0.018752511978149415,
                    0.018757631301879883,
                    0.018701311111450195,
                    0.018718719482421875,
                    0.018792448043823243,
                    0.018689023971557618,
                    0.01868083190917969,
                    0.018726911544799805,
                    0.0187064323425293,
                    0.018708480834960937,
                    0.01868083190917969,
                    0.018684928894042968,
                    0.018694143295288086,
                    0.018664512634277344,
                    0.018683839797973632,
                    0.01864396858215332,
                    0.018693119049072265,
                    0.018716672897338867,
                    0.0187064323425293,
                    0.018759679794311524,
                    0.018718719482421875,
                    0.018726911544799805,
                    0.018694143295288086,
                    0.018689023971557618,
                    0.018724863052368163,
                    0.018700288772583007,
                    0.018682880401611326,
                    0.01887027168273926,
                    0.018936832427978514,
                    0.018700288772583007,
                    0.018691072463989256,
                    0.01884876823425293,
                    0.018877439498901367,
                    0.018926591873168946,
                    0.018883583068847656,
                    0.01889587211608887,
                    0.0188723201751709,
                    0.018885631561279297,
                    0.01884160041809082,
                    0.01884671974182129,
                    0.018880512237548826,
                    0.01884876823425293,
                    0.018865152359008788,
                    0.018881536483764647,
                    0.018865152359008788,
                    0.01884876823425293,
                    0.018834495544433595,
                    0.018893760681152345,
                    0.01885491180419922,
                    0.018886655807495118,
                    0.01888768005371094,
                    0.018815999984741212,
                    0.018894847869873048,
                    0.01884262466430664,
                    0.018807807922363282,
                    0.01883545684814453,
                    0.018883583068847656,
                    0.018906112670898437,
                    0.01885798454284668,
                    0.01883443260192871,
                    0.018856960296630858,
                    0.018844671249389648,
                    0.01883955192565918,
                    0.01882828712463379,
                    0.01883647918701172,
                    0.01886310386657715,
                    0.018928640365600585,
                    0.018861055374145508,
                    0.018873344421386717,
                    0.018832384109497072,
                    0.01887948799133301,
                    0.018851839065551757,
                    0.018865152359008788,
                    0.01887027168273926,
                    0.01883443260192871,
                    0.01887129592895508,
                    0.018894847869873048,
                    0.01882624053955078,
                    0.018832384109497072,
                    0.01886412811279297,
                    0.01881907272338867,
                    0.0188272647857666,
                    0.018883583068847656,
                    0.01878937530517578,
                    0.018852863311767578,
                    0.01883033561706543,
                    0.018795520782470702,
                    0.018770944595336913,
                    0.018795520782470702,
                    0.018817024230957033,
                    0.01884671974182129,
                    0.01885491180419922,
                    0.018869247436523438,
                    0.01879449653625488,
                    0.0188221435546875,
                    0.01887846374511719,
                    0.019596288681030274
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 52.90147592102513
            },
            "energy": null,
            "efficiency": null
        }
    }
}