{ "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": 1082014.482432, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.15.0-122-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.5.0", "optimum_benchmark_commit": null, "transformers_version": "4.45.1", "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.13.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1107.2512, "max_global_vram": 68702.69952, "max_process_vram": 4883.955712, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "values": [ 0.0853048095703125 ], "count": 1, "total": 0.0853048095703125, "mean": 0.0853048095703125, "p50": 0.0853048095703125, "p90": 0.0853048095703125, "p95": 0.0853048095703125, "p99": 0.0853048095703125, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1273.724928, "max_global_vram": 68702.69952, "max_process_vram": 311658.459136, "max_reserved": 725.614592, "max_allocated": 513.235456 }, "latency": { "unit": "s", "values": [ 0.009402206420898437, 0.008847487449645997, 0.008888287544250488, 0.009102046966552734, 0.008873247146606445, 0.00887836742401123, 0.008885248184204102, 0.008851807594299316, 0.008858528137207031, 0.008844926834106445, 0.008878686904907226, 0.008859487533569336, 0.008917087554931641, 0.008407649040222167, 0.007803330898284912, 0.007800131797790527, 0.007830211162567139, 0.0078300518989563, 0.007822052001953125, 0.0077794909477233885, 0.007816610813140869, 0.00784813117980957, 0.007880610942840576, 0.008766048431396485, 0.008886366844177247, 0.008277729988098144, 0.008173569679260254, 0.008239009857177734, 0.008510848045349122, 0.00824845027923584, 0.008227490425109863, 0.008275009155273438, 0.007838370800018311, 0.007973091125488281, 0.00782285213470459, 0.007809891223907471, 0.007810212135314941, 0.007812130928039551, 0.007797091960906982, 0.007850531101226807, 0.007956291198730469, 0.007833092212677003, 0.007828131198883056, 0.00783341121673584, 0.008092290878295898, 0.008955806732177734, 0.008878046989440919, 0.008858367919921875, 0.008893886566162109, 0.008856287956237793, 0.008879648208618165, 0.008870528221130372, 0.00887900733947754, 0.008836128234863282, 0.008877567291259766, 0.008865886688232422, 0.008866847038269043, 0.008874366760253907, 0.008861407279968262, 0.008895487785339355, 0.008873087882995605, 0.008780447006225586, 0.00886796760559082 ], "count": 63, "total": 0.5324383707046508, "mean": 0.008451402709597633, "p50": 0.008780447006225586, "p90": 0.00888790340423584, "p95": 0.008914927577972413, "p99": 0.009216107559204103, "stdev": 0.0004899611100459281, "stdev_": 5.797393957922695 }, "throughput": { "unit": "tokens/s", "value": 236.64710684402107 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1273.724928, "max_global_vram": 68702.69952, "max_process_vram": 299824.652288, "max_reserved": 725.614592, "max_allocated": 513.257984 }, "latency": { "unit": "s", "values": [ 0.008203330039978028, 0.007908610820770264, 0.007963971138000488, 0.007974531173706055, 0.007971810817718505, 0.007943330764770508, 0.007947969913482665, 0.00800045108795166, 0.007956130981445313, 0.007973250865936279, 0.008002850532531738, 0.007962049961090088, 0.007625251770019531, 0.007065254211425781, 0.007029253959655762, 0.007048453807830811, 0.00732269287109375, 0.007073093891143798, 0.00702989387512207, 0.007021255016326904, 0.007047813892364502, 0.007087813854217529, 0.007039655208587647, 0.007988611221313476, 0.007609093189239502, 0.007320133209228516, 0.007398852825164795, 0.007648451805114746, 0.007441412925720215, 0.00759581184387207, 0.007411333084106445, 0.0074482932090759275, 0.007040614128112793, 0.007265732765197754, 0.0070302138328552245, 0.007042213916778565, 0.007034694194793701, 0.00701949405670166, 0.007011494159698486, 0.007296133041381836, 0.007029734134674072, 0.0070198140144348145, 0.00717341423034668, 0.00704301404953003, 0.007764451026916504, 0.007969730854034424, 0.007970050811767578, 0.008006369590759278, 0.00802445125579834, 0.007965889930725098, 0.007966210842132568, 0.007981250762939453, 0.00802989101409912, 0.008034371376037597, 0.007941091060638427, 0.008097890853881837, 0.007967650890350342, 0.007979331016540527, 0.008205410003662109, 0.00798156976699829, 0.007645252227783203, 0.007468292236328125, 0.007995009899139404 ], "count": 63, "total": 0.47806144571304315, "mean": 0.007588276916080051, "p50": 0.007645252227783203, "p90": 0.00800566577911377, "p95": 0.008033923339843749, "p99": 0.008204120426177979, "stdev": 0.0004190319586873297, "stdev_": 5.522096298296308 }, "throughput": { "unit": "tokens/s", "value": 131.7822229024003 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.00779469108581543, 0.007502852916717529, 0.007556612014770508, 0.007560612201690674, 0.007547332763671875, 0.00753229284286499, 0.007523171901702881, 0.007588932037353516, 0.007546212196350098, 0.007557093143463135, 0.007577252864837646, 0.0075572519302368165, 0.007193733215332032, 0.006704615116119385, 0.006660136222839355, 0.006687015056610107, 0.0068972549438476565, 0.006672134876251221, 0.006635655879974365, 0.006654376029968261, 0.006685256004333496, 0.006699975967407227, 0.006670055866241455, 0.00755629301071167, 0.007196134090423584, 0.006940935134887695, 0.007028614044189453, 0.007264933109283447, 0.007069254875183105, 0.007218692779541016, 0.007038534164428711, 0.00706589412689209, 0.006672296047210693, 0.0068937349319458, 0.006648614883422852, 0.006671336174011231, 0.0066642951965332035, 0.006650055885314941, 0.0066398148536682125, 0.0069303750991821286, 0.006655176162719726, 0.006656294822692871, 0.006790054798126221, 0.006671495914459228, 0.007339653015136719, 0.007539813041687012, 0.0075479731559753415, 0.0075945320129394535, 0.007599812984466553, 0.007547811985015869, 0.007562692165374756, 0.007554691791534424, 0.007603332042694092, 0.007610052108764648, 0.007533092021942139, 0.007670052051544189, 0.007560132026672363, 0.00756061315536499, 0.007784451961517334, 0.0075455718040466305, 0.007237412929534912, 0.006961734771728516, 0.007551971912384033 ], "count": 63, "total": 0.4528327441215515, "mean": 0.0071878213352627235, "p50": 0.007237412929534912, "p90": 0.007593412017822266, "p95": 0.007609380102157593, "p99": 0.00778834282875061, "stdev": 0.00039951950000082973, "stdev_": 5.558283676874765 }, "throughput": { "unit": "tokens/s", "value": 139.1242148847108 }, "energy": null, "efficiency": null } } }