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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": "static",
            "autocast_enabled": false,
            "autocast_dtype": null,
            "torch_compile": true,
            "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": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa",
            "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": 1916.23168,
                "max_global_vram": 6094.848,
                "max_process_vram": 0.0,
                "max_reserved": 5379.19488,
                "max_allocated": 5021.251584
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 0.028147264480590822,
                "mean": 0.014073632240295411,
                "stdev": 9.32159423828122e-05,
                "p50": 0.014073632240295411,
                "p90": 0.01414820499420166,
                "p95": 0.014157526588439941,
                "p99": 0.014164983863830567,
                "values": [
                    0.014166848182678222,
                    0.013980416297912598
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 497.3840356548259
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 2260.033536,
                "max_global_vram": 8907.128832,
                "max_process_vram": 0.0,
                "max_reserved": 5379.19488,
                "max_allocated": 5027.089408
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 3.155854248046875,
                "mean": 1.5779271240234376,
                "stdev": 0.017416625976562572,
                "p50": 1.5779271240234376,
                "p90": 1.5918604248046875,
                "p95": 1.5936020874023438,
                "p99": 1.5949954174804688,
                "values": [
                    1.59534375,
                    1.560510498046875
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 80.48533932047017
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 253,
                "total": 3.1568332824707035,
                "mean": 0.012477601906998826,
                "stdev": 0.0009068085318988774,
                "p50": 0.012299263954162597,
                "p90": 0.012770918655395508,
                "p95": 0.012805324935913086,
                "p99": 0.012877578544616698,
                "values": [
                    0.012729344367980957,
                    0.012834815979003907,
                    0.01284607982635498,
                    0.012807168006896973,
                    0.012774399757385254,
                    0.012818431854248047,
                    0.012710911750793457,
                    0.012744704246520995,
                    0.012709888458251953,
                    0.012813311576843261,
                    0.012720128059387208,
                    0.012777471542358398,
                    0.012700672149658204,
                    0.01273855972290039,
                    0.012728320121765137,
                    0.012810239791870117,
                    0.012732416152954102,
                    0.012784640312194824,
                    0.01284607982635498,
                    0.01287168025970459,
                    0.012772352218627929,
                    0.012744799613952636,
                    0.01271183967590332,
                    0.012786687850952149,
                    0.012732416152954102,
                    0.01287168025970459,
                    0.012798975944519043,
                    0.012790783882141114,
                    0.012734463691711426,
                    0.012783616065979005,
                    0.01296076774597168,
                    0.01277952003479004,
                    0.012727295875549317,
                    0.01276518440246582,
                    0.0127457275390625,
                    0.01287168025970459,
                    0.01266483211517334,
                    0.012708864212036132,
                    0.012707839965820313,
                    0.012795904159545898,
                    0.012706815719604492,
                    0.012709888458251953,
                    0.012685312271118163,
                    0.012777471542358398,
                    0.012761088371276855,
                    0.012751935958862304,
                    0.012743616104125976,
                    0.01274675178527832,
                    0.012683263778686523,
                    0.012741632461547851,
                    0.012722175598144531,
                    0.012883968353271484,
                    0.01266483211517334,
                    0.012724224090576173,
                    0.012704768180847169,
                    0.012725248336791992,
                    0.012713983535766601,
                    0.01276416015625,
                    0.012719103813171387,
                    0.012761088371276855,
                    0.012685312271118163,
                    0.01275699234008789,
                    0.012700672149658204,
                    0.012777471542358398,
                    0.012709888458251953,
                    0.012750847816467285,
                    0.012621824264526366,
                    0.012619775772094726,
                    0.012732416152954102,
                    0.012804096221923827,
                    0.01234227180480957,
                    0.012379136085510254,
                    0.012428288459777831,
                    0.012517375946044922,
                    0.012678144454956054,
                    0.012603391647338867,
                    0.012453920364379882,
                    0.012335071563720703,
                    0.012339200019836426,
                    0.012369919776916503,
                    0.012395520210266114,
                    0.012308480262756348,
                    0.012241920471191407,
                    0.012290047645568849,
                    0.012413951873779297,
                    0.012288000106811523,
                    0.012267519950866699,
                    0.012333056449890138,
                    0.012247039794921874,
                    0.012304384231567383,
                    0.01225113582611084,
                    0.012290047645568849,
                    0.012253184318542481,
                    0.012295167922973632,
                    0.012264448165893555,
                    0.01229312038421631,
                    0.01224396800994873,
                    0.012322815895080566,
                    0.012255231857299804,
                    0.012301312446594239,
                    0.012264448165893555,
                    0.01234227180480957,
                    0.012259327888488769,
                    0.012306431770324706,
                    0.012254207611083985,
                    0.012295167922973632,
                    0.012237824440002442,
                    0.012283904075622559,
                    0.012247039794921874,
                    0.012291071891784668,
                    0.012249088287353516,
                    0.012285951614379884,
                    0.012244992256164551,
                    0.012283904075622559,
                    0.012266495704650878,
                    0.01232588768005371,
                    0.01228492832183838,
                    0.012296192169189453,
                    0.012232704162597656,
                    0.012290047645568849,
                    0.012267519950866699,
                    0.012286975860595703,
                    0.01225011157989502,
                    0.012292096138000488,
                    0.012253184318542481,
                    0.012311552047729492,
                    0.026465280532836914,
                    0.01224294376373291,
                    0.012299263954162597,
                    0.01226854419708252,
                    0.012299263954162597,
                    0.012248064041137695,
                    0.012286975860595703,
                    0.012257280349731446,
                    0.012300288200378418,
                    0.01225216007232666,
                    0.012310527801513671,
                    0.012263423919677734,
                    0.012296192169189453,
                    0.01225830364227295,
                    0.012361727714538574,
                    0.012266495704650878,
                    0.012291071891784668,
                    0.012249088287353516,
                    0.012295167922973632,
                    0.012264448165893555,
                    0.012290047645568849,
                    0.012237824440002442,
                    0.012317695617675782,
                    0.01225830364227295,
                    0.012426239967346191,
                    0.012270591735839843,
                    0.012290047645568849,
                    0.012253184318542481,
                    0.012291071891784668,
                    0.012247039794921874,
                    0.012430335998535156,
                    0.012238847732543945,
                    0.012286975860595703,
                    0.012247039794921874,
                    0.012299263954162597,
                    0.012253184318542481,
                    0.01237606430053711,
                    0.012278783798217773,
                    0.012319744110107422,
                    0.012262399673461915,
                    0.012316672325134278,
                    0.012375040054321289,
                    0.012288000106811523,
                    0.012233728408813477,
                    0.012292096138000488,
                    0.012262399673461915,
                    0.012289024353027344,
                    0.012237824440002442,
                    0.012281855583190919,
                    0.012257280349731446,
                    0.012295167922973632,
                    0.012241920471191407,
                    0.012308480262756348,
                    0.01226035213470459,
                    0.012306431770324706,
                    0.012254207611083985,
                    0.012286016464233399,
                    0.012244928359985351,
                    0.012282879829406738,
                    0.012259327888488769,
                    0.012306431770324706,
                    0.01224294376373291,
                    0.012278783798217773,
                    0.01224294376373291,
                    0.01229312038421631,
                    0.012313599586486817,
                    0.012456959724426269,
                    0.012250144004821778,
                    0.012284895896911622,
                    0.012239871978759765,
                    0.012299263954162597,
                    0.012246015548706055,
                    0.012283904075622559,
                    0.012244992256164551,
                    0.012286975860595703,
                    0.01242521572113037,
                    0.01227673625946045,
                    0.012247039794921874,
                    0.01228492832183838,
                    0.012255231857299804,
                    0.012311552047729492,
                    0.012283904075622559,
                    0.01229312038421631,
                    0.012301312446594239,
                    0.012298239707946777,
                    0.012249088287353516,
                    0.012298239707946777,
                    0.012239871978759765,
                    0.012278783798217773,
                    0.012249088287353516,
                    0.012298239707946777,
                    0.012266495704650878,
                    0.012305407524108887,
                    0.012391424179077149,
                    0.012311552047729492,
                    0.012259327888488769,
                    0.012307456016540527,
                    0.012248064041137695,
                    0.01228492832183838,
                    0.01224294376373291,
                    0.012292096138000488,
                    0.012349439620971679,
                    0.012289024353027344,
                    0.012237824440002442,
                    0.012315648078918457,
                    0.012272640228271485,
                    0.012292096138000488,
                    0.012244992256164551,
                    0.012301312446594239,
                    0.012262432098388672,
                    0.012281824111938476,
                    0.012354559898376465,
                    0.012286975860595703,
                    0.012249088287353516,
                    0.012283904075622559,
                    0.012257280349731446,
                    0.012299263954162597,
                    0.012254207611083985,
                    0.012291071891784668,
                    0.012332032203674317,
                    0.012394495964050293,
                    0.012248064041137695,
                    0.012331007957458496,
                    0.01225830364227295,
                    0.012286975860595703,
                    0.01224294376373291,
                    0.012304384231567383
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 80.14360511366282
            },
            "energy": null,
            "efficiency": null
        }
    }
}