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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.293824,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.10.219-208.866.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.43.0.dev0",
            "transformers_commit": "e65502951593a76844e872fee9c56b805598538a",
            "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": 1761.304576,
                "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.0446639347076416,
                "mean": 0.0223319673538208,
                "stdev": 0.00039136028289794844,
                "p50": 0.0223319673538208,
                "p90": 0.02264505558013916,
                "p95": 0.022684191608428952,
                "p99": 0.02271550043106079,
                "values": [
                    0.02272332763671875,
                    0.021940607070922852
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 313.4520075680821
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1761.386496,
                "max_global_vram": 6793.199616,
                "max_process_vram": 0.0,
                "max_reserved": 6146.752512,
                "max_allocated": 5036.936704
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 5.168105224609375,
                "mean": 2.5840526123046876,
                "stdev": 0.012695922851562402,
                "p50": 2.5840526123046876,
                "p90": 2.5942093505859374,
                "p95": 2.5954789428710936,
                "p99": 2.5964946166992187,
                "values": [
                    2.59674853515625,
                    2.571356689453125
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 49.14760612661447
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 253,
                "total": 5.169231868743895,
                "mean": 0.020431746516774294,
                "stdev": 0.0014154096794369102,
                "p50": 0.02017791938781738,
                "p90": 0.020888576507568358,
                "p95": 0.021062041091918945,
                "p99": 0.021587517700195312,
                "values": [
                    0.020855808258056642,
                    0.020970495223999023,
                    0.020955135345458984,
                    0.02083839988708496,
                    0.0208721923828125,
                    0.020757503509521484,
                    0.020839424133300782,
                    0.020595712661743162,
                    0.020686847686767578,
                    0.020774911880493165,
                    0.020884479522705078,
                    0.02087014389038086,
                    0.020747264862060546,
                    0.021082111358642578,
                    0.021008384704589843,
                    0.021021696090698243,
                    0.02083839988708496,
                    0.020749311447143554,
                    0.020909055709838868,
                    0.02124083137512207,
                    0.021817344665527344,
                    0.02106879997253418,
                    0.02123161506652832,
                    0.02088960075378418,
                    0.020558847427368163,
                    0.020716543197631835,
                    0.021120000839233398,
                    0.02105753517150879,
                    0.0208353271484375,
                    0.020992000579833983,
                    0.02083839988708496,
                    0.020625408172607423,
                    0.021214208602905273,
                    0.021745664596557617,
                    0.020733951568603515,
                    0.020603904724121092,
                    0.02065510368347168,
                    0.02061414337158203,
                    0.020692991256713866,
                    0.02043391990661621,
                    0.021441535949707033,
                    0.020988927841186524,
                    0.021102592468261717,
                    0.020720640182495118,
                    0.020562944412231447,
                    0.02045747184753418,
                    0.020471807479858398,
                    0.020455423355102538,
                    0.02031718444824219,
                    0.020164608001708984,
                    0.020145151138305666,
                    0.020136959075927736,
                    0.020151296615600587,
                    0.02010419273376465,
                    0.020173824310302735,
                    0.020115455627441405,
                    0.020159488677978517,
                    0.020133888244628906,
                    0.02016972732543945,
                    0.020134912490844727,
                    0.020123647689819335,
                    0.020172800064086914,
                    0.020185087203979494,
                    0.020172800064086914,
                    0.02020147132873535,
                    0.020157440185546875,
                    0.020304895401000975,
                    0.02020966339111328,
                    0.020196352005004883,
                    0.020185087203979494,
                    0.020153343200683595,
                    0.020135936737060548,
                    0.020158464431762696,
                    0.020115455627441405,
                    0.020157440185546875,
                    0.020149248123168945,
                    0.020133888244628906,
                    0.020122623443603514,
                    0.0200949764251709,
                    0.020305919647216796,
                    0.02009600067138672,
                    0.020076543807983398,
                    0.020143104553222657,
                    0.020107263565063475,
                    0.02007347106933594,
                    0.02009702491760254,
                    0.020123647689819335,
                    0.020157440185546875,
                    0.020144128799438478,
                    0.020106239318847655,
                    0.02131455993652344,
                    0.020198400497436524,
                    0.020230144500732423,
                    0.020199424743652345,
                    0.020198400497436524,
                    0.020129791259765627,
                    0.020131839752197265,
                    0.020144128799438478,
                    0.020122623443603514,
                    0.02011955261230469,
                    0.020139007568359374,
                    0.02012876892089844,
                    0.020389888763427736,
                    0.020172800064086914,
                    0.02017791938781738,
                    0.020133888244628906,
                    0.020132863998413086,
                    0.020151296615600587,
                    0.020134912490844727,
                    0.020141056060791016,
                    0.020146175384521483,
                    0.020175872802734376,
                    0.020200447082519533,
                    0.020179967880249023,
                    0.020197376251220703,
                    0.020208639144897463,
                    0.02021683120727539,
                    0.02027008056640625,
                    0.020179967880249023,
                    0.020160512924194338,
                    0.020152320861816408,
                    0.020151296615600587,
                    0.020117504119873047,
                    0.020124671936035156,
                    0.020189184188842774,
                    0.020130815505981444,
                    0.04225228881835937,
                    0.020150272369384766,
                    0.02020249557495117,
                    0.020163583755493163,
                    0.021106687545776368,
                    0.02082918357849121,
                    0.02081279945373535,
                    0.020171775817871093,
                    0.02021785545349121,
                    0.020173824310302735,
                    0.020172800064086914,
                    0.02018611145019531,
                    0.021005311965942384,
                    0.020330495834350586,
                    0.02008883285522461,
                    0.020114431381225584,
                    0.020145151138305666,
                    0.020143104553222657,
                    0.020163583755493163,
                    0.020148223876953125,
                    0.020182016372680665,
                    0.020183040618896485,
                    0.020168703079223634,
                    0.0202106876373291,
                    0.020145151138305666,
                    0.020213760375976563,
                    0.020157440185546875,
                    0.020139007568359374,
                    0.020187135696411132,
                    0.020132863998413086,
                    0.020135936737060548,
                    0.020168703079223634,
                    0.020157440185546875,
                    0.020154367446899413,
                    0.020528127670288086,
                    0.020159488677978517,
                    0.020131839752197265,
                    0.020118528366088868,
                    0.02024550437927246,
                    0.020185087203979494,
                    0.020151296615600587,
                    0.020184064865112306,
                    0.020162559509277343,
                    0.020163583755493163,
                    0.020162559509277343,
                    0.02011238479614258,
                    0.02025984001159668,
                    0.020191232681274415,
                    0.020195327758789062,
                    0.020163583755493163,
                    0.020125696182250977,
                    0.02016972732543945,
                    0.020184064865112306,
                    0.020200447082519533,
                    0.020166656494140626,
                    0.020155391693115234,
                    0.020165632247924805,
                    0.020167680740356447,
                    0.020141056060791016,
                    0.020114431381225584,
                    0.020131839752197265,
                    0.020115455627441405,
                    0.021019647598266602,
                    0.020445184707641603,
                    0.020779008865356444,
                    0.02022707176208496,
                    0.020107263565063475,
                    0.020171775817871093,
                    0.020156415939331054,
                    0.020222976684570314,
                    0.020173824310302735,
                    0.020165632247924805,
                    0.020117504119873047,
                    0.02026700782775879,
                    0.020151296615600587,
                    0.02021887969970703,
                    0.020242431640625,
                    0.020179967880249023,
                    0.020170751571655272,
                    0.020166656494140626,
                    0.020151296615600587,
                    0.020279296875,
                    0.020187135696411132,
                    0.020158464431762696,
                    0.020126720428466797,
                    0.02019327926635742,
                    0.020167680740356447,
                    0.020157440185546875,
                    0.0206878719329834,
                    0.020200447082519533,
                    0.020135936737060548,
                    0.020207616806030275,
                    0.020147199630737304,
                    0.020151296615600587,
                    0.020136959075927736,
                    0.020106239318847655,
                    0.020174848556518556,
                    0.02023526382446289,
                    0.020189184188842774,
                    0.020140031814575195,
                    0.020160512924194338,
                    0.02021171188354492,
                    0.020145151138305666,
                    0.020983808517456053,
                    0.020728832244873048,
                    0.020173824310302735,
                    0.020137983322143553,
                    0.020157440185546875,
                    0.020124671936035156,
                    0.020179967880249023,
                    0.02021683120727539,
                    0.020973567962646485,
                    0.020726783752441406,
                    0.020179967880249023,
                    0.020176895141601564,
                    0.020189184188842774,
                    0.02021990394592285,
                    0.020237312316894532,
                    0.020141056060791016,
                    0.02017791938781738,
                    0.020165632247924805,
                    0.020802560806274413,
                    0.020007936477661133,
                    0.020051967620849608,
                    0.020754432678222655,
                    0.020257791519165038,
                    0.020256767272949217
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 48.943441970514286
            },
            "energy": null,
            "efficiency": null
        }
    }
}