{ "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.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": 1033.981952, "max_global_vram": 68702.69952, "max_process_vram": 43302.690816, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.77878857421875, "mean": 7.77878857421875, "stdev": 0.0, "p50": 7.77878857421875, "p90": 7.77878857421875, "p95": 7.77878857421875, "p99": 7.77878857421875, "values": [ 7.77878857421875 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1203.318784, "max_global_vram": 68702.69952, "max_process_vram": 276316.766208, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 61, "total": 0.5093033270835876, "mean": 0.00834923487022275, "stdev": 0.0008606738249587263, "p50": 0.008091334342956544, "p90": 0.008932291030883789, "p95": 0.009389089584350587, "p99": 0.011532347297668452, "values": [ 0.01036108684539795, 0.009389089584350587, 0.009053570747375488, 0.008934370994567871, 0.008883171081542969, 0.008932291030883789, 0.00888829231262207, 0.008811652183532715, 0.00881949234008789, 0.008884931564331055, 0.010098848342895508, 0.008873731613159179, 0.007903814792633057, 0.007907013893127441, 0.007741734981536865, 0.007708614826202393, 0.007729414939880371, 0.0079550142288208, 0.008091334342956544, 0.007713574886322022, 0.007740294933319092, 0.007713894844055175, 0.007718056201934814, 0.0077486162185668945, 0.007730374813079834, 0.00770957612991333, 0.007713894844055175, 0.0077407751083374025, 0.007727334976196289, 0.00817949390411377, 0.008023174285888671, 0.008222053527832032, 0.008023493766784668, 0.008029894828796387, 0.008062213897705077, 0.008051013946533203, 0.007956614971160889, 0.007721254825592041, 0.00793933391571045, 0.007938694953918458, 0.007772934913635254, 0.007729575157165527, 0.007966214179992676, 0.007736616134643555, 0.007715815067291259, 0.008590052604675293, 0.008708452224731445, 0.008730212211608886, 0.00816173267364502, 0.008747331619262695, 0.008725091934204102, 0.008704451560974122, 0.008739972114562988, 0.008219014167785645, 0.0082990140914917, 0.00824557399749756, 0.008422853469848633, 0.008207972526550294, 0.013289237976074219, 0.008126693725585938, 0.008093414306640625 ] }, "throughput": { "unit": "tokens/s", "value": 239.54290795350948 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1203.556352, "max_global_vram": 68702.69952, "max_process_vram": 248533.868544, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 61, "total": 0.4893865957260131, "mean": 0.008022731077475627, "stdev": 0.0014471247906509572, "p50": 0.007768455028533935, "p90": 0.008472132682800292, "p95": 0.008583171844482422, "p99": 0.012960598564147935, "values": [ 0.009098851203918457, 0.0085657320022583, 0.008472132682800292, 0.008399494171142578, 0.00843949317932129, 0.008506373405456543, 0.008338852882385254, 0.008374853134155274, 0.008291172981262206, 0.00868973159790039, 0.008583171844482422, 0.008220293045043946, 0.0076138958930969235, 0.007435017108917237, 0.007488935947418213, 0.007476136207580566, 0.007412617206573486, 0.0076702160835266115, 0.007469255924224854, 0.007475175857543945, 0.007370057106018066, 0.00742301607131958, 0.007561575889587402, 0.007398215770721436, 0.007432616233825683, 0.007423175811767578, 0.007404616832733154, 0.007423495769500733, 0.00743869686126709, 0.007626376152038574, 0.018753219604492187, 0.007809414863586426, 0.007787815093994141, 0.007768455028533935, 0.007774055004119873, 0.008018375396728516, 0.007477896213531494, 0.007419336795806885, 0.007428135871887207, 0.007504936218261719, 0.007467175960540771, 0.00742669677734375, 0.007470376014709472, 0.007669575214385986, 0.007462535858154297, 0.008307172775268554, 0.00828749370574951, 0.007916295051574707, 0.00799741506576538, 0.00819245433807373, 0.008283493041992187, 0.008324773788452148, 0.007971014022827148, 0.007914854049682616, 0.007692295074462891, 0.007884134769439697, 0.007811174869537353, 0.007899494171142578, 0.007627335071563721, 0.007737895011901855, 0.007778056144714355 ] }, "throughput": { "unit": "tokens/s", "value": 124.64583323845532 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 61, "total": 0.45583742046356196, "mean": 0.007472744597763311, "stdev": 0.001455279920310665, "p50": 0.007212616920471191, "p90": 0.007920615196228028, "p95": 0.008002373695373535, "p99": 0.012368600654602036, "values": [ 0.008422053337097168, 0.00798893404006958, 0.007923335075378417, 0.007854855060577393, 0.007840614795684814, 0.007920615196228028, 0.007829094886779785, 0.007807175159454346, 0.007758534908294677, 0.00811725425720215, 0.008002373695373535, 0.007667174816131592, 0.007060297012329101, 0.006888937950134277, 0.006885578155517578, 0.0068972578048706054, 0.006879017829895019, 0.007141897201538086, 0.006916937828063965, 0.006887817859649658, 0.006828938961029053, 0.006891337871551514, 0.007017096996307373, 0.006877577781677246, 0.0068943781852722165, 0.00689373779296875, 0.006885578155517578, 0.006888457775115967, 0.006885898113250732, 0.007050057888031006, 0.018288421630859374, 0.007239336967468262, 0.007236617088317871, 0.00722381591796875, 0.007230697154998779, 0.007512616157531738, 0.006880777835845947, 0.006882537841796875, 0.006905258178710938, 0.006969738006591797, 0.006916937828063965, 0.006892938137054444, 0.006916138172149658, 0.00712205696105957, 0.006918377876281738, 0.007780455112457276, 0.007738855838775635, 0.00740669584274292, 0.007480136871337891, 0.00769181489944458, 0.0077524552345275876, 0.007792934894561767, 0.007387815952301025, 0.007354055881500244, 0.007125417232513428, 0.007298216819763183, 0.007241735935211182, 0.007321416854858398, 0.007116137027740478, 0.007197576999664307, 0.007212616920471191 ] }, "throughput": { "unit": "tokens/s", "value": 133.81964108599576 }, "energy": null, "efficiency": null } } }