File size: 8,781 Bytes
9a41c6d
 
 
 
 
7d4dcdf
9a41c6d
 
a358373
24766a7
4d7e0be
 
9a41c6d
 
 
 
 
4d7e0be
 
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a832a5e
cc276e9
 
9a41c6d
 
 
e8f8713
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
8db1502
bc8a3a5
 
9a41c6d
 
 
 
 
52600f9
9a41c6d
 
7d4dcdf
9a41c6d
28a7835
48858e5
cc276e9
7d4dcdf
9a41c6d
7d4dcdf
9a41c6d
7d4dcdf
9a41c6d
905408a
9a41c6d
7d4dcdf
9a41c6d
 
fecccd7
82a1d21
 
 
9a41c6d
 
cc276e9
e8f8713
 
dd8402f
e8f8713
 
 
 
 
 
 
8ea21a3
dd8402f
b6dba5c
 
dd8402f
 
 
 
 
 
b6dba5c
 
e8f8713
 
cc276e9
 
dd8402f
 
cc276e9
dd8402f
cc276e9
e8f8713
 
9a41c6d
 
 
dd8402f
9a41c6d
 
 
 
 
 
 
 
dd8402f
 
 
 
 
 
 
b6dba5c
52600f9
dd8402f
 
 
 
 
 
 
 
9a41c6d
 
cc276e9
dd8402f
9a41c6d
 
 
dd8402f
 
9a41c6d
dd8402f
9a41c6d
 
cc276e9
dd8402f
9a41c6d
 
 
 
 
dd8402f
9a41c6d
 
 
 
 
 
 
 
dd8402f
 
 
 
 
 
 
b6dba5c
52600f9
dd8402f
 
 
 
 
 
 
 
9a41c6d
 
 
dd8402f
9a41c6d
 
 
dd8402f
 
9a41c6d
dd8402f
9a41c6d
 
 
dd8402f
9a41c6d
 
 
 
 
 
 
dd8402f
 
 
 
 
 
 
b6dba5c
52600f9
dd8402f
 
 
 
 
 
 
 
9a41c6d
cc276e9
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
{
    "config": {
        "name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
        "backend": {
            "name": "pytorch",
            "version": "2.5.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": 2,
                "sequence_length": 16,
                "num_choices": 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": 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.15",
            "optimum_benchmark_version": "0.5.0.dev0",
            "optimum_benchmark_commit": "1af9eb008cb7e5a73696ea580f926b32aa726d12",
            "transformers_version": "4.46.3",
            "transformers_commit": null,
            "accelerate_version": "1.1.1",
            "accelerate_commit": null,
            "diffusers_version": "0.31.0",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "1.0.11",
            "timm_commit": null,
            "peft_version": null,
            "peft_commit": null
        },
        "print_report": true,
        "log_report": true
    },
    "report": {
        "load_model": {
            "memory": {
                "unit": "MB",
                "max_ram": 1132.703744,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "values": [
                    1.730253227999981
                ],
                "count": 1,
                "total": 1.730253227999981,
                "mean": 1.730253227999981,
                "p50": 1.730253227999981,
                "p90": 1.730253227999981,
                "p95": 1.730253227999981,
                "p99": 1.730253227999981,
                "stdev": 0,
                "stdev_": 0
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 0.00019672284745555704,
                "ram": 8.223102295501465e-06,
                "gpu": 0,
                "total": 0.0002049459497510585
            },
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 1022.5664,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "values": [
                    0.10655142900003511,
                    0.10516570799995861,
                    0.14514814799997566,
                    0.14752209499999935,
                    0.10692142400000648,
                    0.1005066989999932,
                    0.10115070900002365
                ],
                "count": 7,
                "total": 0.8129662119999921,
                "mean": 0.11613803028571315,
                "p50": 0.10655142900003511,
                "p90": 0.14609772679998514,
                "p95": 0.14680991089999224,
                "p99": 0.14737965817999793,
                "stdev": 0.01924557602912211,
                "stdev_": 16.57129536446911
            },
            "throughput": {
                "unit": "samples/s",
                "value": 17.220887895892204
            },
            "energy": {
                "unit": "kWh",
                "cpu": 3.997591352222212e-06,
                "ram": 1.6706695323427882e-07,
                "gpu": 0.0,
                "total": 4.164658305456491e-06
            },
            "efficiency": {
                "unit": "samples/kWh",
                "value": 480231.47478380677
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1024.217088,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "values": [
                    0.04267334299998993,
                    0.04612380100002156,
                    0.04842634499999576,
                    0.048040290000017194,
                    0.042047637999985454,
                    0.04170034700001679,
                    0.04195379199995841
                ],
                "count": 7,
                "total": 0.3109655559999851,
                "mean": 0.04442365085714073,
                "p50": 0.04267334299998993,
                "p90": 0.04819471200000862,
                "p95": 0.04831052850000219,
                "p99": 0.04840318169999705,
                "stdev": 0.002783054615863886,
                "stdev_": 6.264803910002217
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 45.021063361759175
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.7027010033332754e-06,
                "ram": 7.114485638775241e-08,
                "gpu": 0.0,
                "total": 1.7738458597210286e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1127493.6821819108
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "values": [
                    0.041795905999947536,
                    0.045036860000038814,
                    0.04728590400003441,
                    0.046914205000007314,
                    0.04115245700000969,
                    0.040768827000022156,
                    0.040973210999993626
                ],
                "count": 7,
                "total": 0.30392737000005354,
                "mean": 0.04341819571429336,
                "p50": 0.041795905999947536,
                "p90": 0.04706288460001815,
                "p95": 0.047174394300026276,
                "p99": 0.04726360206003278,
                "stdev": 0.0026876389812656456,
                "stdev_": 6.190121300643705
            },
            "throughput": null,
            "energy": null,
            "efficiency": null
        }
    }
}