File size: 8,573 Bytes
9a41c6d
 
 
 
 
e805516
9a41c6d
 
a358373
4d7e0be
 
9a41c6d
 
 
 
 
4d7e0be
 
 
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc8a3a5
 
9a41c6d
 
 
 
 
21704dd
9a41c6d
 
933135c
9a41c6d
cccc92b
5b78a99
29a9d20
 
9a41c6d
933135c
9a41c6d
e805516
9a41c6d
 
 
e805516
9a41c6d
 
 
 
 
 
 
 
 
29a9d20
9a41c6d
 
 
 
 
 
 
29a9d20
 
 
 
 
 
 
 
9a41c6d
29a9d20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
29a9d20
9a41c6d
 
 
29a9d20
 
9a41c6d
29a9d20
9a41c6d
 
 
29a9d20
9a41c6d
 
 
 
 
29a9d20
9a41c6d
 
 
 
 
 
 
29a9d20
 
 
 
 
 
 
 
9a41c6d
29a9d20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
29a9d20
9a41c6d
 
 
29a9d20
 
9a41c6d
29a9d20
9a41c6d
 
 
29a9d20
9a41c6d
 
 
 
 
 
29a9d20
 
 
 
 
 
 
 
9a41c6d
29a9d20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
29a9d20
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
{
    "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": "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": {},
            "hub_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,
            "latency": true,
            "memory": 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.338112,
            "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": "c31e63ddb94c29460ba90ff599147e94ff80543a",
            "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": {
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 961.76128,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.658391876999957,
                "mean": 0.04389279179999714,
                "stdev": 0.003143103223363988,
                "p50": 0.046014401000007865,
                "p90": 0.0468165909999982,
                "p95": 0.047008504299998324,
                "p99": 0.04702359685999568,
                "values": [
                    0.046014401000007865,
                    0.04654084899999589,
                    0.04700041899999974,
                    0.04616212700000233,
                    0.046489452000002984,
                    0.04702736999999502,
                    0.046293854999987616,
                    0.046441020000003164,
                    0.045928158999998914,
                    0.0400730220000014,
                    0.03958767199998192,
                    0.041238015999994104,
                    0.03968561499999623,
                    0.04002645399998528,
                    0.039883446000004596
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 45.56556823984321
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.5671390427483453e-06,
                "ram": 6.549279102751674e-08,
                "gpu": 0.0,
                "total": 1.632631833775862e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1225015.927427134
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 961.76128,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.4034822600000325,
                "mean": 0.0268988173333355,
                "stdev": 0.002157618476705122,
                "p50": 0.02838440700000433,
                "p90": 0.029005317200000037,
                "p95": 0.029413272400000776,
                "p99": 0.029847836880002206,
                "values": [
                    0.02838440700000433,
                    0.029956478000002562,
                    0.028708824999995386,
                    0.028650846999994428,
                    0.028693436999986943,
                    0.02874258800000007,
                    0.029180470000000014,
                    0.02866504300001793,
                    0.025008507999984886,
                    0.024309396999996125,
                    0.025252976000018634,
                    0.02449262000001795,
                    0.02511789299998668,
                    0.02404868800002191,
                    0.02427008300000466
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 37.17635565935115
            },
            "energy": {
                "unit": "kWh",
                "cpu": 9.477513730525971e-07,
                "ram": 3.961036716685909e-08,
                "gpu": 0.0,
                "total": 9.873617402194565e-07
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1012800.0298834088
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.3974515710000901,
                "mean": 0.026496771400006006,
                "stdev": 0.002072399511716262,
                "p50": 0.0279198860000065,
                "p90": 0.02853342440001825,
                "p95": 0.028929358400014846,
                "p99": 0.02934266528000819,
                "values": [
                    0.0279198860000065,
                    0.029445992000006527,
                    0.028212404000015567,
                    0.028183249999983673,
                    0.028212765000006357,
                    0.028271645000017998,
                    0.028707944000018415,
                    0.028176397000009956,
                    0.02469757500000469,
                    0.024024902999997266,
                    0.024929678999995986,
                    0.024184462000022222,
                    0.024779147999993256,
                    0.023740991000011036,
                    0.02396453000000065
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 37.74044712480605
            },
            "energy": null,
            "efficiency": null
        }
    }
}