
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ff987e4
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_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.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.3.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.43.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 719.925248, | |
"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.18854345703125, | |
"mean": 7.18854345703125, | |
"stdev": 0.0, | |
"p50": 7.18854345703125, | |
"p90": 7.18854345703125, | |
"p95": 7.18854345703125, | |
"p99": 7.18854345703125, | |
"values": [ | |
7.18854345703125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0473729835616219e-06, | |
"ram": 5.2623910257059e-07, | |
"gpu": 1.8030569980008113e-06, | |
"total": 3.3766690841330234e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1026.441216, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.490165952205658, | |
"mean": 0.006807860447300805, | |
"stdev": 0.0004111000845307373, | |
"p50": 0.006880656003952027, | |
"p90": 0.0074301248550415035, | |
"p95": 0.007556057596206665, | |
"p99": 0.007632841839790345, | |
"values": [ | |
0.0076837120056152345, | |
0.007448351860046386, | |
0.007015679836273193, | |
0.007124800205230713, | |
0.007566688060760498, | |
0.0074397120475769045, | |
0.007576352119445801, | |
0.007547359943389892, | |
0.00693558406829834, | |
0.007102240085601807, | |
0.0070742077827453615, | |
0.006977375984191895, | |
0.00702623987197876, | |
0.007337024211883545, | |
0.007213088035583496, | |
0.0073438401222229, | |
0.007336832046508789, | |
0.007077311992645264, | |
0.007098720073699951, | |
0.00702188777923584, | |
0.006923967838287353, | |
0.007098048210144043, | |
0.007011007785797119, | |
0.006791359901428222, | |
0.006852128028869629, | |
0.007612063884735108, | |
0.006920671939849853, | |
0.006894720077514648, | |
0.006889855861663819, | |
0.007107583999633789, | |
0.007102335929870605, | |
0.007518015861511231, | |
0.007049952030181885, | |
0.006919519901275635, | |
0.007201312065124511, | |
0.006678431987762451, | |
0.006893087863922119, | |
0.006454400062561035, | |
0.006552063941955567, | |
0.006871456146240234, | |
0.006968224048614502, | |
0.006967967987060547, | |
0.006576096057891846, | |
0.006489312171936035, | |
0.006522143840789795, | |
0.00650435209274292, | |
0.006523263931274414, | |
0.006543680191040039, | |
0.006366879940032959, | |
0.00630847978591919, | |
0.006328479766845703, | |
0.0063573441505432125, | |
0.0063303041458129886, | |
0.006328703880310059, | |
0.006323999881744384, | |
0.006307519912719726, | |
0.006377312183380127, | |
0.006345536231994629, | |
0.006316736221313477, | |
0.006343904018402099, | |
0.006328127861022949, | |
0.006419616222381592, | |
0.006337920188903809, | |
0.006373248100280762, | |
0.0063478717803955075, | |
0.006334271907806397, | |
0.006336448192596436, | |
0.006567008018493652, | |
0.006570240020751953, | |
0.006350272178649903, | |
0.006344799995422363, | |
0.006436895847320556 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 293.77805486494134 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.096229101975399e-08, | |
"ram": 4.41939006713037e-08, | |
"gpu": 1.5988674922448583e-07, | |
"total": 2.850429409155435e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7016486.686448369 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1042.08384, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.5112587194442748, | |
"mean": 0.007100815547837151, | |
"stdev": 0.0004111131329808965, | |
"p50": 0.007181616067886353, | |
"p90": 0.007722451114654541, | |
"p95": 0.007751743912696838, | |
"p99": 0.00784038374900818, | |
"values": [ | |
0.007815040111541749, | |
0.007726111888885498, | |
0.007486368179321289, | |
0.00775116777420044, | |
0.007689504146575927, | |
0.007786272048950195, | |
0.007902431964874267, | |
0.007736959934234619, | |
0.007365087985992432, | |
0.007429344177246094, | |
0.007378143787384033, | |
0.007330207824707031, | |
0.007353856086730957, | |
0.00766374397277832, | |
0.007752448081970215, | |
0.007607327938079834, | |
0.007288928031921387, | |
0.007458591938018799, | |
0.007379807949066162, | |
0.007234272003173828, | |
0.007463007926940918, | |
0.007295839786529541, | |
0.007326464176177979, | |
0.0072709121704101565, | |
0.007339104175567627, | |
0.007194399833679199, | |
0.007271359920501709, | |
0.007248767852783203, | |
0.007314655780792236, | |
0.007426047801971435, | |
0.007413599967956543, | |
0.007746272087097168, | |
0.007242047786712646, | |
0.007189568042755127, | |
0.007523327827453613, | |
0.00714243221282959, | |
0.006769855976104736, | |
0.006639647960662842, | |
0.007173664093017578, | |
0.007144224166870117, | |
0.007394752025604248, | |
0.007001887798309326, | |
0.00683628797531128, | |
0.00683465576171875, | |
0.006825056076049805, | |
0.006858208179473877, | |
0.006866655826568604, | |
0.006816703796386719, | |
0.006620512008666992, | |
0.006609024047851563, | |
0.006694591999053955, | |
0.006609663963317871, | |
0.006622015953063965, | |
0.006617280006408691, | |
0.006595776081085205, | |
0.0065972480773925785, | |
0.0066564478874206546, | |
0.006590816020965576, | |
0.0066295361518859865, | |
0.0066767997741699215, | |
0.006545536041259766, | |
0.006613952159881592, | |
0.006590847969055176, | |
0.00660262393951416, | |
0.006579584121704102, | |
0.006651328086853027, | |
0.006930431842803955, | |
0.006809088230133056, | |
0.006889344215393067, | |
0.006600031852722168, | |
0.006601664066314697, | |
0.0066195521354675295 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 140.82889398592977 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.126213702031188e-08, | |
"ram": 3.8674460663818226e-08, | |
"gpu": 1.3852066249704554e-07, | |
"total": 2.4845726018117574e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 4024837.1058700285 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4780739188194275, | |
"mean": 0.006639915539158716, | |
"stdev": 0.00035244350574217814, | |
"p50": 0.006697504043579102, | |
"p90": 0.0072102912902832035, | |
"p95": 0.007226828861236572, | |
"p99": 0.007280343194007875, | |
"values": [ | |
0.0072427520751953125, | |
0.0072202239036560055, | |
0.006967296123504638, | |
0.00722431993484497, | |
0.00713318395614624, | |
0.007250944137573242, | |
0.007352320194244385, | |
0.007226367950439453, | |
0.006841343879699707, | |
0.006915071964263916, | |
0.006865920066833496, | |
0.006793216228485107, | |
0.006819839954376221, | |
0.007166975975036621, | |
0.007227392196655274, | |
0.007087103843688965, | |
0.00678604793548584, | |
0.006929408073425293, | |
0.0068618240356445315, | |
0.006744063854217529, | |
0.006896639823913574, | |
0.0067645440101623535, | |
0.006833151817321777, | |
0.0067573761940002445, | |
0.006813695907592773, | |
0.006689792156219483, | |
0.0067686400413513184, | |
0.00672051191329956, | |
0.0067870721817016606, | |
0.006904831886291504, | |
0.006860799789428711, | |
0.007215104103088379, | |
0.006759424209594727, | |
0.006705215930938721, | |
0.0070553598403930665, | |
0.006608895778656006, | |
0.006366208076477051, | |
0.00624128007888794, | |
0.006716415882110595, | |
0.006683648109436035, | |
0.006879231929779053, | |
0.006601727962493896, | |
0.006437888145446777, | |
0.006440959930419922, | |
0.006425600051879882, | |
0.006463488101959228, | |
0.006468639850616455, | |
0.006423552036285401, | |
0.006232063770294189, | |
0.006220799922943115, | |
0.006295551776885986, | |
0.006220799922943115, | |
0.006237184047698975, | |
0.006231040000915527, | |
0.0061972479820251464, | |
0.006207488059997559, | |
0.006269951820373535, | |
0.0062044157981872555, | |
0.006245376110076905, | |
0.006292479991912842, | |
0.006162432193756104, | |
0.006228991985321045, | |
0.006206463813781738, | |
0.006214655876159668, | |
0.006168511867523194, | |
0.0062566399574279785, | |
0.006502399921417237, | |
0.006391808032989502, | |
0.006497280120849609, | |
0.006195199966430664, | |
0.006215712070465088, | |
0.0062341117858886715 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 150.60432532650876 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |