File size: 9,519 Bytes
9a41c6d
 
 
 
 
7af033b
9a41c6d
 
a358373
24766a7
4d7e0be
 
9a41c6d
 
 
 
 
4d7e0be
 
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e8f8713
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
4abf556
bc8a3a5
 
9a41c6d
 
 
 
 
ea0da83
9a41c6d
 
4c74595
9a41c6d
cccc92b
b300f1c
ea0da83
bf31152
9a41c6d
25bcbda
9a41c6d
4f3b619
9a41c6d
 
 
bf31152
9a41c6d
 
fecccd7
9a41c6d
 
 
e8f8713
 
 
ea0da83
e8f8713
 
 
 
 
 
 
 
ea0da83
 
e8f8713
ea0da83
 
 
 
e8f8713
ea0da83
e8f8713
 
 
 
 
ea0da83
 
e8f8713
ea0da83
e8f8713
 
 
9a41c6d
 
 
ea0da83
9a41c6d
 
 
 
 
 
 
ea0da83
 
 
 
 
 
 
 
9a41c6d
ea0da83
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
ea0da83
9a41c6d
 
 
ea0da83
 
9a41c6d
ea0da83
9a41c6d
 
 
ea0da83
9a41c6d
 
 
 
 
ea0da83
9a41c6d
 
 
 
 
 
 
ea0da83
 
 
 
 
 
 
 
9a41c6d
ea0da83
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
ea0da83
9a41c6d
 
 
ea0da83
 
9a41c6d
ea0da83
9a41c6d
 
 
ea0da83
9a41c6d
 
 
 
 
 
ea0da83
 
 
 
 
 
 
 
9a41c6d
ea0da83
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
ea0da83
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.1+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.342208,
            "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": "a38b9ad1f603bed36d9a51f418af821526aa4776",
            "transformers_version": "4.44.2",
            "transformers_commit": null,
            "accelerate_version": "0.34.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": 1120.452608,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 4.971347182000045,
                "mean": 4.971347182000045,
                "stdev": 0.0,
                "p50": 4.971347182000045,
                "p90": 4.971347182000045,
                "p95": 4.971347182000045,
                "p99": 4.971347182000045,
                "values": [
                    4.971347182000045
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 6.86789030666666e-05,
                "ram": 2.870602845833556e-06,
                "gpu": 0,
                "total": 7.154950591250015e-05
            },
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 974.196736,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.6459417419999909,
                "mean": 0.046138695857142205,
                "stdev": 0.0022938885813929607,
                "p50": 0.047261455000011665,
                "p90": 0.04819082340000023,
                "p95": 0.04829793089999157,
                "p99": 0.048380139779976614,
                "values": [
                    0.047106271000018296,
                    0.047416639000005034,
                    0.04796989999999823,
                    0.04807001599999694,
                    0.04806495799999766,
                    0.04670207700002038,
                    0.04840069199997288,
                    0.047874763000038456,
                    0.048242598000001635,
                    0.043629858999963744,
                    0.04226758599997993,
                    0.04251509799996711,
                    0.04273223299998108,
                    0.044949052000049505
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 43.347562449370855
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.6945578272946532e-06,
                "ram": 7.08179840722991e-08,
                "gpu": 0.0,
                "total": 1.7653758113669521e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1132903.2533029756
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 974.589952,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.39573163400001476,
                "mean": 0.02826654528571534,
                "stdev": 0.0016085705090884627,
                "p50": 0.029242404999990868,
                "p90": 0.02939422069998727,
                "p95": 0.02975399204998439,
                "p99": 0.030273889609991327,
                "values": [
                    0.02915886400001,
                    0.029371260000004895,
                    0.029305927999985215,
                    0.030403863999993064,
                    0.029301228999997875,
                    0.029266966000022876,
                    0.029317350000042097,
                    0.02921784399995886,
                    0.02940406099997972,
                    0.025571119999995062,
                    0.02608762300002354,
                    0.025557784999989508,
                    0.02695941600001106,
                    0.026808324000000994
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 35.37751040645762
            },
            "energy": {
                "unit": "kWh",
                "cpu": 9.982612838163296e-07,
                "ram": 4.171891356664181e-08,
                "gpu": 0.0,
                "total": 1.0399801973829718e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 961556.7705196899
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.3892405020001206,
                "mean": 0.027802893000008617,
                "stdev": 0.0015366663695830915,
                "p50": 0.028728086499995698,
                "p90": 0.028885314599989442,
                "p95": 0.029229944599993018,
                "p99": 0.0297255337200005,
                "values": [
                    0.02865308200000527,
                    0.028859506999992846,
                    0.02877810400002545,
                    0.02984943100000237,
                    0.028758407999987412,
                    0.02875987200002328,
                    0.02882642500003385,
                    0.028697765000003983,
                    0.028896374999987984,
                    0.025206741000033617,
                    0.025738152000030823,
                    0.02517562299999554,
                    0.02659968599999729,
                    0.0264413310000009
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 35.96748007481416
            },
            "energy": null,
            "efficiency": null
        }
    }
}