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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": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5",
            "accelerate_version": "0.31.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": 1705.631744,
                "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.03931136131286621,
                "mean": 0.019655680656433104,
                "stdev": 0.00022412776947021602,
                "p50": 0.019655680656433104,
                "p90": 0.01983498287200928,
                "p95": 0.019857395648956302,
                "p99": 0.019875325870513917,
                "values": [
                    0.019879808425903322,
                    0.01943155288696289
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 356.1311420527669
            },
            "energy": null,
            "efficiency": null
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1705.713664,
                "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.798585205078125,
                "mean": 2.3992926025390626,
                "stdev": 0.004729858398437425,
                "p50": 2.3992926025390626,
                "p90": 2.4030764892578125,
                "p95": 2.4035494750976563,
                "p99": 2.4039278637695314,
                "values": [
                    2.4040224609375,
                    2.394562744140625
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 52.9322683967773
            },
            "energy": null,
            "efficiency": null
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 253,
                "total": 4.798804992675779,
                "mean": 0.018967608666702693,
                "stdev": 0.0012461562570100625,
                "p50": 0.018808832168579103,
                "p90": 0.01935871925354004,
                "p95": 0.019563109970092772,
                "p99": 0.019934822845458982,
                "values": [
                    0.019701759338378907,
                    0.018742271423339844,
                    0.01863884735107422,
                    0.01863270378112793,
                    0.01863577651977539,
                    0.018675712585449217,
                    0.01864908790588379,
                    0.01881292724609375,
                    0.018747392654418944,
                    0.018654207229614257,
                    0.019252223968505858,
                    0.01949388885498047,
                    0.018675712585449217,
                    0.018683904647827147,
                    0.018663423538208008,
                    0.01868083190917969,
                    0.01881292724609375,
                    0.018721792221069337,
                    0.018755584716796874,
                    0.018703359603881836,
                    0.018691072463989256,
                    0.01869824028015137,
                    0.018693119049072265,
                    0.01865830421447754,
                    0.01864192008972168,
                    0.018662399291992187,
                    0.0186429443359375,
                    0.018659328460693358,
                    0.018659328460693358,
                    0.019580928802490235,
                    0.019568639755249022,
                    0.018685951232910156,
                    0.01868185615539551,
                    0.01864499282836914,
                    0.01865216064453125,
                    0.018720767974853517,
                    0.019276800155639647,
                    0.01863680076599121,
                    0.018661376953125,
                    0.01862041664123535,
                    0.018696191787719727,
                    0.0186746883392334,
                    0.018661376953125,
                    0.018704383850097657,
                    0.019273727416992188,
                    0.019422208786010742,
                    0.019376127243041993,
                    0.019339263916015623,
                    0.019384319305419923,
                    0.019333120346069335,
                    0.018722816467285155,
                    0.01923276710510254,
                    0.02007859230041504,
                    0.019802112579345704,
                    0.019631103515625,
                    0.018713600158691408,
                    0.018852863311767578,
                    0.018803712844848632,
                    0.018799615859985352,
                    0.01880473518371582,
                    0.01880678367614746,
                    0.0188590087890625,
                    0.01884262466430664,
                    0.01884569549560547,
                    0.01882828712463379,
                    0.01882624053955078,
                    0.018790399551391602,
                    0.018795520782470702,
                    0.018763776779174804,
                    0.01880575942993164,
                    0.01883443260192871,
                    0.01884160041809082,
                    0.018779136657714843,
                    0.018817024230957033,
                    0.01879654312133789,
                    0.018808832168579103,
                    0.018824192047119142,
                    0.018882560729980468,
                    0.01880268859863281,
                    0.01878118324279785,
                    0.018770944595336913,
                    0.018807807922363282,
                    0.018710527420043945,
                    0.018776063919067384,
                    0.018807807922363282,
                    0.018776063919067384,
                    0.018795520782470702,
                    0.01881497573852539,
                    0.018808832168579103,
                    0.018800640106201173,
                    0.018969600677490234,
                    0.018913280487060546,
                    0.01882111930847168,
                    0.019522560119628905,
                    0.018971647262573242,
                    0.01882624053955078,
                    0.01883750343322754,
                    0.018856960296630858,
                    0.019345407485961915,
                    0.02047488021850586,
                    0.019610624313354492,
                    0.019481599807739256,
                    0.019115007400512696,
                    0.01883033561706543,
                    0.01884876823425293,
                    0.01882009506225586,
                    0.01882828712463379,
                    0.018852863311767578,
                    0.018933759689331055,
                    0.01883750343322754,
                    0.019120128631591796,
                    0.019336191177368164,
                    0.019354623794555666,
                    0.019155967712402345,
                    0.01887948799133301,
                    0.018881536483764647,
                    0.019612672805786133,
                    0.018832384109497072,
                    0.01884569549560547,
                    0.018786304473876952,
                    0.018971647262573242,
                    0.019405824661254883,
                    0.018832384109497072,
                    0.01882624053955078,
                    0.01881395149230957,
                    0.01885593605041504,
                    0.03823308944702149,
                    0.018687999725341797,
                    0.01861631965637207,
                    0.018718719482421875,
                    0.0186746883392334,
                    0.018722816467285155,
                    0.018699264526367186,
                    0.018757631301879883,
                    0.018747392654418944,
                    0.018704383850097657,
                    0.018694143295288086,
                    0.018696191787719727,
                    0.018743295669555664,
                    0.018689023971557618,
                    0.018761728286743166,
                    0.018700288772583007,
                    0.018699264526367186,
                    0.018702335357666015,
                    0.018707456588745116,
                    0.018676736831665038,
                    0.018704383850097657,
                    0.01862144088745117,
                    0.018663423538208008,
                    0.018740224838256835,
                    0.018678783416748047,
                    0.018655231475830078,
                    0.018669567108154296,
                    0.018725887298583984,
                    0.018757631301879883,
                    0.018754560470581053,
                    0.01876479911804199,
                    0.018944000244140623,
                    0.018800640106201173,
                    0.019078144073486326,
                    0.018976768493652343,
                    0.018861055374145508,
                    0.01884160041809082,
                    0.01901670455932617,
                    0.018712575912475587,
                    0.018679807662963867,
                    0.018869247436523438,
                    0.018985984802246093,
                    0.018718719482421875,
                    0.018745344161987306,
                    0.01864089584350586,
                    0.01868185615539551,
                    0.018722816467285155,
                    0.018682880401611326,
                    0.01883647918701172,
                    0.018755584716796874,
                    0.018745344161987306,
                    0.018721792221069337,
                    0.018703359603881836,
                    0.018749439239501953,
                    0.018717695236206054,
                    0.018737152099609376,
                    0.018686975479125977,
                    0.018861055374145508,
                    0.018917375564575196,
                    0.01887948799133301,
                    0.01889587211608887,
                    0.018892799377441406,
                    0.018923519134521484,
                    0.018817024230957033,
                    0.018856960296630858,
                    0.01882009506225586,
                    0.01881292724609375,
                    0.018860031127929687,
                    0.018910207748413087,
                    0.018909183502197266,
                    0.01883750343322754,
                    0.018824192047119142,
                    0.01880575942993164,
                    0.0188590087890625,
                    0.01875660705566406,
                    0.01880268859863281,
                    0.01878835105895996,
                    0.018865152359008788,
                    0.018780160903930664,
                    0.018860031127929687,
                    0.018792448043823243,
                    0.0188272647857666,
                    0.019559423446655275,
                    0.019405824661254883,
                    0.018985984802246093,
                    0.018967552185058592,
                    0.018928640365600585,
                    0.01885593605041504,
                    0.01885491180419922,
                    0.018767871856689454,
                    0.018799615859985352,
                    0.01881497573852539,
                    0.01881292724609375,
                    0.018782207489013672,
                    0.01884160041809082,
                    0.019499008178710937,
                    0.01944473648071289,
                    0.01925324821472168,
                    0.01886310386657715,
                    0.01884262466430664,
                    0.01887539291381836,
                    0.018767871856689454,
                    0.01886412811279297,
                    0.01887846374511719,
                    0.018779136657714843,
                    0.01883852767944336,
                    0.01880678367614746,
                    0.01881907272338867,
                    0.018766847610473633,
                    0.018775039672851563,
                    0.018727935791015626,
                    0.018765823364257812,
                    0.018800640106201173,
                    0.01880268859863281,
                    0.019769344329833984,
                    0.019359743118286133,
                    0.01885081672668457,
                    0.018779136657714843,
                    0.01926655960083008,
                    0.019591167449951173,
                    0.019731456756591798,
                    0.01944473648071289,
                    0.01924300765991211,
                    0.018784255981445314,
                    0.01881088066101074,
                    0.01882521629333496,
                    0.018873344421386717
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 52.72145886030866
            },
            "energy": null,
            "efficiency": null
        }
    }
}