IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
87cec4a
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+rocm5.7", | |
"_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": "6", | |
"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": false, | |
"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": "warn", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"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": 1032.757248, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 42384.580608, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.63863916015625, | |
"mean": 7.63863916015625, | |
"stdev": 0.0, | |
"p50": 7.63863916015625, | |
"p90": 7.63863916015625, | |
"p95": 7.63863916015625, | |
"p99": 7.63863916015625, | |
"values": [ | |
7.63863916015625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1202.085888, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 254658.53952, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5321746649742126, | |
"mean": 0.009175425258176082, | |
"stdev": 0.0024791071569709765, | |
"p50": 0.008796101093292236, | |
"p90": 0.009153269290924073, | |
"p95": 0.0092503662109375, | |
"p99": 0.021981327972412108, | |
"values": [ | |
0.009217942237854004, | |
0.009434102058410644, | |
0.009174100875854492, | |
0.009144341468811035, | |
0.008940180778503419, | |
0.008211698532104492, | |
0.008222258567810059, | |
0.00797057819366455, | |
0.008119539260864258, | |
0.009046421051025391, | |
0.008746740341186523, | |
0.008795061111450196, | |
0.008768500328063965, | |
0.008925140380859375, | |
0.008789139747619629, | |
0.008730420112609863, | |
0.008795861244201661, | |
0.008788020133972167, | |
0.008835220336914062, | |
0.008782099723815918, | |
0.008358900070190429, | |
0.008079057693481445, | |
0.007921298027038575, | |
0.007755857944488525, | |
0.007762738227844238, | |
0.008125939369201661, | |
0.00792561912536621, | |
0.008759220123291016, | |
0.008853140830993653, | |
0.023084211349487304, | |
0.008850099563598633, | |
0.008796340942382812, | |
0.008810420036315918, | |
0.008798900604248048, | |
0.0088091402053833, | |
0.008769619941711425, | |
0.008753459930419922, | |
0.008753939628601074, | |
0.008758099555969238, | |
0.008769619941711425, | |
0.008815220832824707, | |
0.008783379554748534, | |
0.008769619941711425, | |
0.008740180015563965, | |
0.00875666046142578, | |
0.008897621154785157, | |
0.008837300300598145, | |
0.00882338047027588, | |
0.008809301376342773, | |
0.008840660095214843, | |
0.008943221092224122, | |
0.009135701179504395, | |
0.009194260597229003, | |
0.008830419540405273, | |
0.021149328231811523, | |
0.009129620552062989, | |
0.008863860130310059, | |
0.008921939849853516 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 217.9735482252259 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1202.331648, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 254447.661056, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.478828133583069, | |
"mean": 0.008255657475570152, | |
"stdev": 0.00046467343523420726, | |
"p50": 0.00826793909072876, | |
"p90": 0.008496643447875978, | |
"p95": 0.008575202703475952, | |
"p99": 0.009693025579452515, | |
"values": [ | |
0.00855889892578125, | |
0.008737460136413574, | |
0.008483059883117676, | |
0.008399699211120605, | |
0.008086097717285157, | |
0.007765937805175782, | |
0.007671058177947998, | |
0.00784945821762085, | |
0.010959705352783204, | |
0.008396498680114746, | |
0.0082308988571167, | |
0.008253458976745606, | |
0.00823185920715332, | |
0.008223698616027833, | |
0.008208978652954101, | |
0.008207859039306641, | |
0.008273299217224122, | |
0.008247859001159668, | |
0.008267059326171874, | |
0.008235058784484862, | |
0.007895217895507813, | |
0.007328977108001709, | |
0.007599857807159424, | |
0.007542737007141113, | |
0.007521936893463135, | |
0.007552496910095215, | |
0.007548656940460205, | |
0.008340179443359375, | |
0.008280499458312988, | |
0.008302739143371582, | |
0.008268818855285645, | |
0.008284499168395996, | |
0.008433778762817383, | |
0.008624979019165039, | |
0.008291858673095703, | |
0.008465458869934082, | |
0.008262899398803711, | |
0.008243538856506348, | |
0.00828273868560791, | |
0.008281938552856445, | |
0.008251538276672363, | |
0.008253298759460449, | |
0.008258739471435546, | |
0.008251218795776368, | |
0.00826465892791748, | |
0.008301138877868652, | |
0.008284499168395996, | |
0.008239059448242188, | |
0.008420978546142578, | |
0.008473939895629883, | |
0.008566418647766113, | |
0.00822865867614746, | |
0.008322419166564942, | |
0.008406899452209472, | |
0.008528338432312012, | |
0.00843138027191162, | |
0.008354258537292481, | |
0.008348978996276856 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 121.12905640273526 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.44912871026992807, | |
"mean": 0.0077435984529297935, | |
"stdev": 0.00044077528366444064, | |
"p50": 0.007758657932281494, | |
"p90": 0.00794480185508728, | |
"p95": 0.008073769807815552, | |
"p99": 0.009089518756866454, | |
"values": [ | |
0.007940978050231933, | |
0.00815713882446289, | |
0.007945137977600098, | |
0.007846097946166992, | |
0.007612496852874756, | |
0.007282896995544434, | |
0.007195376873016358, | |
0.007368337154388427, | |
0.010325464248657226, | |
0.00788001823425293, | |
0.007744338035583496, | |
0.007739216804504395, | |
0.007743378162384033, | |
0.007706418037414551, | |
0.007706577777862549, | |
0.007713297843933106, | |
0.007764337062835694, | |
0.007751858234405518, | |
0.007774898052215576, | |
0.007743378162384033, | |
0.007444016933441162, | |
0.006863535881042481, | |
0.0071449770927429195, | |
0.007084335803985596, | |
0.007057295799255371, | |
0.007040815830230713, | |
0.007037775993347168, | |
0.007830098152160644, | |
0.0077782578468322755, | |
0.007778738021850586, | |
0.007771378040313721, | |
0.0077326569557189945, | |
0.00792369794845581, | |
0.00812721824645996, | |
0.0077587380409240726, | |
0.007944657802581787, | |
0.007761937141418457, | |
0.007719217777252197, | |
0.0077636981010437015, | |
0.0077568178176879886, | |
0.0077417769432067875, | |
0.007740178108215332, | |
0.007749298095703125, | |
0.007751698017120361, | |
0.007758577823638916, | |
0.0077691378593444825, | |
0.007762738227844238, | |
0.007738418102264404, | |
0.007922257900238037, | |
0.007943058967590332, | |
0.008064337730407715, | |
0.007697298049926758, | |
0.007801457881927491, | |
0.007892337799072266, | |
0.007961297035217285, | |
0.007905138969421386, | |
0.007847218036651612, | |
0.007820978164672851 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 129.13892760305123 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |