
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1b5fded
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu124", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"model": "openai-community/gpt2", | |
"processor": "openai-community/gpt2", | |
"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": 1, | |
"num_choices": 2, | |
"sequence_length": 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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.223-211.872.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 791.187456, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.3991025390625, | |
"mean": 7.3991025390625, | |
"stdev": 0.0, | |
"p50": 7.3991025390625, | |
"p90": 7.3991025390625, | |
"p95": 7.3991025390625, | |
"p99": 7.3991025390625, | |
"values": [ | |
7.3991025390625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.82021634028227e-07, | |
"ram": 5.153352904776623e-07, | |
"gpu": 1.5686123660003243e-06, | |
"total": 3.0659692905062133e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1219.19488, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 69, | |
"total": 0.49254454231262224, | |
"mean": 0.0071383267001829285, | |
"stdev": 0.00033789122367299624, | |
"p50": 0.007237919807434082, | |
"p90": 0.00747784309387207, | |
"p95": 0.007494252777099609, | |
"p99": 0.00773524978637695, | |
"values": [ | |
0.007563936233520508, | |
0.007463071823120117, | |
0.007443615913391113, | |
0.007402527809143067, | |
0.0073322877883911135, | |
0.007290016174316407, | |
0.007385632038116455, | |
0.007489088058471679, | |
0.0073276481628417964, | |
0.007473696231842041, | |
0.007475647926330566, | |
0.007454944133758545, | |
0.007403232097625732, | |
0.0073885760307312014, | |
0.007199999809265137, | |
0.007259039878845215, | |
0.007293791770935059, | |
0.007375103950500488, | |
0.007416959762573242, | |
0.007486623764038086, | |
0.007386367797851562, | |
0.007397535800933838, | |
0.0074683837890625, | |
0.00745740795135498, | |
0.007237919807434082, | |
0.0073003840446472165, | |
0.007488895893096923, | |
0.007337056159973145, | |
0.007271232128143311, | |
0.0073677759170532224, | |
0.007580287933349609, | |
0.007497695922851563, | |
0.007426208019256592, | |
0.007417471885681153, | |
0.007386015892028809, | |
0.007236800193786621, | |
0.006994175910949707, | |
0.007222752094268799, | |
0.00682806396484375, | |
0.0071142401695251465, | |
0.007089695930480957, | |
0.007160448074340821, | |
0.007199552059173584, | |
0.006913919925689697, | |
0.006983104228973388, | |
0.00691487979888916, | |
0.006762495994567871, | |
0.006737567901611328, | |
0.00675219202041626, | |
0.006743680000305176, | |
0.00716153621673584, | |
0.00678000020980835, | |
0.0067329277992248535, | |
0.0066546878814697265, | |
0.006755296230316162, | |
0.006701375961303711, | |
0.006683487892150879, | |
0.006746016025543213, | |
0.006671040058135986, | |
0.0066557440757751465, | |
0.006697184085845948, | |
0.006623360157012939, | |
0.006480735778808594, | |
0.0067497601509094235, | |
0.006695903778076172, | |
0.006683743953704834, | |
0.006756351947784424, | |
0.00665119981765747, | |
0.008064543724060059 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 280.1777060650289 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.949474966442753e-08, | |
"ram": 4.346288390147283e-08, | |
"gpu": 1.508409111275168e-07, | |
"total": 2.7379854469341716e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7304640.724951542 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1237.602304, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 69, | |
"total": 0.51800150346756, | |
"mean": 0.00750726816619652, | |
"stdev": 0.0003436053306079613, | |
"p50": 0.007628960132598877, | |
"p90": 0.00785023374557495, | |
"p95": 0.007885171127319335, | |
"p99": 0.008140114822387691, | |
"values": [ | |
0.007803552150726319, | |
0.007829631805419922, | |
0.007782591819763184, | |
0.007768223762512207, | |
0.007574528217315674, | |
0.007746399879455567, | |
0.00782806396484375, | |
0.007868800163269043, | |
0.007832992076873779, | |
0.00789254379272461, | |
0.007809408187866211, | |
0.007847040176391602, | |
0.007772672176361084, | |
0.007820511817932129, | |
0.007572127819061279, | |
0.007740863800048828, | |
0.007715456008911133, | |
0.007757343769073486, | |
0.00785584020614624, | |
0.007874112129211425, | |
0.007637087821960449, | |
0.008000543594360351, | |
0.007808351993560791, | |
0.007654816150665283, | |
0.0076928319931030276, | |
0.007848832130432129, | |
0.007628960132598877, | |
0.007734591960906982, | |
0.007673855781555176, | |
0.007770048141479492, | |
0.007844128131866456, | |
0.007926432132720948, | |
0.007746560096740723, | |
0.00763267183303833, | |
0.007791359901428222, | |
0.007627071857452393, | |
0.007574880123138427, | |
0.007342720031738281, | |
0.007113503932952881, | |
0.007323200225830078, | |
0.007384736061096192, | |
0.007640063762664795, | |
0.0071915841102600095, | |
0.007271488189697265, | |
0.007167456150054932, | |
0.007215487957000733, | |
0.006999839782714843, | |
0.007250048160552978, | |
0.007067455768585205, | |
0.007625984191894531, | |
0.007135104179382324, | |
0.007101984024047852, | |
0.007069056034088135, | |
0.007043968200683594, | |
0.007001088142395019, | |
0.007065792083740235, | |
0.007014656066894531, | |
0.007021503925323486, | |
0.007057951927185059, | |
0.007036448001861572, | |
0.007132736206054688, | |
0.007041567802429199, | |
0.007486623764038086, | |
0.007052127838134766, | |
0.007071263790130615, | |
0.0069920320510864255, | |
0.007281919956207275, | |
0.007079679965972901, | |
0.0084367036819458 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 133.20424658636375 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.796486403257474e-08, | |
"ram": 4.262847838172675e-08, | |
"gpu": 1.4139250979353685e-07, | |
"total": 2.6198585220783835e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3817000.0081022736 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 69, | |
"total": 0.48411740827560423, | |
"mean": 0.007016194322834843, | |
"stdev": 0.0002880687401341347, | |
"p50": 0.007111680030822754, | |
"p90": 0.007311155319213868, | |
"p95": 0.007344947242736817, | |
"p99": 0.007612498073577878, | |
"values": [ | |
0.007251967906951904, | |
0.007294976234436036, | |
0.0072130560874938965, | |
0.007230463981628418, | |
0.007070655822753906, | |
0.007217152118682861, | |
0.00728988790512085, | |
0.007247871875762939, | |
0.007309311866760254, | |
0.0073431038856506346, | |
0.007271423816680909, | |
0.007314432144165039, | |
0.007211008071899414, | |
0.007227392196655274, | |
0.007051263809204102, | |
0.007196671962738037, | |
0.0071833600997924804, | |
0.0071495680809020995, | |
0.007315455913543701, | |
0.007346176147460938, | |
0.007123968124389648, | |
0.0074670081138610836, | |
0.007252992153167725, | |
0.007112703800201416, | |
0.007164927959442138, | |
0.007299071788787842, | |
0.007111680030822754, | |
0.007145472049713135, | |
0.007155712127685547, | |
0.007230463981628418, | |
0.007310336112976074, | |
0.0073820161819458, | |
0.007196671962738037, | |
0.007123968124389648, | |
0.007275519847869873, | |
0.007132160186767578, | |
0.006987775802612305, | |
0.006915071964263916, | |
0.006692863941192627, | |
0.006853631973266602, | |
0.006900767803192139, | |
0.007111680030822754, | |
0.006760447978973389, | |
0.006837247848510742, | |
0.006729728221893311, | |
0.0067983360290527345, | |
0.00658841609954834, | |
0.006833151817321777, | |
0.006651904106140137, | |
0.0070563840866088865, | |
0.0066826238632202144, | |
0.006696959972381592, | |
0.006635519981384277, | |
0.006639616012573242, | |
0.006591487884521485, | |
0.006661119937896728, | |
0.0066119680404663084, | |
0.006619135856628418, | |
0.006651904106140137, | |
0.006608895778656006, | |
0.006727583885192871, | |
0.0066375679969787596, | |
0.007068672180175781, | |
0.0066344962120056155, | |
0.006669312000274658, | |
0.006590464115142822, | |
0.006863872051239014, | |
0.006667263984680176, | |
0.007921664237976075 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 142.52740930299052 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |