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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.216-204.855.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": "6aafe5f36d73e730c988ee090233eb757b33821c",
            "accelerate_version": "0.31.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": 1749.4016,
                "max_global_vram": 6793.199616,
                "max_process_vram": 0.0,
                "max_reserved": 6146.752512,
                "max_allocated": 5035.912192
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 0.051050144195556646,
                "mean": 0.025525072097778323,
                "stdev": 0.0035093917846679683,
                "p50": 0.025525072097778323,
                "p90": 0.028332585525512696,
                "p95": 0.02868352470397949,
                "p99": 0.02896427604675293,
                "values": [
                    0.02903446388244629,
                    0.022015680313110353
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 274.2401656373489
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1749.42208,
                "max_global_vram": 6793.199616,
                "max_process_vram": 0.0,
                "max_reserved": 6146.752512,
                "max_allocated": 5035.912704
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 5.172984619140625,
                "mean": 2.5864923095703123,
                "stdev": 0.022647338867187505,
                "p50": 2.5864923095703123,
                "p90": 2.6046101806640625,
                "p95": 2.6068749145507812,
                "p99": 2.6086867016601563,
                "values": [
                    2.6091396484375,
                    2.563844970703125
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 49.101247867656795
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 253,
                "total": 5.173722124099733,
                "mean": 0.020449494561659017,
                "stdev": 0.0014781158429572163,
                "p50": 0.02040934371948242,
                "p90": 0.02116689987182617,
                "p95": 0.021341594314575194,
                "p99": 0.02182475807189941,
                "values": [
                    0.02229862403869629,
                    0.02142617607116699,
                    0.021303295135498047,
                    0.021361663818359376,
                    0.020488191604614257,
                    0.020607999801635742,
                    0.02040115165710449,
                    0.02028646469116211,
                    0.020377599716186523,
                    0.020824064254760744,
                    0.020814847946166993,
                    0.020313087463378905,
                    0.020642816543579103,
                    0.020762624740600585,
                    0.021167104721069335,
                    0.02124083137512207,
                    0.021166080474853514,
                    0.021003263473510742,
                    0.022004735946655272,
                    0.02090598487854004,
                    0.020332544326782227,
                    0.021255168914794922,
                    0.021303295135498047,
                    0.0214466552734375,
                    0.021179391860961915,
                    0.021342208862304687,
                    0.02147327995300293,
                    0.02146303939819336,
                    0.02123980712890625,
                    0.021325824737548828,
                    0.020969472885131835,
                    0.021145599365234375,
                    0.021242879867553712,
                    0.021341184616088867,
                    0.020959232330322267,
                    0.021029888153076173,
                    0.020599807739257812,
                    0.02165862464904785,
                    0.02148454475402832,
                    0.020254720687866212,
                    0.020257791519165038,
                    0.020135936737060548,
                    0.02086092758178711,
                    0.02126950454711914,
                    0.02092748832702637,
                    0.020769792556762694,
                    0.02041753578186035,
                    0.020555776596069338,
                    0.020164608001708984,
                    0.02040934371948242,
                    0.020166656494140626,
                    0.019740671157836915,
                    0.02042265510559082,
                    0.020387840270996094,
                    0.020404224395751954,
                    0.020418560028076172,
                    0.02039193534851074,
                    0.020445184707641603,
                    0.02040934371948242,
                    0.019787776947021486,
                    0.019752960205078125,
                    0.01978982353210449,
                    0.020420608520507814,
                    0.020179967880249023,
                    0.01976531219482422,
                    0.01979897689819336,
                    0.020574207305908202,
                    0.020254720687866212,
                    0.020349952697753908,
                    0.019569664001464843,
                    0.019599359512329103,
                    0.019748863220214845,
                    0.020328447341918944,
                    0.020328447341918944,
                    0.02039193534851074,
                    0.020554752349853517,
                    0.020508672714233397,
                    0.020579328536987306,
                    0.02044313621520996,
                    0.02047488021850586,
                    0.020418624877929687,
                    0.02016966438293457,
                    0.02048409652709961,
                    0.019810304641723633,
                    0.019753984451293945,
                    0.01972428894042969,
                    0.019741695404052736,
                    0.02069606399536133,
                    0.019715072631835938,
                    0.019731456756591798,
                    0.019747840881347657,
                    0.02020249557495117,
                    0.020445184707641603,
                    0.02025164794921875,
                    0.02047385597229004,
                    0.019783679962158202,
                    0.01978982353210449,
                    0.020455423355102538,
                    0.020477951049804686,
                    0.02048409652709961,
                    0.020511743545532226,
                    0.020547584533691408,
                    0.020551679611206054,
                    0.020676607131958007,
                    0.020512767791748047,
                    0.020396032333374024,
                    0.020354047775268554,
                    0.020578304290771485,
                    0.020503551483154296,
                    0.020535295486450195,
                    0.020494335174560546,
                    0.02036735916137695,
                    0.020534271240234374,
                    0.020242431640625,
                    0.020632575988769532,
                    0.020533248901367186,
                    0.02124291229248047,
                    0.020615135192871094,
                    0.019770368576049805,
                    0.019787776947021486,
                    0.019752960205078125,
                    0.0208035831451416,
                    0.020955135345458984,
                    0.02025164794921875,
                    0.019769344329833984,
                    0.020360191345214843,
                    0.04239769744873047,
                    0.019763200759887696,
                    0.019751935958862304,
                    0.019761152267456054,
                    0.020091903686523437,
                    0.02023526382446289,
                    0.020157440185546875,
                    0.020518911361694335,
                    0.020876287460327148,
                    0.020582399368286132,
                    0.02046156883239746,
                    0.020553728103637696,
                    0.020579328536987306,
                    0.020600831985473633,
                    0.020575231552124023,
                    0.020632575988769532,
                    0.01978982353210449,
                    0.019781631469726564,
                    0.020039680480957032,
                    0.020616191864013672,
                    0.020559871673583984,
                    0.020632575988769532,
                    0.02053222465515137,
                    0.02062233543395996,
                    0.020525056838989256,
                    0.019775487899780272,
                    0.019809280395507813,
                    0.019772415161132813,
                    0.019768320083618163,
                    0.020290559768676757,
                    0.020548608779907225,
                    0.02062441635131836,
                    0.019742687225341796,
                    0.019854335784912108,
                    0.02020966339111328,
                    0.019612672805786133,
                    0.019703807830810546,
                    0.020566015243530272,
                    0.021005311965942384,
                    0.02064588737487793,
                    0.02039193534851074,
                    0.02049945640563965,
                    0.02045132827758789,
                    0.020539392471313478,
                    0.020723712921142577,
                    0.020280319213867186,
                    0.02048409652709961,
                    0.020551679611206054,
                    0.020526079177856444,
                    0.02056809616088867,
                    0.02046460723876953,
                    0.020559871673583984,
                    0.020140031814575195,
                    0.021001216888427734,
                    0.021124095916748048,
                    0.02068889617919922,
                    0.021514240264892577,
                    0.01985843276977539,
                    0.020135936737060548,
                    0.01979084777832031,
                    0.019763200759887696,
                    0.019746816635131836,
                    0.019709951400756837,
                    0.020139007568359374,
                    0.020762624740600585,
                    0.020512767791748047,
                    0.019733503341674806,
                    0.019755008697509766,
                    0.020165632247924805,
                    0.020040704727172853,
                    0.020510719299316405,
                    0.02003046417236328,
                    0.020602880477905275,
                    0.02065715217590332,
                    0.020539392471313478,
                    0.02103398323059082,
                    0.020580352783203124,
                    0.01979804801940918,
                    0.019803104400634767,
                    0.019759103775024413,
                    0.019729408264160156,
                    0.019775487899780272,
                    0.0198287353515625,
                    0.01985024070739746,
                    0.01980620765686035,
                    0.0198154239654541,
                    0.019800064086914062,
                    0.019760128021240234,
                    0.021198848724365234,
                    0.02050764846801758,
                    0.021567487716674806,
                    0.02061516761779785,
                    0.020488191604614257,
                    0.02049843215942383,
                    0.0204400634765625,
                    0.0204902400970459,
                    0.019834880828857423,
                    0.020620288848876952,
                    0.01989017677307129,
                    0.019771392822265626,
                    0.01978265571594238,
                    0.019811328887939454,
                    0.019755008697509766,
                    0.020376575469970702,
                    0.01982259178161621,
                    0.019760128021240234,
                    0.019793920516967774,
                    0.019758079528808595,
                    0.020254720687866212,
                    0.019788799285888673,
                    0.0198287353515625,
                    0.01983180809020996,
                    0.019763200759887696,
                    0.019768320083618163,
                    0.019772415161132813,
                    0.019742719650268553,
                    0.019773439407348634,
                    0.019785728454589844,
                    0.019745792388916016,
                    0.019779584884643556,
                    0.019762176513671875,
                    0.019783679962158202,
                    0.019766271591186522,
                    0.019796991348266603,
                    0.019793920516967774,
                    0.019751935958862304,
                    0.019736576080322265
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 48.90096412822403
            },
            "energy": null,
            "efficiency": null
        }
    }
}