IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f123402 verified
raw
history blame
13.4 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.2.2+rocm5.7",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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,
"latency": true,
"memory": 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": "error",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 128,
"cpu_ram_mb": 1082015.236096,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"Advanced Micro Devices, Inc. [AMD/ATI]"
],
"gpu_count": 1,
"gpu_vram_mb": 68702699520,
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": "ebd20fcf042acf5db8d8956e7057fa93c82e14ab",
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1051.0336,
"max_global_vram": 1118.425088,
"max_process_vram": 306781.323264,
"max_reserved": 725.614592,
"max_allocated": 512.832512
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.4984795293807985,
"mean": 0.008745254901417513,
"stdev": 0.0005277680930572523,
"p50": 0.008906883239746094,
"p90": 0.009152706909179686,
"p95": 0.009340836143493653,
"p99": 0.010213282928466794,
"values": [
0.011071203231811523,
0.008844162940979004,
0.009231203079223633,
0.009176322937011719,
0.009323524475097657,
0.008649123191833497,
0.00895184326171875,
0.009102402687072754,
0.008534242630004883,
0.008107202529907227,
0.008274402618408203,
0.008494882583618165,
0.008701763153076171,
0.008987202644348144,
0.008627363204956055,
0.0083115234375,
0.008752323150634766,
0.009539202690124511,
0.008959362983703614,
0.008922883033752441,
0.008924483299255371,
0.008923843383789062,
0.009410082817077637,
0.008955363273620606,
0.00897104263305664,
0.008927204132080079,
0.008984322547912598,
0.00896992301940918,
0.008944003105163575,
0.008961764335632325,
0.00896496295928955,
0.008657443046569823,
0.0080156831741333,
0.00805952262878418,
0.00828768253326416,
0.008016322135925293,
0.008058563232421875,
0.007898882865905761,
0.008033761978149414,
0.008095843315124512,
0.008056001663208008,
0.00791920280456543,
0.007894883155822754,
0.00791008186340332,
0.008906883239746094,
0.009136962890625,
0.008877443313598634,
0.008922722816467285,
0.008878243446350098,
0.008946562767028808,
0.008908482551574707,
0.008906243324279785,
0.008888802528381347,
0.00890880298614502,
0.00889344310760498,
0.00894144344329834,
0.008960482597351074
]
},
"throughput": {
"unit": "tokens/s",
"value": 228.6954494231862
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1051.0336,
"max_global_vram": 1118.429184,
"max_process_vram": 281297.92,
"max_reserved": 725.614592,
"max_allocated": 513.056256
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.5042054591178892,
"mean": 0.00884570980908578,
"stdev": 0.0008301476716392675,
"p50": 0.00888304328918457,
"p90": 0.009103363037109374,
"p95": 0.009202531242370606,
"p99": 0.012696356811523436,
"values": [
0.008881443977355958,
0.008847203254699707,
0.009107202529907226,
0.009289443016052246,
0.008836962699890137,
0.009020803451538086,
0.009178402900695801,
0.008697443008422852,
0.008401923179626465,
0.00803984260559082,
0.008287842750549317,
0.00846896266937256,
0.008813922882080077,
0.008628803253173828,
0.008623843193054198,
0.008152642250061036,
0.01268896484375,
0.00901136302947998,
0.009027363777160645,
0.008964642524719239,
0.00901312255859375,
0.012705764770507812,
0.009032322883605956,
0.009009122848510742,
0.008996163368225098,
0.009001442909240723,
0.009180803298950196,
0.00899232292175293,
0.00899328327178955,
0.009011683464050292,
0.008690723419189453,
0.008439203262329102,
0.008093762397766113,
0.008390402793884278,
0.008088803291320801,
0.008263683319091797,
0.008095203399658203,
0.00810096263885498,
0.007948963165283204,
0.007959843158721924,
0.008751683235168457,
0.007949442863464355,
0.008088803291320801,
0.008026243209838867,
0.008990082740783691,
0.0089675235748291,
0.008961123466491699,
0.008992643356323242,
0.008706242561340331,
0.009000163078308105,
0.008998723983764648,
0.008997122764587402,
0.009005123138427735,
0.008823843002319335,
0.00910080337524414,
0.00898624324798584,
0.00888304328918457
]
},
"throughput": {
"unit": "tokens/s",
"value": 113.04915281901519
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 56,
"total": 0.9846846685409548,
"mean": 0.01758365479537419,
"stdev": 0.001087228722935305,
"p50": 0.01786312770843506,
"p90": 0.018301368713378906,
"p95": 0.01870552682876587,
"p99": 0.02136070337295532,
"values": [
0.01767280578613281,
0.018375688552856446,
0.01848512649536133,
0.018227048873901367,
0.017774246215820313,
0.018152965545654296,
0.01786128616333008,
0.017027366638183595,
0.01618320655822754,
0.016590084075927734,
0.01697088623046875,
0.01759200668334961,
0.017682567596435547,
0.01722288513183594,
0.016527685165405273,
0.021265447616577147,
0.018817605972290038,
0.01801616668701172,
0.017920648574829102,
0.017968006134033203,
0.021477127075195314,
0.01866816711425781,
0.017995365142822267,
0.01800112533569336,
0.017961126327514648,
0.018201288223266603,
0.01799728584289551,
0.017967845916748045,
0.01800672721862793,
0.017732006072998047,
0.01707568550109863,
0.01615008544921875,
0.016491846084594728,
0.016456806182861328,
0.01630304527282715,
0.01618624687194824,
0.016027204513549803,
0.016006725311279297,
0.01608912658691406,
0.01682496452331543,
0.01590752601623535,
0.016006244659423827,
0.015920805931091308,
0.017928646087646483,
0.018142086029052734,
0.01786208724975586,
0.017946565628051758,
0.017623685836791993,
0.017980966567993164,
0.01793312644958496,
0.01793568801879883,
0.017911205291748045,
0.017776805877685545,
0.018019365310668944,
0.017972164154052735,
0.017864168167114256
]
},
"throughput": {
"unit": "tokens/s",
"value": 56.870998187650635
},
"energy": null,
"efficiency": null
}
}
}