{ "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": "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": 1079.25504, "max_global_vram": 68702.69952, "max_process_vram": 48629.94432, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.985650390625, "mean": 8.985650390625, "stdev": 0.0, "p50": 8.985650390625, "p90": 8.985650390625, "p95": 8.985650390625, "p99": 8.985650390625, "values": [ 8.985650390625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1248.54272, "max_global_vram": 68702.69952, "max_process_vram": 289989.414912, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 55, "total": 0.5397475266456603, "mean": 0.009813591393557461, "stdev": 0.005982262514871044, "p50": 0.008785411834716797, "p90": 0.009617760848999023, "p95": 0.012407240009307837, "p99": 0.03535652080535891, "values": [ 0.009599328994750977, 0.009737248420715333, 0.009630048751831054, 0.009332610130310058, 0.009157731056213378, 0.008943811416625976, 0.01863722038269043, 0.008467172622680664, 0.008347332954406738, 0.008428611755371095, 0.008277253150939941, 0.0082935733795166, 0.008703170776367187, 0.008824131011962891, 0.008402692794799804, 0.009716927528381348, 0.008814851760864257, 0.008784770965576172, 0.008785411834716797, 0.008771011352539063, 0.008806371688842773, 0.009265569686889649, 0.008806370735168456, 0.008832930564880371, 0.008794052124023437, 0.008840770721435546, 0.008787970542907714, 0.00881581211090088, 0.008801891326904296, 0.008379173278808594, 0.008283973693847656, 0.008119013786315918, 0.008371493339538575, 0.008011334419250489, 0.007986053943634034, 0.00885421085357666, 0.008836931228637695, 0.008802051544189454, 0.02261544609069824, 0.009013251304626465, 0.008162533760070801, 0.008199974060058594, 0.008076933860778809, 0.008060934066772461, 0.007862534046173096, 0.008240934371948241, 0.008128614425659179, 0.008225572586059571, 0.007815974235534668, 0.007840134143829346, 0.008011653900146484, 0.00835773277282715, 0.008826210975646972, 0.05031343460083008, 0.008944770812988282 ] }, "throughput": { "unit": "tokens/s", "value": 203.79898854490548 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1248.632832, "max_global_vram": 68702.69952, "max_process_vram": 303762.993152, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 55, "total": 0.45965243244171133, "mean": 0.008357316953485662, "stdev": 0.001748005596420481, "p50": 0.008208133697509766, "p90": 0.008617891693115234, "p95": 0.008934307193756104, "p99": 0.014567315654754649, "values": [ 0.00902189064025879, 0.009188130378723144, 0.008896771430969239, 0.008706531524658202, 0.00848493194580078, 0.008352932929992675, 0.007400775909423828, 0.0077956547737121585, 0.007643495082855225, 0.0079602952003479, 0.007850374221801758, 0.008208133697509766, 0.00811677360534668, 0.007946855068206787, 0.008751651763916016, 0.008318532943725586, 0.00828557300567627, 0.008289572715759277, 0.008286052703857422, 0.00827437400817871, 0.02088201141357422, 0.008359172821044921, 0.00847325325012207, 0.00825117301940918, 0.008374853134155274, 0.008427332878112793, 0.00829597282409668, 0.007860933780670166, 0.00828701400756836, 0.007974693775177002, 0.007718534946441651, 0.007979494094848633, 0.007876454830169678, 0.00785501480102539, 0.007717255115509033, 0.008438853263854981, 0.008343333244323731, 0.008302053451538087, 0.008365893363952636, 0.00843149185180664, 0.007874534130096436, 0.007729255199432373, 0.007682694911956787, 0.00754477596282959, 0.007911654949188232, 0.007800454139709472, 0.007694055080413818, 0.0075386958122253414, 0.007660615921020508, 0.0075490961074829105, 0.007655334949493408, 0.008182212829589844, 0.008398053169250488, 0.008008773803710938, 0.008428132057189942 ] }, "throughput": { "unit": "tokens/s", "value": 119.65562698719006 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 55, "total": 0.4294538111686705, "mean": 0.007808251112157648, "stdev": 0.0017490878420993192, "p50": 0.007665894985198975, "p90": 0.007969862365722656, "p95": 0.008229620742797851, "p99": 0.013975218791961681, "values": [ 0.008201732635498046, 0.008518532752990722, 0.008294692993164062, 0.008145092964172363, 0.007972293853759766, 0.007856454849243164, 0.006906376838684082, 0.007265896797180176, 0.007145576000213623, 0.007472296237945556, 0.00733405590057373, 0.0076790151596069335, 0.007631976127624512, 0.007344137191772461, 0.007439335823059082, 0.007826694965362549, 0.007792774200439453, 0.007775175094604492, 0.007777094841003418, 0.007770695209503174, 0.02038089370727539, 0.007851974964141846, 0.007966215133666993, 0.007745894908905029, 0.007815975189208985, 0.007901413917541504, 0.007773415088653564, 0.007361256122589112, 0.007794374942779541, 0.007497576236724854, 0.007245736122131348, 0.007432456016540527, 0.0073558158874511715, 0.007311176776885986, 0.007161417007446289, 0.007931815147399903, 0.007838375091552734, 0.007790214061737061, 0.00781133508682251, 0.00786621379852295, 0.007332776069641113, 0.0071566162109375, 0.00712205696105957, 0.006987977981567383, 0.007361095905303955, 0.007242536067962647, 0.00715261697769165, 0.0070006179809570315, 0.007108457088470459, 0.0070217370986938475, 0.0070713372230529785, 0.007665894985198975, 0.00787901496887207, 0.007489895820617676, 0.007877734184265137 ] }, "throughput": { "unit": "tokens/s", "value": 128.06965165899624 }, "energy": null, "efficiency": null } } }