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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.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": 1706.323968,
                "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.03991440010070801,
                "mean": 0.019957200050354004,
                "stdev": 0.0005659360885620114,
                "p50": 0.019957200050354004,
                "p90": 0.020409948921203614,
                "p95": 0.020466542530059813,
                "p99": 0.020511817417144775,
                "values": [
                    0.020523136138916015,
                    0.019391263961791992
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 350.75060541249786
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1706.41408,
                "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.7911008300781255,
                "mean": 2.3955504150390627,
                "stdev": 0.013366821289062303,
                "p50": 2.3955504150390627,
                "p90": 2.4062438720703123,
                "p95": 2.407580554199219,
                "p99": 2.408649899902344,
                "values": [
                    2.408917236328125,
                    2.38218359375
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 53.014956063001115
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 253,
                "total": 4.7906600875854455,
                "mean": 0.018935415365950392,
                "stdev": 0.0012366286068722508,
                "p50": 0.018754560470581053,
                "p90": 0.01928151092529297,
                "p95": 0.019413811111450196,
                "p99": 0.019783474807739256,
                "values": [
                    0.01962495994567871,
                    0.01942425537109375,
                    0.01926348876953125,
                    0.01923583984375,
                    0.019217439651489258,
                    0.019110879898071288,
                    0.01924095916748047,
                    0.019083263397216797,
                    0.019056640625,
                    0.019066879272460938,
                    0.019471359252929688,
                    0.019381248474121093,
                    0.01921433639526367,
                    0.019110912322998046,
                    0.01946214485168457,
                    0.019353599548339845,
                    0.019316736221313476,
                    0.019054592132568358,
                    0.01918156814575195,
                    0.0192225284576416,
                    0.01919795227050781,
                    0.018985984802246093,
                    0.01903411293029785,
                    0.019149824142456053,
                    0.01901260757446289,
                    0.01899622344970703,
                    0.01901158332824707,
                    0.019140607833862306,
                    0.01943756866455078,
                    0.01941094398498535,
                    0.01921023941040039,
                    0.019180543899536134,
                    0.019381248474121093,
                    0.019072000503540038,
                    0.019134464263916014,
                    0.019153919219970703,
                    0.01941094398498535,
                    0.01897881507873535,
                    0.019076095581054688,
                    0.018993152618408202,
                    0.01905356788635254,
                    0.01903923225402832,
                    0.018990079879760743,
                    0.018960384368896483,
                    0.018994176864624023,
                    0.018868223190307617,
                    0.018902015686035157,
                    0.018990079879760743,
                    0.01889587211608887,
                    0.018553855895996094,
                    0.018911231994628908,
                    0.019292160034179686,
                    0.01924710464477539,
                    0.019108863830566408,
                    0.019192832946777344,
                    0.019123199462890626,
                    0.018724863052368163,
                    0.01869004821777344,
                    0.018728960037231446,
                    0.018753536224365236,
                    0.018736127853393555,
                    0.018733055114746093,
                    0.018723840713500976,
                    0.018683904647827147,
                    0.018757631301879883,
                    0.018733055114746093,
                    0.018909183502197266,
                    0.018751487731933594,
                    0.018708480834960937,
                    0.018749439239501953,
                    0.018705408096313478,
                    0.018694143295288086,
                    0.018699264526367186,
                    0.018741247177124023,
                    0.018667520523071288,
                    0.018683904647827147,
                    0.018715648651123046,
                    0.01881497573852539,
                    0.018737152099609376,
                    0.018701311111450195,
                    0.018766847610473633,
                    0.018707456588745116,
                    0.0187064323425293,
                    0.018737152099609376,
                    0.018782207489013672,
                    0.01880575942993164,
                    0.018737152099609376,
                    0.018707456588745116,
                    0.018722816467285155,
                    0.018739200592041014,
                    0.018695167541503906,
                    0.018762752532958983,
                    0.01878835105895996,
                    0.018709503173828124,
                    0.018771968841552734,
                    0.018695167541503906,
                    0.018721792221069337,
                    0.018701311111450195,
                    0.018883583068847656,
                    0.018762752532958983,
                    0.019603456497192383,
                    0.01985536003112793,
                    0.019717119216918946,
                    0.019418111801147463,
                    0.019382272720336914,
                    0.018775039672851563,
                    0.018683904647827147,
                    0.018727935791015626,
                    0.01876479911804199,
                    0.018708480834960937,
                    0.018733055114746093,
                    0.019575904846191407,
                    0.01880361557006836,
                    0.01878937530517578,
                    0.018808832168579103,
                    0.018783296585083008,
                    0.018760639190673827,
                    0.01864806365966797,
                    0.018769920349121092,
                    0.018714624404907225,
                    0.018758655548095703,
                    0.018753536224365236,
                    0.018689023971557618,
                    0.018721792221069337,
                    0.018731008529663085,
                    0.018752511978149415,
                    0.0381030387878418,
                    0.018576383590698242,
                    0.018555904388427736,
                    0.018647039413452148,
                    0.018552831649780274,
                    0.018586624145507814,
                    0.018619392395019533,
                    0.018573312759399413,
                    0.018543615341186523,
                    0.01863270378112793,
                    0.01861427116394043,
                    0.018597888946533202,
                    0.018431999206542968,
                    0.018447391510009764,
                    0.01845039939880371,
                    0.01865830421447754,
                    0.01862758445739746,
                    0.01864396858215332,
                    0.018611200332641603,
                    0.018723840713500976,
                    0.018637823104858398,
                    0.01860505676269531,
                    0.018597888946533202,
                    0.018663423538208008,
                    0.018753536224365236,
                    0.01859174346923828,
                    0.01862041664123535,
                    0.018611200332641603,
                    0.018817024230957033,
                    0.018646015167236327,
                    0.01948876762390137,
                    0.019286016464233398,
                    0.01904435157775879,
                    0.01919385528564453,
                    0.019286016464233398,
                    0.018646015167236327,
                    0.01862553596496582,
                    0.01867263984680176,
                    0.018726911544799805,
                    0.018663423538208008,
                    0.01868083190917969,
                    0.018663423538208008,
                    0.01866649627685547,
                    0.018634752273559572,
                    0.01860812759399414,
                    0.01860710334777832,
                    0.019366912841796875,
                    0.01867263984680176,
                    0.01863577651977539,
                    0.018671615600585938,
                    0.01862758445739746,
                    0.01863577651977539,
                    0.018663423538208008,
                    0.01862860870361328,
                    0.018659328460693358,
                    0.01862758445739746,
                    0.01860812759399414,
                    0.01879347229003906,
                    0.018791423797607423,
                    0.01880575942993164,
                    0.01901055908203125,
                    0.018790399551391602,
                    0.01880985641479492,
                    0.018761728286743166,
                    0.018741247177124023,
                    0.018876415252685547,
                    0.018753536224365236,
                    0.018771968841552734,
                    0.018767871856689454,
                    0.018744319915771485,
                    0.01925119972229004,
                    0.019324928283691405,
                    0.019338239669799806,
                    0.018784255981445314,
                    0.018777088165283205,
                    0.018739200592041014,
                    0.018824192047119142,
                    0.019021823883056642,
                    0.018783231735229493,
                    0.018800640106201173,
                    0.01879654312133789,
                    0.018785280227661134,
                    0.01878835105895996,
                    0.018738176345825194,
                    0.01880473518371582,
                    0.018777151107788086,
                    0.01874937629699707,
                    0.0186060791015625,
                    0.018573312759399413,
                    0.018729984283447267,
                    0.018754560470581053,
                    0.018751487731933594,
                    0.01925324821472168,
                    0.018840576171875,
                    0.018588672637939452,
                    0.018733055114746093,
                    0.018791423797607423,
                    0.018760704040527345,
                    0.018714624404907225,
                    0.01875660705566406,
                    0.018746368408203123,
                    0.01864908790588379,
                    0.018747392654418944,
                    0.018745344161987306,
                    0.018727935791015626,
                    0.018792448043823243,
                    0.018754560470581053,
                    0.018709503173828124,
                    0.018723840713500976,
                    0.018748416900634765,
                    0.018714624404907225,
                    0.018749439239501953,
                    0.018762752532958983,
                    0.018678783416748047,
                    0.018735103607177735,
                    0.018684959411621092,
                    0.01870025634765625,
                    0.018696191787719727,
                    0.018787328720092773,
                    0.01879859161376953,
                    0.018784255981445314,
                    0.018769920349121092,
                    0.018731008529663085,
                    0.018670591354370117,
                    0.018719743728637696,
                    0.018915327072143554,
                    0.019960832595825196
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 52.811093956681674
            },
            "energy": null,
            "efficiency": null
        }
    }
}