{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+rocm6.1", "_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": "4", "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": "error", "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.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "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": 1389.928448, "max_global_vram": 68702.69952, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.659646484375, "mean": 7.659646484375, "stdev": 0.0, "p50": 7.659646484375, "p90": 7.659646484375, "p95": 7.659646484375, "p99": 7.659646484375, "values": [ 7.659646484375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1548.886016, "max_global_vram": 68702.69952, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 69, "total": 0.49547200059890734, "mean": 0.007180753631868223, "stdev": 0.0003098993773018083, "p50": 0.0069807801246643065, "p90": 0.007676329898834228, "p95": 0.007833384990692138, "p99": 0.007939996032714844, "values": [ 0.008039656639099122, 0.007859817028045654, 0.007793736934661865, 0.007667818069458008, 0.007520779132843018, 0.0075102181434631345, 0.007377418994903564, 0.0073900589942932126, 0.007214219093322754, 0.006979339122772217, 0.006998060226440429, 0.006965260028839112, 0.007479177951812744, 0.007560617923736572, 0.007564298152923584, 0.007473897933959961, 0.00746029806137085, 0.007269739151000976, 0.007710377216339112, 0.007236138820648193, 0.007169579029083252, 0.0072236590385437015, 0.007271018981933594, 0.007245258808135986, 0.0072572588920593265, 0.006944939136505127, 0.006920619010925293, 0.006940138816833496, 0.006979020118713379, 0.006965260028839112, 0.006980939865112305, 0.006930860042572021, 0.0069377398490905766, 0.006899819850921631, 0.00691726016998291, 0.007111818790435791, 0.0069524598121643065, 0.00693533992767334, 0.00692061996459961, 0.0069433398246765135, 0.006940939903259277, 0.006935180187225342, 0.006924459934234619, 0.00692717981338501, 0.0069190201759338375, 0.006947978973388672, 0.006962220191955567, 0.006970860004425049, 0.006973579883575439, 0.0069807801246643065, 0.00695773983001709, 0.006990540027618408, 0.006963500022888184, 0.006960460186004639, 0.0069850988388061525, 0.0069714999198913575, 0.0069446201324462895, 0.006969579219818115, 0.006960460186004639, 0.006960299968719483, 0.006947978973388672, 0.007000939846038818, 0.006967020034790039, 0.007542057991027832, 0.007867338180541993, 0.007514857769012452, 0.007893096923828126, 0.007757896900177002, 0.007316938877105713 ] }, "throughput": { "unit": "tokens/s", "value": 278.5222975933876 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1548.955648, "max_global_vram": 68702.69952, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 69, "total": 0.5136620345115662, "mean": 0.007444377311761828, "stdev": 0.00030140873179236664, "p50": 0.007312617778778076, "p90": 0.007819336986541747, "p95": 0.008145705223083496, "p99": 0.008361146812438961, "values": [ 0.008104137420654297, 0.007973416805267334, 0.007908936977386474, 0.007669097900390625, 0.007545258045196533, 0.007430858135223388, 0.007467177867889405, 0.0074966177940368655, 0.007371819019317627, 0.007313098907470703, 0.0071062188148498535, 0.007608458042144776, 0.0076642980575561525, 0.007642538070678711, 0.007659657955169678, 0.007572298049926758, 0.007629578113555908, 0.008663174629211425, 0.007527178764343262, 0.007499497890472412, 0.007427338123321533, 0.007505418777465821, 0.007684776782989502, 0.0074780588150024415, 0.0075057392120361326, 0.007214220046997071, 0.007193260192871094, 0.007225259780883789, 0.007189739227294922, 0.0071796588897705075, 0.007213738918304444, 0.007189418792724609, 0.007220458984375, 0.00720621919631958, 0.007220619201660157, 0.007285099029541015, 0.0072030191421508785, 0.007175818920135498, 0.007211178779602051, 0.0072095789909362796, 0.00719805908203125, 0.007209098815917968, 0.007210858821868896, 0.00724061918258667, 0.007241098880767822, 0.007315498828887939, 0.007296138763427734, 0.0072812590599060055, 0.007396298885345459, 0.007333578109741211, 0.007306859016418457, 0.007312617778778076, 0.007307178974151611, 0.007251179218292237, 0.007254699230194092, 0.007312458992004394, 0.007267659187316895, 0.007280939102172852, 0.007265738964080811, 0.007248939037322998, 0.00727773904800415, 0.007419019222259521, 0.007273098945617676, 0.00817341709136963, 0.007796936988830566, 0.008219016075134278, 0.00819101619720459, 0.0076074981689453125, 0.007581577777862549 ] }, "throughput": { "unit": "tokens/s", "value": 134.32956956924238 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 69, "total": 0.48197427892684935, "mean": 0.006985134477200715, "stdev": 0.00028852591850828026, "p50": 0.0068259000778198246, "p90": 0.007355882167816162, "p95": 0.007636873817443848, "p99": 0.00783325759887695, "values": [ 0.007606537818908692, 0.007493257999420166, 0.007439338207244873, 0.007194378852844238, 0.007083339214324951, 0.0070468587875366214, 0.007085578918457031, 0.007066379070281983, 0.006969900131225586, 0.0069170999526977535, 0.006712940216064453, 0.007215818881988525, 0.007270379066467285, 0.007176619052886963, 0.007200778961181641, 0.007162858963012695, 0.007254699230194092, 0.008080777168273925, 0.007084619998931885, 0.006997899055480957, 0.006979179859161377, 0.007069739818572998, 0.007214698791503906, 0.006987659931182861, 0.007057260036468506, 0.006767981052398682, 0.0067462210655212405, 0.0067793412208557126, 0.006742061138153076, 0.006734540939331055, 0.0067721400260925295, 0.006727819919586182, 0.006777259826660156, 0.0067604598999023435, 0.006771979808807373, 0.006838860988616943, 0.0067617402076721195, 0.006736299991607666, 0.006768939971923828, 0.006763500213623047, 0.006758699893951416, 0.006770380020141601, 0.00674813985824585, 0.006797420024871826, 0.006745419979095459, 0.006806221008300781, 0.0068259000778198246, 0.006812620162963867, 0.006910379886627197, 0.006845260143280029, 0.0068076601028442384, 0.006805580139160156, 0.006809579849243164, 0.006782700061798095, 0.006783501148223877, 0.00679725980758667, 0.006793739795684814, 0.006819820880889892, 0.006799499988555908, 0.006780300140380859, 0.006805420875549317, 0.006919660091400146, 0.006789421081542969, 0.007657097816467285, 0.007335018157958984, 0.007716777801513672, 0.007658537864685059, 0.007151339054107666, 0.007123178958892822 ] }, "throughput": { "unit": "tokens/s", "value": 143.16116651210828 }, "energy": null, "efficiency": null } } }