File size: 9,509 Bytes
9a41c6d
 
 
 
 
7af033b
9a41c6d
 
a358373
24766a7
4d7e0be
 
9a41c6d
 
 
 
 
4d7e0be
 
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e8f8713
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
8db1502
bc8a3a5
 
9a41c6d
 
 
 
 
8ea21a3
9a41c6d
 
28a7835
9a41c6d
28a7835
91c890e
8ea21a3
 
9a41c6d
de8c1df
9a41c6d
de8c1df
9a41c6d
8ea21a3
9a41c6d
bf31152
9a41c6d
 
fecccd7
9a41c6d
 
 
e8f8713
 
 
8ea21a3
e8f8713
 
 
 
 
 
 
27a3a82
8ea21a3
 
 
 
 
 
 
 
 
 
e8f8713
 
 
 
8ea21a3
 
e8f8713
8ea21a3
e8f8713
 
 
9a41c6d
 
 
8ea21a3
9a41c6d
 
 
 
 
 
 
8ea21a3
 
 
 
 
 
 
 
9a41c6d
8ea21a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
8ea21a3
9a41c6d
 
 
8ea21a3
 
9a41c6d
8ea21a3
9a41c6d
 
 
8ea21a3
9a41c6d
 
 
 
 
8ea21a3
9a41c6d
 
 
 
 
 
 
8ea21a3
 
 
 
 
 
 
 
9a41c6d
8ea21a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
8ea21a3
9a41c6d
 
 
8ea21a3
 
9a41c6d
8ea21a3
9a41c6d
 
 
8ea21a3
9a41c6d
 
 
 
 
 
8ea21a3
 
 
 
 
 
 
 
9a41c6d
8ea21a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
8ea21a3
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": null,
            "numactl": false,
            "numactl_kwargs": {},
            "start_method": "spawn"
        },
        "environment": {
            "cpu": " AMD EPYC 7763 64-Core Processor",
            "cpu_count": 4,
            "cpu_ram_mb": 16766.767104,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.15",
            "optimum_benchmark_version": "0.5.0",
            "optimum_benchmark_commit": "d070104543478b722db56ba828611524c5fbdbb5",
            "transformers_version": "4.45.1",
            "transformers_commit": null,
            "accelerate_version": "0.34.2",
            "accelerate_commit": null,
            "diffusers_version": "0.30.3",
            "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": 1109.172224,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 4.930470970000044,
                "mean": 4.930470970000044,
                "stdev": 0.0,
                "p50": 4.930470970000044,
                "p90": 4.930470970000044,
                "p95": 4.930470970000044,
                "p99": 4.930470970000044,
                "values": [
                    4.930470970000044
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 6.853615408888882e-05,
                "ram": 2.866258736320101e-06,
                "gpu": 0,
                "total": 7.140241282520892e-05
            },
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 962.895872,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.6410140039999987,
                "mean": 0.04578671457142848,
                "stdev": 0.0022030377673999,
                "p50": 0.04651666050000358,
                "p90": 0.04755746729996986,
                "p95": 0.04768163854996601,
                "p99": 0.04772126930999548,
                "values": [
                    0.0463459510000348,
                    0.04666958699999668,
                    0.047329975000025115,
                    0.0446261459999846,
                    0.047654963999946176,
                    0.04614441199998964,
                    0.04707965500000455,
                    0.04652367400001367,
                    0.04698606099998415,
                    0.045985484000027554,
                    0.047731177000002845,
                    0.04650964699999349,
                    0.04085434400002441,
                    0.04057292699997106
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 43.68079297063228
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.5875104653333668e-06,
                "ram": 6.638263849855157e-08,
                "gpu": 0.0,
                "total": 1.6538931038319183e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1209267.996441961
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 963.682304,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.4007992340000328,
                "mean": 0.02862851671428806,
                "stdev": 0.0017407399860645877,
                "p50": 0.02915036650000502,
                "p90": 0.029978681999989477,
                "p95": 0.030159876249965124,
                "p99": 0.030353116049968206,
                "values": [
                    0.03040142599996898,
                    0.029417692000038187,
                    0.029012572999988606,
                    0.029859381000051144,
                    0.02980553000003283,
                    0.028902036000033604,
                    0.02909073000000717,
                    0.02921000300000287,
                    0.029020667999986927,
                    0.030029810999963047,
                    0.029415829000015492,
                    0.027117309999994177,
                    0.02473498399996288,
                    0.024781260999986898
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 34.93020647838577
            },
            "energy": {
                "unit": "kWh",
                "cpu": 9.531048579305815e-07,
                "ram": 3.985449635108816e-08,
                "gpu": 0.0,
                "total": 9.929593542816694e-07
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1007090.5678948198
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.39413804600008007,
                "mean": 0.02815271757143429,
                "stdev": 0.00167802867631015,
                "p50": 0.02868628650003302,
                "p90": 0.029441961500015167,
                "p95": 0.029619975599987924,
                "p99": 0.02980492711997215,
                "values": [
                    0.029851164999968205,
                    0.028900623000026826,
                    0.0285269929999572,
                    0.029309801000010793,
                    0.02931706400005396,
                    0.028423539000016262,
                    0.02863482500004011,
                    0.02873774800002593,
                    0.028511734000005617,
                    0.029495488999998543,
                    0.02887723899999628,
                    0.026732337999987976,
                    0.024401427999976022,
                    0.02441806000001634
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 35.52054956906433
            },
            "energy": null,
            "efficiency": null
        }
    }
}