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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.29792,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.10.217-205.860.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": "eed9ed679878ada2f6d2eefccdbda368cabc88b1",
            "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": 1709.027328,
                "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.04044524955749512,
                "mean": 0.02022262477874756,
                "stdev": 0.0007350721359252934,
                "p50": 0.02022262477874756,
                "p90": 0.020810682487487794,
                "p95": 0.020884189701080323,
                "p99": 0.020942995471954346,
                "values": [
                    0.020957696914672853,
                    0.019487552642822266
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 346.14695553054355
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1709.121536,
                "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.9499006347656245,
                "mean": 2.4749503173828122,
                "stdev": 0.022464965820312655,
                "p50": 2.4749503173828122,
                "p90": 2.4929222900390626,
                "p95": 2.4951687866210936,
                "p99": 2.4969659838867186,
                "values": [
                    2.497415283203125,
                    2.4524853515625
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 51.314161382560115
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 253,
                "total": 4.949184518814087,
                "mean": 0.019561994145510228,
                "stdev": 0.001329183491945249,
                "p50": 0.01960960006713867,
                "p90": 0.02012682266235352,
                "p95": 0.020349747848510742,
                "p99": 0.020780973663330076,
                "values": [
                    0.0202106876373291,
                    0.020199424743652345,
                    0.020348928451538087,
                    0.02020147132873535,
                    0.020265983581542968,
                    0.020312063217163084,
                    0.020384767532348632,
                    0.020668415069580077,
                    0.02062950325012207,
                    0.0194201602935791,
                    0.019417087554931642,
                    0.019531776428222656,
                    0.01920204734802246,
                    0.020048896789550782,
                    0.020365312576293947,
                    0.020344831466674804,
                    0.020350976943969725,
                    0.019296415328979494,
                    0.0191363525390625,
                    0.019341312408447265,
                    0.01927065658569336,
                    0.01944371223449707,
                    0.01922355270385742,
                    0.019103744506835937,
                    0.019163135528564454,
                    0.019131391525268555,
                    0.019518463134765626,
                    0.020354047775268554,
                    0.019482624053955077,
                    0.019595264434814453,
                    0.019312639236450196,
                    0.0196997127532959,
                    0.020185087203979494,
                    0.02009600067138672,
                    0.020173824310302735,
                    0.020182016372680665,
                    0.020526079177856444,
                    0.019747840881347657,
                    0.02090291213989258,
                    0.0200130558013916,
                    0.019191808700561523,
                    0.019379327774047852,
                    0.019776384353637697,
                    0.019808256149291992,
                    0.019745792388916016,
                    0.01978265571594238,
                    0.019916799545288084,
                    0.019911680221557617,
                    0.01965363121032715,
                    0.019497983932495116,
                    0.018679807662963867,
                    0.018760704040527345,
                    0.019499008178710937,
                    0.019551231384277345,
                    0.01962393569946289,
                    0.01967001533508301,
                    0.018897920608520507,
                    0.018911231994628908,
                    0.022016000747680665,
                    0.020515968322753906,
                    0.02013273620605469,
                    0.01978982353210449,
                    0.019745792388916016,
                    0.018975744247436522,
                    0.018989055633544923,
                    0.020001792907714845,
                    0.01968435287475586,
                    0.019704832077026366,
                    0.019655679702758787,
                    0.01964339256286621,
                    0.019803136825561524,
                    0.01963417625427246,
                    0.019738624572753907,
                    0.01967411231994629,
                    0.01966182327270508,
                    0.01983590316772461,
                    0.0188939208984375,
                    0.01982147216796875,
                    0.01979084777832031,
                    0.019811328887939454,
                    0.020158464431762696,
                    0.019612863540649415,
                    0.01960428810119629,
                    0.019668991088867188,
                    0.019591167449951173,
                    0.02006425666809082,
                    0.01963724708557129,
                    0.019475456237792968,
                    0.019730432510375977,
                    0.01965670394897461,
                    0.019610719680786134,
                    0.019281824111938475,
                    0.01964339256286621,
                    0.01968332862854004,
                    0.01963212776184082,
                    0.019080192565917968,
                    0.01963520050048828,
                    0.01983590316772461,
                    0.019741695404052736,
                    0.01980620765686035,
                    0.019397632598876953,
                    0.019677183151245118,
                    0.01965260887145996,
                    0.01960140800476074,
                    0.019717119216918946,
                    0.01968230438232422,
                    0.01961881637573242,
                    0.019620864868164063,
                    0.018907136917114258,
                    0.018874368667602538,
                    0.01884774398803711,
                    0.01921433639526367,
                    0.0189040641784668,
                    0.019796991348266603,
                    0.019647487640380858,
                    0.019649728775024414,
                    0.019765247344970704,
                    0.01963808059692383,
                    0.019720191955566405,
                    0.01884774398803711,
                    0.01882828712463379,
                    0.018844671249389648,
                    0.01965056037902832,
                    0.019743743896484374,
                    0.01882009506225586,
                    0.018802751541137697,
                    0.03902560043334961,
                    0.01946828842163086,
                    0.01944473648071289,
                    0.018689023971557618,
                    0.01860095977783203,
                    0.019315711975097655,
                    0.019544063568115236,
                    0.01863680076599121,
                    0.01859174346923828,
                    0.018713600158691408,
                    0.019530752182006835,
                    0.0186746883392334,
                    0.019276800155639647,
                    0.019525632858276368,
                    0.01968639945983887,
                    0.019495935440063478,
                    0.018768896102905275,
                    0.01863680076599121,
                    0.018691072463989256,
                    0.018876415252685547,
                    0.018752511978149415,
                    0.019500032424926757,
                    0.019516416549682617,
                    0.019587072372436523,
                    0.019491840362548828,
                    0.01899622344970703,
                    0.019528703689575197,
                    0.01965465545654297,
                    0.019565568923950196,
                    0.019478527069091797,
                    0.019503103256225587,
                    0.01961676788330078,
                    0.018735103607177735,
                    0.018755584716796874,
                    0.018750463485717773,
                    0.018740320205688478,
                    0.019097503662109376,
                    0.01987174415588379,
                    0.01983283233642578,
                    0.019531936645507814,
                    0.01947430419921875,
                    0.019784671783447266,
                    0.019595264434814453,
                    0.01945907211303711,
                    0.01863680076599121,
                    0.01862451171875,
                    0.018857023239135743,
                    0.019472320556640624,
                    0.019514368057250975,
                    0.018714624404907225,
                    0.019207168579101562,
                    0.019583999633789064,
                    0.01980723190307617,
                    0.019696640014648437,
                    0.02010316848754883,
                    0.018679807662963867,
                    0.018994176864624023,
                    0.019982336044311523,
                    0.019695615768432616,
                    0.019681280136108398,
                    0.019614719390869142,
                    0.01979903984069824,
                    0.019964927673339843,
                    0.019611648559570313,
                    0.0200447998046875,
                    0.01964646339416504,
                    0.019730432510375977,
                    0.01967820739746094,
                    0.01966592025756836,
                    0.019688447952270507,
                    0.019749887466430666,
                    0.019804159164428712,
                    0.019763200759887696,
                    0.019673088073730468,
                    0.01968639945983887,
                    0.019580928802490235,
                    0.019610624313354492,
                    0.01977446365356445,
                    0.0188590087890625,
                    0.018860031127929687,
                    0.018889728546142577,
                    0.01878118324279785,
                    0.018889728546142577,
                    0.01962700843811035,
                    0.01966796875,
                    0.01966182327270508,
                    0.019668159484863282,
                    0.019671871185302735,
                    0.01965465545654297,
                    0.019539968490600586,
                    0.01882624053955078,
                    0.018946048736572265,
                    0.01886207962036133,
                    0.01881292724609375,
                    0.018785280227661134,
                    0.018795520782470702,
                    0.018865152359008788,
                    0.01875660705566406,
                    0.018766847610473633,
                    0.018926591873168946,
                    0.0188590087890625,
                    0.018713600158691408,
                    0.018824192047119142,
                    0.01882009506225586,
                    0.018778112411499022,
                    0.01906073570251465,
                    0.01965260887145996,
                    0.01960960006713867,
                    0.019610624313354492,
                    0.01968332862854004,
                    0.019588096618652344,
                    0.01879654312133789,
                    0.01883033561706543,
                    0.018980863571166993,
                    0.018903039932250978,
                    0.018851839065551757,
                    0.01988198471069336,
                    0.020543487548828124,
                    0.020229120254516602,
                    0.02060188865661621,
                    0.019792863845825195,
                    0.018844671249389648,
                    0.01880268859863281,
                    0.018771968841552734,
                    0.01913049507141113,
                    0.01967296028137207,
                    0.019680255889892577
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 51.119532730742336
            },
            "energy": null,
            "efficiency": null
        }
    }
}