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
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": "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,
            "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-212.873.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": "f745e7d3f902601686b83c7cce2660c2a94509f0",
            "accelerate_version": "0.35.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": 1353.822208,
                "max_global_vram": 6775.373824,
                "max_process_vram": 0.0,
                "max_reserved": 6138.363904,
                "max_allocated": 6060.931072
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 12.31964453125,
                "mean": 12.31964453125,
                "stdev": 0.0,
                "p50": 12.31964453125,
                "p90": 12.31964453125,
                "p95": 12.31964453125,
                "p99": 12.31964453125,
                "values": [
                    12.31964453125
                ]
            },
            "throughput": null,
            "energy": null,
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 1922.895872,
                "max_global_vram": 6796.345344,
                "max_process_vram": 0.0,
                "max_reserved": 6138.363904,
                "max_allocated": 5278.596608
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 0.02845859146118164,
                "mean": 0.01422929573059082,
                "stdev": 9.86719131469728e-05,
                "p50": 0.01422929573059082,
                "p90": 0.014308233261108399,
                "p95": 0.014318100452423096,
                "p99": 0.014325994205474854,
                "values": [
                    0.014130623817443847,
                    0.014327967643737793
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 491.9428292540906
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 2095.980544,
                "max_global_vram": 6060.244992,
                "max_process_vram": 0.0,
                "max_reserved": 5381.292032,
                "max_allocated": 5282.647552
            },
            "latency": {
                "unit": "s",
                "count": 2,
                "total": 3.12922314453125,
                "mean": 1.564611572265625,
                "stdev": 0.00022778320312499822,
                "p50": 1.564611572265625,
                "p90": 1.564793798828125,
                "p95": 1.5648165771484375,
                "p99": 1.5648347998046876,
                "values": [
                    1.56483935546875,
                    1.5643837890625
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 81.17030594123659
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 254,
                "total": 3.128944636344909,
                "mean": 0.01231867967064925,
                "stdev": 9.868414454812689e-05,
                "p50": 0.012294143676757812,
                "p90": 0.012333158206939697,
                "p95": 0.012415436697006225,
                "p99": 0.012869986734390259,
                "values": [
                    0.012420096397399903,
                    0.012290047645568849,
                    0.012295167922973632,
                    0.012360704421997071,
                    0.012317695617675782,
                    0.012289024353027344,
                    0.012286975860595703,
                    0.012285951614379884,
                    0.012327936172485352,
                    0.012283904075622559,
                    0.012286975860595703,
                    0.012288000106811523,
                    0.01228492832183838,
                    0.01229312038421631,
                    0.012281855583190919,
                    0.012296192169189453,
                    0.012296192169189453,
                    0.012286975860595703,
                    0.012310527801513671,
                    0.012289024353027344,
                    0.012891136169433593,
                    0.012786687850952149,
                    0.012303359985351562,
                    0.012298239707946777,
                    0.012294143676757812,
                    0.012299263954162597,
                    0.012302335739135742,
                    0.012296192169189453,
                    0.012292096138000488,
                    0.012301312446594239,
                    0.012282879829406738,
                    0.012326911926269531,
                    0.012298303604125977,
                    0.01228384017944336,
                    0.012282879829406738,
                    0.01228492832183838,
                    0.012292096138000488,
                    0.012285951614379884,
                    0.012280832290649414,
                    0.012290047645568849,
                    0.012329983711242675,
                    0.012290047645568849,
                    0.01228492832183838,
                    0.012286975860595703,
                    0.012279808044433594,
                    0.012319744110107422,
                    0.012297216415405274,
                    0.012291071891784668,
                    0.012291071891784668,
                    0.012283904075622559,
                    0.012299263954162597,
                    0.012299263954162597,
                    0.012294143676757812,
                    0.012289024353027344,
                    0.012289024353027344,
                    0.012297216415405274,
                    0.012339200019836426,
                    0.012301312446594239,
                    0.012313599586486817,
                    0.012320768356323243,
                    0.012282879829406738,
                    0.012299263954162597,
                    0.012302335739135742,
                    0.01229312038421631,
                    0.012670975685119629,
                    0.012307456016540527,
                    0.012290047645568849,
                    0.01228492832183838,
                    0.012281855583190919,
                    0.012281855583190919,
                    0.012323840141296387,
                    0.012310527801513671,
                    0.01227673625946045,
                    0.012290047645568849,
                    0.012290047645568849,
                    0.012285951614379884,
                    0.012311552047729492,
                    0.012297216415405274,
                    0.012292096138000488,
                    0.012289024353027344,
                    0.012288000106811523,
                    0.012338175773620605,
                    0.012305407524108887,
                    0.012292096138000488,
                    0.012386303901672363,
                    0.012310527801513671,
                    0.012317695617675782,
                    0.012294143676757812,
                    0.012297216415405274,
                    0.012301312446594239,
                    0.01228492832183838,
                    0.012300288200378418,
                    0.012290047645568849,
                    0.012304384231567383,
                    0.012292096138000488,
                    0.012285951614379884,
                    0.012288000106811523,
                    0.012312576293945313,
                    0.012338175773620605,
                    0.012297216415405274,
                    0.012291071891784668,
                    0.012285951614379884,
                    0.012301312446594239,
                    0.012294143676757812,
                    0.012851231575012207,
                    0.012842975616455077,
                    0.012336128234863282,
                    0.012328960418701173,
                    0.01235148811340332,
                    0.012302335739135742,
                    0.012302335739135742,
                    0.012289024353027344,
                    0.01228492832183838,
                    0.01227673625946045,
                    0.012320768356323243,
                    0.012302335739135742,
                    0.01228492832183838,
                    0.012285951614379884,
                    0.01227673625946045,
                    0.012278783798217773,
                    0.012355584144592285,
                    0.012329983711242675,
                    0.012305407524108887,
                    0.012292096138000488,
                    0.012289024353027344,
                    0.012305407524108887,
                    0.012306431770324706,
                    0.012313599586486817,
                    0.012915712356567383,
                    0.012621824264526366,
                    0.012523520469665527,
                    0.012426239967346191,
                    0.012319744110107422,
                    0.012337151527404786,
                    0.012346367835998535,
                    0.012300288200378418,
                    0.012291071891784668,
                    0.012278783798217773,
                    0.012281855583190919,
                    0.012295167922973632,
                    0.012283904075622559,
                    0.012280832290649414,
                    0.012277759552001954,
                    0.01228492832183838,
                    0.012304384231567383,
                    0.01229312038421631,
                    0.012277759552001954,
                    0.012305407524108887,
                    0.012309503555297852,
                    0.012453887939453125,
                    0.012299263954162597,
                    0.012283904075622559,
                    0.012285951614379884,
                    0.012291071891784668,
                    0.012289024353027344,
                    0.012300288200378418,
                    0.012302335739135742,
                    0.012285951614379884,
                    0.012412927627563476,
                    0.012299263954162597,
                    0.012338175773620605,
                    0.01233407974243164,
                    0.012294143676757812,
                    0.012282879829406738,
                    0.012283904075622559,
                    0.012301312446594239,
                    0.012296192169189453,
                    0.01229312038421631,
                    0.01229312038421631,
                    0.012296192169189453,
                    0.01228492832183838,
                    0.01229312038421631,
                    0.012278783798217773,
                    0.012326911926269531,
                    0.012305407524108887,
                    0.012291071891784668,
                    0.012295167922973632,
                    0.012304384231567383,
                    0.012299263954162597,
                    0.012310527801513671,
                    0.012286975860595703,
                    0.012291071891784668,
                    0.012280832290649414,
                    0.012278783798217773,
                    0.012290047645568849,
                    0.012304384231567383,
                    0.012322815895080566,
                    0.012920831680297852,
                    0.012732416152954102,
                    0.012307456016540527,
                    0.012291071891784668,
                    0.012309503555297852,
                    0.012288000106811523,
                    0.012286975860595703,
                    0.012288000106811523,
                    0.012289024353027344,
                    0.012298239707946777,
                    0.012313599586486817,
                    0.012294143676757812,
                    0.012283904075622559,
                    0.012274687767028808,
                    0.012321791648864745,
                    0.012309503555297852,
                    0.01228492832183838,
                    0.01229312038421631,
                    0.012283904075622559,
                    0.012292096138000488,
                    0.012307456016540527,
                    0.012289024353027344,
                    0.01228492832183838,
                    0.012307456016540527,
                    0.012309503555297852,
                    0.012315648078918457,
                    0.012283904075622559,
                    0.012291071891784668,
                    0.012292096138000488,
                    0.012294143676757812,
                    0.012291071891784668,
                    0.012286975860595703,
                    0.012290047645568849,
                    0.01228492832183838,
                    0.012275712013244629,
                    0.012290047645568849,
                    0.012312576293945313,
                    0.012319744110107422,
                    0.012286975860595703,
                    0.012289024353027344,
                    0.012306431770324706,
                    0.012304384231567383,
                    0.012289024353027344,
                    0.012296192169189453,
                    0.012289024353027344,
                    0.012289024353027344,
                    0.012291071891784668,
                    0.012282879829406738,
                    0.012291071891784668,
                    0.012277759552001954,
                    0.012300288200378418,
                    0.012331007957458496,
                    0.012296192169189453,
                    0.012288000106811523,
                    0.012295167922973632,
                    0.012286975860595703,
                    0.012304384231567383,
                    0.012281855583190919,
                    0.012283904075622559,
                    0.012309503555297852,
                    0.012303359985351562,
                    0.012292096138000488,
                    0.012300288200378418,
                    0.012275712013244629,
                    0.012310527801513671,
                    0.012283904075622559,
                    0.012288000106811523
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 81.17753093155116
            },
            "energy": null,
            "efficiency": null
        }
    }
}