{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.2.0.dev20231010+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": "5", "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": "0.12.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 955.928576, "max_global_vram": 68702.69952, "max_process_vram": 43017.87136, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.3713681640625, "mean": 8.3713681640625, "stdev": 0.0, "p50": 8.3713681640625, "p90": 8.3713681640625, "p95": 8.3713681640625, "p99": 8.3713681640625, "values": [ 8.3713681640625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1130.217472, "max_global_vram": 68702.69952, "max_process_vram": 291200.38912, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 62, "total": 0.5173872199058532, "mean": 0.008344955159771829, "stdev": 0.0016052284320367109, "p50": 0.0078081383705139165, "p90": 0.00881379919052124, "p95": 0.008865990638732911, "p99": 0.013405765056610112, "values": [ 0.008689895629882812, 0.008801416397094726, 0.008794055938720704, 0.008782055854797364, 0.008758695602416992, 0.008781255722045899, 0.008870534896850586, 0.008815175056457519, 0.008816776275634765, 0.008837415695190429, 0.008960775375366211, 0.008867494583129883, 0.008223498344421386, 0.008234376907348634, 0.008738216400146484, 0.008208138465881348, 0.0077484588623046875, 0.007744618892669678, 0.007741097927093506, 0.007736618995666504, 0.007747017860412598, 0.007738859176635742, 0.007763497829437256, 0.008124777793884277, 0.007766698837280274, 0.00775917911529541, 0.007750699043273926, 0.008145417213439941, 0.007767818927764893, 0.007750059127807617, 0.007737419128417969, 0.007768619060516358, 0.007772778034210205, 0.007769099235534668, 0.0077785391807556154, 0.00774957799911499, 0.007794057846069336, 0.007791018009185791, 0.007776778221130371, 0.007822218894958497, 0.007779499053955078, 0.00776925802230835, 0.00774285888671875, 0.007773898124694824, 0.0077642989158630375, 0.007888138771057129, 0.008356298446655273, 0.008790535926818848, 0.008405736923217774, 0.008760295867919921, 0.008755175590515137, 0.008727815628051758, 0.008800935745239259, 0.008748456001281739, 0.020358184814453124, 0.008102377891540528, 0.007887818813323975, 0.007753418922424316, 0.0077546992301940915, 0.007745738983154297, 0.0077431778907775875, 0.007753899097442627 ] }, "throughput": { "unit": "tokens/s", "value": 239.66575753951503 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1130.541056, "max_global_vram": 68702.69952, "max_process_vram": 271084.818432, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 62, "total": 0.4939655294418334, "mean": 0.007967185958739251, "stdev": 0.00175685562387233, "p50": 0.007533018827438355, "p90": 0.008289609909057617, "p95": 0.00834158592224121, "p99": 0.013546780414581306, "values": [ 0.008219657897949218, 0.00829229736328125, 0.008271177291870118, 0.00824765682220459, 0.008287017822265624, 0.008289897918701172, 0.008296137809753417, 0.00826973819732666, 0.008272936820983887, 0.008573575973510742, 0.008343977928161621, 0.008038217544555665, 0.007526538848876953, 0.00828349781036377, 0.008269097328186035, 0.007379179000854492, 0.007578218936920166, 0.007425580024719238, 0.0074260601997375485, 0.007355820178985595, 0.007384300231933594, 0.007384459972381591, 0.007517899990081787, 0.007539498805999756, 0.007417418956756592, 0.007445740222930908, 0.021325382232666015, 0.007417580127716064, 0.007403820037841797, 0.007425899982452393, 0.007379498958587647, 0.007452939987182617, 0.007428299903869629, 0.00739725923538208, 0.0074134202003479, 0.007541419982910157, 0.0075036602020263675, 0.007564620018005371, 0.007642698764801025, 0.007426858901977539, 0.007449419975280762, 0.00737470006942749, 0.007379499912261963, 0.0074046201705932615, 0.0074065389633178715, 0.00735837984085083, 0.008251816749572753, 0.00825629711151123, 0.008378216743469238, 0.008245098114013671, 0.008223816871643067, 0.008267976760864259, 0.0082369384765625, 0.008264456748962402, 0.007632459163665771, 0.007557898998260498, 0.007410219192504883, 0.007341259956359863, 0.007447658061981201, 0.007409259796142578, 0.007455180168151856, 0.007554859161376953 ] }, "throughput": { "unit": "tokens/s", "value": 125.51483110584289 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 62, "total": 0.4622084956169128, "mean": 0.007454975735756659, "stdev": 0.0017532534231962489, "p50": 0.007021420478820801, "p90": 0.007766634702682495, "p95": 0.007805026888847351, "p99": 0.01300905570030213, "values": [ 0.007704779148101807, 0.007759337902069092, 0.007754538059234619, 0.007750699043273926, 0.00775485897064209, 0.007767018795013428, 0.00778541898727417, 0.007759658813476562, 0.007763177871704102, 0.00803341770172119, 0.007806058883666992, 0.007585740089416504, 0.007060460090637207, 0.007758378982543945, 0.007740139007568359, 0.00687342119216919, 0.0070612611770629885, 0.006914700984954834, 0.006911501884460449, 0.006858380794525146, 0.006891982078552246, 0.006897420883178711, 0.007015181064605713, 0.007027659893035889, 0.006911341190338135, 0.006924460887908936, 0.02079146385192871, 0.006911022186279297, 0.0069027009010314945, 0.006906860828399658, 0.006875980854034424, 0.006936141014099121, 0.006897420883178711, 0.006923181056976318, 0.006894381046295166, 0.007042541027069092, 0.0069718208312988285, 0.0070452609062194825, 0.007132300853729248, 0.006916300773620605, 0.006907501220703125, 0.006876461982727051, 0.006876941204071045, 0.0068726220130920414, 0.006912140846252441, 0.006875020980834961, 0.007742057800292969, 0.007782059192657471, 0.007849419116973877, 0.007715178966522217, 0.007708777904510498, 0.00774829912185669, 0.007725739002227784, 0.007740938186645508, 0.007105580806732178, 0.00708526086807251, 0.006885100841522216, 0.00687342119216919, 0.006901260852813721, 0.006880940914154053, 0.006922861099243164, 0.007002540111541748 ] }, "throughput": { "unit": "tokens/s", "value": 134.13859889625823 }, "energy": null, "efficiency": null } } }