File size: 9,471 Bytes
9a41c6d
 
 
 
 
92adc62
9a41c6d
 
a358373
24766a7
4d7e0be
 
9a41c6d
 
 
 
 
4d7e0be
 
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e8f8713
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc8a3a5
 
9a41c6d
 
 
 
 
24c7aaf
9a41c6d
 
4c74595
9a41c6d
cccc92b
b300f1c
4f3b619
bf31152
9a41c6d
92adc62
9a41c6d
4f3b619
9a41c6d
 
 
bf31152
9a41c6d
 
fecccd7
9a41c6d
 
 
e8f8713
 
 
4f3b619
e8f8713
 
 
 
 
 
 
 
4f3b619
 
e8f8713
4f3b619
 
 
 
e8f8713
4f3b619
e8f8713
 
 
 
 
4f3b619
 
e8f8713
4f3b619
e8f8713
 
 
9a41c6d
 
 
4f3b619
9a41c6d
 
 
 
 
 
 
75d7645
4f3b619
 
 
 
 
 
 
9a41c6d
4f3b619
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
4f3b619
9a41c6d
 
 
4f3b619
 
9a41c6d
4f3b619
9a41c6d
 
 
4f3b619
9a41c6d
 
 
 
 
4f3b619
9a41c6d
 
 
 
 
 
 
75d7645
4f3b619
 
 
 
 
 
 
9a41c6d
4f3b619
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
4f3b619
9a41c6d
 
 
4f3b619
 
9a41c6d
4f3b619
9a41c6d
 
 
4f3b619
9a41c6d
 
 
 
 
 
75d7645
4f3b619
 
 
 
 
 
 
9a41c6d
4f3b619
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
4f3b619
9a41c6d
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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
{
    "config": {
        "name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
        "backend": {
            "name": "pytorch",
            "version": "2.4.0+cpu",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "text-generation",
            "library": "transformers",
            "model_type": "gpt2",
            "model": "openai-community/gpt2",
            "processor": "openai-community/gpt2",
            "device": "cpu",
            "device_ids": null,
            "seed": 42,
            "inter_op_num_threads": null,
            "intra_op_num_threads": null,
            "model_kwargs": {},
            "processor_kwargs": {},
            "no_weights": true,
            "device_map": null,
            "torch_dtype": null,
            "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": {},
            "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": 1,
            "duration": 1,
            "warmup_runs": 1,
            "input_shapes": {
                "batch_size": 1,
                "num_choices": 2,
                "sequence_length": 2
            },
            "new_tokens": null,
            "memory": true,
            "latency": true,
            "energy": true,
            "forward_kwargs": {},
            "generate_kwargs": {
                "max_new_tokens": 2,
                "min_new_tokens": 2
            },
            "call_kwargs": {
                "num_inference_steps": 2
            }
        },
        "launcher": {
            "name": "process",
            "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
            "device_isolation": false,
            "device_isolation_action": "error",
            "numactl": false,
            "numactl_kwargs": {},
            "start_method": "spawn"
        },
        "environment": {
            "cpu": " AMD EPYC 7763 64-Core Processor",
            "cpu_count": 4,
            "cpu_ram_mb": 16757.338112,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-6.5.0-1025-azure-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.14",
            "optimum_benchmark_version": "0.4.0",
            "optimum_benchmark_commit": "58b115075422f6ead335f3300cfb58963f45392f",
            "transformers_version": "4.44.2",
            "transformers_commit": null,
            "accelerate_version": "0.33.0",
            "accelerate_commit": null,
            "diffusers_version": "0.30.2",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "1.0.9",
            "timm_commit": null,
            "peft_version": null,
            "peft_commit": null
        }
    },
    "report": {
        "load": {
            "memory": {
                "unit": "MB",
                "max_ram": 1121.923072,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 4.849537669,
                "mean": 4.849537669,
                "stdev": 0.0,
                "p50": 4.849537669,
                "p90": 4.849537669,
                "p95": 4.849537669,
                "p99": 4.849537669,
                "values": [
                    4.849537669
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 6.860313957777765e-05,
                "ram": 2.867441659802584e-06,
                "gpu": 0,
                "total": 7.147058123758023e-05
            },
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 975.519744,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.618159597999977,
                "mean": 0.04415425699999836,
                "stdev": 0.002600418237639911,
                "p50": 0.04504957099999274,
                "p90": 0.046263954199983456,
                "p95": 0.04740721254998448,
                "p99": 0.04891751770999803,
                "values": [
                    0.04639066099997535,
                    0.045968305000002374,
                    0.045536511999983986,
                    0.04566973999999391,
                    0.04591348299999254,
                    0.044296264999985624,
                    0.04456263000000149,
                    0.04929509400000143,
                    0.045571808000005376,
                    0.0414601800000014,
                    0.04108415999999693,
                    0.040960759000000735,
                    0.040567177000014,
                    0.040882824000021856
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 45.29574577599787
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.6360013574074413e-06,
                "ram": 6.837110197039081e-08,
                "gpu": 0.0,
                "total": 1.704372459377832e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1173452.4276049875
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 976.306176,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.387302993999981,
                "mean": 0.027664499571427217,
                "stdev": 0.0016072985574406137,
                "p50": 0.028582011500006388,
                "p90": 0.02924455249999767,
                "p95": 0.029434202100000563,
                "p99": 0.02962856041999828,
                "values": [
                    0.02967714999999771,
                    0.028648825999994187,
                    0.028796671000009155,
                    0.028848788000004788,
                    0.028871500000008155,
                    0.026753390000010313,
                    0.029303384000002097,
                    0.02910727899998733,
                    0.02851519700001859,
                    0.02511765599999194,
                    0.02587060799999108,
                    0.02706331499999237,
                    0.0252219999999852,
                    0.025507229999988112
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 36.14740969443858
            },
            "energy": {
                "unit": "kWh",
                "cpu": 9.499439144675409e-07,
                "ram": 3.9698098602100785e-08,
                "gpu": 0.0,
                "total": 9.896420130696423e-07
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1010466.3977413708
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.3812382600000319,
                "mean": 0.027231304285716566,
                "stdev": 0.0015234902863798406,
                "p50": 0.028098927500010973,
                "p90": 0.02874272959999189,
                "p95": 0.0289088990500062,
                "p99": 0.02907724541001869,
                "values": [
                    0.029119332000021814,
                    0.02816950400000451,
                    0.028306589000010263,
                    0.02836354499999061,
                    0.028327759000006836,
                    0.026371039000025576,
                    0.02879558899999779,
                    0.028619390999978123,
                    0.028028351000017437,
                    0.024788202999985742,
                    0.025549099000016895,
                    0.0267068619999975,
                    0.02490584199998125,
                    0.025187154999997574
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 36.72244228582626
            },
            "energy": null,
            "efficiency": null
        }
    }
}