{ "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": "openai-community/gpt2", "processor": "openai-community/gpt2", "device": "cuda", "device_ids": "0", "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "model_kwargs": {}, "processor_kwargs": {}, "hub_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, "latency": true, "memory": 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.236096, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "Advanced Micro Devices, Inc. [AMD/ATI]" ], "gpu_count": 1, "gpu_vram_mb": 68702699520, "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "78f186000310f5748c0db3b53c71221ca44cb3f0", "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1189.453824, "max_global_vram": 1096.17152, "max_process_vram": 211640.492032, "max_reserved": 713.03168, "max_allocated": 500.44672 }, "latency": { "unit": "s", "count": 56, "total": 0.5206305580139161, "mean": 0.009296974250248502, "stdev": 0.00044796377429397654, "p50": 0.009188241004943847, "p90": 0.009564717292785645, "p95": 0.00985631513595581, "p99": 0.011244758796691895, "values": [ 0.00969063663482666, 0.009558637619018555, 0.011235902786254883, 0.011255582809448243, 0.009061521530151367, 0.009046961784362793, 0.009192400932312012, 0.008928402900695801, 0.009377360343933105, 0.009167281150817871, 0.009194960594177246, 0.009227280616760253, 0.009230480194091797, 0.009199761390686035, 0.00908968162536621, 0.00946807861328125, 0.009214159965515136, 0.00895896339416504, 0.0093691987991333, 0.009189520835876465, 0.009098641395568848, 0.009050322532653808, 0.009074321746826172, 0.009051281929016114, 0.009227601051330567, 0.009445358276367187, 0.009160401344299317, 0.009398638725280762, 0.009486798286437989, 0.009057682037353515, 0.00883064365386963, 0.008996883392333984, 0.00913352108001709, 0.009016082763671876, 0.008995122909545898, 0.008924404144287109, 0.009293359756469726, 0.009192561149597168, 0.009541518211364746, 0.009400559425354003, 0.009020401954650878, 0.009135440826416015, 0.009010003089904786, 0.00927816104888916, 0.00966839599609375, 0.009090001106262208, 0.009186961174011231, 0.00918104076385498, 0.009153202056884765, 0.009132560729980468, 0.009108721733093262, 0.009207119941711426, 0.009570796966552735, 0.010353350639343261, 0.009505518913269043, 0.008996402740478516 ] }, "throughput": { "unit": "tokens/s", "value": 215.12375383276353 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1189.453824, "max_global_vram": 1096.163328, "max_process_vram": 204936.945664, "max_reserved": 713.03168, "max_allocated": 500.670464 }, "latency": { "unit": "s", "count": 56, "total": 0.4915727357864378, "mean": 0.008778084567614964, "stdev": 0.0005809768750798576, "p50": 0.008740405082702636, "p90": 0.009418719291687012, "p95": 0.00993603491783142, "p99": 0.010647188663482667, "values": [ 0.010619109153747558, 0.008443286895751953, 0.01068150806427002, 0.00869880485534668, 0.009321359634399414, 0.010407270431518555, 0.00871608543395996, 0.00817432975769043, 0.008913043022155762, 0.008981842994689942, 0.008786484718322754, 0.008498967170715332, 0.008736084938049317, 0.00880488395690918, 0.00823832893371582, 0.008632246017456055, 0.00814521026611328, 0.00880760383605957, 0.008939123153686524, 0.008606645584106445, 0.008114650726318359, 0.008563925743103027, 0.008411446571350097, 0.008323928833007813, 0.008259128570556641, 0.008832564353942871, 0.008804405212402344, 0.008304888725280762, 0.008688884735107422, 0.008087130546569824, 0.00814760971069336, 0.00914984130859375, 0.008407608032226562, 0.00808409023284912, 0.008143770217895507, 0.00821928882598877, 0.009778956413269042, 0.009181361198425293, 0.008524247169494629, 0.008839923858642578, 0.008526487350463867, 0.008198650360107421, 0.008763765335083008, 0.008223769187927246, 0.00830984878540039, 0.009384079933166504, 0.008832083702087403, 0.008905524253845215, 0.008881362915039062, 0.008816405296325684, 0.00883432388305664, 0.00945335865020752, 0.009320240020751953, 0.009520398139953614, 0.00883784294128418, 0.008744725227355957 ] }, "throughput": { "unit": "tokens/s", "value": 113.92006904208984 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 56, "total": 0.45889861536026, "mean": 0.008194618131433214, "stdev": 0.00046981841799293437, "p50": 0.008116570472717285, "p90": 0.008620965957641603, "p95": 0.008890642881393433, "p99": 0.010013033866882326, "values": [ 0.009893514633178712, 0.007956730842590331, 0.010159112930297852, 0.008277528762817383, 0.008059130668640137, 0.007711294174194336, 0.008062650680541992, 0.0077892131805419925, 0.00844184684753418, 0.008377047538757324, 0.0081845703125, 0.007928731918334962, 0.00829512882232666, 0.008164569854736329, 0.007825531959533692, 0.00821432876586914, 0.007751453876495362, 0.008387767791748046, 0.008284568786621094, 0.007993051052093506, 0.007718334197998047, 0.008002970695495605, 0.00798585081100464, 0.00787193202972412, 0.00782537317276001, 0.008404248237609864, 0.00836680793762207, 0.00788985300064087, 0.008261849403381347, 0.007686654090881348, 0.007744574069976807, 0.008686325073242188, 0.007975131034851075, 0.007683934211730957, 0.0077418532371521, 0.007830172061920167, 0.009135920524597168, 0.008498167037963867, 0.008117050170898437, 0.00815896987915039, 0.008077370643615722, 0.007801853179931641, 0.008336567878723144, 0.007814971923828126, 0.007892733097076415, 0.008547286987304687, 0.008116090774536133, 0.008197850227355957, 0.008147769927978516, 0.008133689880371093, 0.008115610122680665, 0.008805685043334961, 0.008555606842041015, 0.008808883666992187, 0.008152250289916993, 0.008050650596618652 ] }, "throughput": { "unit": "tokens/s", "value": 122.03131176597036 }, "energy": null, "efficiency": null } } }