File size: 12,030 Bytes
6afb0dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
    "config": {
        "name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
        "backend": {
            "name": "pytorch",
            "version": "2.2.2",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "image-classification",
            "model": "google/vit-base-patch16-224",
            "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.214-202.855.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": 904.64256,
                "max_global_vram": 1057.488896,
                "max_process_vram": 0.0,
                "max_reserved": 406.847488,
                "max_allocated": 364.432384
            },
            "latency": {
                "unit": "s",
                "count": 169,
                "total": 0.995434849739075,
                "mean": 0.0058901470398761814,
                "stdev": 0.0002672380576739546,
                "p50": 0.005928959846496582,
                "p90": 0.006132121753692627,
                "p95": 0.006424575901031494,
                "p99": 0.006725652408599853,
                "values": [
                    0.006331391811370849,
                    0.006081535816192627,
                    0.00609388780593872,
                    0.006128640174865723,
                    0.006146048069000244,
                    0.006072319984436035,
                    0.006139904022216797,
                    0.0061931519508361815,
                    0.0060590081214904785,
                    0.0060897917747497554,
                    0.006051839828491211,
                    0.0061931519508361815,
                    0.006067200183868408,
                    0.005976064205169678,
                    0.00607539176940918,
                    0.005917695999145508,
                    0.005955584049224853,
                    0.005915647983551026,
                    0.005985280036926269,
                    0.005988319873809814,
                    0.006052864074707031,
                    0.006045695781707764,
                    0.006106175899505615,
                    0.006065152168273926,
                    0.006049791812896729,
                    0.0059391999244689945,
                    0.006004735946655273,
                    0.0059699201583862304,
                    0.006060031890869141,
                    0.006017024040222168,
                    0.005982272148132324,
                    0.006030335903167725,
                    0.006039552211761475,
                    0.005997568130493164,
                    0.00601801586151123,
                    0.005989376068115234,
                    0.006032383918762207,
                    0.0062197761535644535,
                    0.0059556479454040525,
                    0.005941247940063477,
                    0.0065372161865234375,
                    0.006696959972381592,
                    0.0069407038688659665,
                    0.005883903980255127,
                    0.005975039958953857,
                    0.005992447853088379,
                    0.005991424083709717,
                    0.005997568130493164,
                    0.006054912090301514,
                    0.006001664161682129,
                    0.006051839828491211,
                    0.0060293121337890625,
                    0.006031360149383545,
                    0.005946368217468262,
                    0.0067010560035705566,
                    0.005983232021331787,
                    0.006137856006622314,
                    0.006415359973907471,
                    0.00643071985244751,
                    0.006037504196166992,
                    0.005910528182983398,
                    0.005956607818603516,
                    0.005955584049224853,
                    0.0059955201148986816,
                    0.005952511787414551,
                    0.006097919940948486,
                    0.0059391999244689945,
                    0.005928959846496582,
                    0.006130688190460205,
                    0.006007808208465576,
                    0.005925888061523437,
                    0.005963776111602783,
                    0.005993472099304199,
                    0.005954592227935791,
                    0.005914624214172363,
                    0.006021120071411133,
                    0.00601801586151123,
                    0.006054912090301514,
                    0.006044672012329101,
                    0.0060405759811401364,
                    0.005979135990142822,
                    0.006008831977844238,
                    0.005946368217468262,
                    0.006011903762817383,
                    0.005847040176391601,
                    0.005990399837493897,
                    0.005911551952362061,
                    0.00591974401473999,
                    0.005818367958068848,
                    0.0058039999008178715,
                    0.005800000190734863,
                    0.005973055839538575,
                    0.005788671970367432,
                    0.005626880168914795,
                    0.0056258559226989744,
                    0.0057077760696411135,
                    0.005756927967071533,
                    0.0057825279235839844,
                    0.005823488235473633,
                    0.005775360107421875,
                    0.005900288105010986,
                    0.005953536033630371,
                    0.006777919769287109,
                    0.006627327919006347,
                    0.0065413122177124024,
                    0.006533120155334473,
                    0.0057149438858032225,
                    0.005634047985076904,
                    0.00568012809753418,
                    0.005710847854614258,
                    0.0056145920753479005,
                    0.005641215801239013,
                    0.005662720203399658,
                    0.005610496044158936,
                    0.005640192031860352,
                    0.00566374397277832,
                    0.005628928184509278,
                    0.005591040134429932,
                    0.005596159934997558,
                    0.005627903938293457,
                    0.00561356782913208,
                    0.005626880168914795,
                    0.005599232196807862,
                    0.005659647941589355,
                    0.005642240047454834,
                    0.005620736122131348,
                    0.005616640090942383,
                    0.0056258559226989744,
                    0.005618688106536865,
                    0.005627903938293457,
                    0.005604320049285889,
                    0.005623807907104492,
                    0.005615615844726562,
                    0.005635072231292724,
                    0.005609471797943116,
                    0.005584832191467285,
                    0.005641215801239013,
                    0.005612576007843017,
                    0.005631008148193359,
                    0.005617663860321045,
                    0.005633024215698243,
                    0.005699584007263184,
                    0.005607359886169434,
                    0.005626880168914795,
                    0.005606400012969971,
                    0.00561356782913208,
                    0.005643263816833496,
                    0.005637119770050049,
                    0.005616640090942383,
                    0.005608448028564453,
                    0.0056442880630493165,
                    0.00562278413772583,
                    0.005599232196807862,
                    0.005620736122131348,
                    0.005610496044158936,
                    0.0056217598915100095,
                    0.00561356782913208,
                    0.005610496044158936,
                    0.005659647941589355,
                    0.005667840003967285,
                    0.005629951953887939,
                    0.005616640090942383,
                    0.005637119770050049,
                    0.005636096000671387,
                    0.0056442880630493165,
                    0.0056217598915100095,
                    0.005595136165618897,
                    0.005599232196807862,
                    0.005594111919403076
                ]
            },
            "throughput": {
                "unit": "samples/s",
                "value": 169.7750486074489
            },
            "energy": {
                "unit": "kWh",
                "cpu": 6.491535981640935e-08,
                "ram": 3.5490031235089874e-08,
                "gpu": 3.6680964378142444e-07,
                "total": 4.6721503483292366e-07
            },
            "efficiency": {
                "unit": "samples/kWh",
                "value": 2140342.0811524196
            }
        }
    }
}