File size: 8,626 Bytes
9a41c6d
 
 
 
 
7d4dcdf
9a41c6d
 
a358373
24766a7
4d7e0be
 
9a41c6d
 
 
 
 
4d7e0be
 
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a832a5e
 
9a41c6d
 
 
e8f8713
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
8db1502
bc8a3a5
 
9a41c6d
 
 
 
 
7d4dcdf
9a41c6d
 
7d4dcdf
9a41c6d
28a7835
48858e5
f5c0a4a
7d4dcdf
9a41c6d
7d4dcdf
9a41c6d
7d4dcdf
9a41c6d
905408a
9a41c6d
7d4dcdf
9a41c6d
 
fecccd7
82a1d21
 
 
9a41c6d
 
e8f8713
 
 
f5c0a4a
e8f8713
 
 
 
 
 
 
8ea21a3
f5c0a4a
b6dba5c
 
f5c0a4a
 
 
 
 
 
b6dba5c
 
e8f8713
 
905408a
e8f8713
 
9a41c6d
 
 
f5c0a4a
9a41c6d
 
 
 
 
 
 
 
f5c0a4a
 
 
 
 
 
 
b6dba5c
f5c0a4a
 
 
 
 
 
 
 
 
9a41c6d
 
 
f5c0a4a
9a41c6d
 
 
f5c0a4a
 
9a41c6d
f5c0a4a
9a41c6d
 
 
f5c0a4a
9a41c6d
 
 
 
 
f5c0a4a
9a41c6d
 
 
 
 
 
 
 
f5c0a4a
 
 
 
 
 
 
b6dba5c
f5c0a4a
 
 
 
 
 
 
 
 
9a41c6d
 
 
f5c0a4a
9a41c6d
 
 
f5c0a4a
 
9a41c6d
f5c0a4a
9a41c6d
 
 
f5c0a4a
9a41c6d
 
 
 
 
 
 
f5c0a4a
 
 
 
 
 
 
b6dba5c
f5c0a4a
 
 
 
 
 
 
 
 
9a41c6d
 
 
f5c0a4a
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
{
    "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
            },
            "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": "b57934517e8262852ccb8572a0e7818777034455",
            "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": {
            "memory": {
                "unit": "MB",
                "max_ram": 1130.00448,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "values": [
                    1.7262207210000042
                ],
                "count": 1,
                "total": 1.7262207210000042,
                "mean": 1.7262207210000042,
                "p50": 1.7262207210000042,
                "p90": 1.7262207210000042,
                "p95": 1.7262207210000042,
                "p99": 1.7262207210000042,
                "stdev": 0,
                "stdev_": 0
            },
            "throughput": null,
            "energy": null,
            "efficiency": null
        },
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 1011.3024,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "values": [
                    0.11520753700000341,
                    0.11446394199998622,
                    0.11637828900001068,
                    0.11773991599997657,
                    0.11947023999999828,
                    0.11058528699999215,
                    0.10669269100000633
                ],
                "count": 7,
                "total": 0.8005379019999737,
                "mean": 0.11436255742856767,
                "p50": 0.11520753700000341,
                "p90": 0.11843204559998526,
                "p95": 0.11895114279999178,
                "p99": 0.11936642055999698,
                "stdev": 0.004059856404366084,
                "stdev_": 3.5499874221525016
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 279.81186080057375
            },
            "energy": {
                "unit": "kWh",
                "cpu": 4.1762873288888306e-06,
                "ram": 1.7453576500521538e-07,
                "gpu": 0.0,
                "total": 4.350823093894046e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 7354930.161354724
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1019.920384,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "values": [
                    0.04796896499999548,
                    0.04904467900001919,
                    0.04990590399998496,
                    0.050127848000016684,
                    0.05030888499999264,
                    0.043624569999991536,
                    0.04429540999998949
                ],
                "count": 7,
                "total": 0.33527626099999,
                "mean": 0.047896608714284285,
                "p50": 0.04904467900001919,
                "p90": 0.05020026280000707,
                "p95": 0.050254573899999856,
                "p99": 0.05029802277999409,
                "stdev": 0.002601566037800237,
                "stdev_": 5.431628893225518
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 41.756609782761856
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.6113481711111727e-06,
                "ram": 6.734206696898332e-08,
                "gpu": 0.0,
                "total": 1.6786902380801565e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1191405.0338955394
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "values": [
                    0.04688879299999371,
                    0.04799298000000363,
                    0.0489145370000017,
                    0.049038538000019116,
                    0.049171354999998584,
                    0.04277338399998598,
                    0.043428594000005205
                ],
                "count": 7,
                "total": 0.3282081810000079,
                "mean": 0.046886883000001135,
                "p50": 0.04799298000000363,
                "p90": 0.049091664800010905,
                "p95": 0.04913150990000474,
                "p99": 0.049163385979999814,
                "stdev": 0.002508952637306367,
                "stdev_": 5.351075773807157
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 42.65585323724658
            },
            "energy": null,
            "efficiency": null
        }
    }
}