File size: 11,680 Bytes
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
{
    "config": {
        "name": "cuda_inference_transformers_text-classification_FacebookAI/roberta-base",
        "backend": {
            "name": "pytorch",
            "version": "2.2.2",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "text-classification",
            "model": "FacebookAI/roberta-base",
            "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": 890.114048,
                "max_global_vram": 1195.900928,
                "max_process_vram": 0.0,
                "max_reserved": 555.74528,
                "max_allocated": 508.993536
            },
            "latency": {
                "unit": "s",
                "count": 161,
                "total": 0.996849409103394,
                "mean": 0.006191611236667041,
                "stdev": 0.0002436492177730374,
                "p50": 0.006165503978729248,
                "p90": 0.006308864116668702,
                "p95": 0.006900735855102539,
                "p99": 0.0070588417053222665,
                "values": [
                    0.007296000003814697,
                    0.006905856132507324,
                    0.007013376235961914,
                    0.0069959678649902345,
                    0.0069847040176391605,
                    0.006951935768127441,
                    0.006890495777130127,
                    0.006927360057830811,
                    0.006900735855102539,
                    0.007127039909362793,
                    0.006194176197052002,
                    0.006061056137084961,
                    0.006073311805725097,
                    0.006281216144561768,
                    0.0062740478515625,
                    0.006308864116668702,
                    0.006292479991912842,
                    0.0062904319763183595,
                    0.006284287929534912,
                    0.006266880035400391,
                    0.006223872184753418,
                    0.0062197761535644535,
                    0.006240255832672119,
                    0.006207488059997559,
                    0.0061521921157836916,
                    0.006211616039276123,
                    0.0061859841346740725,
                    0.006235136032104492,
                    0.006254591941833496,
                    0.006281184196472168,
                    0.006270976066589356,
                    0.006248447895050049,
                    0.006266880035400391,
                    0.006253568172454834,
                    0.006244383811950684,
                    0.006255616188049316,
                    0.006270976066589356,
                    0.006342656135559082,
                    0.0064471039772033695,
                    0.0062791681289672855,
                    0.006164480209350586,
                    0.00623199987411499,
                    0.006181888103485108,
                    0.00617574405670166,
                    0.006145023822784424,
                    0.006105055809020996,
                    0.006182911872863769,
                    0.006113279819488526,
                    0.006157311916351318,
                    0.006195168018341065,
                    0.006160384178161621,
                    0.006149055957794189,
                    0.006148096084594727,
                    0.006151167869567871,
                    0.0061634559631347655,
                    0.006190080165863037,
                    0.0061521921157836916,
                    0.00621670389175415,
                    0.006144991874694824,
                    0.006194176197052002,
                    0.006158336162567139,
                    0.00622489595413208,
                    0.006109151840209961,
                    0.006139904022216797,
                    0.006120448112487793,
                    0.006195199966430664,
                    0.005987328052520752,
                    0.005975039958953857,
                    0.005929984092712402,
                    0.005948416233062744,
                    0.00592793607711792,
                    0.005955584049224853,
                    0.005934080123901367,
                    0.0060631041526794435,
                    0.005945343971252442,
                    0.005989376068115234,
                    0.0060405759811401364,
                    0.006080512046813965,
                    0.00606822395324707,
                    0.005970943927764893,
                    0.005984255790710449,
                    0.005982207775115967,
                    0.005967872142791748,
                    0.005981184005737304,
                    0.005991424083709717,
                    0.005967872142791748,
                    0.006119423866271972,
                    0.006124544143676758,
                    0.006145023822784424,
                    0.006147071838378906,
                    0.006169600009918213,
                    0.006165503978729248,
                    0.0061562881469726565,
                    0.006266880035400391,
                    0.00628223991394043,
                    0.006301695823669433,
                    0.006244351863861084,
                    0.0063170561790466305,
                    0.0062638077735900875,
                    0.006285312175750732,
                    0.0062566399574279785,
                    0.006362112045288086,
                    0.006311935901641846,
                    0.006303743839263916,
                    0.006308864116668702,
                    0.006304768085479737,
                    0.006292479991912842,
                    0.006245376110076905,
                    0.006260735988616943,
                    0.0063211522102355954,
                    0.0062863359451293946,
                    0.006195199966430664,
                    0.006146048069000244,
                    0.006182911872863769,
                    0.00612556791305542,
                    0.006165503978729248,
                    0.0061859841346740725,
                    0.006145023822784424,
                    0.006196224212646485,
                    0.006305791854858398,
                    0.006276095867156982,
                    0.006253568172454834,
                    0.006236159801483154,
                    0.006252543926239014,
                    0.006250495910644531,
                    0.006243328094482422,
                    0.0061224961280822755,
                    0.006173696041107178,
                    0.006157311916351318,
                    0.006203392028808594,
                    0.006169568061828614,
                    0.006020095825195313,
                    0.005963776111602783,
                    0.005960703849792481,
                    0.005955584049224853,
                    0.005962751865386963,
                    0.005940224170684814,
                    0.005963776111602783,
                    0.005921792030334472,
                    0.005955584049224853,
                    0.005957632064819336,
                    0.005970943927764893,
                    0.005970943927764893,
                    0.0060026879310607914,
                    0.005943295955657959,
                    0.005985280036926269,
                    0.005966847896575928,
                    0.005989376068115234,
                    0.005985280036926269,
                    0.005982207775115967,
                    0.005974016189575195,
                    0.006013951778411865,
                    0.005957632064819336,
                    0.0059770879745483394,
                    0.005948416233062744,
                    0.005991424083709717,
                    0.005936192035675049,
                    0.006103040218353272,
                    0.005943295955657959,
                    0.006046688079833985,
                    0.005954559803009033
                ]
            },
            "throughput": {
                "unit": "samples/s",
                "value": 161.50884830719806
            },
            "energy": {
                "unit": "kWh",
                "cpu": 7.143940532223449e-08,
                "ram": 3.904175865138686e-08,
                "gpu": 1.322156345542155e-07,
                "total": 2.4269679852783684e-07
            },
            "efficiency": {
                "unit": "samples/kWh",
                "value": 4120367.4958460648
            }
        }
    }
}