{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.2.2+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": "6", "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.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "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": 908.603392, "max_global_vram": 1011.761152, "max_process_vram": 42800.758784, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.3670400390625, "mean": 7.3670400390625, "stdev": 0.0, "p50": 7.3670400390625, "p90": 7.3670400390625, "p95": 7.3670400390625, "p99": 7.3670400390625, "values": [ 7.3670400390625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1064.005632, "max_global_vram": 1106.214912, "max_process_vram": 272984.379392, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 63, "total": 0.5207519440650938, "mean": 0.00826590387404911, "stdev": 0.0009149554515550149, "p50": 0.008012022018432617, "p90": 0.008844375610351562, "p95": 0.00887309560775757, "p99": 0.012407015056610113, "values": [ 0.008705943107604981, 0.008753623008728027, 0.008628982543945313, 0.008338421821594237, 0.008277782440185547, 0.008134100914001465, 0.008047861099243164, 0.008104021072387696, 0.00809538173675537, 0.008054741859436035, 0.008152021408081054, 0.008198262214660645, 0.01140818977355957, 0.014036677360534667, 0.007967861175537109, 0.00775954008102417, 0.008004501342773437, 0.007792500972747802, 0.007755220890045166, 0.008028981208801269, 0.008654743194580079, 0.008806102752685547, 0.008858902931213379, 0.008912983894348145, 0.008874103546142579, 0.008853943824768066, 0.007893461227416992, 0.00824546241760254, 0.008012022018432617, 0.007858581066131591, 0.007878100872039795, 0.007864820957183837, 0.00789362096786499, 0.007846420764923095, 0.007764980792999267, 0.007814260959625244, 0.007804821014404297, 0.007830739974975586, 0.007818901062011718, 0.007800500869750976, 0.007801300048828125, 0.007761620998382569, 0.007805621147155762, 0.0077961812019348145, 0.007806900978088379, 0.00791762113571167, 0.007779701232910156, 0.008351861953735351, 0.008755863189697266, 0.008221462249755859, 0.008234102249145508, 0.008186421394348144, 0.007871220111846924, 0.00886402416229248, 0.008684502601623536, 0.0083065824508667, 0.008166261672973633, 0.00797474193572998, 0.007783699989318848, 0.00779810094833374, 0.007787381172180176, 0.007784339904785156, 0.007780340194702149 ] }, "throughput": { "unit": "tokens/s", "value": 241.95781011669158 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1064.185856, "max_global_vram": 1107.603456, "max_process_vram": 273324.797952, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 63, "total": 0.4883092966079713, "mean": 0.007750941215999544, "stdev": 0.0003061071743372567, "p50": 0.007719060897827148, "p90": 0.008264597511291504, "p95": 0.00842872667312622, "p99": 0.008506073379516602, "values": [ 0.008434582710266113, 0.008376022338867188, 0.008002581596374512, 0.00790562105178833, 0.007755540847778321, 0.0077299408912658695, 0.007719060897827148, 0.007728981018066406, 0.007722099781036377, 0.007924981117248535, 0.0077251410484313965, 0.007788021087646485, 0.00806450080871582, 0.00786418104171753, 0.007733621120452881, 0.007461939811706543, 0.007524340152740478, 0.00748386001586914, 0.007509300231933594, 0.00798642110824585, 0.008086261749267578, 0.00836482334136963, 0.008559542655944824, 0.008473301887512207, 0.008435542106628419, 0.007786581039428711, 0.007824981212615966, 0.007846099853515625, 0.0075712199211120604, 0.007517139911651611, 0.007585460186004638, 0.007620820045471191, 0.007499380111694336, 0.007486259937286377, 0.0075233798027038576, 0.007554419994354248, 0.007524340152740478, 0.007500979900360107, 0.0074686598777771, 0.007421299934387207, 0.0075035400390625, 0.007457940101623535, 0.007526579856872558, 0.007468978881835938, 0.007501460075378418, 0.007475059986114502, 0.007453139781951904, 0.008237462043762207, 0.008064661979675293, 0.007677939891815186, 0.007741139888763428, 0.007563220024108887, 0.008065141677856446, 0.008271381378173829, 0.007779059886932373, 0.007759700775146485, 0.007724979877471924, 0.007524660110473633, 0.0074622597694396975, 0.0074752202033996585, 0.007428819179534912, 0.007627699851989746, 0.007428019046783447 ] }, "throughput": { "unit": "tokens/s", "value": 129.01658935766324 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 63, "total": 0.45276856327056897, "mean": 0.007186802591596332, "stdev": 0.0003046852690450138, "p50": 0.007135539054870605, "p90": 0.007728916835784912, "p95": 0.007838613080978394, "p99": 0.007918475456237794, "values": [ 0.007775540828704834, 0.0077392210960388185, 0.007407539844512939, 0.0073164992332458495, 0.00721553897857666, 0.007191059112548828, 0.007157138824462891, 0.007169300079345703, 0.007135539054870605, 0.007360339164733887, 0.007157618999481201, 0.007223858833312989, 0.007486100196838379, 0.007281619071960449, 0.007165139198303223, 0.006908498764038086, 0.006931539058685303, 0.006909779071807861, 0.006967698097229004, 0.0074470601081848145, 0.007565139770507812, 0.007845621109008789, 0.007977301120758057, 0.007882421016693114, 0.007880821228027343, 0.007231059074401855, 0.0072600188255310056, 0.0072929787635803225, 0.007006577968597412, 0.0069825778007507324, 0.007008657932281494, 0.006997619152069092, 0.006975539207458496, 0.00691697883605957, 0.006932338237762451, 0.007021297931671142, 0.006954577922821045, 0.006941938877105713, 0.006910579204559326, 0.006884017944335938, 0.006952818870544434, 0.0069251379966735836, 0.006965137958526611, 0.0069299378395080566, 0.006925939083099365, 0.0068998589515686035, 0.006885777950286865, 0.007687699794769287, 0.0075253000259399416, 0.007132819175720215, 0.007185618877410888, 0.006961779117584228, 0.007526740074157715, 0.007748179912567139, 0.007244658946990967, 0.007234580039978027, 0.0072075390815734865, 0.006880177974700928, 0.006885299205780029, 0.0068750581741333005, 0.006856177806854248, 0.0070300989151000975, 0.006887537956237793 ] }, "throughput": { "unit": "tokens/s", "value": 139.14393602091135 }, "energy": null, "efficiency": null } } }