jerryzh168 commited on
Commit
f7d945f
1 Parent(s): 13c8ee2

Upload pytorch-llama/torchao-int4wo-128.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. pytorch-llama/torchao-int4wo-128.json +549 -0
pytorch-llama/torchao-int4wo-128.json ADDED
@@ -0,0 +1,549 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "pytorch-llama",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.5.1",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "llama",
11
+ "model": "meta-llama/Llama-2-7b-chat-hf",
12
+ "processor": "meta-llama/Llama-2-7b-chat-hf",
13
+ "device": "cuda",
14
+ "device_ids": "0",
15
+ "seed": 42,
16
+ "inter_op_num_threads": null,
17
+ "intra_op_num_threads": null,
18
+ "model_kwargs": {},
19
+ "processor_kwargs": {},
20
+ "no_weights": true,
21
+ "device_map": null,
22
+ "torch_dtype": "bfloat16",
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": "torchao",
34
+ "quantization_config": {
35
+ "quant_type": "int4_weight_only",
36
+ "group_size": 128
37
+ },
38
+ "deepspeed_inference": false,
39
+ "deepspeed_inference_config": {},
40
+ "peft_type": null,
41
+ "peft_config": {}
42
+ },
43
+ "scenario": {
44
+ "name": "inference",
45
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
46
+ "iterations": 10,
47
+ "duration": 10,
48
+ "warmup_runs": 10,
49
+ "input_shapes": {
50
+ "batch_size": 1,
51
+ "num_choices": 2,
52
+ "sequence_length": 128
53
+ },
54
+ "new_tokens": null,
55
+ "memory": true,
56
+ "latency": true,
57
+ "energy": false,
58
+ "forward_kwargs": {},
59
+ "generate_kwargs": {
60
+ "max_new_tokens": 32,
61
+ "min_new_tokens": 32
62
+ },
63
+ "call_kwargs": {}
64
+ },
65
+ "launcher": {
66
+ "name": "process",
67
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
68
+ "device_isolation": true,
69
+ "device_isolation_action": "warn",
70
+ "numactl": false,
71
+ "numactl_kwargs": {},
72
+ "start_method": "spawn"
73
+ },
74
+ "environment": {
75
+ "cpu": " Intel(R) Xeon(R) Platinum 8339HC CPU @ 1.80GHz",
76
+ "cpu_count": 22,
77
+ "cpu_ram_mb": 189584.162816,
78
+ "system": "Linux",
79
+ "machine": "x86_64",
80
+ "platform": "Linux-5.19.0-0_fbk12_hardened_11583_g0bef9520ca2b-x86_64-with-glibc2.34",
81
+ "processor": "x86_64",
82
+ "python_version": "3.10.15",
83
+ "gpu": [
84
+ "NVIDIA PG509-210"
85
+ ],
86
+ "gpu_count": 1,
87
+ "gpu_vram_mb": 85899345920,
88
+ "optimum_benchmark_version": "0.5.0.dev0",
89
+ "optimum_benchmark_commit": "78d7da546ad060a586060d0d3680bec33f32a45b",
90
+ "transformers_version": "4.47.0.dev0",
91
+ "transformers_commit": null,
92
+ "accelerate_version": "1.1.0",
93
+ "accelerate_commit": null,
94
+ "diffusers_version": "0.31.0",
95
+ "diffusers_commit": null,
96
+ "optimum_version": "1.24.0.dev0",
97
+ "optimum_commit": null,
98
+ "timm_version": "1.0.11",
99
+ "timm_commit": null,
100
+ "peft_version": "0.13.2",
101
+ "peft_commit": null
102
+ },
103
+ "print_report": true,
104
+ "log_report": true
105
+ },
106
+ "report": {
107
+ "load": {
108
+ "memory": {
109
+ "unit": "MB",
110
+ "max_ram": 3085.971456,
111
+ "max_global_vram": 15467.413504,
112
+ "max_process_vram": 14554.23488,
113
+ "max_reserved": 13478.395904,
114
+ "max_allocated": 13476.848128
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "values": [
119
+ 5.966353515625
120
+ ],
121
+ "count": 1,
122
+ "total": 5.966353515625,
123
+ "mean": 5.966353515625,
124
+ "p50": 5.966353515625,
125
+ "p90": 5.966353515625,
126
+ "p95": 5.966353515625,
127
+ "p99": 5.966353515625,
128
+ "stdev": 0,
129
+ "stdev_": 0
130
+ },
131
+ "throughput": null,
132
+ "energy": null,
133
+ "efficiency": null
134
+ },
135
+ "prefill": {
136
+ "memory": {
137
+ "unit": "MB",
138
+ "max_ram": 4351.102976,
139
+ "max_global_vram": 15922.495488,
140
+ "max_process_vram": 15009.316864,
141
+ "max_reserved": 13679.722496,
142
+ "max_allocated": 13565.197824
143
+ },
144
+ "latency": {
145
+ "unit": "s",
146
+ "values": [
147
+ 0.0414266242980957,
148
+ 0.04142636871337891,
149
+ 0.043187839508056644,
150
+ 0.04308838272094727,
151
+ 0.04203615951538086,
152
+ 0.040791263580322264,
153
+ 0.04282470321655273,
154
+ 0.04198252868652344,
155
+ 0.042815521240234376,
156
+ 0.042053089141845704
157
+ ],
158
+ "count": 10,
159
+ "total": 0.42163248062133785,
160
+ "mean": 0.042163248062133785,
161
+ "p50": 0.04204462432861328,
162
+ "p90": 0.04309832839965821,
163
+ "p95": 0.04314308395385742,
164
+ "p99": 0.0431788883972168,
165
+ "stdev": 0.0007614156637492785,
166
+ "stdev_": 1.8058752556900264
167
+ },
168
+ "throughput": {
169
+ "unit": "tokens/s",
170
+ "value": 3035.8192474017433
171
+ },
172
+ "energy": null,
173
+ "efficiency": null
174
+ },
175
+ "decode": {
176
+ "memory": {
177
+ "unit": "MB",
178
+ "max_ram": 4351.102976,
179
+ "max_global_vram": 15922.495488,
180
+ "max_process_vram": 15009.316864,
181
+ "max_reserved": 13679.722496,
182
+ "max_allocated": 13579.885056
183
+ },
184
+ "latency": {
185
+ "unit": "s",
186
+ "values": [
187
+ 1.2708951416015626,
188
+ 1.2522698974609374,
189
+ 1.25271875,
190
+ 1.278862548828125,
191
+ 1.2760985107421876,
192
+ 1.2531329345703126,
193
+ 1.2651630859375,
194
+ 1.2697864990234375,
195
+ 1.271283935546875,
196
+ 1.2574981689453124
197
+ ],
198
+ "count": 10,
199
+ "total": 12.647709472656251,
200
+ "mean": 1.264770947265625,
201
+ "p50": 1.2674747924804688,
202
+ "p90": 1.2763749145507812,
203
+ "p95": 1.2776187316894532,
204
+ "p99": 1.2786137854003905,
205
+ "stdev": 0.009602028862915314,
206
+ "stdev_": 0.7591911313012405
207
+ },
208
+ "throughput": {
209
+ "unit": "tokens/s",
210
+ "value": 24.5103669300916
211
+ },
212
+ "energy": null,
213
+ "efficiency": null
214
+ },
215
+ "per_token": {
216
+ "memory": null,
217
+ "latency": {
218
+ "unit": "s",
219
+ "values": [
220
+ 0.0401976318359375,
221
+ 0.040500736236572264,
222
+ 0.03963894271850586,
223
+ 0.0408045425415039,
224
+ 0.04022505569458008,
225
+ 0.04094451141357422,
226
+ 0.04028652954101562,
227
+ 0.03987968063354492,
228
+ 0.03972876739501953,
229
+ 0.04102735900878906,
230
+ 0.03927689743041992,
231
+ 0.038796287536621094,
232
+ 0.03880176162719726,
233
+ 0.039893054962158205,
234
+ 0.042005599975585936,
235
+ 0.041323265075683596,
236
+ 0.0407031364440918,
237
+ 0.04084348678588867,
238
+ 0.04144950485229492,
239
+ 0.04140662384033203,
240
+ 0.0421802864074707,
241
+ 0.04241731262207031,
242
+ 0.04222982406616211,
243
+ 0.042391136169433595,
244
+ 0.04235331344604492,
245
+ 0.042299072265625,
246
+ 0.041650463104248046,
247
+ 0.04126144027709961,
248
+ 0.04216086578369141,
249
+ 0.04156169509887695,
250
+ 0.041647838592529296,
251
+ 0.0394257926940918,
252
+ 0.03950249481201172,
253
+ 0.04053414535522461,
254
+ 0.04100012969970703,
255
+ 0.040489376068115236,
256
+ 0.04085747146606445,
257
+ 0.041715774536132816,
258
+ 0.04107148742675781,
259
+ 0.041091678619384765,
260
+ 0.04071059036254883,
261
+ 0.04041411209106445,
262
+ 0.04057107162475586,
263
+ 0.04092681503295898,
264
+ 0.04048652648925781,
265
+ 0.040594783782958985,
266
+ 0.04086592102050781,
267
+ 0.04105219268798828,
268
+ 0.03997222518920898,
269
+ 0.04036175918579102,
270
+ 0.038977855682373046,
271
+ 0.040046142578125,
272
+ 0.04067155075073242,
273
+ 0.03990975952148437,
274
+ 0.04017107009887695,
275
+ 0.040495361328125,
276
+ 0.040779937744140626,
277
+ 0.04123270416259766,
278
+ 0.03907385635375977,
279
+ 0.03942886352539063,
280
+ 0.03925279998779297,
281
+ 0.039649185180664064,
282
+ 0.04047062301635742,
283
+ 0.04043833541870117,
284
+ 0.04056195068359375,
285
+ 0.03920675277709961,
286
+ 0.04018156814575195,
287
+ 0.03922252655029297,
288
+ 0.039454944610595705,
289
+ 0.03938899230957031,
290
+ 0.04092544174194336,
291
+ 0.041861312866210934,
292
+ 0.04115097427368164,
293
+ 0.03951171112060547,
294
+ 0.039311519622802736,
295
+ 0.03943756866455078,
296
+ 0.04027667236328125,
297
+ 0.0399692497253418,
298
+ 0.03905260848999023,
299
+ 0.039489822387695314,
300
+ 0.0403172492980957,
301
+ 0.041360416412353516,
302
+ 0.039731006622314456,
303
+ 0.0407435188293457,
304
+ 0.040927806854248044,
305
+ 0.04049945449829102,
306
+ 0.04109635162353516,
307
+ 0.04051635360717774,
308
+ 0.041217758178710935,
309
+ 0.041164703369140625,
310
+ 0.04132793426513672,
311
+ 0.04140889739990234,
312
+ 0.04156195068359375,
313
+ 0.04175334548950195,
314
+ 0.04056777572631836,
315
+ 0.04142803192138672,
316
+ 0.04089683151245117,
317
+ 0.040890113830566406,
318
+ 0.04128550338745117,
319
+ 0.04154127883911133,
320
+ 0.04208550262451172,
321
+ 0.04127667236328125,
322
+ 0.041409889221191404,
323
+ 0.04119113540649414,
324
+ 0.04024716949462891,
325
+ 0.04074355316162109,
326
+ 0.04013951873779297,
327
+ 0.04112214279174805,
328
+ 0.04130985641479492,
329
+ 0.042137409210205076,
330
+ 0.041546302795410155,
331
+ 0.04130144119262695,
332
+ 0.042115329742431644,
333
+ 0.04159372711181641,
334
+ 0.04161011123657227,
335
+ 0.040951713562011716,
336
+ 0.04055036926269531,
337
+ 0.04089923095703125,
338
+ 0.04099647903442383,
339
+ 0.04173875045776367,
340
+ 0.041740222930908205,
341
+ 0.04061587142944336,
342
+ 0.041406944274902345,
343
+ 0.04077532958984375,
344
+ 0.04054735946655273,
345
+ 0.04026124954223633,
346
+ 0.039889984130859375,
347
+ 0.039836769104003904,
348
+ 0.040271678924560544,
349
+ 0.04051667022705078,
350
+ 0.04025843048095703,
351
+ 0.041102657318115236,
352
+ 0.04170012664794922,
353
+ 0.04115087890625,
354
+ 0.03971779251098633,
355
+ 0.04065865707397461,
356
+ 0.04112899017333985,
357
+ 0.04167340850830078,
358
+ 0.04179584121704102,
359
+ 0.04180348968505859,
360
+ 0.04165439987182617,
361
+ 0.04130879974365234,
362
+ 0.041522430419921874,
363
+ 0.04147289657592773,
364
+ 0.04177433776855469,
365
+ 0.04116348648071289,
366
+ 0.043388256072998045,
367
+ 0.04378895950317383,
368
+ 0.04129987335205078,
369
+ 0.041887454986572266,
370
+ 0.04039408111572266,
371
+ 0.04118435287475586,
372
+ 0.0407973747253418,
373
+ 0.04055510330200195,
374
+ 0.040620670318603516,
375
+ 0.04092355346679687,
376
+ 0.041842784881591794,
377
+ 0.04060460662841797,
378
+ 0.04089462280273438,
379
+ 0.04106710433959961,
380
+ 0.03994182586669922,
381
+ 0.04090476989746094,
382
+ 0.03931772613525391,
383
+ 0.04022332763671875,
384
+ 0.04055683135986328,
385
+ 0.03997577667236328,
386
+ 0.039663646697998045,
387
+ 0.03931644821166992,
388
+ 0.039621631622314454,
389
+ 0.03991455841064453,
390
+ 0.04005836868286133,
391
+ 0.0400975341796875,
392
+ 0.040369407653808594,
393
+ 0.039888801574707033,
394
+ 0.04047494506835937,
395
+ 0.03972719955444336,
396
+ 0.04018918228149414,
397
+ 0.040294143676757814,
398
+ 0.040176033020019535,
399
+ 0.04035347366333008,
400
+ 0.041140640258789066,
401
+ 0.04213587188720703,
402
+ 0.04063116836547852,
403
+ 0.03985286331176758,
404
+ 0.04016323089599609,
405
+ 0.04180486297607422,
406
+ 0.04106159973144531,
407
+ 0.04055104064941406,
408
+ 0.04075049591064453,
409
+ 0.04144265747070312,
410
+ 0.042190944671630856,
411
+ 0.04093769454956055,
412
+ 0.04136153411865234,
413
+ 0.04203952026367187,
414
+ 0.04138134384155273,
415
+ 0.04055936050415039,
416
+ 0.04028268814086914,
417
+ 0.04082495880126953,
418
+ 0.040946720123291015,
419
+ 0.04052201461791992,
420
+ 0.03910755157470703,
421
+ 0.039964927673339846,
422
+ 0.03910614395141602,
423
+ 0.039076030731201174,
424
+ 0.0416732177734375,
425
+ 0.04074822235107422,
426
+ 0.041765151977539064,
427
+ 0.040593727111816406,
428
+ 0.0396712646484375,
429
+ 0.04136105728149414,
430
+ 0.040004928588867186,
431
+ 0.0393787841796875,
432
+ 0.03986854553222656,
433
+ 0.04215033721923828,
434
+ 0.042046432495117185,
435
+ 0.04165488052368164,
436
+ 0.041177631378173825,
437
+ 0.041282142639160156,
438
+ 0.04197859191894531,
439
+ 0.04058841705322266,
440
+ 0.04110255813598633,
441
+ 0.041939712524414065,
442
+ 0.041769920349121095,
443
+ 0.04141471862792969,
444
+ 0.04044083023071289,
445
+ 0.04058028793334961,
446
+ 0.039788063049316404,
447
+ 0.04175974273681641,
448
+ 0.04062607955932617,
449
+ 0.040643840789794924,
450
+ 0.041989952087402346,
451
+ 0.041531360626220704,
452
+ 0.04089692687988281,
453
+ 0.041573856353759764,
454
+ 0.040997920989990236,
455
+ 0.04107161712646484,
456
+ 0.04183990478515625,
457
+ 0.04095897674560547,
458
+ 0.04107731246948242,
459
+ 0.03973628616333008,
460
+ 0.04064271926879883,
461
+ 0.04028361511230469,
462
+ 0.04032780838012695,
463
+ 0.04030451202392578,
464
+ 0.03970716857910156,
465
+ 0.04026736068725586,
466
+ 0.040434719085693356,
467
+ 0.041146785736083984,
468
+ 0.04140016174316406,
469
+ 0.04091072082519531,
470
+ 0.04113446426391602,
471
+ 0.04292873764038086,
472
+ 0.04137481689453125,
473
+ 0.04076559829711914,
474
+ 0.04198960113525391,
475
+ 0.04107952117919922,
476
+ 0.041350048065185545,
477
+ 0.042510944366455077,
478
+ 0.041451454162597656,
479
+ 0.0411693115234375,
480
+ 0.04067270278930664,
481
+ 0.04105206298828125,
482
+ 0.040296638488769534,
483
+ 0.04047183990478516,
484
+ 0.04077145767211914,
485
+ 0.041627552032470705,
486
+ 0.04033446502685547,
487
+ 0.04019507217407227,
488
+ 0.04038185501098633,
489
+ 0.040734046936035155,
490
+ 0.03979292678833008,
491
+ 0.04035673522949219,
492
+ 0.039920993804931644,
493
+ 0.03981913757324219,
494
+ 0.039256862640380856,
495
+ 0.04180863952636719,
496
+ 0.04201779174804687,
497
+ 0.04097087860107422,
498
+ 0.041655937194824216,
499
+ 0.04192448043823242,
500
+ 0.04117097473144531,
501
+ 0.041486625671386716,
502
+ 0.041059616088867185,
503
+ 0.040226593017578124,
504
+ 0.03967728042602539,
505
+ 0.03971267318725586,
506
+ 0.040346847534179685,
507
+ 0.040519073486328126,
508
+ 0.04071187210083008,
509
+ 0.040181121826171874,
510
+ 0.039830718994140625,
511
+ 0.04020953750610352,
512
+ 0.04101318359375,
513
+ 0.041192031860351565,
514
+ 0.04000604629516601,
515
+ 0.03978236770629883,
516
+ 0.03962108612060547,
517
+ 0.03952025604248047,
518
+ 0.039889152526855466,
519
+ 0.04150806427001953,
520
+ 0.04086486434936523,
521
+ 0.039819713592529296,
522
+ 0.04043600082397461,
523
+ 0.03956934356689453,
524
+ 0.04144131088256836,
525
+ 0.04124975967407227,
526
+ 0.04144188690185547,
527
+ 0.04072371292114258,
528
+ 0.04142940902709961,
529
+ 0.040022014617919925
530
+ ],
531
+ "count": 310,
532
+ "total": 12.637822704315191,
533
+ "mean": 0.040767170013919954,
534
+ "p50": 0.04076852798461914,
535
+ "p90": 0.04180524063110352,
536
+ "p95": 0.042101907539367676,
537
+ "p99": 0.04250251750946045,
538
+ "stdev": 0.0008450281427833556,
539
+ "stdev_": 2.0728153131424643
540
+ },
541
+ "throughput": {
542
+ "unit": "tokens/s",
543
+ "value": 24.529541777330873
544
+ },
545
+ "energy": null,
546
+ "efficiency": null
547
+ }
548
+ }
549
+ }