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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
{
    "config": {
        "name": "pytorch_generate",
        "backend": {
            "name": "pytorch",
            "version": "2.4.0+cu121",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "text-generation",
            "library": "transformers",
            "model_type": "gemma",
            "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": {},
            "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,
            "memory": true,
            "latency": 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",
            "numactl": false,
            "numactl_kwargs": {},
            "start_method": "spawn"
        },
        "environment": {
            "cpu": " AMD EPYC 7R32",
            "cpu_count": 16,
            "cpu_ram_mb": 66697.261056,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.10.223-211.872.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.4.0",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.45.0.dev0",
            "transformers_commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594",
            "accelerate_version": "0.34.0.dev0",
            "accelerate_commit": null,
            "diffusers_version": null,
            "diffusers_commit": null,
            "optimum_version": "1.22.0.dev0",
            "optimum_commit": null,
            "timm_version": "0.9.16",
            "timm_commit": null,
            "peft_version": "0.12.1.dev0",
            "peft_commit": null
        }
    },
    "report": {
        "load": {
            "memory": {
                "unit": "MB",
                "max_ram": 1319.40352,
                "max_global_vram": 6768.033792,
                "max_process_vram": 0.0,
                "max_reserved": 6138.363904,
                "max_allocated": 6060.931072
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 11.5728916015625,
                "mean": 11.5728916015625,
                "stdev": 0.0,
                "p50": 11.5728916015625,
                "p90": 11.5728916015625,
                "p95": 11.5728916015625,
                "p99": 11.5728916015625,
                "values": [
                    11.5728916015625
                ]
            },
            "throughput": null,
            "energy": null,
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 1728.524288,
                "max_global_vram": 6789.005312,
                "max_process_vram": 0.0,
                "max_reserved": 6142.558208,
                "max_allocated": 5028.431872
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 0.040394847869873046,
                "mean": 0.020197423934936523,
                "stdev": 8.094406127929707e-05,
                "p50": 0.020197423934936523,
                "p90": 0.02026217918395996,
                "p95": 0.02027027359008789,
                "p99": 0.020276749114990233,
                "values": [
                    0.020116479873657226,
                    0.02027836799621582
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 346.57885196397444
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1782.74304,
                "max_global_vram": 6793.199616,
                "max_process_vram": 0.0,
                "max_reserved": 6146.752512,
                "max_allocated": 5031.801344
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 4.8704921875,
                "mean": 2.43524609375,
                "stdev": 0.02477026367187518,
                "p50": 2.43524609375,
                "p90": 2.4550623046875,
                "p95": 2.457539331054688,
                "p99": 2.459520952148438,
                "values": [
                    2.460016357421875,
                    2.410475830078125
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 52.15078686541882
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 254,
                "total": 4.870174730300905,
                "mean": 0.019173916261027178,
                "stdev": 0.0004666005679776078,
                "p50": 0.018908160209655762,
                "p90": 0.01982064628601074,
                "p95": 0.01986667594909668,
                "p99": 0.020099061374664304,
                "values": [
                    0.018741247177124023,
                    0.018746368408203123,
                    0.018759679794311524,
                    0.01882009506225586,
                    0.018799615859985352,
                    0.018832384109497072,
                    0.01880166435241699,
                    0.01883545684814453,
                    0.0188272647857666,
                    0.01881395149230957,
                    0.0188221435546875,
                    0.018745344161987306,
                    0.01884774398803711,
                    0.01883545684814453,
                    0.01879859161376953,
                    0.020090879440307616,
                    0.019714048385620117,
                    0.019001344680786132,
                    0.0188272647857666,
                    0.018844671249389648,
                    0.01880473518371582,
                    0.01884569549560547,
                    0.01883135986328125,
                    0.01883340835571289,
                    0.01882316780090332,
                    0.01881292724609375,
                    0.01884364891052246,
                    0.018799615859985352,
                    0.018856960296630858,
                    0.01881395149230957,
                    0.01880575942993164,
                    0.01884364891052246,
                    0.01883750343322754,
                    0.01884876823425293,
                    0.018874368667602538,
                    0.018807807922363282,
                    0.018792448043823243,
                    0.018832384109497072,
                    0.0191016960144043,
                    0.019580928802490235,
                    0.01963417625427246,
                    0.019594240188598632,
                    0.01968639945983887,
                    0.020108287811279296,
                    0.019725311279296876,
                    0.019700735092163087,
                    0.019698688507080078,
                    0.01961369514465332,
                    0.019586048126220702,
                    0.019589120864868165,
                    0.01882111930847168,
                    0.01879347229003906,
                    0.01879347229003906,
                    0.018811904907226562,
                    0.01879654312133789,
                    0.01880268859863281,
                    0.018811904907226562,
                    0.018941951751708985,
                    0.018910207748413087,
                    0.019944448471069336,
                    0.020533248901367186,
                    0.019939327239990236,
                    0.019562496185302734,
                    0.019731456756591798,
                    0.019698688507080078,
                    0.018909183502197266,
                    0.018954240798950195,
                    0.019104768753051758,
                    0.019937280654907227,
                    0.01984000015258789,
                    0.019802112579345704,
                    0.019818496704101563,
                    0.019747840881347657,
                    0.019853311538696287,
                    0.019766271591186522,
                    0.019761152267456054,
                    0.019739648818969727,
                    0.01981439971923828,
                    0.019548160552978516,
                    0.019607551574707033,
                    0.019537919998168944,
                    0.02000383949279785,
                    0.019721216201782226,
                    0.019809280395507813,
                    0.019764223098754884,
                    0.019901439666748046,
                    0.019817472457885742,
                    0.01983078384399414,
                    0.019751935958862304,
                    0.01988198471069336,
                    0.019769344329833984,
                    0.019803136825561524,
                    0.019705856323242187,
                    0.01981439971923828,
                    0.01979903984069824,
                    0.019776512145996093,
                    0.019741695404052736,
                    0.019804159164428712,
                    0.019760128021240234,
                    0.019943424224853516,
                    0.019766271591186522,
                    0.01983897590637207,
                    0.01982464027404785,
                    0.019809280395507813,
                    0.019786752700805665,
                    0.01982156753540039,
                    0.01982771110534668,
                    0.019775487899780272,
                    0.01985843276977539,
                    0.01984819221496582,
                    0.019791872024536132,
                    0.01985536003112793,
                    0.019768320083618163,
                    0.019745792388916016,
                    0.019726335525512697,
                    0.019833856582641602,
                    0.019777536392211914,
                    0.020148223876953125,
                    0.019787776947021486,
                    0.018874368667602538,
                    0.01885798454284668,
                    0.018910207748413087,
                    0.018946048736572265,
                    0.018913280487060546,
                    0.018899967193603515,
                    0.01889587211608887,
                    0.018894847869873048,
                    0.018704383850097657,
                    0.01868083190917969,
                    0.018723840713500976,
                    0.01879449653625488,
                    0.018754560470581053,
                    0.018776063919067384,
                    0.018785280227661134,
                    0.018755584716796874,
                    0.018733055114746093,
                    0.018720767974853517,
                    0.018784255981445314,
                    0.018749439239501953,
                    0.01877299118041992,
                    0.018792448043823243,
                    0.018771968841552734,
                    0.0188221435546875,
                    0.018746368408203123,
                    0.018770944595336913,
                    0.018749439239501953,
                    0.018770944595336913,
                    0.018720767974853517,
                    0.018761728286743166,
                    0.01879449653625488,
                    0.01876479911804199,
                    0.018758655548095703,
                    0.018765823364257812,
                    0.018800640106201173,
                    0.018708480834960937,
                    0.018757631301879883,
                    0.018790399551391602,
                    0.018762752532958983,
                    0.01875660705566406,
                    0.018711551666259766,
                    0.018733055114746093,
                    0.018748416900634765,
                    0.018762752532958983,
                    0.018770944595336913,
                    0.018712575912475587,
                    0.0187064323425293,
                    0.018767871856689454,
                    0.018753536224365236,
                    0.018744319915771485,
                    0.018760704040527345,
                    0.018771968841552734,
                    0.018733055114746093,
                    0.018749439239501953,
                    0.018769920349121092,
                    0.018760704040527345,
                    0.018739200592041014,
                    0.01885491180419922,
                    0.018751487731933594,
                    0.018742271423339844,
                    0.018733055114746093,
                    0.018739200592041014,
                    0.01881088066101074,
                    0.018766847610473633,
                    0.018727935791015626,
                    0.01886720085144043,
                    0.01884364891052246,
                    0.018885631561279297,
                    0.018876415252685547,
                    0.01882316780090332,
                    0.018889728546142577,
                    0.018893823623657227,
                    0.018881536483764647,
                    0.01887129592895508,
                    0.018888704299926756,
                    0.018894847869873048,
                    0.018919424057006837,
                    0.018945024490356444,
                    0.018912256240844725,
                    0.018925567626953126,
                    0.01885798454284668,
                    0.018972671508789063,
                    0.019853311538696287,
                    0.01983078384399414,
                    0.01977446365356445,
                    0.019714048385620117,
                    0.019713024139404296,
                    0.019901439666748046,
                    0.01999564743041992,
                    0.019776512145996093,
                    0.019759103775024413,
                    0.019773439407348634,
                    0.019763200759887696,
                    0.019757055282592775,
                    0.01964339256286621,
                    0.019729408264160156,
                    0.019708927154541016,
                    0.019746816635131836,
                    0.01965363121032715,
                    0.019755008697509766,
                    0.019747840881347657,
                    0.019759103775024413,
                    0.018876415252685547,
                    0.01904537582397461,
                    0.018874368667602538,
                    0.018927616119384767,
                    0.018907136917114258,
                    0.018949119567871094,
                    0.018990079879760743,
                    0.018914304733276367,
                    0.018959360122680666,
                    0.01900339126586914,
                    0.018944000244140623,
                    0.01901670455932617,
                    0.018948095321655273,
                    0.018921472549438476,
                    0.018961408615112304,
                    0.018893823623657227,
                    0.018964479446411133,
                    0.018936832427978514,
                    0.018910207748413087,
                    0.018916351318359375,
                    0.018883583068847656,
                    0.01883340835571289,
                    0.0188590087890625,
                    0.01887027168273926,
                    0.01887948799133301,
                    0.018914304733276367,
                    0.019050495147705078,
                    0.018976768493652343,
                    0.018914304733276367,
                    0.018919424057006837,
                    0.018948095321655273,
                    0.018902015686035157,
                    0.01887948799133301
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 52.154186259413045
            },
            "energy": null,
            "efficiency": null
        }
    }
}