File size: 12,464 Bytes
3e74449
 
 
 
 
5be5c0a
3e74449
 
6788dba
568882b
ab2b6f2
 
3e74449
 
 
 
 
ab2b6f2
 
3e74449
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5be5c0a
 
 
3e74449
 
 
d44a165
3e74449
 
 
 
 
 
 
 
 
 
 
 
 
 
2486e77
8414510
 
3e74449
 
 
 
 
5be5c0a
3e74449
 
1217106
3e74449
ead13e2
3e74449
 
 
 
 
3e31e8e
3e74449
3fedd21
3e74449
3fedd21
3e74449
5be5c0a
3e74449
9410412
3e74449
f2a81a3
3e74449
3fedd21
b886bb4
fe2079b
 
 
3e74449
 
fdf00df
d44a165
 
259aa81
9b185b5
d44a165
 
9410412
d44a165
 
 
2f8faaa
259aa81
84385ec
 
259aa81
 
 
 
 
 
84385ec
 
d44a165
 
fdf00df
 
259aa81
 
 
 
fdf00df
d44a165
 
3e74449
 
 
259aa81
5be5c0a
3e74449
5be5c0a
 
3e74449
 
 
 
259aa81
 
 
 
 
 
 
 
 
 
 
 
 
3fedd21
259aa81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3fedd21
259aa81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3fedd21
f2a81a3
259aa81
970dfc2
259aa81
 
 
 
 
3fedd21
 
259aa81
 
 
970dfc2
259aa81
 
 
f2a81a3
3fedd21
259aa81
 
3fedd21
259aa81
 
 
3fedd21
259aa81
 
 
f2a81a3
3fedd21
259aa81
f2a81a3
3fedd21
 
259aa81
f2a81a3
3fedd21
259aa81
 
 
 
 
84385ec
f2a81a3
259aa81
 
 
 
 
 
 
 
3e74449
 
 
259aa81
3e74449
 
 
259aa81
 
 
 
3e74449
 
 
259aa81
3e74449
 
 
 
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
{
    "config": {
        "name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
        "backend": {
            "name": "pytorch",
            "version": "2.5.1+cu124",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "image-classification",
            "library": "transformers",
            "model_type": "vit",
            "model": "google/vit-base-patch16-224",
            "processor": "google/vit-base-patch16-224",
            "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": 2,
                "sequence_length": 16,
                "num_choices": 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.248768,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.10.228-219.884.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.dev0",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.47.0",
            "transformers_commit": null,
            "accelerate_version": "1.2.0",
            "accelerate_commit": null,
            "diffusers_version": "0.31.0",
            "diffusers_commit": null,
            "optimum_version": null,
            "optimum_commit": null,
            "timm_version": "1.0.12",
            "timm_commit": null,
            "peft_version": "0.14.0",
            "peft_commit": null
        },
        "print_report": true,
        "log_report": true
    },
    "report": {
        "load_model": {
            "memory": {
                "unit": "MB",
                "max_ram": 855.154688,
                "max_global_vram": 1037.565952,
                "max_process_vram": 0.0,
                "max_reserved": 400.556032,
                "max_allocated": 346.271744
            },
            "latency": {
                "unit": "s",
                "values": [
                    0.12734259033203124
                ],
                "count": 1,
                "total": 0.12734259033203124,
                "mean": 0.12734259033203124,
                "p50": 0.12734259033203124,
                "p90": 0.12734259033203124,
                "p95": 0.12734259033203124,
                "p99": 0.12734259033203124,
                "stdev": 0,
                "stdev_": 0
            },
            "throughput": null,
            "energy": {
                "unit": "kWh",
                "cpu": 9.718510578402734e-05,
                "ram": 5.324407287325482e-05,
                "gpu": 0.00013398455163200068,
                "total": 0.00028441373028928284
            },
            "efficiency": null
        },
        "forward": {
            "memory": {
                "unit": "MB",
                "max_ram": 1046.441984,
                "max_global_vram": 1073.217536,
                "max_process_vram": 0.0,
                "max_reserved": 423.624704,
                "max_allocated": 377.056256
            },
            "latency": {
                "unit": "s",
                "values": [
                    0.007416831970214844,
                    0.006876160144805908,
                    0.006876160144805908,
                    0.006884352207183838,
                    0.006876160144805908,
                    0.00687820816040039,
                    0.006881279945373535,
                    0.006899712085723877,
                    0.006892543792724609,
                    0.0068853759765625,
                    0.006879231929779053,
                    0.006883327960968018,
                    0.00688640022277832,
                    0.006887423992156983,
                    0.0068853759765625,
                    0.006912000179290771,
                    0.006918144226074219,
                    0.006917119979858399,
                    0.006910975933074951,
                    0.006948863983154297,
                    0.006957056045532227,
                    0.006964223861694336,
                    0.006976511955261231,
                    0.00698367977142334,
                    0.006977536201477051,
                    0.006980607986450196,
                    0.0069816322326660156,
                    0.006978559970855713,
                    0.006979584217071533,
                    0.006978559970855713,
                    0.0069847040176391605,
                    0.006986752033233643,
                    0.006980607986450196,
                    0.006979584217071533,
                    0.006987775802612305,
                    0.006974463939666748,
                    0.006982656002044678,
                    0.006979584217071533,
                    0.0069816322326660156,
                    0.006989823818206787,
                    0.006980607986450196,
                    0.006979584217071533,
                    0.006982656002044678,
                    0.006978559970855713,
                    0.006974463939666748,
                    0.0069816322326660156,
                    0.0069816322326660156,
                    0.0069847040176391605,
                    0.00698367977142334,
                    0.006982656002044678,
                    0.006987775802612305,
                    0.006990848064422607,
                    0.006973440170288086,
                    0.0069816322326660156,
                    0.006982656002044678,
                    0.0069816322326660156,
                    0.006982656002044678,
                    0.006986752033233643,
                    0.006977536201477051,
                    0.006988800048828125,
                    0.0069847040176391605,
                    0.006974463939666748,
                    0.006982656002044678,
                    0.006977536201477051,
                    0.00698367977142334,
                    0.0069816322326660156,
                    0.006976511955261231,
                    0.006980607986450196,
                    0.006988800048828125,
                    0.006982719898223877,
                    0.006979584217071533,
                    0.006985727787017822,
                    0.006980607986450196,
                    0.006985727787017822,
                    0.006978559970855713,
                    0.006975488185882568,
                    0.006986752033233643,
                    0.006980607986450196,
                    0.006977536201477051,
                    0.006985727787017822,
                    0.00698367977142334,
                    0.0069847040176391605,
                    0.006979584217071533,
                    0.0069928960800170895,
                    0.0069847040176391605,
                    0.006978559970855713,
                    0.006974463939666748,
                    0.006980607986450196,
                    0.006982656002044678,
                    0.006975488185882568,
                    0.006977536201477051,
                    0.006980607986450196,
                    0.006986752033233643,
                    0.006988800048828125,
                    0.006987775802612305,
                    0.006980607986450196,
                    0.0069816322326660156,
                    0.006982656002044678,
                    0.006978559970855713,
                    0.006980607986450196,
                    0.006980607986450196,
                    0.006969344139099121,
                    0.00698367977142334,
                    0.00698367977142334,
                    0.006987775802612305,
                    0.007024640083312988,
                    0.007017471790313721,
                    0.007008255958557129,
                    0.007028736114501953,
                    0.007023615837097168,
                    0.007036928176879883,
                    0.007017471790313721,
                    0.0070256638526916505,
                    0.0070256638526916505,
                    0.007027711868286133,
                    0.007023615837097168,
                    0.007021567821502686,
                    0.0070266880989074704,
                    0.0070256638526916505,
                    0.007029759883880615,
                    0.007031807899475098,
                    0.007028736114501953,
                    0.0070266880989074704,
                    0.007024640083312988,
                    0.007030784130096435,
                    0.0070348801612854,
                    0.007019519805908203,
                    0.0070266880989074704,
                    0.0070225920677185055,
                    0.00703385591506958,
                    0.007020544052124023,
                    0.007032832145690918,
                    0.007021567821502686,
                    0.0070256638526916505,
                    0.007029759883880615,
                    0.0070256638526916505,
                    0.007024640083312988,
                    0.0070348801612854,
                    0.0070256638526916505,
                    0.007021567821502686,
                    0.0070256638526916505,
                    0.007024640083312988,
                    0.007024640083312988,
                    0.007017471790313721,
                    0.007029759883880615,
                    0.007031807899475098,
                    0.007029759883880615,
                    0.007030784130096435,
                    0.0070225920677185055
                ],
                "count": 149,
                "total": 1.0409462409019468,
                "mean": 0.00698621638189226,
                "p50": 0.006982656002044678,
                "p90": 0.007028736114501953,
                "p95": 0.007031398391723633,
                "p99": 0.007035945129394532,
                "stdev": 5.375588552954572e-05,
                "stdev_": 0.7694563493463625
            },
            "throughput": {
                "unit": "samples/s",
                "value": 286.2779923599056
            },
            "energy": {
                "unit": "kWh",
                "cpu": 8.30650094658866e-08,
                "ram": 4.5395641906133486e-08,
                "gpu": 5.811991972483323e-07,
                "total": 7.096598486203523e-07
            },
            "efficiency": {
                "unit": "samples/kWh",
                "value": 2818251.5946029555
            }
        }
    }
}