{ "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": "0", "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 7643 48-Core Processor", "cpu_count": 96, "cpu_ram_mb": 1082028.982272, "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": "16c37a2d0a7e1a726b6a2a50e2fbcf32df3b575c", "transformers_version": "4.43.3", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 901.85728, "max_global_vram": 1011.740672, "max_process_vram": 42578.57536, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 6.68798876953125, "mean": 6.68798876953125, "stdev": 0.0, "p50": 6.68798876953125, "p90": 6.68798876953125, "p95": 6.68798876953125, "p99": 6.68798876953125, "values": [ 6.68798876953125 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1056.292864, "max_global_vram": 1104.44544, "max_process_vram": 270161.047552, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 62, "total": 0.5232740859985353, "mean": 0.0084399046128796, "stdev": 0.0015434430859228396, "p50": 0.008092820167541504, "p90": 0.008618757247924805, "p95": 0.00878666214942932, "p99": 0.01475184559822083, "values": [ 0.008586741447448731, 0.008658901214599609, 0.008788822174072265, 0.00874562168121338, 0.008543540954589843, 0.008266100883483887, 0.008617461204528809, 0.008463220596313476, 0.008410740852355957, 0.008594422340393067, 0.008618901252746582, 0.01068594741821289, 0.011651867866516114, 0.008296819686889648, 0.008080340385437012, 0.008079218864440917, 0.008115538597106934, 0.008129940032958985, 0.008119219779968262, 0.008102580070495606, 0.008108180046081543, 0.019600528717041016, 0.008272500038146972, 0.00811106014251709, 0.008074419975280762, 0.007824018955230713, 0.007923699855804444, 0.00779681921005249, 0.0077952189445495606, 0.007818260192871095, 0.007785139083862305, 0.008283860206604004, 0.008071059226989747, 0.008053779602050781, 0.008107060432434083, 0.008114419937133788, 0.008091219902038574, 0.008094420433044433, 0.008096980094909669, 0.008105299949645995, 0.008078900337219239, 0.008097938537597656, 0.008075220108032227, 0.008094420433044433, 0.008086580276489258, 0.008193619728088379, 0.008073619842529297, 0.008046258926391601, 0.00807666015625, 0.008039380073547363, 0.008078740119934083, 0.008051219940185548, 0.008061458587646484, 0.00807170009613037, 0.008084179878234864, 0.008045619964599609, 0.00808113956451416, 0.008084499359130859, 0.00802609920501709, 0.00804833984375, 0.008027219772338867, 0.008067378997802735 ] }, "throughput": { "unit": "tokens/s", "value": 236.9695028244665 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1056.305152, "max_global_vram": 1107.513344, "max_process_vram": 271381.676032, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 62, "total": 0.4780781321525572, "mean": 0.007710937615363828, "stdev": 0.00022987974711706553, "p50": 0.007665218591690063, "p90": 0.008011411094665527, "p95": 0.008129940366744996, "p99": 0.008381089162826538, "values": [ 0.007939858913421631, 0.008254739761352539, 0.008268019676208497, 0.00813234043121338, 0.007953619003295899, 0.007819539070129394, 0.008034420013427735, 0.007923378944396972, 0.007950579166412354, 0.008084339141845703, 0.008000179290771485, 0.008557941436767578, 0.007739219188690185, 0.007665459156036377, 0.007672018051147461, 0.007773458957672119, 0.007624818801879883, 0.007642098903656006, 0.007722898960113526, 0.007628499031066894, 0.007695858955383301, 0.008012659072875976, 0.007738739013671875, 0.007619059085845948, 0.007395058155059814, 0.007398258209228516, 0.007366258144378662, 0.00737841796875, 0.0073208179473876955, 0.007399857997894287, 0.007403697967529297, 0.007763060092926025, 0.007491858959197998, 0.007747378826141358, 0.007674899101257324, 0.00774609899520874, 0.007675858020782471, 0.007685298919677734, 0.007635219097137451, 0.007654259204864502, 0.00766497802734375, 0.007672019004821777, 0.007736659049987793, 0.007646899223327636, 0.007625139236450195, 0.00782145881652832, 0.007603378772735596, 0.007572819232940673, 0.007637779235839844, 0.007574418067932129, 0.007597458839416504, 0.007717138767242432, 0.00762385892868042, 0.007591858863830566, 0.007568337917327881, 0.0076099390983581545, 0.007630258083343506, 0.007749619007110596, 0.0075243391990661625, 0.007493457794189453, 0.00763873815536499, 0.007587539196014404 ] }, "throughput": { "unit": "tokens/s", "value": 129.68591497972022 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 62, "total": 0.4459457292556764, "mean": 0.007192673052510908, "stdev": 0.0002190623473198058, "p50": 0.007144257545471192, "p90": 0.007470689916610717, "p95": 0.007579242014884948, "p99": 0.00785149748325348, "values": [ 0.007345458030700683, 0.007653938770294189, 0.007644979000091553, 0.007582098007202148, 0.007397617816925049, 0.007296338081359864, 0.007474577903747558, 0.007381777763366699, 0.00739041805267334, 0.007524978160858154, 0.007435698032379151, 0.008160499572753907, 0.007189938068389893, 0.007182097911834716, 0.007137136936187744, 0.007252657890319824, 0.007124817848205566, 0.007128498077392578, 0.007170258045196533, 0.007120176792144776, 0.007139377117156983, 0.0074772977828979495, 0.007206098079681396, 0.007115537166595459, 0.006900815963745117, 0.006876657009124756, 0.0068435359001159666, 0.006911056995391846, 0.006821136951446533, 0.006890416145324707, 0.006892016887664795, 0.0071574578285217285, 0.006992018222808838, 0.007215696811676026, 0.0071424169540405275, 0.007199857234954834, 0.007152176856994629, 0.0071500978469848635, 0.00713441801071167, 0.00712209701538086, 0.007138896942138672, 0.007159058094024658, 0.007215218067169189, 0.007146098136901855, 0.00711057710647583, 0.007372657775878907, 0.007146577835083007, 0.007092658042907715, 0.007100656986236572, 0.007064496994018555, 0.007090736865997314, 0.007191697120666504, 0.00712673807144165, 0.007100977897644043, 0.007098416805267334, 0.007108657836914062, 0.0071070570945739745, 0.0072995381355285644, 0.007068017959594727, 0.007041616916656494, 0.007165616989135743, 0.00706561803817749 ] }, "throughput": { "unit": "tokens/s", "value": 139.03037058676085 }, "energy": null, "efficiency": null } } }