File size: 13,971 Bytes
62f78de
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
{
    "config": {
        "name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
        "backend": {
            "name": "pytorch",
            "version": "2.2.2",
            "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
            "task": "text-generation",
            "model": "openai-community/gpt2",
            "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": {
        "prefill": {
            "memory": {
                "unit": "MB",
                "max_ram": 1056.21504,
                "max_global_vram": 1365.77024,
                "max_process_vram": 0.0,
                "max_reserved": 725.614592,
                "max_allocated": 522.007552
            },
            "latency": {
                "unit": "s",
                "count": 57,
                "total": 0.4932418212890625,
                "mean": 0.008653365285773026,
                "stdev": 0.00030094731449344765,
                "p50": 0.008729887962341308,
                "p90": 0.008992601776123047,
                "p95": 0.009081868743896484,
                "p99": 0.00940516860961914,
                "values": [
                    0.00962393569946289,
                    0.009233280181884766,
                    0.00910598373413086,
                    0.008871328353881837,
                    0.008821279525756835,
                    0.008729887962341308,
                    0.00880832004547119,
                    0.008922207832336425,
                    0.008806559562683105,
                    0.008900799751281739,
                    0.008902655601501466,
                    0.008776384353637695,
                    0.008840895652770997,
                    0.00869497585296631,
                    0.008776800155639648,
                    0.009007136344909667,
                    0.009021120071411133,
                    0.009075839996337891,
                    0.00876137638092041,
                    0.00876524829864502,
                    0.008714816093444825,
                    0.008814175605773926,
                    0.008919584274291991,
                    0.008876832008361816,
                    0.008779328346252441,
                    0.008814656257629394,
                    0.008982912063598632,
                    0.008841567993164063,
                    0.00884556770324707,
                    0.008701472282409669,
                    0.008660320281982423,
                    0.008535391807556152,
                    0.008586336135864257,
                    0.008774271965026855,
                    0.008770591735839843,
                    0.008447423934936523,
                    0.008277440071105957,
                    0.00834768009185791,
                    0.008335071563720703,
                    0.008331232070922852,
                    0.008302751541137696,
                    0.008330080032348633,
                    0.008330975532531738,
                    0.008357983589172363,
                    0.008304703712463378,
                    0.00829695987701416,
                    0.008221632003784179,
                    0.008242048263549805,
                    0.008307071685791015,
                    0.008315423965454101,
                    0.008304287910461425,
                    0.008405920028686523,
                    0.008334943771362305,
                    0.008340415954589843,
                    0.008360159873962403,
                    0.008352864265441894,
                    0.008330911636352538
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 231.12395397062394
            },
            "energy": {
                "unit": "kWh",
                "cpu": 1.0198926993584704e-07,
                "ram": 5.5764314973389553e-08,
                "gpu": 1.8152673591452916e-07,
                "total": 3.3928032082376575e-07
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 5894830.549393612
            }
        },
        "decode": {
            "memory": {
                "unit": "MB",
                "max_ram": 1056.21504,
                "max_global_vram": 1365.77024,
                "max_process_vram": 0.0,
                "max_reserved": 725.614592,
                "max_allocated": 522.4576
            },
            "latency": {
                "unit": "s",
                "count": 57,
                "total": 0.5124286413192749,
                "mean": 0.00898997616349605,
                "stdev": 0.0003353435192255441,
                "p50": 0.009137184143066406,
                "p90": 0.009392422485351562,
                "p95": 0.009467046165466309,
                "p99": 0.009708334999084472,
                "values": [
                    0.009922335624694825,
                    0.00945315170288086,
                    0.009435296058654785,
                    0.009178400039672852,
                    0.009153792381286621,
                    0.009148192405700684,
                    0.009213824272155762,
                    0.009215680122375489,
                    0.009211168289184571,
                    0.00922713565826416,
                    0.00922486400604248,
                    0.009347071647644043,
                    0.00917846393585205,
                    0.009144479751586915,
                    0.009540191650390625,
                    0.009444512367248536,
                    0.00925209617614746,
                    0.009178175926208496,
                    0.009363840103149414,
                    0.009150400161743164,
                    0.009140000343322754,
                    0.009184351921081543,
                    0.009177824020385743,
                    0.009110943794250488,
                    0.009137184143066406,
                    0.009522624015808105,
                    0.00929843235015869,
                    0.009188672065734864,
                    0.009169568061828613,
                    0.008991776466369629,
                    0.009095775604248046,
                    0.008758655548095703,
                    0.009058208465576171,
                    0.009153087615966797,
                    0.008902432441711426,
                    0.008618751525878906,
                    0.008662976264953614,
                    0.008632608413696289,
                    0.00859712028503418,
                    0.008731167793273925,
                    0.008585408210754394,
                    0.008562848091125489,
                    0.00859267234802246,
                    0.00860700798034668,
                    0.008561951637268066,
                    0.008575903892517089,
                    0.008501695632934571,
                    0.008601375579833984,
                    0.008680895805358886,
                    0.008675711631774902,
                    0.008646559715270997,
                    0.008584416389465332,
                    0.00861564826965332,
                    0.008687359809875488,
                    0.008607680320739747,
                    0.008613632202148438,
                    0.008612640380859375
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 111.23500016168195
            },
            "energy": {
                "unit": "kWh",
                "cpu": 9.895048381118425e-08,
                "ram": 5.409786038038164e-08,
                "gpu": 1.7632194961089187e-07,
                "total": 3.2937029380245794e-07
            },
            "efficiency": {
                "unit": "tokens/kWh",
                "value": 3036096.5114836884
            }
        },
        "per_token": {
            "memory": null,
            "latency": {
                "unit": "s",
                "count": 56,
                "total": 0.9879142379760746,
                "mean": 0.017641325678144183,
                "stdev": 0.0005813381669504582,
                "p50": 0.01784883213043213,
                "p90": 0.01832907199859619,
                "p95": 0.018397463321685792,
                "p99": 0.018665164375305177,
                "values": [
                    0.018736127853393555,
                    0.01860710334777832,
                    0.01806540870666504,
                    0.01803468894958496,
                    0.017880096435546874,
                    0.01807151985168457,
                    0.018147327423095702,
                    0.018066432952880858,
                    0.018123775482177733,
                    0.01820979118347168,
                    0.018136064529418947,
                    0.018075647354125975,
                    0.01784217643737793,
                    0.018367488861083983,
                    0.01844121551513672,
                    0.018331647872924805,
                    0.018304000854492186,
                    0.018111488342285157,
                    0.01798963165283203,
                    0.017855487823486327,
                    0.018039840698242188,
                    0.018108383178710937,
                    0.01806438446044922,
                    0.017910783767700195,
                    0.01838287925720215,
                    0.018326496124267577,
                    0.01807155227661133,
                    0.01804595184326172,
                    0.017764352798461915,
                    0.01775923156738281,
                    0.017367040634155274,
                    0.0176312313079834,
                    0.017932287216186525,
                    0.017803264617919923,
                    0.017086463928222655,
                    0.016991231918334963,
                    0.0170199031829834,
                    0.016957439422607423,
                    0.017054719924926756,
                    0.016935935974121095,
                    0.016924671173095703,
                    0.016949247360229493,
                    0.016969728469848632,
                    0.016912384033203123,
                    0.016903167724609376,
                    0.016748544692993163,
                    0.016857088088989256,
                    0.01698099136352539,
                    0.01704652786254883,
                    0.016983039855957033,
                    0.01701068878173828,
                    0.01697593688964844,
                    0.017049535751342774,
                    0.01699225616455078,
                    0.0169881591796875,
                    0.01697177505493164
                ]
            },
            "throughput": {
                "unit": "tokens/s",
                "value": 56.685082416391126
            },
            "energy": null,
            "efficiency": null
        }
    }
}