File size: 13,481 Bytes
29aae47
 
 
 
 
a2a9486
29aae47
 
e02a1e3
a6d4a25
5b46588
 
29aae47
 
 
 
 
5b46588
 
29aae47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ffce82b
29aae47
 
 
 
 
 
 
 
 
 
 
 
 
 
4140339
9ec66fd
 
29aae47
 
 
 
 
7cae7bb
29aae47
 
fbfd13f
29aae47
d73f3fe
29aae47
 
 
 
 
c613e6c
29aae47
5547b57
29aae47
4e2ec52
29aae47
fbfd13f
29aae47
 
 
5547b57
29aae47
 
c0da9d7
29aae47
 
 
ffce82b
 
 
4140339
ffce82b
 
 
d09c424
ffce82b
 
 
 
4140339
 
ffce82b
4140339
 
 
 
ffce82b
4140339
ffce82b
 
 
 
 
4140339
 
 
 
ffce82b
 
 
29aae47
 
 
4140339
15ee24a
29aae47
ffce82b
 
29aae47
 
 
4140339
 
 
 
 
 
 
 
29aae47
4140339
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68ddfc6
4140339
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68ddfc6
4140339
 
 
 
 
 
 
 
 
 
 
68ddfc6
4140339
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68ddfc6
 
4140339
 
 
 
68ddfc6
4140339
 
 
 
 
 
 
 
68ddfc6
4140339
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68ddfc6
4140339
 
 
 
 
 
 
 
 
 
 
 
29aae47
 
 
 
4140339
29aae47
 
 
4140339
 
 
 
29aae47
 
 
4140339
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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
{
    "config": {
        "name": "cuda_inference_transformers_fill-mask_google-bert/bert-base-uncased",
        "backend": {
            "name": "pytorch",
            "version": "2.4.0+cu124",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "fill-mask",
            "library": "transformers",
            "model_type": "bert",
            "model": "google-bert/bert-base-uncased",
            "processor": "google-bert/bert-base-uncased",
            "device": "cuda",
            "device_ids": "0",
            "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": 1,
                "num_choices": 2,
                "sequence_length": 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": true,
            "device_isolation_action": "error",
            "numactl": false,
            "numactl_kwargs": {},
            "start_method": "spawn"
        },
        "environment": {
            "cpu": " AMD EPYC 7R32",
            "cpu_count": 16,
            "cpu_ram_mb": 66697.261056,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.12",
            "gpu": [
                "NVIDIA A10G"
            ],
            "gpu_count": 1,
            "gpu_vram_mb": 24146608128,
            "optimum_benchmark_version": "0.4.0",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.44.2",
            "transformers_commit": null,
            "accelerate_version": "0.34.0",
            "accelerate_commit": null,
            "diffusers_version": "0.30.2",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "1.0.9",
            "timm_commit": null,
            "peft_version": null,
            "peft_commit": null
        }
    },
    "report": {
        "load": {
            "memory": {
                "unit": "MB",
                "max_ram": 784.03584,
                "max_global_vram": 1218.9696,
                "max_process_vram": 0.0,
                "max_reserved": 589.299712,
                "max_allocated": 533.571072
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 7.4333193359375,
                "mean": 7.4333193359375,
                "stdev": 0.0,
                "p50": 7.4333193359375,
                "p90": 7.4333193359375,
                "p95": 7.4333193359375,
                "p99": 7.4333193359375,
                "values": [
                    7.4333193359375
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 1.02497004444461e-06,
                "ram": 5.003204308297937e-07,
                "gpu": 1.7405569480003803e-06,
                "total": 3.265847423274784e-06
            },
            "efficiency": null
        },
        "forward": {
            "memory": {
                "unit": "MB",
                "max_ram": 1039.642624,
                "max_global_vram": 1229.45536,
                "max_process_vram": 0.0,
                "max_reserved": 589.299712,
                "max_allocated": 449.025024
            },
            "latency": {
                "unit": "s",
                "count": 178,
                "total": 0.9998132467269897,
                "mean": 0.005616928352398819,
                "stdev": 0.00021557308924919432,
                "p50": 0.005585407972335815,
                "p90": 0.005701529550552368,
                "p95": 0.0060914686918258675,
                "p99": 0.006503372673988342,
                "values": [
                    0.006394879817962646,
                    0.0064880638122558594,
                    0.006162432193756104,
                    0.006141952037811279,
                    0.006201344013214111,
                    0.006171648025512695,
                    0.006077439785003662,
                    0.006554624080657959,
                    0.005686272144317627,
                    0.005426176071166992,
                    0.005399551868438721,
                    0.005361663818359375,
                    0.005436416149139404,
                    0.005328896045684814,
                    0.00535756778717041,
                    0.005389311790466309,
                    0.005350399971008301,
                    0.005322751998901368,
                    0.005332992076873779,
                    0.005338111877441406,
                    0.005331967830657959,
                    0.005354496002197265,
                    0.005331967830657959,
                    0.005312511920928955,
                    0.005439487934112549,
                    0.00532480001449585,
                    0.005345280170440674,
                    0.005362688064575195,
                    0.005344255924224854,
                    0.005355519771575928,
                    0.00536678409576416,
                    0.005430272102355957,
                    0.005603328227996827,
                    0.005581855773925781,
                    0.005578752040863037,
                    0.005605375766754151,
                    0.00555622386932373,
                    0.005581823825836182,
                    0.005609471797943116,
                    0.005573631763458252,
                    0.005609471797943116,
                    0.0055797758102417,
                    0.0056483840942382815,
                    0.005565440177917481,
                    0.005570559978485107,
                    0.0055797758102417,
                    0.005611519813537597,
                    0.005585919857025146,
                    0.0056217598915100095,
                    0.005577727794647217,
                    0.005593088150024414,
                    0.005570559978485107,
                    0.0056258559226989744,
                    0.006124544143676758,
                    0.005710847854614258,
                    0.00568012809753418,
                    0.006977536201477051,
                    0.0060067839622497555,
                    0.005697535991668701,
                    0.005624832153320313,
                    0.005593088150024414,
                    0.005588992118835449,
                    0.005611519813537597,
                    0.005607423782348633,
                    0.005607423782348633,
                    0.005582848072052002,
                    0.005742591857910156,
                    0.005595136165618897,
                    0.005601280212402344,
                    0.005591040134429932,
                    0.005595136165618897,
                    0.005607423782348633,
                    0.005566463947296142,
                    0.005571584224700928,
                    0.005575679779052735,
                    0.0055552000999450684,
                    0.005587967872619629,
                    0.005631999969482422,
                    0.005587967872619629,
                    0.005554175853729248,
                    0.005591040134429932,
                    0.005590015888214111,
                    0.005641215801239013,
                    0.005633024215698243,
                    0.005593088150024414,
                    0.005565440177917481,
                    0.005593088150024414,
                    0.005588992118835449,
                    0.005598207950592041,
                    0.005560319900512695,
                    0.005565440177917481,
                    0.0055797758102417,
                    0.005602303981781006,
                    0.0055552000999450684,
                    0.005578752040863037,
                    0.005541888236999512,
                    0.005576704025268555,
                    0.005541888236999512,
                    0.005538815975189209,
                    0.0055808000564575196,
                    0.0055582718849182125,
                    0.005560319900512695,
                    0.005552159786224365,
                    0.005529600143432617,
                    0.005612544059753418,
                    0.00556441593170166,
                    0.005573631763458252,
                    0.0055552000999450684,
                    0.005588992118835449,
                    0.005619711875915527,
                    0.005571584224700928,
                    0.005594111919403076,
                    0.005672959804534912,
                    0.005657599925994873,
                    0.005586944103240967,
                    0.005566463947296142,
                    0.005577727794647217,
                    0.005565440177917481,
                    0.005636096000671387,
                    0.005631999969482422,
                    0.005571584224700928,
                    0.0056217598915100095,
                    0.005744639873504639,
                    0.005574656009674072,
                    0.00561356782913208,
                    0.005596159934997558,
                    0.0056258559226989744,
                    0.005639167785644531,
                    0.005597184181213379,
                    0.005624832153320313,
                    0.005618688106536865,
                    0.005658624172210694,
                    0.005604351997375488,
                    0.005609471797943116,
                    0.005600255966186523,
                    0.005788703918457031,
                    0.005979135990142822,
                    0.005595136165618897,
                    0.005647359848022461,
                    0.005626880168914795,
                    0.005603328227996827,
                    0.006022143840789795,
                    0.006085631847381592,
                    0.005661695957183838,
                    0.005565440177917481,
                    0.005627903938293457,
                    0.005585919857025146,
                    0.005590015888214111,
                    0.005563392162322998,
                    0.005554175853729248,
                    0.005582848072052002,
                    0.005577727794647217,
                    0.005563392162322998,
                    0.005615615844726562,
                    0.0055848960876464845,
                    0.005676032066345215,
                    0.005602303981781006,
                    0.005608448028564453,
                    0.0055808000564575196,
                    0.005557248115539551,
                    0.0055848960876464845,
                    0.00557260799407959,
                    0.005616640090942383,
                    0.005593088150024414,
                    0.005553152084350586,
                    0.00555622386932373,
                    0.005583871841430664,
                    0.005544960021972656,
                    0.005569536209106446,
                    0.005550079822540284,
                    0.005582848072052002,
                    0.005544960021972656,
                    0.005576704025268555,
                    0.00557366418838501,
                    0.005559296131134033,
                    0.005578752040863037,
                    0.005567488193511963,
                    0.005535744190216065
                ]
            },
            "throughput": {
                "unit": "samples/s",
                "value": 178.03324829182316
            },
            "energy": {
                "unit": "kWh",
                "cpu": 6.408195692577865e-08,
                "ram": 3.493385326129796e-08,
                "gpu": 1.2805416456989322e-07,
                "total": 2.2706997475696983e-07
            },
            "efficiency": {
                "unit": "samples/kWh",
                "value": 4403928.793625346
            }
        }
    }
}