File size: 9,527 Bytes
9a41c6d
 
 
 
 
e805516
9a41c6d
 
a358373
24766a7
4d7e0be
 
9a41c6d
 
 
 
 
4d7e0be
 
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e8f8713
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc8a3a5
 
9a41c6d
 
 
 
 
647f86c
9a41c6d
 
933135c
9a41c6d
cccc92b
5b78a99
964c646
29a9d20
9a41c6d
933135c
9a41c6d
e805516
9a41c6d
 
 
e805516
9a41c6d
 
fecccd7
9a41c6d
 
 
e8f8713
 
 
964c646
e8f8713
 
 
 
 
 
 
 
964c646
 
e8f8713
964c646
 
 
 
e8f8713
964c646
e8f8713
 
 
 
 
964c646
 
e8f8713
964c646
e8f8713
 
 
9a41c6d
 
 
964c646
9a41c6d
 
 
 
 
 
 
647f86c
964c646
 
 
 
 
 
 
9a41c6d
964c646
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
964c646
9a41c6d
 
 
964c646
 
9a41c6d
964c646
9a41c6d
 
 
964c646
9a41c6d
 
 
 
 
964c646
9a41c6d
 
 
 
 
 
 
647f86c
964c646
 
 
 
 
 
 
9a41c6d
964c646
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
964c646
9a41c6d
 
 
964c646
 
9a41c6d
964c646
9a41c6d
 
 
964c646
9a41c6d
 
 
 
 
 
647f86c
964c646
 
 
 
 
 
 
9a41c6d
964c646
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
964c646
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.3.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-1023-azure-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.14",
            "optimum_benchmark_version": "0.3.1",
            "optimum_benchmark_commit": "64d7cde4ffc4c5c7d57f80bbb0bfaa5207878a13",
            "transformers_version": "4.42.4",
            "transformers_commit": null,
            "accelerate_version": "0.32.1",
            "accelerate_commit": null,
            "diffusers_version": "0.29.2",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "1.0.7",
            "timm_commit": null,
            "peft_version": null,
            "peft_commit": null
        }
    },
    "report": {
        "load": {
            "memory": {
                "unit": "MB",
                "max_ram": 1103.872,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 4.919561983999984,
                "mean": 4.919561983999984,
                "stdev": 0.0,
                "p50": 4.919561983999984,
                "p90": 4.919561983999984,
                "p95": 4.919561983999984,
                "p99": 4.919561983999984,
                "values": [
                    4.919561983999984
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 6.792191134558784e-05,
                "ram": 2.8389705653262353e-06,
                "gpu": 0,
                "total": 7.076088191091407e-05
            },
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 957.100032,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.6292663929999094,
                "mean": 0.04494759949999353,
                "stdev": 0.0032029502100528818,
                "p50": 0.045445408500000894,
                "p90": 0.04740634529999852,
                "p95": 0.049214044600006446,
                "p99": 0.051885698519998864,
                "values": [
                    0.046442116999969585,
                    0.046554438000043774,
                    0.04738424699996813,
                    0.04406174499996496,
                    0.047415816000011546,
                    0.046660520999978417,
                    0.04625886700000592,
                    0.04248507699998072,
                    0.052553611999996974,
                    0.042031533999988824,
                    0.04463194999999587,
                    0.04138110299999198,
                    0.04088198499999862,
                    0.04052338100001407
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 44.496258359699226
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.6222853903417236e-06,
                "ram": 6.779806889596785e-08,
                "gpu": 0.0,
                "total": 1.6900834592376914e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1183373.512750723
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 957.886464,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.3747018060000755,
                "mean": 0.02676441471429111,
                "stdev": 0.0017937853965709284,
                "p50": 0.02618412200001785,
                "p90": 0.02879489439999361,
                "p95": 0.028894297850013118,
                "p99": 0.028979822770045304,
                "values": [
                    0.028836732999991455,
                    0.028697270999998636,
                    0.02855340100001058,
                    0.02900120400005335,
                    0.0285897420000083,
                    0.028582808999999543,
                    0.02637456000002203,
                    0.025872948000028373,
                    0.02564162400000214,
                    0.025993684000013673,
                    0.024065482000025895,
                    0.02488537199997154,
                    0.025462244999971517,
                    0.024144730999978492
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 37.36304382796911
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.0019173555903966e-06,
                "ram": 4.1872209415600974e-08,
                "gpu": 0.0,
                "total": 1.0437895650059985e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 958047.5160184737
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.36880336300004046,
                "mean": 0.026343097357145746,
                "stdev": 0.0017236772430817462,
                "p50": 0.025735604499999454,
                "p90": 0.02829241819999311,
                "p95": 0.028386767600002825,
                "p99": 0.02847083912000528,
                "values": [
                    0.028330181000001176,
                    0.028204304999974283,
                    0.02811211200003072,
                    0.028491857000005893,
                    0.028079714000000422,
                    0.028069073000040135,
                    0.025991390000001502,
                    0.025479818999997406,
                    0.025319158000002062,
                    0.025469389000022602,
                    0.023749839000004158,
                    0.02454904000001079,
                    0.02513633299997764,
                    0.023821152999971673
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 37.96060829303898
            },
            "energy": null,
            "efficiency": null
        }
    }
}