{ "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": "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.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": 907.767808, "max_global_vram": 1011.822592, "max_process_vram": 40246.92736, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.20324072265625, "mean": 7.20324072265625, "stdev": 0.0, "p50": 7.20324072265625, "p90": 7.20324072265625, "p95": 7.20324072265625, "p99": 7.20324072265625, "values": [ 7.20324072265625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1063.19872, "max_global_vram": 1106.20672, "max_process_vram": 276510.711808, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 63, "total": 0.5231143445968628, "mean": 0.008303402295188299, "stdev": 0.001663785457707611, "p50": 0.007885749816894532, "p90": 0.00879720458984375, "p95": 0.00899293212890625, "p99": 0.015125906276702903, "values": [ 0.00872734832763672, 0.00909518814086914, 0.00901230812072754, 0.00823694896697998, 0.008165908813476562, 0.007925590038299561, 0.00788158893585205, 0.007862549781799316, 0.00791774892807007, 0.007856308937072754, 0.00788158893585205, 0.007885749816894532, 0.00828926944732666, 0.008458389282226562, 0.008014869689941407, 0.00795839023590088, 0.008119989395141601, 0.011817904472351074, 0.007719669818878174, 0.007684628963470459, 0.0077059102058410645, 0.00767294979095459, 0.0076948699951171875, 0.007747509956359863, 0.007733590126037597, 0.007803668975830078, 0.007745910167694092, 0.00878030776977539, 0.02052317237854004, 0.008239989280700683, 0.008023829460144042, 0.007737430095672607, 0.007956789016723633, 0.007767189979553222, 0.007740629196166992, 0.007744629859924316, 0.007777750015258789, 0.0077580690383911135, 0.00880142879486084, 0.00813374900817871, 0.008119189262390136, 0.008213109016418457, 0.008253429412841797, 0.007771190166473389, 0.007778549194335937, 0.007951029777526855, 0.007772308826446533, 0.00777662992477417, 0.008818548202514648, 0.008579029083251952, 0.008803828239440918, 0.008769107818603515, 0.008271348953247071, 0.008355829238891601, 0.008017748832702636, 0.007793429851531982, 0.0077983889579772946, 0.0077750301361083985, 0.007812629222869873, 0.007798389911651611, 0.007751189231872559, 0.007767990112304688, 0.007765109062194824 ] }, "throughput": { "unit": "tokens/s", "value": 240.86512117556572 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1063.358464, "max_global_vram": 1107.59936, "max_process_vram": 273320.169472, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 63, "total": 0.4789291067123413, "mean": 0.007602049312894306, "stdev": 0.0002958732344405676, "p50": 0.007460790157318115, "p90": 0.008020020771026612, "p95": 0.008193268775939943, "p99": 0.008403851127624512, "values": [ 0.008142868995666503, 0.008341909408569336, 0.00792526912689209, 0.007629429817199707, 0.007545749187469483, 0.007351190090179443, 0.007409749984741211, 0.007425909996032715, 0.007423190116882325, 0.007623509883880615, 0.007391670227050781, 0.0074745497703552245, 0.0077763090133667, 0.007632789134979248, 0.0075323090553283695, 0.007780468940734863, 0.007447030067443848, 0.007510709762573242, 0.007272309780120849, 0.007470230102539063, 0.007277750015258789, 0.0072513499259948735, 0.00772270917892456, 0.00731102991104126, 0.007384950160980224, 0.00732958984375, 0.00799358892440796, 0.00819886875152588, 0.007861268997192384, 0.007460790157318115, 0.007340310096740722, 0.007343989849090576, 0.00734207010269165, 0.007343989849090576, 0.007312469959259034, 0.007427670001983642, 0.007312150001525879, 0.008026068687438964, 0.007736948966979981, 0.007680950164794922, 0.007727189064025879, 0.007797589778900146, 0.0078007888793945315, 0.007383830070495605, 0.007414549827575684, 0.007425270080566406, 0.007435830116271973, 0.008072789192199708, 0.008483508110046386, 0.007939029216766357, 0.008355029106140137, 0.0076972699165344235, 0.007995829105377198, 0.007784149169921875, 0.007433909893035889, 0.007434390068054199, 0.007420470237731933, 0.007392469882965088, 0.007431028842926025, 0.007425909996032715, 0.007374070167541504, 0.00752830982208252, 0.007410230159759522 ] }, "throughput": { "unit": "tokens/s", "value": 131.54347713896541 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 63, "total": 0.44763602924346924, "mean": 0.007105333797515385, "stdev": 0.00027432951285034685, "p50": 0.006964150905609131, "p90": 0.0075133658409118655, "p95": 0.007652981805801391, "p99": 0.00786535933494568, "values": [ 0.00754079008102417, 0.007726709842681884, 0.0073724699020385745, 0.007112949848175049, 0.007044149875640869, 0.006872469902038574, 0.006927990913391113, 0.006940310001373291, 0.006944631099700928, 0.007163671016693116, 0.006923830986022949, 0.0069406299591064455, 0.007247509956359863, 0.0071278300285339356, 0.007001269817352295, 0.007307829856872558, 0.006964150905609131, 0.006987990856170655, 0.006796151161193848, 0.007007990837097168, 0.006807190895080566, 0.006772470951080322, 0.007259510040283203, 0.006846711158752441, 0.006873270034790039, 0.006859830856323242, 0.007483029842376709, 0.007664949893951416, 0.007306869983673096, 0.0069787101745605465, 0.006875350952148438, 0.006868470191955567, 0.006877271175384522, 0.006875030040740967, 0.0068463912010192874, 0.0069556708335876466, 0.006848149776458741, 0.007520949840545655, 0.007270549774169922, 0.0072207899093627926, 0.007257750034332275, 0.007291191101074219, 0.007326869964599609, 0.006899670124053955, 0.006930710792541504, 0.006932789802551269, 0.006932791233062744, 0.0075452690124511715, 0.007950869083404541, 0.007415989875793457, 0.007812950134277344, 0.007217909812927246, 0.007465109825134277, 0.007260469913482666, 0.006952150821685791, 0.006936309814453125, 0.006937750816345215, 0.006906549930572509, 0.0069465508460998535, 0.006927350044250488, 0.006903030872344971, 0.00702111005783081, 0.006902390956878662 ] }, "throughput": { "unit": "tokens/s", "value": 140.73934152814653 }, "energy": null, "efficiency": null } } }