File size: 9,532 Bytes
9a41c6d
 
 
 
 
e805516
9a41c6d
 
a358373
24766a7
4d7e0be
 
9a41c6d
 
 
 
 
4d7e0be
 
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e8f8713
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc8a3a5
 
9a41c6d
 
 
 
 
647f86c
9a41c6d
 
933135c
9a41c6d
cccc92b
5b78a99
21325ed
29a9d20
9a41c6d
933135c
9a41c6d
e805516
9a41c6d
 
 
e805516
9a41c6d
 
fecccd7
9a41c6d
 
 
e8f8713
 
 
21325ed
e8f8713
 
 
 
 
 
 
 
21325ed
 
e8f8713
21325ed
 
 
 
e8f8713
21325ed
e8f8713
 
 
 
 
21325ed
 
e8f8713
21325ed
e8f8713
 
 
9a41c6d
 
 
21325ed
9a41c6d
 
 
 
 
 
 
647f86c
21325ed
 
 
 
 
 
 
9a41c6d
21325ed
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
21325ed
9a41c6d
 
 
21325ed
 
9a41c6d
21325ed
9a41c6d
 
 
21325ed
9a41c6d
 
 
 
 
21325ed
9a41c6d
 
 
 
 
 
 
647f86c
21325ed
 
 
 
 
 
 
9a41c6d
21325ed
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
21325ed
9a41c6d
 
 
21325ed
 
9a41c6d
21325ed
9a41c6d
 
 
21325ed
9a41c6d
 
 
 
 
 
647f86c
21325ed
 
 
 
 
 
 
9a41c6d
21325ed
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
21325ed
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": "2cd267cd040017299b1552b6228f28f2c1190ba4",
            "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": 1116.332032,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 5.0455330389999915,
                "mean": 5.0455330389999915,
                "stdev": 0.0,
                "p50": 5.0455330389999915,
                "p90": 5.0455330389999915,
                "p95": 5.0455330389999915,
                "p99": 5.0455330389999915,
                "values": [
                    5.0455330389999915
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 6.933255592981975e-05,
                "ram": 2.8978697294974155e-06,
                "gpu": 0,
                "total": 7.223042565931717e-05
            },
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 969.9328,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.6342799079999395,
                "mean": 0.04530570771428139,
                "stdev": 0.0005733304567881063,
                "p50": 0.04518282949996433,
                "p90": 0.045592576199999256,
                "p95": 0.04612846194999065,
                "p99": 0.04690166918998102,
                "values": [
                    0.0448074189999943,
                    0.04505645300002925,
                    0.04525058599995191,
                    0.04560803399999713,
                    0.045080729000005704,
                    0.04536965900001633,
                    0.0453686459999858,
                    0.04545676099996854,
                    0.045075870000005125,
                    0.045115072999976746,
                    0.045556508000004214,
                    0.044525963000012325,
                    0.047094970999978614,
                    0.04491323600001351
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 44.14454824572919
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.7264504939461678e-06,
                "ram": 7.215088039856709e-08,
                "gpu": 0.0,
                "total": 1.798601374344735e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1111975.1316372915
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 970.457088,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.3847803660000295,
                "mean": 0.027484311857144967,
                "stdev": 0.0007059539412966667,
                "p50": 0.027413872000010997,
                "p90": 0.02811409860000822,
                "p95": 0.028573896150001585,
                "p99": 0.029152723229988735,
                "values": [
                    0.02683551100000159,
                    0.029297429999985525,
                    0.027657847000000402,
                    0.02758113400000184,
                    0.027052607999962675,
                    0.027950293000003512,
                    0.027246610000020155,
                    0.026822227000025123,
                    0.02786120700000083,
                    0.027934044000005542,
                    0.026853604999985237,
                    0.028184301000010237,
                    0.026865116000010403,
                    0.026638433000016448
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 36.3843928564664
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.0056257094354051e-06,
                "ram": 4.202641405800024e-08,
                "gpu": 0.0,
                "total": 1.0476521234934058e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 954515.31818166
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 14,
                "total": 0.37934884100002364,
                "mean": 0.027096345785715976,
                "stdev": 0.000691967626788171,
                "p50": 0.027021023000003197,
                "p90": 0.027617865799999208,
                "p95": 0.028085376449990918,
                "p99": 0.028755452089986873,
                "values": [
                    0.026476190000039423,
                    0.028922970999985864,
                    0.02728652400003284,
                    0.027197196999964035,
                    0.02669066099997508,
                    0.027579370000012204,
                    0.02684484900004236,
                    0.026444722000007914,
                    0.027472810999995545,
                    0.027547392000030868,
                    0.026488472999972146,
                    0.02763436399999364,
                    0.026492389999987154,
                    0.026270926999984567
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 36.90534538894011
            },
            "energy": null,
            "efficiency": null
        }
    }
}