Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
Browse files
cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json
ADDED
@@ -0,0 +1,376 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"config": {
|
3 |
+
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
|
4 |
+
"backend": {
|
5 |
+
"name": "pytorch",
|
6 |
+
"version": "2.2.2",
|
7 |
+
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
|
8 |
+
"task": "text-generation",
|
9 |
+
"model": "openai-community/gpt2",
|
10 |
+
"library": "transformers",
|
11 |
+
"device": "cuda",
|
12 |
+
"device_ids": "0",
|
13 |
+
"seed": 42,
|
14 |
+
"inter_op_num_threads": null,
|
15 |
+
"intra_op_num_threads": null,
|
16 |
+
"hub_kwargs": {
|
17 |
+
"revision": "main",
|
18 |
+
"force_download": false,
|
19 |
+
"local_files_only": false,
|
20 |
+
"trust_remote_code": false
|
21 |
+
},
|
22 |
+
"no_weights": true,
|
23 |
+
"device_map": null,
|
24 |
+
"torch_dtype": null,
|
25 |
+
"eval_mode": true,
|
26 |
+
"to_bettertransformer": false,
|
27 |
+
"low_cpu_mem_usage": null,
|
28 |
+
"attn_implementation": null,
|
29 |
+
"cache_implementation": null,
|
30 |
+
"autocast_enabled": false,
|
31 |
+
"autocast_dtype": null,
|
32 |
+
"torch_compile": false,
|
33 |
+
"torch_compile_target": "forward",
|
34 |
+
"torch_compile_config": {},
|
35 |
+
"quantization_scheme": null,
|
36 |
+
"quantization_config": {},
|
37 |
+
"deepspeed_inference": false,
|
38 |
+
"deepspeed_inference_config": {},
|
39 |
+
"peft_type": null,
|
40 |
+
"peft_config": {}
|
41 |
+
},
|
42 |
+
"scenario": {
|
43 |
+
"name": "inference",
|
44 |
+
"_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
|
45 |
+
"iterations": 1,
|
46 |
+
"duration": 1,
|
47 |
+
"warmup_runs": 1,
|
48 |
+
"input_shapes": {
|
49 |
+
"batch_size": 1,
|
50 |
+
"num_choices": 2,
|
51 |
+
"sequence_length": 2
|
52 |
+
},
|
53 |
+
"new_tokens": null,
|
54 |
+
"latency": true,
|
55 |
+
"memory": true,
|
56 |
+
"energy": true,
|
57 |
+
"forward_kwargs": {},
|
58 |
+
"generate_kwargs": {
|
59 |
+
"max_new_tokens": 2,
|
60 |
+
"min_new_tokens": 2
|
61 |
+
},
|
62 |
+
"call_kwargs": {
|
63 |
+
"num_inference_steps": 2
|
64 |
+
}
|
65 |
+
},
|
66 |
+
"launcher": {
|
67 |
+
"name": "process",
|
68 |
+
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
|
69 |
+
"device_isolation": true,
|
70 |
+
"device_isolation_action": "error",
|
71 |
+
"start_method": "spawn"
|
72 |
+
},
|
73 |
+
"environment": {
|
74 |
+
"cpu": " AMD EPYC 7R32",
|
75 |
+
"cpu_count": 16,
|
76 |
+
"cpu_ram_mb": 66697.29792,
|
77 |
+
"system": "Linux",
|
78 |
+
"machine": "x86_64",
|
79 |
+
"platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35",
|
80 |
+
"processor": "x86_64",
|
81 |
+
"python_version": "3.10.14",
|
82 |
+
"gpu": [
|
83 |
+
"NVIDIA A10G"
|
84 |
+
],
|
85 |
+
"gpu_count": 1,
|
86 |
+
"gpu_vram_mb": 24146608128,
|
87 |
+
"optimum_benchmark_version": "0.2.0",
|
88 |
+
"optimum_benchmark_commit": null,
|
89 |
+
"transformers_version": "4.40.2",
|
90 |
+
"transformers_commit": null,
|
91 |
+
"accelerate_version": "0.30.0",
|
92 |
+
"accelerate_commit": null,
|
93 |
+
"diffusers_version": "0.27.2",
|
94 |
+
"diffusers_commit": null,
|
95 |
+
"optimum_version": null,
|
96 |
+
"optimum_commit": null,
|
97 |
+
"timm_version": "0.9.16",
|
98 |
+
"timm_commit": null,
|
99 |
+
"peft_version": null,
|
100 |
+
"peft_commit": null
|
101 |
+
}
|
102 |
+
},
|
103 |
+
"report": {
|
104 |
+
"prefill": {
|
105 |
+
"memory": {
|
106 |
+
"unit": "MB",
|
107 |
+
"max_ram": 1053.827072,
|
108 |
+
"max_global_vram": 1365.77024,
|
109 |
+
"max_process_vram": 0.0,
|
110 |
+
"max_reserved": 725.614592,
|
111 |
+
"max_allocated": 522.007552
|
112 |
+
},
|
113 |
+
"latency": {
|
114 |
+
"unit": "s",
|
115 |
+
"count": 58,
|
116 |
+
"total": 0.4991265563964844,
|
117 |
+
"mean": 0.008605630282698005,
|
118 |
+
"stdev": 0.00039882273470147605,
|
119 |
+
"p50": 0.008631056308746339,
|
120 |
+
"p90": 0.009216473293304444,
|
121 |
+
"p95": 0.009356646156311035,
|
122 |
+
"p99": 0.009561951732635498,
|
123 |
+
"values": [
|
124 |
+
0.009474368095397949,
|
125 |
+
0.009335871696472167,
|
126 |
+
0.00929036808013916,
|
127 |
+
0.009185983657836913,
|
128 |
+
0.008739328384399414,
|
129 |
+
0.008612735748291016,
|
130 |
+
0.008707679748535157,
|
131 |
+
0.0089967679977417,
|
132 |
+
0.009663968086242676,
|
133 |
+
0.009287615776062012,
|
134 |
+
0.008998080253601074,
|
135 |
+
0.008637727737426758,
|
136 |
+
0.008713343620300292,
|
137 |
+
0.008609375953674316,
|
138 |
+
0.008684831619262695,
|
139 |
+
0.008717984199523925,
|
140 |
+
0.00881769561767578,
|
141 |
+
0.008802656173706055,
|
142 |
+
0.008634336471557617,
|
143 |
+
0.008776512145996094,
|
144 |
+
0.008720735549926757,
|
145 |
+
0.008646559715270997,
|
146 |
+
0.008831711769104003,
|
147 |
+
0.008716511726379394,
|
148 |
+
0.00862777614593506,
|
149 |
+
0.008812992095947266,
|
150 |
+
0.00901740837097168,
|
151 |
+
0.008878496170043946,
|
152 |
+
0.008746591567993164,
|
153 |
+
0.008837056159973145,
|
154 |
+
0.008539487838745117,
|
155 |
+
0.008598624229431152,
|
156 |
+
0.008375040054321289,
|
157 |
+
0.008586655616760254,
|
158 |
+
0.008687647819519043,
|
159 |
+
0.009484992027282715,
|
160 |
+
0.008326751708984375,
|
161 |
+
0.008191295623779297,
|
162 |
+
0.008195072174072266,
|
163 |
+
0.00822265625,
|
164 |
+
0.008154239654541016,
|
165 |
+
0.008176959991455079,
|
166 |
+
0.008138079643249512,
|
167 |
+
0.00812217617034912,
|
168 |
+
0.008235551834106446,
|
169 |
+
0.008111776351928711,
|
170 |
+
0.008221856117248535,
|
171 |
+
0.008171520233154296,
|
172 |
+
0.0082041597366333,
|
173 |
+
0.008209247589111329,
|
174 |
+
0.008181280136108398,
|
175 |
+
0.008283647537231445,
|
176 |
+
0.00832572841644287,
|
177 |
+
0.008115455627441407,
|
178 |
+
0.008104479789733887,
|
179 |
+
0.008142784118652343,
|
180 |
+
0.008134143829345703,
|
181 |
+
0.008362175941467286
|
182 |
+
]
|
183 |
+
},
|
184 |
+
"throughput": {
|
185 |
+
"unit": "tokens/s",
|
186 |
+
"value": 232.40598704560747
|
187 |
+
},
|
188 |
+
"energy": {
|
189 |
+
"unit": "kWh",
|
190 |
+
"cpu": 1.0061583388772164e-07,
|
191 |
+
"ram": 5.5012300886042116e-08,
|
192 |
+
"gpu": 1.8085466445763328e-07,
|
193 |
+
"total": 3.3648279923139706e-07
|
194 |
+
},
|
195 |
+
"efficiency": {
|
196 |
+
"unit": "tokens/kWh",
|
197 |
+
"value": 5943840.233641818
|
198 |
+
}
|
199 |
+
},
|
200 |
+
"decode": {
|
201 |
+
"memory": {
|
202 |
+
"unit": "MB",
|
203 |
+
"max_ram": 1053.827072,
|
204 |
+
"max_global_vram": 1365.77024,
|
205 |
+
"max_process_vram": 0.0,
|
206 |
+
"max_reserved": 725.614592,
|
207 |
+
"max_allocated": 522.4576
|
208 |
+
},
|
209 |
+
"latency": {
|
210 |
+
"unit": "s",
|
211 |
+
"count": 58,
|
212 |
+
"total": 0.5156737575531007,
|
213 |
+
"mean": 0.008890926854363804,
|
214 |
+
"stdev": 0.00038642459451632523,
|
215 |
+
"p50": 0.00897488021850586,
|
216 |
+
"p90": 0.009417795085906983,
|
217 |
+
"p95": 0.009624700975418092,
|
218 |
+
"p99": 0.00971799641609192,
|
219 |
+
"values": [
|
220 |
+
0.009621888160705567,
|
221 |
+
0.009640640258789062,
|
222 |
+
0.009649567604064942,
|
223 |
+
0.009377663612365722,
|
224 |
+
0.009076607704162598,
|
225 |
+
0.009049375534057618,
|
226 |
+
0.009074399948120117,
|
227 |
+
0.009542367935180663,
|
228 |
+
0.009808704376220704,
|
229 |
+
0.009394207954406738,
|
230 |
+
0.009358688354492188,
|
231 |
+
0.009178112030029297,
|
232 |
+
0.009113727569580078,
|
233 |
+
0.008954943656921387,
|
234 |
+
0.00901200008392334,
|
235 |
+
0.009047200202941894,
|
236 |
+
0.009189888000488282,
|
237 |
+
0.009071807861328125,
|
238 |
+
0.009094047546386718,
|
239 |
+
0.00907545566558838,
|
240 |
+
0.008986080169677734,
|
241 |
+
0.008973024368286132,
|
242 |
+
0.008976767539978028,
|
243 |
+
0.009014592170715333,
|
244 |
+
0.009038175582885742,
|
245 |
+
0.009472831726074219,
|
246 |
+
0.009201184272766113,
|
247 |
+
0.009077119827270507,
|
248 |
+
0.008983712196350097,
|
249 |
+
0.009007488250732422,
|
250 |
+
0.008916864395141602,
|
251 |
+
0.008688639640808106,
|
252 |
+
0.008921343803405762,
|
253 |
+
0.008976736068725587,
|
254 |
+
0.008877887725830078,
|
255 |
+
0.008733440399169921,
|
256 |
+
0.008503135681152343,
|
257 |
+
0.008486880302429198,
|
258 |
+
0.008549663543701172,
|
259 |
+
0.00861513614654541,
|
260 |
+
0.00841487979888916,
|
261 |
+
0.008380000114440917,
|
262 |
+
0.008418848037719726,
|
263 |
+
0.008449472427368165,
|
264 |
+
0.00843331241607666,
|
265 |
+
0.008434592247009277,
|
266 |
+
0.008488575935363769,
|
267 |
+
0.008439807891845704,
|
268 |
+
0.008459744453430175,
|
269 |
+
0.008478943824768066,
|
270 |
+
0.008568575859069824,
|
271 |
+
0.008608511924743652,
|
272 |
+
0.008369471549987793,
|
273 |
+
0.008466879844665527,
|
274 |
+
0.008359295845031738,
|
275 |
+
0.008367487907409668,
|
276 |
+
0.008527839660644531,
|
277 |
+
0.008675519943237304
|
278 |
+
]
|
279 |
+
},
|
280 |
+
"throughput": {
|
281 |
+
"unit": "tokens/s",
|
282 |
+
"value": 112.47421291169262
|
283 |
+
},
|
284 |
+
"energy": {
|
285 |
+
"unit": "kWh",
|
286 |
+
"cpu": 9.509041504708152e-08,
|
287 |
+
"ram": 5.199449542950311e-08,
|
288 |
+
"gpu": 1.7175946098494537e-07,
|
289 |
+
"total": 3.1884437146152987e-07
|
290 |
+
},
|
291 |
+
"efficiency": {
|
292 |
+
"unit": "tokens/kWh",
|
293 |
+
"value": 3136326.3381949174
|
294 |
+
}
|
295 |
+
},
|
296 |
+
"per_token": {
|
297 |
+
"memory": null,
|
298 |
+
"latency": {
|
299 |
+
"unit": "s",
|
300 |
+
"count": 57,
|
301 |
+
"total": 0.9975111732482908,
|
302 |
+
"mean": 0.017500196021899846,
|
303 |
+
"stdev": 0.0007495505766049658,
|
304 |
+
"p50": 0.01765478324890137,
|
305 |
+
"p90": 0.01842974739074707,
|
306 |
+
"p95": 0.01877872619628906,
|
307 |
+
"p99": 0.0192828214263916,
|
308 |
+
"values": [
|
309 |
+
0.01903411293029785,
|
310 |
+
0.018981887817382814,
|
311 |
+
0.01862553596496582,
|
312 |
+
0.01785958480834961,
|
313 |
+
0.017681407928466796,
|
314 |
+
0.01780735969543457,
|
315 |
+
0.01846784019470215,
|
316 |
+
0.019599359512329103,
|
317 |
+
0.018727935791015626,
|
318 |
+
0.018404352188110353,
|
319 |
+
0.01784524726867676,
|
320 |
+
0.017863679885864257,
|
321 |
+
0.0175861759185791,
|
322 |
+
0.017723392486572266,
|
323 |
+
0.017789951324462892,
|
324 |
+
0.01802649688720703,
|
325 |
+
0.017938432693481447,
|
326 |
+
0.017750015258789064,
|
327 |
+
0.01785036849975586,
|
328 |
+
0.017779712677001954,
|
329 |
+
0.01764454460144043,
|
330 |
+
0.01785241508483887,
|
331 |
+
0.017755136489868165,
|
332 |
+
0.01768448066711426,
|
333 |
+
0.018295808792114256,
|
334 |
+
0.01826918411254883,
|
335 |
+
0.01799884796142578,
|
336 |
+
0.017756160736083985,
|
337 |
+
0.017879039764404296,
|
338 |
+
0.017494016647338868,
|
339 |
+
0.017408000946044923,
|
340 |
+
0.0172410888671875,
|
341 |
+
0.01758720016479492,
|
342 |
+
0.01765478324890137,
|
343 |
+
0.018280448913574218,
|
344 |
+
0.016883712768554687,
|
345 |
+
0.016705535888671876,
|
346 |
+
0.0167587833404541,
|
347 |
+
0.016875520706176757,
|
348 |
+
0.0165980167388916,
|
349 |
+
0.016582656860351562,
|
350 |
+
0.01658060836791992,
|
351 |
+
0.01658880043029785,
|
352 |
+
0.016691200256347655,
|
353 |
+
0.016578559875488282,
|
354 |
+
0.016710655212402344,
|
355 |
+
0.016662527084350585,
|
356 |
+
0.016687103271484375,
|
357 |
+
0.016709632873535156,
|
358 |
+
0.01676697540283203,
|
359 |
+
0.016907264709472656,
|
360 |
+
0.016744447708129884,
|
361 |
+
0.01660825538635254,
|
362 |
+
0.016489471435546875,
|
363 |
+
0.016530431747436524,
|
364 |
+
0.016671743392944336,
|
365 |
+
0.017035263061523438
|
366 |
+
]
|
367 |
+
},
|
368 |
+
"throughput": {
|
369 |
+
"unit": "tokens/s",
|
370 |
+
"value": 57.142217078516964
|
371 |
+
},
|
372 |
+
"energy": null,
|
373 |
+
"efficiency": null
|
374 |
+
}
|
375 |
+
}
|
376 |
+
}
|