File size: 8,611 Bytes
9a41c6d
 
 
 
 
e805516
9a41c6d
 
a358373
24766a7
4d7e0be
 
9a41c6d
 
 
 
 
4d7e0be
 
 
9a41c6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc8a3a5
 
9a41c6d
 
 
 
 
24766a7
9a41c6d
 
933135c
9a41c6d
cccc92b
5b78a99
24766a7
29a9d20
9a41c6d
933135c
9a41c6d
e805516
9a41c6d
 
 
e805516
9a41c6d
 
 
 
 
 
 
 
 
24766a7
9a41c6d
 
 
 
 
 
 
29a9d20
24766a7
 
 
 
 
 
 
9a41c6d
24766a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
24766a7
9a41c6d
 
 
24766a7
 
9a41c6d
24766a7
9a41c6d
 
 
24766a7
9a41c6d
 
 
 
 
24766a7
9a41c6d
 
 
 
 
 
 
29a9d20
24766a7
 
 
 
 
 
 
9a41c6d
24766a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
24766a7
9a41c6d
 
 
24766a7
 
9a41c6d
24766a7
9a41c6d
 
 
24766a7
9a41c6d
 
 
 
 
 
29a9d20
24766a7
 
 
 
 
 
 
9a41c6d
24766a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a41c6d
 
 
 
24766a7
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
{
    "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": {},
            "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.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": "402644384abc46743e46dac65be6512bc68c9d92",
            "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": 958.521344,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.6492260389998705,
                "mean": 0.043281735933324704,
                "stdev": 0.0031079231381562398,
                "p50": 0.0412588659999642,
                "p90": 0.04721052060000375,
                "p95": 0.04774936790000765,
                "p99": 0.047909406379997105,
                "values": [
                    0.047663633000013306,
                    0.04653085199998941,
                    0.04794941599999447,
                    0.045464217000017015,
                    0.04615094199999703,
                    0.046105225999951926,
                    0.04577523900002234,
                    0.0412588659999642,
                    0.04001042999999527,
                    0.04014367899998206,
                    0.0411057000000028,
                    0.03982140599998729,
                    0.04035695800001804,
                    0.040724245999967934,
                    0.04016522899996744
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 46.20886747890588
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.600299941168891e-06,
                "ram": 6.687847729458553e-08,
                "gpu": 0.0,
                "total": 1.6671784184634767e-06
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1199631.6518080062
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 958.521344,
                "max_global_vram": null,
                "max_process_vram": null,
                "max_reserved": null,
                "max_allocated": null
            },
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.40746452299998737,
                "mean": 0.02716430153333249,
                "stdev": 0.0024496243438844713,
                "p50": 0.02551993100001937,
                "p90": 0.030082074999972973,
                "p95": 0.0306673562999606,
                "p99": 0.031544356059968096,
                "values": [
                    0.030197534999956588,
                    0.029908884999997554,
                    0.028831417999981568,
                    0.02918251500000224,
                    0.028979173999971408,
                    0.028825026000049547,
                    0.03176360599996997,
                    0.024657897999986744,
                    0.02489800699999023,
                    0.02551993100001937,
                    0.024732778000043254,
                    0.024578318000010313,
                    0.025177860999974655,
                    0.02530094100001179,
                    0.024910630000022138
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 36.81302089703762
            },
            "energy": {
                "unit": "kWh",
                "cpu": 9.547856118943962e-07,
                "ram": 3.99040916730172e-08,
                "gpu": 0.0,
                "total": 9.94689703567413e-07
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 1005338.646226599
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 15,
                "total": 0.40153535700005705,
                "mean": 0.026769023800003802,
                "stdev": 0.002365268592983841,
                "p50": 0.025195664000023044,
                "p90": 0.029590286799998467,
                "p95": 0.030177723599985027,
                "p99": 0.031049157519963726,
                "values": [
                    0.02971088399999644,
                    0.029409391000001506,
                    0.02836319199997206,
                    0.02869021399999383,
                    0.028483186000016758,
                    0.028349066000032508,
                    0.0312670159999584,
                    0.02435206500001641,
                    0.024594798999999057,
                    0.025195664000023044,
                    0.024424681000027704,
                    0.024270462000004045,
                    0.024850689000004422,
                    0.024977255000010246,
                    0.024596793000000616
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 37.35661066578969
            },
            "energy": null,
            "efficiency": null
        }
    }
}