IlyasMoutawwakil HF Staff commited on
Commit
5e9cceb
·
verified ·
1 Parent(s): 0e07b4c

Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub

Browse files
cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
4
+ "backend": {
5
+ "name": "pytorch",
6
+ "version": "2.3.1+cpu",
7
+ "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
8
+ "task": "text-generation",
9
+ "library": "transformers",
10
+ "model_type": "gpt2",
11
+ "model": "openai-community/gpt2",
12
+ "processor": "openai-community/gpt2",
13
+ "device": "cpu",
14
+ "device_ids": null,
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": null,
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": null,
34
+ "quantization_config": {},
35
+ "deepspeed_inference": false,
36
+ "deepspeed_inference_config": {},
37
+ "peft_type": null,
38
+ "peft_config": {}
39
+ },
40
+ "scenario": {
41
+ "name": "inference",
42
+ "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
43
+ "iterations": 1,
44
+ "duration": 1,
45
+ "warmup_runs": 1,
46
+ "input_shapes": {
47
+ "batch_size": 1,
48
+ "num_choices": 2,
49
+ "sequence_length": 2
50
+ },
51
+ "new_tokens": null,
52
+ "memory": true,
53
+ "latency": true,
54
+ "energy": true,
55
+ "forward_kwargs": {},
56
+ "generate_kwargs": {
57
+ "max_new_tokens": 2,
58
+ "min_new_tokens": 2
59
+ },
60
+ "call_kwargs": {
61
+ "num_inference_steps": 2
62
+ }
63
+ },
64
+ "launcher": {
65
+ "name": "process",
66
+ "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
67
+ "device_isolation": false,
68
+ "device_isolation_action": "error",
69
+ "numactl": false,
70
+ "numactl_kwargs": {},
71
+ "start_method": "spawn"
72
+ },
73
+ "environment": {
74
+ "cpu": " AMD EPYC 7742 64-Core Processor",
75
+ "cpu_count": 128,
76
+ "cpu_ram_mb": 540671.660032,
77
+ "system": "Linux",
78
+ "machine": "x86_64",
79
+ "platform": "Linux-5.4.0-166-generic-x86_64-with-glibc2.35",
80
+ "processor": "x86_64",
81
+ "python_version": "3.10.12",
82
+ "optimum_benchmark_version": "0.4.0",
83
+ "optimum_benchmark_commit": null,
84
+ "transformers_version": "4.44.0",
85
+ "transformers_commit": null,
86
+ "accelerate_version": "0.33.0",
87
+ "accelerate_commit": null,
88
+ "diffusers_version": "0.30.0",
89
+ "diffusers_commit": null,
90
+ "optimum_version": null,
91
+ "optimum_commit": null,
92
+ "timm_version": "1.0.8",
93
+ "timm_commit": null,
94
+ "peft_version": "0.12.0",
95
+ "peft_commit": null
96
+ }
97
+ },
98
+ "report": {
99
+ "load": {
100
+ "memory": {
101
+ "unit": "MB",
102
+ "max_ram": 1100.808192,
103
+ "max_global_vram": null,
104
+ "max_process_vram": null,
105
+ "max_reserved": null,
106
+ "max_allocated": null
107
+ },
108
+ "latency": {
109
+ "unit": "s",
110
+ "count": 1,
111
+ "total": 5.487202433869243,
112
+ "mean": 5.487202433869243,
113
+ "stdev": 0.0,
114
+ "p50": 5.487202433869243,
115
+ "p90": 5.487202433869243,
116
+ "p95": 5.487202433869243,
117
+ "p99": 5.487202433869243,
118
+ "values": [
119
+ 5.487202433869243
120
+ ]
121
+ },
122
+ "throughput": null,
123
+ "energy": {
124
+ "unit": "kWh",
125
+ "cpu": 6.876032397849486e-05,
126
+ "ram": 0.00011540027233542666,
127
+ "gpu": 0,
128
+ "total": 0.00018416059631392153
129
+ },
130
+ "efficiency": null
131
+ },
132
+ "prefill": {
133
+ "memory": {
134
+ "unit": "MB",
135
+ "max_ram": 953.925632,
136
+ "max_global_vram": null,
137
+ "max_process_vram": null,
138
+ "max_reserved": null,
139
+ "max_allocated": null
140
+ },
141
+ "latency": {
142
+ "unit": "s",
143
+ "count": 15,
144
+ "total": 0.4038483016192913,
145
+ "mean": 0.026923220107952752,
146
+ "stdev": 0.0009084448061827903,
147
+ "p50": 0.027313193306326866,
148
+ "p90": 0.02764224763959646,
149
+ "p95": 0.027676124684512617,
150
+ "p99": 0.027688074223697186,
151
+ "values": [
152
+ 0.026994346641004086,
153
+ 0.027311922051012516,
154
+ 0.027691061608493328,
155
+ 0.027425603941082954,
156
+ 0.027315628714859486,
157
+ 0.027601034380495548,
158
+ 0.027313193306326866,
159
+ 0.027308995835483074,
160
+ 0.027669723145663738,
161
+ 0.027342739515006542,
162
+ 0.02739853225648403,
163
+ 0.02698468789458275,
164
+ 0.024952448904514313,
165
+ 0.025541331619024277,
166
+ 0.024997051805257797
167
+ ]
168
+ },
169
+ "throughput": {
170
+ "unit": "tokens/s",
171
+ "value": 74.28531921444372
172
+ },
173
+ "energy": {
174
+ "unit": "kWh",
175
+ "cpu": 7.686888303596345e-07,
176
+ "ram": 1.2898531801589255e-06,
177
+ "gpu": 0.0,
178
+ "total": 2.05854201051856e-06
179
+ },
180
+ "efficiency": {
181
+ "unit": "tokens/kWh",
182
+ "value": 971561.4205493855
183
+ }
184
+ },
185
+ "decode": {
186
+ "memory": {
187
+ "unit": "MB",
188
+ "max_ram": 953.925632,
189
+ "max_global_vram": null,
190
+ "max_process_vram": null,
191
+ "max_reserved": null,
192
+ "max_allocated": null
193
+ },
194
+ "latency": {
195
+ "unit": "s",
196
+ "count": 15,
197
+ "total": 0.6356315612792969,
198
+ "mean": 0.042375437418619794,
199
+ "stdev": 0.00034657355292791177,
200
+ "p50": 0.042360042221844196,
201
+ "p90": 0.042829320579767224,
202
+ "p95": 0.04291763175278902,
203
+ "p99": 0.042948253490030765,
204
+ "values": [
205
+ 0.042360042221844196,
206
+ 0.04162576608359814,
207
+ 0.04220435116440058,
208
+ 0.04219313059002161,
209
+ 0.042200563475489616,
210
+ 0.04206929635256529,
211
+ 0.04228834807872772,
212
+ 0.042419434525072575,
213
+ 0.04195635486394167,
214
+ 0.04265898372977972,
215
+ 0.04251733794808388,
216
+ 0.04255935549736023,
217
+ 0.04290122725069523,
218
+ 0.042721460573375225,
219
+ 0.0429559089243412
220
+ ]
221
+ },
222
+ "throughput": {
223
+ "unit": "tokens/s",
224
+ "value": 23.598576461197766
225
+ },
226
+ "energy": {
227
+ "unit": "kWh",
228
+ "cpu": 1.200366742412415e-06,
229
+ "ram": 2.014225617285732e-06,
230
+ "gpu": 0.0,
231
+ "total": 3.214592359698147e-06
232
+ },
233
+ "efficiency": {
234
+ "unit": "tokens/kWh",
235
+ "value": 311081.43369503337
236
+ }
237
+ },
238
+ "per_token": {
239
+ "memory": null,
240
+ "latency": {
241
+ "unit": "s",
242
+ "count": 15,
243
+ "total": 0.6280833603814244,
244
+ "mean": 0.0418722240254283,
245
+ "stdev": 0.0003345754489440691,
246
+ "p50": 0.041857900097966194,
247
+ "p90": 0.04232425354421139,
248
+ "p95": 0.042385307233780624,
249
+ "p99": 0.04241082986816764,
250
+ "values": [
251
+ 0.041857900097966194,
252
+ 0.0411617960780859,
253
+ 0.04171398188918829,
254
+ 0.04173143394291401,
255
+ 0.04167890548706055,
256
+ 0.041564010083675385,
257
+ 0.04178404342383146,
258
+ 0.04190758429467678,
259
+ 0.041453040204942226,
260
+ 0.04214917775243521,
261
+ 0.04200461693108082,
262
+ 0.042034843005239964,
263
+ 0.042371634393930435,
264
+ 0.042253182269632816,
265
+ 0.04241721052676439
266
+ ]
267
+ },
268
+ "throughput": {
269
+ "unit": "tokens/s",
270
+ "value": 23.882180210745833
271
+ },
272
+ "energy": null,
273
+ "efficiency": null
274
+ }
275
+ }
276
+ }