
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3f6a621
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.5.1+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": 2, | |
"sequence_length": 16, | |
"num_choices": 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.248768, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.228-219.884.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.5.0.dev0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.46.3", | |
"transformers_commit": null, | |
"accelerate_version": "1.1.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.31.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.11", | |
"timm_commit": null, | |
"peft_version": "0.13.2", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load_model": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 825.38496, | |
"max_global_vram": 1362.624512, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.08015564727783203 | |
], | |
"count": 1, | |
"total": 0.08015564727783203, | |
"mean": 0.08015564727783203, | |
"p50": 0.08015564727783203, | |
"p90": 0.08015564727783203, | |
"p95": 0.08015564727783203, | |
"p99": 0.08015564727783203, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 0.00010624582679513874, | |
"ram": 5.81841770632357e-05, | |
"gpu": 0.00013972677844800003, | |
"total": 0.0003041567823063745 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1277.779968, | |
"max_global_vram": 1379.401728, | |
"max_process_vram": 0.0, | |
"max_reserved": 731.906048, | |
"max_allocated": 538.394112 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.008019871711730957, | |
0.007968416213989258, | |
0.007885695934295655, | |
0.008090784072875976, | |
0.008083840370178223, | |
0.008073856353759765, | |
0.007837408065795899, | |
0.00805897617340088, | |
0.007923903942108155, | |
0.007866752147674561, | |
0.008157855987548828, | |
0.007806975841522217, | |
0.008096416473388672, | |
0.007979968070983886, | |
0.00801750373840332, | |
0.007884160041809082, | |
0.00784819221496582, | |
0.007942592144012451, | |
0.008180255889892579, | |
0.008127776145935059, | |
0.007965919971466064, | |
0.007851263999938966, | |
0.007937024116516114, | |
0.007815968036651612, | |
0.00842739200592041, | |
0.007722047805786133, | |
0.007750559806823731, | |
0.008090399742126464, | |
0.008118335723876952, | |
0.008351615905761719, | |
0.007560800075531006, | |
0.007489151954650879, | |
0.007565983772277832, | |
0.0075075201988220215, | |
0.007402783870697022, | |
0.0075148801803588865, | |
0.007230656147003174, | |
0.0072704958915710445, | |
0.007338784217834473, | |
0.007482912063598633, | |
0.00744927978515625, | |
0.007271520137786865, | |
0.007282591819763183, | |
0.0077955198287963864, | |
0.007470816135406494, | |
0.007192768096923828, | |
0.007244736194610596, | |
0.00733846378326416, | |
0.00726470422744751, | |
0.00719596815109253, | |
0.0072185277938842775, | |
0.007304863929748535, | |
0.0072031040191650395, | |
0.007240096092224121, | |
0.007286367893218994, | |
0.007266623973846436, | |
0.007210432052612304, | |
0.007217152118682861, | |
0.0072120318412780765, | |
0.007198400020599365, | |
0.007230527877807617, | |
0.007283199787139893, | |
0.0075632319450378415, | |
0.007484288215637207, | |
0.007267583847045898, | |
0.00720627212524414, | |
0.0071877760887146 | |
], | |
"count": 67, | |
"total": 0.5113325448036192, | |
"mean": 0.007631829026919692, | |
"p50": 0.007560800075531006, | |
"p90": 0.008093037033081054, | |
"p95": 0.008148832035064698, | |
"p99": 0.008377379779815675, | |
"stdev": 0.0003616167691635326, | |
"stdev_": 4.738271361792888 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 262.0603780490123 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.058351734520491e-08, | |
"ram": 4.949812433161659e-08, | |
"gpu": 1.9602008896183083e-07, | |
"total": 3.3610173063865233e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 5950579.2969278935 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1277.779968, | |
"max_global_vram": 1379.401728, | |
"max_process_vram": 0.0, | |
"max_reserved": 731.906048, | |
"max_allocated": 538.394624 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007642111778259277, | |
0.007674079895019531, | |
0.007705183982849121, | |
0.007807040214538574, | |
0.007780191898345948, | |
0.007738336086273194, | |
0.007742527961730957, | |
0.007791039943695069, | |
0.007709887981414795, | |
0.0075213761329650875, | |
0.007738207817077637, | |
0.007699872016906738, | |
0.00796777582168579, | |
0.007793248176574707, | |
0.007655519962310791, | |
0.0075931520462036136, | |
0.007598368167877198, | |
0.00784822416305542, | |
0.007928703784942627, | |
0.0077259202003479, | |
0.007937280178070069, | |
0.0077155838012695314, | |
0.0075784001350402835, | |
0.007371776103973389, | |
0.007776063919067383, | |
0.007317599773406983, | |
0.0076500802040100095, | |
0.007861695766448974, | |
0.007979904174804688, | |
0.007570464134216309, | |
0.007237504005432129, | |
0.007315392017364502, | |
0.007320064067840576, | |
0.007089439868927002, | |
0.007195744037628174, | |
0.007300960063934326, | |
0.007015456199645996, | |
0.007017695903778076, | |
0.007218400001525879, | |
0.007178624153137207, | |
0.007272543907165527, | |
0.007057600021362305, | |
0.007141439914703369, | |
0.007298111915588379, | |
0.007027775764465332, | |
0.007037312030792236, | |
0.007270175933837891, | |
0.006988096237182617, | |
0.007038432121276856, | |
0.0070219521522521975, | |
0.007014400005340577, | |
0.007058015823364258, | |
0.007070720195770264, | |
0.0070314879417419434, | |
0.007011839866638184, | |
0.007024384021759033, | |
0.007013855934143066, | |
0.007028831958770752, | |
0.007211616039276123, | |
0.0070169601440429686, | |
0.007009215831756592, | |
0.006979231834411621, | |
0.007414048194885254, | |
0.007082176208496094, | |
0.006981760025024414, | |
0.007019904136657715, | |
0.007024288177490234 | |
], | |
"count": 67, | |
"total": 0.49445507287979124, | |
"mean": 0.007379926460892407, | |
"p50": 0.007300960063934326, | |
"p90": 0.0077987649917602535, | |
"p95": 0.007908601379394531, | |
"p99": 0.007971899461746215, | |
"stdev": 0.0003299210352513236, | |
"stdev_": 4.470519279556999 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 271.0054105008186 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.986032381550381e-08, | |
"ram": 4.3638884901522227e-08, | |
"gpu": 1.5743654300959452e-07, | |
"total": 2.8093575172662056e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7119065.436520896 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007189504146575928, | |
0.0072130560874938965, | |
0.007234591960906983, | |
0.007336959838867187, | |
0.007308288097381592, | |
0.007279615879058838, | |
0.007271423816680909, | |
0.007333888053894043, | |
0.00724070405960083, | |
0.007071743965148926, | |
0.007286784172058106, | |
0.007205887794494629, | |
0.007491583824157715, | |
0.007264256000518799, | |
0.007172095775604248, | |
0.007130112171173096, | |
0.007144447803497315, | |
0.007370751857757568, | |
0.00745472002029419, | |
0.007263232231140137, | |
0.007469056129455566, | |
0.007215136051177978, | |
0.007136256217956543, | |
0.006975488185882568, | |
0.007319551944732666, | |
0.006923264026641846, | |
0.007129087924957276, | |
0.007345151901245117, | |
0.007437312126159668, | |
0.007139328002929687, | |
0.006868959903717041, | |
0.006940671920776367, | |
0.006949888229370117, | |
0.0067276802062988285, | |
0.006810624122619629, | |
0.006937600135803222, | |
0.006659071922302246, | |
0.006661119937896728, | |
0.006816768169403077, | |
0.006811647891998291, | |
0.006908927917480469, | |
0.006681600093841553, | |
0.006776800155639648, | |
0.00692633581161499, | |
0.006657023906707763, | |
0.00667852783203125, | |
0.006903808116912841, | |
0.006626304149627686, | |
0.006676479816436768, | |
0.006649856090545654, | |
0.006654975891113281, | |
0.0066938881874084475, | |
0.006706175804138184, | |
0.006672383785247803, | |
0.006651904106140137, | |
0.006660128116607666, | |
0.006642687797546387, | |
0.0066713600158691405, | |
0.006845439910888672, | |
0.006656000137329102, | |
0.006650879859924317, | |
0.006621183872222901, | |
0.00704307222366333, | |
0.006722559928894043, | |
0.006621183872222901, | |
0.006662144184112549, | |
0.006656000137329102 | |
], | |
"count": 67, | |
"total": 0.466854944229126, | |
"mean": 0.00696798424222576, | |
"p50": 0.00692633581161499, | |
"p90": 0.0073351167678833, | |
"p95": 0.007417344045639038, | |
"p99": 0.007476715545654297, | |
"stdev": 0.0002785926421507289, | |
"stdev_": 3.9981812883913608 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |