jerryzh168 commited on
Commit
a144c9b
·
verified ·
1 Parent(s): a63ba95

Upload pytorch-llama/4bit-awq-gemm.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. pytorch-llama/4bit-awq-gemm.json +549 -0
pytorch-llama/4bit-awq-gemm.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": "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
+ "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": 6349.856768,
111
+ "max_global_vram": 23709.220864,
112
+ "max_process_vram": 5286.920192,
113
+ "max_reserved": 4211.081216,
114
+ "max_allocated": 3939.656192
115
+ },
116
+ "latency": {
117
+ "unit": "s",
118
+ "values": [
119
+ 6.64453759765625
120
+ ],
121
+ "count": 1,
122
+ "total": 6.64453759765625,
123
+ "mean": 6.64453759765625,
124
+ "p50": 6.64453759765625,
125
+ "p90": 6.64453759765625,
126
+ "p95": 6.64453759765625,
127
+ "p99": 6.64453759765625,
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": 4635.348992,
139
+ "max_global_vram": 24478.875648,
140
+ "max_process_vram": 5668.601856,
141
+ "max_reserved": 4330.61888,
142
+ "max_allocated": 4048.256512
143
+ },
144
+ "latency": {
145
+ "unit": "s",
146
+ "values": [
147
+ 0.05503110504150391,
148
+ 0.05503148651123047,
149
+ 0.056178112030029294,
150
+ 0.05623561477661133,
151
+ 0.05539152145385742,
152
+ 0.05583244705200195,
153
+ 0.054368606567382814,
154
+ 0.0565338249206543,
155
+ 0.05576860809326172,
156
+ 0.05855392074584961
157
+ ],
158
+ "count": 10,
159
+ "total": 0.5589252471923828,
160
+ "mean": 0.05589252471923828,
161
+ "p50": 0.05580052757263183,
162
+ "p90": 0.05673583450317383,
163
+ "p95": 0.05764487762451172,
164
+ "p99": 0.058372112121582026,
165
+ "stdev": 0.0010848636677924092,
166
+ "stdev_": 1.9409816844773837
167
+ },
168
+ "throughput": {
169
+ "unit": "tokens/s",
170
+ "value": 2290.1094671062915
171
+ },
172
+ "energy": null,
173
+ "efficiency": null
174
+ },
175
+ "decode": {
176
+ "memory": {
177
+ "unit": "MB",
178
+ "max_ram": 4635.348992,
179
+ "max_global_vram": 24642.453504,
180
+ "max_process_vram": 5668.601856,
181
+ "max_reserved": 4330.61888,
182
+ "max_allocated": 4048.258048
183
+ },
184
+ "latency": {
185
+ "unit": "s",
186
+ "values": [
187
+ 1.717583984375,
188
+ 1.7140399169921876,
189
+ 1.71884130859375,
190
+ 1.7282589111328126,
191
+ 1.7339022216796875,
192
+ 1.7213660888671876,
193
+ 1.7198265380859374,
194
+ 1.69797265625,
195
+ 1.7129921875,
196
+ 1.8204344482421875
197
+ ],
198
+ "count": 10,
199
+ "total": 17.28521826171875,
200
+ "mean": 1.728521826171875,
201
+ "p50": 1.7193339233398437,
202
+ "p90": 1.7425554443359375,
203
+ "p95": 1.7814949462890624,
204
+ "p99": 1.8126465478515625,
205
+ "stdev": 0.03193940582522888,
206
+ "stdev_": 1.8477872446635217
207
+ },
208
+ "throughput": {
209
+ "unit": "tokens/s",
210
+ "value": 17.93439893591342
211
+ },
212
+ "energy": null,
213
+ "efficiency": null
214
+ },
215
+ "per_token": {
216
+ "memory": null,
217
+ "latency": {
218
+ "unit": "s",
219
+ "values": [
220
+ 0.05596720123291016,
221
+ 0.05637516784667969,
222
+ 0.05543753433227539,
223
+ 0.05507980728149414,
224
+ 0.05437231826782227,
225
+ 0.055271968841552735,
226
+ 0.056059070587158207,
227
+ 0.056449600219726566,
228
+ 0.05596623992919922,
229
+ 0.055463455200195313,
230
+ 0.05580003356933594,
231
+ 0.05514332962036133,
232
+ 0.055476062774658205,
233
+ 0.05491804885864258,
234
+ 0.054805694580078126,
235
+ 0.054357696533203125,
236
+ 0.055393089294433595,
237
+ 0.054887840270996094,
238
+ 0.05500073623657226,
239
+ 0.05470105743408203,
240
+ 0.05624684906005859,
241
+ 0.055674560546875,
242
+ 0.054724830627441406,
243
+ 0.0550332145690918,
244
+ 0.055050785064697266,
245
+ 0.05457702255249024,
246
+ 0.054798465728759765,
247
+ 0.05624467086791992,
248
+ 0.0560634880065918,
249
+ 0.05558377456665039,
250
+ 0.05559833526611328,
251
+ 0.05444054412841797,
252
+ 0.05430252838134766,
253
+ 0.05439487838745117,
254
+ 0.055029857635498045,
255
+ 0.055554271697998044,
256
+ 0.05528985595703125,
257
+ 0.05566563034057617,
258
+ 0.0559892807006836,
259
+ 0.05581078338623047,
260
+ 0.055621471405029294,
261
+ 0.05533734512329101,
262
+ 0.056597633361816405,
263
+ 0.055871902465820314,
264
+ 0.05509036636352539,
265
+ 0.05506854248046875,
266
+ 0.05513759994506836,
267
+ 0.055596576690673825,
268
+ 0.05539929580688477,
269
+ 0.0551014404296875,
270
+ 0.055277217864990236,
271
+ 0.05462879943847656,
272
+ 0.05518960189819336,
273
+ 0.055173408508300784,
274
+ 0.05521807861328125,
275
+ 0.05475705718994141,
276
+ 0.05470764923095703,
277
+ 0.05541244888305664,
278
+ 0.055156097412109376,
279
+ 0.05496499252319336,
280
+ 0.05455446243286133,
281
+ 0.056657470703125,
282
+ 0.05545353698730469,
283
+ 0.055706527709960936,
284
+ 0.055823455810546874,
285
+ 0.05598230361938476,
286
+ 0.055120574951171876,
287
+ 0.05478438568115234,
288
+ 0.05467168045043945,
289
+ 0.05517049789428711,
290
+ 0.05529232025146484,
291
+ 0.05538246536254883,
292
+ 0.054830142974853516,
293
+ 0.05468191909790039,
294
+ 0.05496223831176758,
295
+ 0.05508172988891601,
296
+ 0.057529472351074216,
297
+ 0.05543775939941406,
298
+ 0.05504735946655273,
299
+ 0.056652385711669924,
300
+ 0.05581151962280274,
301
+ 0.05540220642089844,
302
+ 0.055823711395263674,
303
+ 0.055400318145751956,
304
+ 0.05468521499633789,
305
+ 0.054793087005615235,
306
+ 0.05524348831176758,
307
+ 0.05561004638671875,
308
+ 0.0554854736328125,
309
+ 0.05575203323364258,
310
+ 0.05517225646972656,
311
+ 0.055634910583496094,
312
+ 0.05538291168212891,
313
+ 0.055080894470214845,
314
+ 0.05647171020507812,
315
+ 0.05586511993408203,
316
+ 0.056236286163330075,
317
+ 0.0558397102355957,
318
+ 0.054919456481933596,
319
+ 0.05532627105712891,
320
+ 0.05551532745361328,
321
+ 0.05585120010375977,
322
+ 0.05585951995849609,
323
+ 0.05586428833007812,
324
+ 0.05486710357666016,
325
+ 0.05557219314575195,
326
+ 0.05467580795288086,
327
+ 0.05549046325683594,
328
+ 0.05546985626220703,
329
+ 0.05542700958251953,
330
+ 0.055618526458740235,
331
+ 0.05524524688720703,
332
+ 0.05667580795288086,
333
+ 0.055995777130126954,
334
+ 0.05630582427978516,
335
+ 0.055726558685302734,
336
+ 0.05565529632568359,
337
+ 0.055659648895263675,
338
+ 0.05626460647583008,
339
+ 0.05617097473144531,
340
+ 0.05771820831298828,
341
+ 0.055132320404052734,
342
+ 0.055727775573730466,
343
+ 0.05502320098876953,
344
+ 0.05532460784912109,
345
+ 0.056063232421875,
346
+ 0.05610335922241211,
347
+ 0.05521129608154297,
348
+ 0.05461382293701172,
349
+ 0.05621088027954101,
350
+ 0.05493718338012695,
351
+ 0.055665790557861326,
352
+ 0.05619779205322266,
353
+ 0.058518657684326174,
354
+ 0.055929889678955076,
355
+ 0.055870975494384766,
356
+ 0.055893535614013674,
357
+ 0.05570566558837891,
358
+ 0.05599852752685547,
359
+ 0.05544598388671875,
360
+ 0.05592911911010742,
361
+ 0.05619827270507813,
362
+ 0.05598297500610352,
363
+ 0.05601696014404297,
364
+ 0.05518793487548828,
365
+ 0.05504118347167969,
366
+ 0.0560975341796875,
367
+ 0.05725628662109375,
368
+ 0.056258049011230465,
369
+ 0.0561228141784668,
370
+ 0.05579196929931641,
371
+ 0.05590393447875976,
372
+ 0.055871585845947265,
373
+ 0.055774593353271486,
374
+ 0.05570595169067383,
375
+ 0.05606550216674805,
376
+ 0.05573023986816406,
377
+ 0.055296417236328124,
378
+ 0.05504934310913086,
379
+ 0.05574620819091797,
380
+ 0.05592668914794922,
381
+ 0.05649148941040039,
382
+ 0.0556003532409668,
383
+ 0.05506803131103516,
384
+ 0.055417152404785154,
385
+ 0.05743433761596679,
386
+ 0.056299358367919924,
387
+ 0.05565270233154297,
388
+ 0.05635913467407227,
389
+ 0.05638422393798828,
390
+ 0.054519424438476564,
391
+ 0.05492627334594727,
392
+ 0.0552775993347168,
393
+ 0.05675699234008789,
394
+ 0.05520207977294922,
395
+ 0.054873950958251955,
396
+ 0.054984222412109374,
397
+ 0.055158687591552735,
398
+ 0.055889854431152346,
399
+ 0.056033313751220705,
400
+ 0.054382305145263675,
401
+ 0.053922527313232424,
402
+ 0.0544095344543457,
403
+ 0.05602323150634766,
404
+ 0.05501222229003906,
405
+ 0.054485694885253906,
406
+ 0.05455244827270508,
407
+ 0.05586511993408203,
408
+ 0.05601020812988281,
409
+ 0.055950656890869144,
410
+ 0.053898048400878903,
411
+ 0.05543491363525391,
412
+ 0.05637590408325195,
413
+ 0.055580577850341796,
414
+ 0.05497836685180664,
415
+ 0.05409417724609375,
416
+ 0.054698112487792966,
417
+ 0.05414665603637695,
418
+ 0.054037246704101566,
419
+ 0.05524428939819336,
420
+ 0.056038494110107424,
421
+ 0.05577017593383789,
422
+ 0.055400928497314456,
423
+ 0.054889118194580075,
424
+ 0.05563926315307617,
425
+ 0.05477939224243164,
426
+ 0.055285247802734375,
427
+ 0.05561484909057617,
428
+ 0.05592176055908203,
429
+ 0.05637519836425781,
430
+ 0.05623830413818359,
431
+ 0.05617081451416016,
432
+ 0.0559967041015625,
433
+ 0.055958625793457034,
434
+ 0.05606281661987305,
435
+ 0.05589920043945312,
436
+ 0.05584953689575195,
437
+ 0.05704137420654297,
438
+ 0.05657097625732422,
439
+ 0.05636627197265625,
440
+ 0.05633766555786133,
441
+ 0.05681817626953125,
442
+ 0.05622713470458984,
443
+ 0.05593119812011719,
444
+ 0.05513379287719727,
445
+ 0.057726593017578126,
446
+ 0.055895999908447264,
447
+ 0.05436476898193359,
448
+ 0.052256446838378906,
449
+ 0.051722496032714844,
450
+ 0.05475353622436523,
451
+ 0.05436435317993164,
452
+ 0.052705726623535155,
453
+ 0.05655100631713867,
454
+ 0.0550648307800293,
455
+ 0.05304572677612305,
456
+ 0.05447673416137695,
457
+ 0.053489505767822264,
458
+ 0.05376393508911133,
459
+ 0.05360259246826172,
460
+ 0.05315206527709961,
461
+ 0.05345993423461914,
462
+ 0.053002559661865234,
463
+ 0.053725791931152345,
464
+ 0.053625598907470706,
465
+ 0.05417843246459961,
466
+ 0.05624614334106445,
467
+ 0.05539561462402344,
468
+ 0.055847137451171876,
469
+ 0.05501161575317383,
470
+ 0.05341702270507812,
471
+ 0.054609630584716795,
472
+ 0.055186721801757814,
473
+ 0.05576544189453125,
474
+ 0.05407526397705078,
475
+ 0.05470758438110351,
476
+ 0.055508926391601564,
477
+ 0.05403196716308594,
478
+ 0.0524271354675293,
479
+ 0.052520736694335934,
480
+ 0.052684127807617186,
481
+ 0.05460601425170898,
482
+ 0.054717952728271485,
483
+ 0.054216064453125,
484
+ 0.05506659317016602,
485
+ 0.05477875137329102,
486
+ 0.054787647247314455,
487
+ 0.05401033782958985,
488
+ 0.054600383758544924,
489
+ 0.05515737533569336,
490
+ 0.054726718902587894,
491
+ 0.05671171188354492,
492
+ 0.056615550994873046,
493
+ 0.056598335266113284,
494
+ 0.055347328186035154,
495
+ 0.05720006561279297,
496
+ 0.05708249664306641,
497
+ 0.059014110565185546,
498
+ 0.06099126434326172,
499
+ 0.059362590789794924,
500
+ 0.057707679748535155,
501
+ 0.05730239868164062,
502
+ 0.05657676696777344,
503
+ 0.05653670501708984,
504
+ 0.057211135864257814,
505
+ 0.05927750396728516,
506
+ 0.05773324966430664,
507
+ 0.056075424194335935,
508
+ 0.059159454345703126,
509
+ 0.05695606231689453,
510
+ 0.056573982238769534,
511
+ 0.05758566284179688,
512
+ 0.05676591873168945,
513
+ 0.05843027114868164,
514
+ 0.05655945587158203,
515
+ 0.05572092819213867,
516
+ 0.05647289657592774,
517
+ 0.05808297729492187,
518
+ 0.05623801422119141,
519
+ 0.06520060729980469,
520
+ 0.06345920181274414,
521
+ 0.05951456069946289,
522
+ 0.06055311965942383,
523
+ 0.061469566345214846,
524
+ 0.062056705474853514,
525
+ 0.057702430725097655,
526
+ 0.05922835159301758,
527
+ 0.06045548629760742,
528
+ 0.06728828430175782,
529
+ 0.05621558380126953
530
+ ],
531
+ "count": 310,
532
+ "total": 17.275037555694567,
533
+ "mean": 0.05572592759901478,
534
+ "p50": 0.05558217620849609,
535
+ "p90": 0.056964593505859376,
536
+ "p95": 0.05827398891448975,
537
+ "p99": 0.06200386295318605,
538
+ "stdev": 0.0016283729962815897,
539
+ "stdev_": 2.9221101674588885
540
+ },
541
+ "throughput": {
542
+ "unit": "tokens/s",
543
+ "value": 17.944968223690545
544
+ },
545
+ "energy": null,
546
+ "efficiency": null
547
+ }
548
+ }
549
+ }