File size: 9,897 Bytes
62bc078
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
    "config": {
        "name": "cuda_inference_transformers_fill-mask_google-bert/bert-base-uncased",
        "backend": {
            "name": "pytorch",
            "version": "2.2.2+rocm5.7",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "fill-mask",
            "model": "google-bert/bert-base-uncased",
            "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": false,
            "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 7763 64-Core Processor",
            "cpu_count": 128,
            "cpu_ram_mb": 1082015.236096,
            "system": "Linux",
            "machine": "x86_64",
            "platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35",
            "processor": "x86_64",
            "python_version": "3.10.12",
            "gpu": [
                "Advanced Micro Devices, Inc. [AMD/ATI]"
            ],
            "gpu_count": 1,
            "gpu_vram_mb": 68702699520,
            "optimum_benchmark_version": "0.2.0",
            "optimum_benchmark_commit": null,
            "transformers_version": "4.40.2",
            "transformers_commit": null,
            "accelerate_version": "0.30.1",
            "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": 1006.399488,
                "max_global_vram": 930.545664,
                "max_process_vram": 227376.492544,
                "max_reserved": 589.299712,
                "max_allocated": 439.700992
            },
            "latency": {
                "unit": "s",
                "count": 126,
                "total": 1.0067562546730044,
                "mean": 0.007990129005341304,
                "stdev": 0.0001475636043259048,
                "p50": 0.007993236064910888,
                "p90": 0.00807611560821533,
                "p95": 0.008149195432662962,
                "p99": 0.008421234130859375,
                "values": [
                    0.009136269569396973,
                    0.007929397106170655,
                    0.007902836799621582,
                    0.007826356887817383,
                    0.007975155830383301,
                    0.007975797176361083,
                    0.0079653959274292,
                    0.007815637111663819,
                    0.00803947639465332,
                    0.008018836975097657,
                    0.007995475769042968,
                    0.008049715995788574,
                    0.007997235774993897,
                    0.00797819709777832,
                    0.007953236103057862,
                    0.007969875812530518,
                    0.00802395725250244,
                    0.007975475788116455,
                    0.007911477088928223,
                    0.007978355884552002,
                    0.00805595588684082,
                    0.007992435932159423,
                    0.007895156860351563,
                    0.008057395935058593,
                    0.008072595596313476,
                    0.008006996154785156,
                    0.007883636951446534,
                    0.00791275691986084,
                    0.008007636070251465,
                    0.008050036430358887,
                    0.007862196922302247,
                    0.007998035907745362,
                    0.008011957168579102,
                    0.008009556770324708,
                    0.007933395862579346,
                    0.007930196762084962,
                    0.00801451587677002,
                    0.007974677085876465,
                    0.008019796371459961,
                    0.008011956214904786,
                    0.00788379716873169,
                    0.007807796955108643,
                    0.007888916969299317,
                    0.008084916114807128,
                    0.007998355865478516,
                    0.008009556770324708,
                    0.007965876102447509,
                    0.007979795932769776,
                    0.007991157054901122,
                    0.0079653959274292,
                    0.008072436332702637,
                    0.00803515625,
                    0.00794011688232422,
                    0.008046996116638184,
                    0.008011635780334472,
                    0.00799483585357666,
                    0.008027316093444824,
                    0.007830516815185547,
                    0.008028757095336915,
                    0.00792363691329956,
                    0.007687158107757568,
                    0.008071155548095703,
                    0.008196114540100097,
                    0.007956757068634033,
                    0.007848917007446289,
                    0.007994036197662353,
                    0.007949875831604005,
                    0.007903797149658203,
                    0.0077553181648254395,
                    0.008195955276489258,
                    0.007794517040252686,
                    0.0077533979415893555,
                    0.007713878154754638,
                    0.007626358032226562,
                    0.008366514205932617,
                    0.008038835525512695,
                    0.007960116863250733,
                    0.00789147710800171,
                    0.007856916904449463,
                    0.007874357223510741,
                    0.00785051679611206,
                    0.007886837005615235,
                    0.007900596141815186,
                    0.008439474105834961,
                    0.008166675567626952,
                    0.008089394569396972,
                    0.008057875633239746,
                    0.008049555778503418,
                    0.008079635620117187,
                    0.007950837135314942,
                    0.008145235061645507,
                    0.008009876251220703,
                    0.008009076118469238,
                    0.008042515754699707,
                    0.008067476272583007,
                    0.008002997398376465,
                    0.00808443546295166,
                    0.008150515556335449,
                    0.008102995872497559,
                    0.00799867582321167,
                    0.008029075622558593,
                    0.0080482759475708,
                    0.008009555816650391,
                    0.007945237159729003,
                    0.007945556163787842,
                    0.008004756927490234,
                    0.008000116348266601,
                    0.007972115993499757,
                    0.007965396881103516,
                    0.007973236083984375,
                    0.008001715660095214,
                    0.00798923683166504,
                    0.007977235794067382,
                    0.007981236934661864,
                    0.007930676937103271,
                    0.007975636959075928,
                    0.008010835647583007,
                    0.007965236186981202,
                    0.007956916809082032,
                    0.007998995780944824,
                    0.008022516250610352,
                    0.007999475955963134,
                    0.007955156803131103,
                    0.008010355949401856,
                    0.008001395225524902,
                    0.00795963716506958
                ]
            },
            "throughput": {
                "unit": "samples/s",
                "value": 125.15442483237908
            },
            "energy": null,
            "efficiency": null
        }
    }
}