File size: 13,525 Bytes
16c6102
 
 
 
 
7d8be0a
16c6102
 
d5b1df9
54c0ba6
b8b91da
 
16c6102
 
 
 
 
b8b91da
 
16c6102
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17f4752
16c6102
 
 
 
 
 
 
 
 
 
 
 
 
 
e7068fe
b616e28
 
16c6102
 
 
 
 
1851c2e
16c6102
 
882c7ac
16c6102
5cdba3a
16c6102
 
 
 
 
a33e837
16c6102
882c7ac
16c6102
3d6db19
16c6102
3d6db19
16c6102
882c7ac
16c6102
48289bd
16c6102
ddfdc57
63d0e1e
16c6102
 
 
17f4752
 
 
d8c1884
3d6db19
17f4752
 
882c7ac
17f4752
 
 
1a65ace
d8c1884
 
882c7ac
d8c1884
 
 
 
882c7ac
d8c1884
882c7ac
17f4752
 
 
 
d8c1884
 
 
 
17f4752
 
 
16c6102
 
 
d8c1884
3d6db19
16c6102
 
882c7ac
16c6102
 
 
d8c1884
 
 
 
 
 
 
 
16c6102
d8c1884
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
882c7ac
d8c1884
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
882c7ac
d8c1884
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
882c7ac
d8c1884
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
882c7ac
d8c1884
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
882c7ac
16c6102
 
 
d8c1884
16c6102
 
 
d8c1884
 
 
 
16c6102
 
 
d8c1884
16c6102
 
 
 
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
355
{
    "config": {
        "name": "cuda_inference_transformers_text-classification_FacebookAI/roberta-base",
        "backend": {
            "name": "pytorch",
            "version": "2.4.1+cu124",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "text-classification",
            "library": "transformers",
            "model_type": "roberta",
            "model": "FacebookAI/roberta-base",
            "processor": "FacebookAI/roberta-base",
            "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.225-213.878.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.5.0",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.45.1",
            "transformers_commit": null,
            "accelerate_version": "0.34.2",
            "accelerate_commit": null,
            "diffusers_version": "0.30.3",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "1.0.9",
            "timm_commit": null,
            "peft_version": "0.13.0",
            "peft_commit": null
        }
    },
    "report": {
        "load": {
            "memory": {
                "unit": "MB",
                "max_ram": 802.783232,
                "max_global_vram": 1192.7552,
                "max_process_vram": 0.0,
                "max_reserved": 555.74528,
                "max_allocated": 499.374592
            },
            "latency": {
                "unit": "s",
                "count": 1,
                "total": 8.422611328125,
                "mean": 8.422611328125,
                "stdev": 0.0,
                "p50": 8.422611328125,
                "p90": 8.422611328125,
                "p95": 8.422611328125,
                "p99": 8.422611328125,
                "values": [
                    8.422611328125
                ]
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 2.570991777083028e-06,
                "ram": 1.3897707735456923e-06,
                "gpu": 3.42305829399963e-06,
                "total": 7.3838208446283495e-06
            },
            "efficiency": null
        },
        "forward": {
            "memory": {
                "unit": "MB",
                "max_ram": 1077.731328,
                "max_global_vram": 1203.24096,
                "max_process_vram": 0.0,
                "max_reserved": 555.74528,
                "max_allocated": 508.992512
            },
            "latency": {
                "unit": "s",
                "count": 179,
                "total": 0.9986119379997257,
                "mean": 0.005578837642456566,
                "stdev": 0.00016635479650208243,
                "p50": 0.0055285758972167965,
                "p90": 0.0058687488555908204,
                "p95": 0.005912547016143799,
                "p99": 0.0060025447559356685,
                "values": [
                    0.006012928009033203,
                    0.0059996161460876465,
                    0.006017024040222168,
                    0.005940224170684814,
                    0.005987328052520752,
                    0.005949440002441406,
                    0.005686272144317627,
                    0.005599232196807862,
                    0.00570470380783081,
                    0.005636096000671387,
                    0.005619711875915527,
                    0.005591040134429932,
                    0.0054988799095153805,
                    0.0055623679161071774,
                    0.005518335819244385,
                    0.005511168003082275,
                    0.005554175853729248,
                    0.005511168003082275,
                    0.005413887977600097,
                    0.005368832111358642,
                    0.00535756778717041,
                    0.00547430419921875,
                    0.005438496112823486,
                    0.005502016067504883,
                    0.005552127838134766,
                    0.0057497601509094234,
                    0.005881855964660645,
                    0.005849088191986084,
                    0.005852159976959229,
                    0.005794816017150879,
                    0.005980160236358643,
                    0.005776383876800537,
                    0.0059054079055786135,
                    0.005889023780822754,
                    0.005912576198577881,
                    0.005868544101715088,
                    0.0058716158866882326,
                    0.005899231910705566,
                    0.005852128028869629,
                    0.00586956787109375,
                    0.0058080959320068355,
                    0.005920767784118652,
                    0.005814271926879883,
                    0.005912543773651123,
                    0.005833727836608887,
                    0.005817344188690185,
                    0.005684224128723145,
                    0.005734399795532226,
                    0.005702655792236328,
                    0.005830656051635743,
                    0.005760000228881836,
                    0.00576204776763916,
                    0.005542912006378174,
                    0.005492671966552735,
                    0.0055101442337036136,
                    0.005501920223236084,
                    0.005608448028564453,
                    0.005607423782348633,
                    0.005635072231292724,
                    0.005634047985076904,
                    0.005575679779052735,
                    0.005588992118835449,
                    0.005596159934997558,
                    0.0055316481590271,
                    0.0055511040687561035,
                    0.005391359806060791,
                    0.005446591854095459,
                    0.005610496044158936,
                    0.00556444787979126,
                    0.005603328227996827,
                    0.0054876160621643065,
                    0.005512224197387695,
                    0.005571584224700928,
                    0.0055203838348388675,
                    0.00542310380935669,
                    0.005372928142547607,
                    0.005393407821655274,
                    0.005506048202514649,
                    0.005440512180328369,
                    0.005489664077758789,
                    0.005618688106536865,
                    0.005434368133544922,
                    0.005409728050231934,
                    0.005468160152435303,
                    0.005444608211517334,
                    0.0055214080810546875,
                    0.0054876160621643065,
                    0.005455872058868408,
                    0.005476352214813233,
                    0.005442560195922852,
                    0.005479423999786377,
                    0.005529600143432617,
                    0.005576640129089355,
                    0.00562278413772583,
                    0.00562278413772583,
                    0.005629951953887939,
                    0.00556441593170166,
                    0.0055623679161071774,
                    0.005585919857025146,
                    0.005517312049865723,
                    0.00561356782913208,
                    0.005513216018676758,
                    0.00547430419921875,
                    0.005532671928405761,
                    0.005494783878326416,
                    0.005568511962890625,
                    0.005452799797058106,
                    0.005337088108062744,
                    0.005431295871734619,
                    0.005285888195037842,
                    0.00521830415725708,
                    0.005440512180328369,
                    0.005511168003082275,
                    0.005369855880737305,
                    0.0055582718849182125,
                    0.005431295871734619,
                    0.005470208168029785,
                    0.005471231937408447,
                    0.00555625581741333,
                    0.00566374397277832,
                    0.005595136165618897,
                    0.0055285758972167965,
                    0.005640192031860352,
                    0.005700607776641845,
                    0.005876736164093017,
                    0.0057701759338378905,
                    0.005599232196807862,
                    0.005567488193511963,
                    0.00572211217880249,
                    0.005890048027038574,
                    0.005773312091827393,
                    0.005618688106536865,
                    0.005557248115539551,
                    0.005697535991668701,
                    0.005451776027679443,
                    0.005453824043273926,
                    0.005511168003082275,
                    0.0055214080810546875,
                    0.005490752220153808,
                    0.005484543800354004,
                    0.0054568958282470706,
                    0.005493760108947754,
                    0.005525504112243652,
                    0.005477375984191894,
                    0.005472320079803467,
                    0.005451776027679443,
                    0.00552243185043335,
                    0.00553984022140503,
                    0.005591040134429932,
                    0.005598207950592041,
                    0.005438464164733887,
                    0.005480447769165039,
                    0.005568511962890625,
                    0.005407743930816651,
                    0.005438464164733887,
                    0.005435391902923584,
                    0.005419007778167725,
                    0.005441535949707031,
                    0.005409791946411133,
                    0.005421055793762207,
                    0.005570559978485107,
                    0.005454847812652588,
                    0.005444672107696533,
                    0.005440512180328369,
                    0.005408768177032471,
                    0.005460031986236572,
                    0.005413887977600097,
                    0.005416959762573242,
                    0.005462016105651855,
                    0.005441535949707031,
                    0.005451776027679443,
                    0.0054579200744628905,
                    0.005431295871734619,
                    0.005465087890625,
                    0.005422080039978027,
                    0.005426176071166992,
                    0.005471231937408447,
                    0.005420032024383545,
                    0.005416959762573242
                ]
            },
            "throughput": {
                "unit": "samples/s",
                "value": 179.24880845961732
            },
            "energy": {
                "unit": "kWh",
                "cpu": 6.454979912062067e-08,
                "ram": 3.522482672996472e-08,
                "gpu": 1.3375463598912947e-07,
                "total": 2.3352926183971484e-07
            },
            "efficiency": {
                "unit": "samples/kWh",
                "value": 4282118.618121441
            }
        }
    }
}