File size: 11,790 Bytes
29aae47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
{
    "config": {
        "name": "cuda_inference_transformers_fill-mask_google-bert/bert-base-uncased",
        "backend": {
            "name": "pytorch",
            "version": "2.2.2",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "fill-mask",
            "model": "google-bert/bert-base-uncased",
            "library": "transformers",
            "device": "cuda",
            "device_ids": "0",
            "seed": 42,
            "inter_op_num_threads": null,
            "intra_op_num_threads": null,
            "hub_kwargs": {
                "revision": "main",
                "force_download": false,
                "local_files_only": false,
                "trust_remote_code": false
            },
            "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": true,
            "device_isolation_action": "error",
            "start_method": "spawn"
        },
        "environment": {
            "cpu": " AMD EPYC 7R32",
            "cpu_count": 16,
            "cpu_ram_mb": 66697.29792,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.14",
            "gpu": [
                "NVIDIA A10G"
            ],
            "gpu_count": 1,
            "gpu_vram_mb": 24146608128,
            "optimum_benchmark_version": "0.2.0",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.40.2",
            "transformers_commit": null,
            "accelerate_version": "0.30.0",
            "accelerate_commit": null,
            "diffusers_version": "0.27.2",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "0.9.16",
            "timm_commit": null,
            "peft_version": null,
            "peft_commit": null
        }
    },
    "report": {
        "forward": {
            "memory": {
                "unit": "MB",
                "max_ram": 865.939456,
                "max_global_vram": 1229.45536,
                "max_process_vram": 0.0,
                "max_reserved": 591.396864,
                "max_allocated": 449.269248
            },
            "latency": {
                "unit": "s",
                "count": 164,
                "total": 1.0022596473693848,
                "mean": 0.006111339313227956,
                "stdev": 0.0001961746853366575,
                "p50": 0.006041088104248047,
                "p90": 0.006240767908096314,
                "p95": 0.0065793025016784665,
                "p99": 0.006963158955574036,
                "values": [
                    0.007425024032592774,
                    0.006922239780426025,
                    0.006829055786132812,
                    0.006593535900115967,
                    0.006614016056060791,
                    0.006592512130737305,
                    0.0066416640281677245,
                    0.007032832145690918,
                    0.006259712219238281,
                    0.0060928001403808595,
                    0.006504447937011719,
                    0.0062863359451293946,
                    0.0062791681289672855,
                    0.006246399879455566,
                    0.006223872184753418,
                    0.00620851182937622,
                    0.006065152168273926,
                    0.006037504196166992,
                    0.006285312175750732,
                    0.006151167869567871,
                    0.006140927791595459,
                    0.006170623779296875,
                    0.0060928001403808595,
                    0.006078464031219482,
                    0.006094848155975342,
                    0.006025216102600098,
                    0.0060702719688415525,
                    0.006004735946655273,
                    0.006100992202758789,
                    0.006072319984436035,
                    0.006062079906463623,
                    0.0060364799499511715,
                    0.006162432193756104,
                    0.006091775894165039,
                    0.006060031890869141,
                    0.006008831977844238,
                    0.006055935859680176,
                    0.0060191359519958494,
                    0.006044672012329101,
                    0.006039552211761475,
                    0.006034431934356689,
                    0.006022143840789795,
                    0.00602623987197876,
                    0.006014976024627685,
                    0.00602726411819458,
                    0.00602623987197876,
                    0.006076416015625,
                    0.006008831977844238,
                    0.006021120071411133,
                    0.006012928009033203,
                    0.006020095825195313,
                    0.0060067839622497555,
                    0.006032383918762207,
                    0.006014976024627685,
                    0.006053887844085694,
                    0.006004735946655273,
                    0.006047743797302246,
                    0.006012928009033203,
                    0.006030335903167725,
                    0.00601087999343872,
                    0.006048768043518066,
                    0.006030335903167725,
                    0.006056960105895996,
                    0.006031360149383545,
                    0.006079487800598145,
                    0.006236159801483154,
                    0.006097919940948486,
                    0.006030335903167725,
                    0.006033408164978027,
                    0.006042623996734619,
                    0.006007808208465576,
                    0.006020095825195313,
                    0.006024191856384278,
                    0.006032383918762207,
                    0.006018080234527588,
                    0.006046720027923584,
                    0.006024191856384278,
                    0.006044672012329101,
                    0.0060282878875732426,
                    0.006022143840789795,
                    0.0059996161460876465,
                    0.006137856006622314,
                    0.006020095825195313,
                    0.0060590081214904785,
                    0.005999680042266846,
                    0.006014976024627685,
                    0.005989376068115234,
                    0.00602623987197876,
                    0.006001664161682129,
                    0.006025216102600098,
                    0.006013951778411865,
                    0.00602726411819458,
                    0.006024191856384278,
                    0.006034431934356689,
                    0.0060067839622497555,
                    0.006057983875274659,
                    0.006013951778411865,
                    0.006022143840789795,
                    0.005990399837493897,
                    0.006017024040222168,
                    0.006017024040222168,
                    0.006014976024627685,
                    0.006007808208465576,
                    0.0060293121337890625,
                    0.006012928009033203,
                    0.0060067839622497555,
                    0.006008831977844238,
                    0.006090752124786377,
                    0.006235136032104492,
                    0.006199295997619629,
                    0.006196224212646485,
                    0.00623308801651001,
                    0.0062566399574279785,
                    0.00611737585067749,
                    0.006048768043518066,
                    0.006015999794006348,
                    0.0060590081214904785,
                    0.00601907205581665,
                    0.006079487800598145,
                    0.005993472099304199,
                    0.006044672012329101,
                    0.006001664161682129,
                    0.006051839828491211,
                    0.00602726411819458,
                    0.0060282878875732426,
                    0.0060067839622497555,
                    0.006039552211761475,
                    0.006003712177276611,
                    0.006097919940948486,
                    0.00603545618057251,
                    0.006047743797302246,
                    0.006031360149383545,
                    0.006064127922058105,
                    0.006021120071411133,
                    0.006048768043518066,
                    0.006017024040222168,
                    0.006049791812896729,
                    0.006021120071411133,
                    0.0060590081214904785,
                    0.006037504196166992,
                    0.006046720027923584,
                    0.006031360149383545,
                    0.006049791812896729,
                    0.006031360149383545,
                    0.00608460807800293,
                    0.006023168087005615,
                    0.0060364799499511715,
                    0.006622208118438721,
                    0.00620851182937622,
                    0.006237184047698975,
                    0.006187007904052734,
                    0.0062341117858886715,
                    0.00620851182937622,
                    0.006189055919647217,
                    0.006211584091186524,
                    0.006227968215942382,
                    0.006242303848266601,
                    0.00608358383178711,
                    0.006060031890869141,
                    0.006025216102600098,
                    0.006085631847381592,
                    0.006033408164978027,
                    0.006042623996734619,
                    0.006013984203338623
                ]
            },
            "throughput": {
                "unit": "samples/s",
                "value": 163.63025332851444
            },
            "energy": {
                "unit": "kWh",
                "cpu": 7.529562305129867e-08,
                "ram": 4.11628952354511e-08,
                "gpu": 1.4270581036710517e-07,
                "total": 2.5916432865385494e-07
            },
            "efficiency": {
                "unit": "samples/kWh",
                "value": 3858555.7093994212
            }
        }
    }
}