{ "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": "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": "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": "0.12.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1042.108416, "max_global_vram": 68702.69952, "max_process_vram": 45278.18752, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.08236865234375, "mean": 8.08236865234375, "stdev": 0.0, "p50": 8.08236865234375, "p90": 8.08236865234375, "p95": 8.08236865234375, "p99": 8.08236865234375, "values": [ 8.08236865234375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1211.482112, "max_global_vram": 68702.69952, "max_process_vram": 294808.997888, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 63, "total": 0.5018019409179687, "mean": 0.00796511017330109, "stdev": 0.0001889863839674532, "p50": 0.007902092933654785, "p90": 0.008157101631164551, "p95": 0.008289533805847168, "p99": 0.00860043004989624, "values": [ 0.00796129322052002, 0.008073293685913085, 0.008249933242797852, 0.008086572647094727, 0.00835297393798828, 0.008329454421997071, 0.007987052917480468, 0.007880813121795654, 0.007902092933654785, 0.00788657283782959, 0.00790129280090332, 0.0078489727973938, 0.007912333011627198, 0.008068173408508302, 0.007872172832489014, 0.007883533000946045, 0.00793457317352295, 0.0078936128616333, 0.007903052806854247, 0.007907692909240722, 0.008045932769775391, 0.008161773681640625, 0.007861773014068603, 0.00783633279800415, 0.007845293045043946, 0.007832013130187988, 0.007861292839050293, 0.00812833309173584, 0.008293933868408203, 0.007972012996673584, 0.008005932807922363, 0.007947372913360595, 0.007916172981262208, 0.007968012809753417, 0.008009774208068848, 0.008071852684020995, 0.008138413429260255, 0.008015533447265626, 0.007960012912750244, 0.00900417423248291, 0.00792641305923462, 0.007884492874145508, 0.007864013195037841, 0.007848173141479493, 0.007859373092651367, 0.007971852779388429, 0.008117773056030274, 0.007786413192749023, 0.007783852100372315, 0.007813932895660401, 0.007843213081359863, 0.00788945198059082, 0.008181292533874512, 0.007862092971801758, 0.007812491893768311, 0.00782545280456543, 0.007825613021850586, 0.00782705307006836, 0.007827372074127197, 0.007837613105773926, 0.00784833288192749, 0.007797772884368896, 0.00785649299621582 ] }, "throughput": { "unit": "tokens/s", "value": 251.09508299131443 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1211.482112, "max_global_vram": 68702.69952, "max_process_vram": 261355.02848, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 63, "total": 0.4991356954574584, "mean": 0.007922788816785056, "stdev": 0.0015590660820285157, "p50": 0.007565132141113281, "p90": 0.00795166187286377, "p95": 0.008465213489532471, "p99": 0.016145366668701176, "values": [ 0.007707211971282959, 0.00801809310913086, 0.00786577320098877, 0.007890732765197753, 0.00790609312057495, 0.007638251781463623, 0.007535212993621826, 0.007525452136993408, 0.007512012004852295, 0.0077091331481933595, 0.0075715317726135255, 0.007513453006744384, 0.007548652172088623, 0.007570413112640381, 0.007561771869659424, 0.0075680122375488285, 0.007556172847747802, 0.007565132141113281, 0.007557773113250733, 0.01537922477722168, 0.007521771907806397, 0.007628171920776367, 0.007627693176269532, 0.007514091968536377, 0.0075312118530273435, 0.007503851890563965, 0.007504013061523438, 0.00799793291091919, 0.007801291942596436, 0.008711533546447754, 0.00763105297088623, 0.007610412120819092, 0.007625772953033448, 0.00771809196472168, 0.007723532199859619, 0.007947052955627441, 0.007562091827392578, 0.0076185731887817385, 0.007596972942352295, 0.007670093059539795, 0.007499052047729492, 0.007438571929931641, 0.007536333084106445, 0.007471052169799805, 0.007506092071533203, 0.01739538764953613, 0.0074412918090820315, 0.007528491973876953, 0.008514893531799317, 0.0075092921257019045, 0.007473773002624512, 0.00795281410217285, 0.007544171810150146, 0.007511853218078613, 0.007551692962646485, 0.007523531913757324, 0.007528652191162109, 0.00758529281616211, 0.0075548930168151856, 0.007579852104187012, 0.007550732135772705, 0.007643853187561035, 0.007548810958862305 ] }, "throughput": { "unit": "tokens/s", "value": 126.21818189592794 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 63, "total": 0.464317883014679, "mean": 0.007370125127217127, "stdev": 0.0015680124739627982, "p50": 0.007025132179260254, "p90": 0.0073981569290161135, "p95": 0.00789780502319336, "p99": 0.015639881305694586, "values": [ 0.007218731880187988, 0.007484811782836914, 0.007373132228851318, 0.00740017318725586, 0.007390091896057129, 0.007127050876617432, 0.00702753210067749, 0.007024170875549317, 0.007025132179260254, 0.007212811946868896, 0.007052812099456787, 0.006996332168579101, 0.007010731220245361, 0.007026572227478028, 0.0070160112380981444, 0.007044171810150147, 0.007027212142944336, 0.007049931049346924, 0.007036652088165283, 0.014864983558654786, 0.006993452072143555, 0.007035851001739502, 0.007107212066650391, 0.006981131076812744, 0.007005451202392578, 0.006974411010742187, 0.00698065185546875, 0.007425292015075684, 0.007249452114105224, 0.008145133018493652, 0.007072172164916992, 0.0070324912071228025, 0.0070731320381164555, 0.007047370910644531, 0.00708289098739624, 0.007284972190856933, 0.007020330905914306, 0.0069862518310546875, 0.007008331775665283, 0.007081292152404785, 0.006959210872650146, 0.00691185188293457, 0.006968172073364258, 0.006916650772094727, 0.006940170764923096, 0.01690418815612793, 0.00694209098815918, 0.006898251056671143, 0.007943693161010743, 0.006945291042327881, 0.006964972019195556, 0.007367053031921387, 0.006951210975646972, 0.00693201208114624, 0.006973132133483887, 0.00696881103515625, 0.006951371192932129, 0.006971211910247803, 0.00696865177154541, 0.006994091033935547, 0.006918410778045655, 0.00706577205657959, 0.0069652900695800785 ] }, "throughput": { "unit": "tokens/s", "value": 135.68290669952142 }, "energy": null, "efficiency": null } } }