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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.218-208.862.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": "1de7dc7403b3b89ec421d43a8c9ee245211a61f6",
            "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": 1764.80256,
                "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.04531289672851563,
                "mean": 0.022656448364257814,
                "stdev": 0.00025440025329589826,
                "p50": 0.022656448364257814,
                "p90": 0.022859968566894533,
                "p95": 0.02288540859222412,
                "p99": 0.022905760612487794,
                "values": [
                    0.02291084861755371,
                    0.022402048110961914
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 308.96281215210263
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1764.82304,
                "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.30516650390625,
                "mean": 2.652583251953125,
                "stdev": 0.005426025390625089,
                "p50": 2.652583251953125,
                "p90": 2.656924072265625,
                "p95": 2.6574666748046876,
                "p99": 2.6579007568359376,
                "values": [
                    2.65800927734375,
                    2.6471572265625
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 47.877856390176845
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 253,
                "total": 5.306186786651615,
                "mean": 0.020973070302970798,
                "stdev": 0.0014580768080943384,
                "p50": 0.02063052749633789,
                "p90": 0.021450136947631836,
                "p95": 0.02177372169494629,
                "p99": 0.022235545425415035,
                "values": [
                    0.02268262481689453,
                    0.02208153533935547,
                    0.021651456832885742,
                    0.021392383575439454,
                    0.022079488754272462,
                    0.022304767608642577,
                    0.0219238395690918,
                    0.02165247917175293,
                    0.021702655792236326,
                    0.021378047943115236,
                    0.021403648376464843,
                    0.02102681541442871,
                    0.021575679779052736,
                    0.02150092887878418,
                    0.022171648025512695,
                    0.02187468719482422,
                    0.021182464599609374,
                    0.02122956848144531,
                    0.021190656661987304,
                    0.021013504028320314,
                    0.020966400146484376,
                    0.02145382308959961,
                    0.02108415985107422,
                    0.020943872451782225,
                    0.021178367614746094,
                    0.021522432327270507,
                    0.021526527404785157,
                    0.02123263931274414,
                    0.0216627197265625,
                    0.021810176849365235,
                    0.021576704025268553,
                    0.0210565128326416,
                    0.021551103591918946,
                    0.020941823959350587,
                    0.021204992294311522,
                    0.021098495483398438,
                    0.021769216537475586,
                    0.02170675277709961,
                    0.02143436813354492,
                    0.02108415985107422,
                    0.020864000320434572,
                    0.020898815155029296,
                    0.021246976852416992,
                    0.021780479431152345,
                    0.02143539237976074,
                    0.02088755226135254,
                    0.020616191864013672,
                    0.02060492706298828,
                    0.020610048294067384,
                    0.020570112228393556,
                    0.020975616455078124,
                    0.021110784530639647,
                    0.020580352783203124,
                    0.020560895919799805,
                    0.020616191864013672,
                    0.020555776596069338,
                    0.020568063735961914,
                    0.020577280044555665,
                    0.02065715217590332,
                    0.020563968658447264,
                    0.020571136474609376,
                    0.020595712661743162,
                    0.02062131118774414,
                    0.020559871673583984,
                    0.020602880477905275,
                    0.02059775924682617,
                    0.02065100860595703,
                    0.020571136474609376,
                    0.020612096786499022,
                    0.020580352783203124,
                    0.020570112228393556,
                    0.020592639923095703,
                    0.02059878349304199,
                    0.02058956718444824,
                    0.02065715217590332,
                    0.02061516761779785,
                    0.020558847427368163,
                    0.020592639923095703,
                    0.020582399368286132,
                    0.02061311912536621,
                    0.02059775924682617,
                    0.020594688415527345,
                    0.020545536041259766,
                    0.020541439056396483,
                    0.02059878349304199,
                    0.020543487548828124,
                    0.02059878349304199,
                    0.020586496353149415,
                    0.02063871955871582,
                    0.0206561279296875,
                    0.020632575988769532,
                    0.02060492706298828,
                    0.020617216110229493,
                    0.020569087982177735,
                    0.020603904724121092,
                    0.02064691162109375,
                    0.020626432418823244,
                    0.020594688415527345,
                    0.02068889617919922,
                    0.021180416107177736,
                    0.020739072799682616,
                    0.020592639923095703,
                    0.020567039489746093,
                    0.02057318305969238,
                    0.020610048294067384,
                    0.02062848091125488,
                    0.020579328536987306,
                    0.020792320251464845,
                    0.020583423614501953,
                    0.020599807739257812,
                    0.020601856231689454,
                    0.020612096786499022,
                    0.020666368484497072,
                    0.02060492706298828,
                    0.02061414337158203,
                    0.020594688415527345,
                    0.020601856231689454,
                    0.020576255798339844,
                    0.020607999801635742,
                    0.02066227149963379,
                    0.02064793586730957,
                    0.020607999801635742,
                    0.020585472106933594,
                    0.020544511795043945,
                    0.020570112228393556,
                    0.020535295486450195,
                    0.04320153427124023,
                    0.02062131118774414,
                    0.020594688415527345,
                    0.020588544845581053,
                    0.020563968658447264,
                    0.020566015243530272,
                    0.020554752349853517,
                    0.020579328536987306,
                    0.020587520599365236,
                    0.02060697555541992,
                    0.020583423614501953,
                    0.020585472106933594,
                    0.020564992904663085,
                    0.020579328536987306,
                    0.020590591430664062,
                    0.020975616455078124,
                    0.020653055191040038,
                    0.020632575988769532,
                    0.020596736907958983,
                    0.020610048294067384,
                    0.020900863647460938,
                    0.020966400146484376,
                    0.020632575988769532,
                    0.020625408172607423,
                    0.02059775924682617,
                    0.02057318305969238,
                    0.020572160720825194,
                    0.02064793586730957,
                    0.020644863128662108,
                    0.020611072540283205,
                    0.02062950325012207,
                    0.020570112228393556,
                    0.020626432418823244,
                    0.02058137512207031,
                    0.02061516761779785,
                    0.020579328536987306,
                    0.020599807739257812,
                    0.02064896011352539,
                    0.02067865562438965,
                    0.020601856231689454,
                    0.02108006477355957,
                    0.020753408432006838,
                    0.02057318305969238,
                    0.020559871673583984,
                    0.020584447860717774,
                    0.020556800842285155,
                    0.020595712661743162,
                    0.020544511795043945,
                    0.02058137512207031,
                    0.020556800842285155,
                    0.020569087982177735,
                    0.02058137512207031,
                    0.020590591430664062,
                    0.020743167877197266,
                    0.021186559677124024,
                    0.020619264602661135,
                    0.02062335968017578,
                    0.020625408172607423,
                    0.02060492706298828,
                    0.020568063735961914,
                    0.020612096786499022,
                    0.020571136474609376,
                    0.02058137512207031,
                    0.0206059513092041,
                    0.020592639923095703,
                    0.02063052749633789,
                    0.020593664169311524,
                    0.020617216110229493,
                    0.02059878349304199,
                    0.021283840179443358,
                    0.022046720504760742,
                    0.021840896606445313,
                    0.021300224304199217,
                    0.021203968048095705,
                    0.021158912658691405,
                    0.02122854423522949,
                    0.021143552780151367,
                    0.021133312225341795,
                    0.021176319122314453,
                    0.02120806312561035,
                    0.02111692810058594,
                    0.02109542465209961,
                    0.021160959243774414,
                    0.021038080215454103,
                    0.02109542465209961,
                    0.02126540756225586,
                    0.021313535690307618,
                    0.021105663299560547,
                    0.02109644889831543,
                    0.02124185562133789,
                    0.021124095916748048,
                    0.02127872085571289,
                    0.021141504287719725,
                    0.021174272537231444,
                    0.0210831356048584,
                    0.02102272033691406,
                    0.021190656661987304,
                    0.021146623611450196,
                    0.02104422378540039,
                    0.021196800231933592,
                    0.021185535430908203,
                    0.021141504287719725,
                    0.021006336212158205,
                    0.021210111618041993,
                    0.0210513916015625,
                    0.021176319122314453,
                    0.021150720596313476,
                    0.020719615936279297,
                    0.02104729652404785,
                    0.02104934310913086,
                    0.021150720596313476,
                    0.02110873603820801,
                    0.021150720596313476,
                    0.02108518409729004,
                    0.02112512016296387,
                    0.021086208343505858,
                    0.021906431198120118,
                    0.0210882568359375,
                    0.020571136474609376,
                    0.020561920166015626,
                    0.020526079177856444,
                    0.020601856231689454,
                    0.020594688415527345,
                    0.020596736907958983,
                    0.020620288848876952,
                    0.020563968658447264,
                    0.0206080322265625
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 47.68019110002944
            },
            "energy": null,
            "efficiency": null
        }
    }
}