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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch-llama",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.0",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model": "meta-llama/Llama-2-7b-hf",
11
+ "processor": "meta-llama/Llama-2-7b-hf",
12
+ "device": "cuda",
13
+ "device_ids": "0",
14
+ "seed": 42,
15
+ "inter_op_num_threads": null,
16
+ "intra_op_num_threads": null,
17
+ "model_kwargs": {},
18
+ "processor_kwargs": {},
19
+ "hub_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "float16",
23
+ "eval_mode": true,
24
+ "to_bettertransformer": false,
25
+ "low_cpu_mem_usage": null,
26
+ "attn_implementation": null,
27
+ "cache_implementation": null,
28
+ "autocast_enabled": false,
29
+ "autocast_dtype": null,
30
+ "torch_compile": false,
31
+ "torch_compile_target": "forward",
32
+ "torch_compile_config": {},
33
+ "quantization_scheme": "awq",
34
+ "quantization_config": {
35
+ "bits": 4,
36
+ "version": "gemm"
37
+ },
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "tensor_parallel": false,
41
+ "peft_type": null,
42
+ "peft_config": {}
43
+ },
44
+ "scenario": {
45
+ "name": "inference",
46
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
47
+ "iterations": 10,
48
+ "duration": 10,
49
+ "warmup_runs": 10,
50
+ "input_shapes": {
51
+ "batch_size": 1,
52
+ "num_choices": 2,
53
+ "sequence_length": 128
54
+ },
55
+ "new_tokens": null,
56
+ "latency": true,
57
+ "memory": true,
58
+ "energy": false,
59
+ "forward_kwargs": {},
60
+ "generate_kwargs": {
61
+ "max_new_tokens": 32,
62
+ "min_new_tokens": 32
63
+ },
64
+ "call_kwargs": {}
65
+ },
66
+ "launcher": {
67
+ "name": "process",
68
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
69
+ "device_isolation": true,
70
+ "device_isolation_action": "warn",
71
+ "numactl": false,
72
+ "numactl_kwargs": {},
73
+ "start_method": "spawn"
74
+ },
75
+ "environment": {
76
+ "cpu": " AMD EPYC 7742 64-Core Processor",
77
+ "cpu_count": 128,
78
+ "cpu_ram_mb": 540671.627264,
79
+ "system": "Linux",
80
+ "machine": "x86_64",
81
+ "platform": "Linux-5.4.0-166-generic-x86_64-with-glibc2.35",
82
+ "processor": "x86_64",
83
+ "python_version": "3.10.12",
84
+ "gpu": [
85
+ "NVIDIA A100-SXM4-80GB",
86
+ "NVIDIA A100-SXM4-80GB",
87
+ "NVIDIA A100-SXM4-80GB",
88
+ "NVIDIA DGX Display",
89
+ "NVIDIA A100-SXM4-80GB"
90
+ ],
91
+ "gpu_count": 5,
92
+ "gpu_vram_mb": 347892350976,
93
+ "optimum_benchmark_version": "0.2.1",
94
+ "optimum_benchmark_commit": "347e13ca9f7f904f55669603cfb9f0b6c7e8672c",
95
+ "transformers_version": "4.41.1",
96
+ "transformers_commit": null,
97
+ "accelerate_version": "0.30.1",
98
+ "accelerate_commit": null,
99
+ "diffusers_version": null,
100
+ "diffusers_commit": null,
101
+ "optimum_version": "1.20.0",
102
+ "optimum_commit": null,
103
+ "timm_version": null,
104
+ "timm_commit": null,
105
+ "peft_version": "0.11.1",
106
+ "peft_commit": null
107
+ }
108
+ },
109
+ "report": {
110
+ "prefill": {
111
+ "memory": {
112
+ "unit": "MB",
113
+ "max_ram": 1987.227648,
114
+ "max_global_vram": 6274.613248,
115
+ "max_process_vram": 5347.7376,
116
+ "max_reserved": 4815.060992,
117
+ "max_allocated": 4428.105728
118
+ },
119
+ "latency": {
120
+ "unit": "s",
121
+ "count": 10,
122
+ "total": 2.756154998779297,
123
+ "mean": 0.27561549987792966,
124
+ "stdev": 0.001576301871995964,
125
+ "p50": 0.27525642395019534,
126
+ "p90": 0.2768252777099609,
127
+ "p95": 0.2783657943725586,
128
+ "p99": 0.2795982077026367,
129
+ "values": [
130
+ 0.27990631103515623,
131
+ 0.27568951416015625,
132
+ 0.2764829406738281,
133
+ 0.2740910339355469,
134
+ 0.2755289611816406,
135
+ 0.2744505615234375,
136
+ 0.27523696899414063,
137
+ 0.27507843017578126,
138
+ 0.27527587890625,
139
+ 0.2744143981933594
140
+ ]
141
+ },
142
+ "throughput": {
143
+ "unit": "tokens/s",
144
+ "value": 464.4151002272779
145
+ },
146
+ "energy": null,
147
+ "efficiency": null
148
+ },
149
+ "decode": {
150
+ "memory": {
151
+ "unit": "MB",
152
+ "max_ram": 1987.780608,
153
+ "max_global_vram": 6274.613248,
154
+ "max_process_vram": 5347.7376,
155
+ "max_reserved": 4815.060992,
156
+ "max_allocated": 4534.656
157
+ },
158
+ "latency": {
159
+ "unit": "s",
160
+ "count": 10,
161
+ "total": 83.62528515625,
162
+ "mean": 8.362528515625002,
163
+ "stdev": 0.01839569892888929,
164
+ "p50": 8.351832031250002,
165
+ "p90": 8.389032421875001,
166
+ "p95": 8.39107236328125,
167
+ "p99": 8.39270431640625,
168
+ "values": [
169
+ 8.3931123046875,
170
+ 8.35104296875,
171
+ 8.3475205078125,
172
+ 8.3436806640625,
173
+ 8.3881337890625,
174
+ 8.3598662109375,
175
+ 8.35262109375,
176
+ 8.3885791015625,
177
+ 8.34973046875,
178
+ 8.350998046875
179
+ ]
180
+ },
181
+ "throughput": {
182
+ "unit": "tokens/s",
183
+ "value": 3.7070127703693827
184
+ },
185
+ "energy": null,
186
+ "efficiency": null
187
+ },
188
+ "per_token": {
189
+ "memory": null,
190
+ "latency": {
191
+ "unit": "s",
192
+ "count": 309,
193
+ "total": 85.82910778808595,
194
+ "mean": 0.27776410287406456,
195
+ "stdev": 0.046387676634444285,
196
+ "p50": 0.2693468017578125,
197
+ "p90": 0.2698035339355469,
198
+ "p95": 0.2715961364746094,
199
+ "p99": 0.5450556909179687,
200
+ "values": [
201
+ 0.2690375671386719,
202
+ 0.26903347778320313,
203
+ 0.26933248901367185,
204
+ 0.2698332214355469,
205
+ 0.2692812805175781,
206
+ 0.2690047912597656,
207
+ 0.26912152099609377,
208
+ 0.26974002075195314,
209
+ 0.2695249938964844,
210
+ 0.26954034423828127,
211
+ 0.26969088745117187,
212
+ 0.2694072265625,
213
+ 0.26910311889648436,
214
+ 0.2691430358886719,
215
+ 0.26976666259765625,
216
+ 0.2693109741210937,
217
+ 0.2686207885742187,
218
+ 0.26987008666992185,
219
+ 0.2693662719726562,
220
+ 0.2693642272949219,
221
+ 0.27514981079101564,
222
+ 0.3016622009277344,
223
+ 0.2691041259765625,
224
+ 0.26949530029296875,
225
+ 0.26923828125,
226
+ 0.2693007507324219,
227
+ 0.2691041259765625,
228
+ 0.268864501953125,
229
+ 0.2696529846191406,
230
+ 0.27169485473632815,
231
+ 0.5468641357421875,
232
+ 0.2707322998046875,
233
+ 0.26957107543945313,
234
+ 0.26896588134765625,
235
+ 0.26929254150390625,
236
+ 0.26959872436523435,
237
+ 0.26925259399414064,
238
+ 0.26876416015625,
239
+ 0.2687457275390625,
240
+ 0.26937753295898437,
241
+ 0.2689986572265625,
242
+ 0.26938265991210936,
243
+ 0.2689146728515625,
244
+ 0.2688511962890625,
245
+ 0.269264892578125,
246
+ 0.26910516357421876,
247
+ 0.26927719116210935,
248
+ 0.26962942504882814,
249
+ 0.2725355529785156,
250
+ 0.26945843505859374,
251
+ 0.26939700317382814,
252
+ 0.2689259643554687,
253
+ 0.26917172241210935,
254
+ 0.2692515869140625,
255
+ 0.26923110961914065,
256
+ 0.26877542114257813,
257
+ 0.2688962707519531,
258
+ 0.2690826110839844,
259
+ 0.269159423828125,
260
+ 0.2692259826660156,
261
+ 0.2690877380371094,
262
+ 0.5459373779296876,
263
+ 0.2692884521484375,
264
+ 0.2692567138671875,
265
+ 0.26868429565429686,
266
+ 0.26870477294921874,
267
+ 0.26898635864257814,
268
+ 0.269159423828125,
269
+ 0.2694635620117187,
270
+ 0.269275146484375,
271
+ 0.2689392700195313,
272
+ 0.2688931884765625,
273
+ 0.2693887939453125,
274
+ 0.269549560546875,
275
+ 0.26929153442382814,
276
+ 0.2691655578613281,
277
+ 0.2695168151855469,
278
+ 0.26863717651367186,
279
+ 0.26929766845703124,
280
+ 0.2695997314453125,
281
+ 0.2694297485351563,
282
+ 0.26923110961914065,
283
+ 0.2692147216796875,
284
+ 0.2692587585449219,
285
+ 0.26939596557617185,
286
+ 0.269306884765625,
287
+ 0.269043701171875,
288
+ 0.2705960998535156,
289
+ 0.2693468017578125,
290
+ 0.2692075500488281,
291
+ 0.26950347900390625,
292
+ 0.26945330810546875,
293
+ 0.5430527954101563,
294
+ 0.26870578002929685,
295
+ 0.2691328125,
296
+ 0.26934375,
297
+ 0.26943283081054686,
298
+ 0.2692351989746094,
299
+ 0.26888705444335936,
300
+ 0.2688440246582031,
301
+ 0.26953216552734377,
302
+ 0.2694430847167969,
303
+ 0.2691758117675781,
304
+ 0.2690293884277344,
305
+ 0.26936114501953123,
306
+ 0.2695116882324219,
307
+ 0.2694420471191406,
308
+ 0.2686484375,
309
+ 0.26949017333984376,
310
+ 0.2689494934082031,
311
+ 0.2694236145019531,
312
+ 0.2693089294433594,
313
+ 0.26930484008789063,
314
+ 0.2687580261230469,
315
+ 0.26872012329101563,
316
+ 0.2688983154296875,
317
+ 0.2697994384765625,
318
+ 0.2695423889160156,
319
+ 0.269370361328125,
320
+ 0.26885223388671875,
321
+ 0.26844158935546875,
322
+ 0.26901400756835936,
323
+ 0.26917477416992186,
324
+ 0.5452451782226563,
325
+ 0.2690908203125,
326
+ 0.2693990478515625,
327
+ 0.26928536987304685,
328
+ 0.2694676513671875,
329
+ 0.2692136840820312,
330
+ 0.26950860595703124,
331
+ 0.26930484008789063,
332
+ 0.26916351318359377,
333
+ 0.30769561767578124,
334
+ 0.2689546203613281,
335
+ 0.26886041259765625,
336
+ 0.2694317932128906,
337
+ 0.2698199157714844,
338
+ 0.2695741577148438,
339
+ 0.2690519104003906,
340
+ 0.26873651123046877,
341
+ 0.2689822692871094,
342
+ 0.26932940673828126,
343
+ 0.2695126953125,
344
+ 0.2691512451171875,
345
+ 0.2689392700195313,
346
+ 0.268837890625,
347
+ 0.2692546691894531,
348
+ 0.26957107543945313,
349
+ 0.27118490600585937,
350
+ 0.26988543701171874,
351
+ 0.269053955078125,
352
+ 0.2694369201660156,
353
+ 0.26936935424804687,
354
+ 0.26938470458984376,
355
+ 0.5438167114257813,
356
+ 0.26926593017578127,
357
+ 0.269444091796875,
358
+ 0.2692485046386719,
359
+ 0.26929458618164065,
360
+ 0.26911129760742186,
361
+ 0.2695475158691406,
362
+ 0.27004620361328124,
363
+ 0.2697420654296875,
364
+ 0.269744140625,
365
+ 0.2693242797851563,
366
+ 0.26931610107421877,
367
+ 0.26971649169921874,
368
+ 0.2695966796875,
369
+ 0.2693683166503906,
370
+ 0.26960690307617186,
371
+ 0.2695782470703125,
372
+ 0.26939801025390625,
373
+ 0.2705315856933594,
374
+ 0.2694317932128906,
375
+ 0.2695362548828125,
376
+ 0.274872314453125,
377
+ 0.2696151123046875,
378
+ 0.26945843505859374,
379
+ 0.2692884521484375,
380
+ 0.2692034606933594,
381
+ 0.2694420471191406,
382
+ 0.2693734436035156,
383
+ 0.2695762023925781,
384
+ 0.26955877685546875,
385
+ 0.2692904968261719,
386
+ 0.5447843627929687,
387
+ 0.2694840393066406,
388
+ 0.26923211669921876,
389
+ 0.2696499328613281,
390
+ 0.2691706848144531,
391
+ 0.2691328125,
392
+ 0.26960794067382815,
393
+ 0.2697369689941406,
394
+ 0.2695895080566406,
395
+ 0.2696724548339844,
396
+ 0.2693990478515625,
397
+ 0.2696222839355469,
398
+ 0.26936114501953123,
399
+ 0.2694635620117187,
400
+ 0.26945230102539064,
401
+ 0.27014862060546874,
402
+ 0.26982501220703126,
403
+ 0.26970932006835935,
404
+ 0.2692515869140625,
405
+ 0.269222900390625,
406
+ 0.26936114501953123,
407
+ 0.2692894592285156,
408
+ 0.2693447570800781,
409
+ 0.2692833251953125,
410
+ 0.2693089294433594,
411
+ 0.26920858764648437,
412
+ 0.2694143981933594,
413
+ 0.26970932006835935,
414
+ 0.26943487548828127,
415
+ 0.26899148559570313,
416
+ 0.26903347778320313,
417
+ 0.544595947265625,
418
+ 0.26924441528320314,
419
+ 0.26973184204101563,
420
+ 0.26944717407226565,
421
+ 0.2689197998046875,
422
+ 0.26903652954101565,
423
+ 0.2692075500488281,
424
+ 0.26946661376953124,
425
+ 0.2693232727050781,
426
+ 0.2694645690917969,
427
+ 0.26946560668945313,
428
+ 0.2694768676757813,
429
+ 0.2694287414550781,
430
+ 0.2692986755371094,
431
+ 0.2687313842773438,
432
+ 0.26922189331054686,
433
+ 0.2698608703613281,
434
+ 0.26943487548828127,
435
+ 0.2694225769042969,
436
+ 0.26934988403320315,
437
+ 0.2688194580078125,
438
+ 0.2689966125488281,
439
+ 0.2692894592285156,
440
+ 0.26939801025390625,
441
+ 0.26970932006835935,
442
+ 0.307842041015625,
443
+ 0.2694062194824219,
444
+ 0.2691758117675781,
445
+ 0.26946047973632814,
446
+ 0.2695823364257813,
447
+ 0.2698885192871094,
448
+ 0.5450792846679687,
449
+ 0.2696857604980469,
450
+ 0.26950759887695314,
451
+ 0.26918194580078125,
452
+ 0.26958541870117186,
453
+ 0.2695352172851562,
454
+ 0.26955572509765624,
455
+ 0.26940826416015623,
456
+ 0.26892901611328124,
457
+ 0.2688215026855469,
458
+ 0.26918093872070314,
459
+ 0.2695741577148438,
460
+ 0.2697574462890625,
461
+ 0.2691583862304687,
462
+ 0.26896383666992185,
463
+ 0.26888088989257813,
464
+ 0.2689873962402344,
465
+ 0.26942465209960936,
466
+ 0.26933349609375,
467
+ 0.26921063232421877,
468
+ 0.26887271118164063,
469
+ 0.27005133056640623,
470
+ 0.2692567138671875,
471
+ 0.26960589599609375,
472
+ 0.26949325561523435,
473
+ 0.26920242309570314,
474
+ 0.2691727294921875,
475
+ 0.2695833740234375,
476
+ 0.2695147399902344,
477
+ 0.2695055236816406,
478
+ 0.26901095581054685,
479
+ 0.543478759765625,
480
+ 0.2692761535644531,
481
+ 0.26944512939453125,
482
+ 0.2697134094238281,
483
+ 0.2692679748535156,
484
+ 0.26909695434570313,
485
+ 0.26919525146484374,
486
+ 0.2693253173828125,
487
+ 0.2694359130859375,
488
+ 0.26941131591796874,
489
+ 0.26903448486328124,
490
+ 0.26912664794921876,
491
+ 0.2693447570800781,
492
+ 0.2695209045410156,
493
+ 0.26944818115234376,
494
+ 0.26922906494140625,
495
+ 0.2692833251953125,
496
+ 0.2694287414550781,
497
+ 0.26944818115234376,
498
+ 0.2694072265625,
499
+ 0.2692935791015625,
500
+ 0.26966323852539065,
501
+ 0.2694215698242188,
502
+ 0.2692935791015625,
503
+ 0.26903143310546873,
504
+ 0.2689259643554687,
505
+ 0.26914712524414064,
506
+ 0.26951577758789064,
507
+ 0.2694420471191406,
508
+ 0.26934375,
509
+ 0.27144805908203123
510
+ ]
511
+ },
512
+ "throughput": {
513
+ "unit": "tokens/s",
514
+ "value": 3.6001772354773647
515
+ },
516
+ "energy": null,
517
+ "efficiency": null
518
+ }
519
+ }
520
+ }