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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
{
    "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": "48681e6e5ef08e5af8b3feb5683f044321605f1f",
            "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": 1761.93536,
                "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.043588544845581056,
                "mean": 0.021794272422790528,
                "stdev": 0.0004095678329467771,
                "p50": 0.021794272422790528,
                "p90": 0.02212192668914795,
                "p95": 0.022162883472442628,
                "p99": 0.02219564889907837,
                "values": [
                    0.022203840255737305,
                    0.02138470458984375
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 321.1853033772312
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1761.951744,
                "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.105079345703125,
                "mean": 2.5525396728515624,
                "stdev": 0.012915405273437486,
                "p50": 2.5525396728515624,
                "p90": 2.5628719970703124,
                "p95": 2.564163537597656,
                "p99": 2.565196770019531,
                "values": [
                    2.565455078125,
                    2.539624267578125
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 49.7543686982629
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 253,
                "total": 5.1058012218475355,
                "mean": 0.020181032497421085,
                "stdev": 0.0014170361689444676,
                "p50": 0.019922943115234376,
                "p90": 0.020541849136352538,
                "p95": 0.0207728645324707,
                "p99": 0.021574983978271484,
                "values": [
                    0.02147225570678711,
                    0.021646335601806642,
                    0.020923391342163086,
                    0.020625408172607423,
                    0.020570112228393556,
                    0.02042572784423828,
                    0.020533248901367186,
                    0.020220928192138672,
                    0.02039193534851074,
                    0.02039910316467285,
                    0.02063974380493164,
                    0.020610048294067384,
                    0.020404224395751954,
                    0.02150912094116211,
                    0.020775936126708985,
                    0.020750335693359375,
                    0.0204083194732666,
                    0.020410367965698242,
                    0.020470783233642577,
                    0.02046156883239746,
                    0.020215808868408205,
                    0.020337663650512695,
                    0.020405248641967775,
                    0.020313087463378905,
                    0.020371456146240235,
                    0.020322303771972656,
                    0.020560895919799805,
                    0.020728832244873048,
                    0.02083020782470703,
                    0.020509695053100584,
                    0.020770816802978515,
                    0.020563968658447264,
                    0.020411392211914063,
                    0.02044825553894043,
                    0.0206376953125,
                    0.020535295486450195,
                    0.020330495834350586,
                    0.02086809539794922,
                    0.020332544326782227,
                    0.020362239837646484,
                    0.02023423957824707,
                    0.02020249557495117,
                    0.02042470359802246,
                    0.020092927932739257,
                    0.02039910316467285,
                    0.02069196891784668,
                    0.02390425682067871,
                    0.020922367095947265,
                    0.020159488677978517,
                    0.020011007308959963,
                    0.019885055541992186,
                    0.019894271850585937,
                    0.01986662483215332,
                    0.019826688766479493,
                    0.01982169532775879,
                    0.019912576675415038,
                    0.020314111709594726,
                    0.02029465675354004,
                    0.019936256408691407,
                    0.01983078384399414,
                    0.01983795166015625,
                    0.02027008056640625,
                    0.01979801559448242,
                    0.019785728454589844,
                    0.019812351226806642,
                    0.019761152267456054,
                    0.019775487899780272,
                    0.02007756805419922,
                    0.019934207916259765,
                    0.0198154239654541,
                    0.019777536392211914,
                    0.019786752700805665,
                    0.02000486373901367,
                    0.0198973445892334,
                    0.019796991348266603,
                    0.019752960205078125,
                    0.01987583923339844,
                    0.019964927673339843,
                    0.020543487548828124,
                    0.01981644821166992,
                    0.019817472457885742,
                    0.020248575210571287,
                    0.01982464027404785,
                    0.01980723190307617,
                    0.020011007308959963,
                    0.019876863479614256,
                    0.019810304641723633,
                    0.019800064086914062,
                    0.01977446365356445,
                    0.019818496704101563,
                    0.01989836883544922,
                    0.019796991348266603,
                    0.01982156753540039,
                    0.019781631469726564,
                    0.01984819221496582,
                    0.019963903427124022,
                    0.019825664520263672,
                    0.019989503860473632,
                    0.019779584884643556,
                    0.019793920516967774,
                    0.019813375473022463,
                    0.019833856582641602,
                    0.019826688766479493,
                    0.019809280395507813,
                    0.01984000015258789,
                    0.01979084777832031,
                    0.02026188850402832,
                    0.02046566390991211,
                    0.020558847427368163,
                    0.020340736389160157,
                    0.02033459281921387,
                    0.020114431381225584,
                    0.02024038314819336,
                    0.019895296096801757,
                    0.0198154239654541,
                    0.01988915252685547,
                    0.019929088592529298,
                    0.01984409523010254,
                    0.01979903984069824,
                    0.019793920516967774,
                    0.019819520950317384,
                    0.019869695663452147,
                    0.019899391174316407,
                    0.019903615951538087,
                    0.019782527923583985,
                    0.019781631469726564,
                    0.04165836715698242,
                    0.020165632247924805,
                    0.01982259178161621,
                    0.01984921646118164,
                    0.020185087203979494,
                    0.019910655975341796,
                    0.019869695663452147,
                    0.01983795166015625,
                    0.01983590316772461,
                    0.01983795166015625,
                    0.019878911972045898,
                    0.019894271850585937,
                    0.020125696182250977,
                    0.02030899238586426,
                    0.0198973445892334,
                    0.01986662483215332,
                    0.01983897590637207,
                    0.020141056060791016,
                    0.019878911972045898,
                    0.01987993621826172,
                    0.019960832595825196,
                    0.020928512573242186,
                    0.02032640075683594,
                    0.02011955261230469,
                    0.01979084777832031,
                    0.01986355209350586,
                    0.019803136825561524,
                    0.01988198471069336,
                    0.01979084777832031,
                    0.02004377555847168,
                    0.019756032943725587,
                    0.019833856582641602,
                    0.019968000411987305,
                    0.019909631729125975,
                    0.01986662483215332,
                    0.019939327239990236,
                    0.019914751052856446,
                    0.019886079788208007,
                    0.019732479095458985,
                    0.019779584884643556,
                    0.019896320343017578,
                    0.01985024070739746,
                    0.01979903984069824,
                    0.019927040100097656,
                    0.019733503341674806,
                    0.019612672805786133,
                    0.019588096618652344,
                    0.019796991348266603,
                    0.019801088333129883,
                    0.019861503601074217,
                    0.019825664520263672,
                    0.020396032333374024,
                    0.019998720169067383,
                    0.019842048645019532,
                    0.019976192474365235,
                    0.019887231826782228,
                    0.019818368911743163,
                    0.019893247604370116,
                    0.01982975959777832,
                    0.019886079788208007,
                    0.020009983062744142,
                    0.019912704467773438,
                    0.01998028755187988,
                    0.020382720947265624,
                    0.020023296356201172,
                    0.02082815933227539,
                    0.020534271240234374,
                    0.019932159423828123,
                    0.019922943115234376,
                    0.019817472457885742,
                    0.019973119735717772,
                    0.020082687377929686,
                    0.021325824737548828,
                    0.020512767791748047,
                    0.020339712142944336,
                    0.02043391990661621,
                    0.02008576011657715,
                    0.01982975959777832,
                    0.01978265571594238,
                    0.020380672454833985,
                    0.020157440185546875,
                    0.01985945510864258,
                    0.019851264953613282,
                    0.01967820739746094,
                    0.01964236831665039,
                    0.020281343460083007,
                    0.020143104553222657,
                    0.019941375732421874,
                    0.019963903427124022,
                    0.019802112579345704,
                    0.020343807220458983,
                    0.019957759857177734,
                    0.019780607223510743,
                    0.02043084716796875,
                    0.02031001663208008,
                    0.020156415939331054,
                    0.020221952438354493,
                    0.01981439971923828,
                    0.019775487899780272,
                    0.020314111709594726,
                    0.02045132827758789,
                    0.02030080032348633,
                    0.019801088333129883,
                    0.019793920516967774,
                    0.02003660774230957,
                    0.01999667167663574,
                    0.020322303771972656,
                    0.020180992126464844,
                    0.020307968139648438,
                    0.019842048645019532,
                    0.01987481689453125,
                    0.01985740852355957,
                    0.01986662483215332,
                    0.02029465675354004,
                    0.019805183410644533,
                    0.0198287353515625,
                    0.019802112579345704,
                    0.01982464027404785,
                    0.020039680480957032,
                    0.01979903984069824,
                    0.020230144500732423,
                    0.020279296875,
                    0.019813375473022463,
                    0.019810304641723633,
                    0.01982464027404785,
                    0.019776512145996093,
                    0.019767295837402343
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 49.55147860387168
            },
            "energy": null,
            "efficiency": null
        }
    }
}