{ "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.2.1", "optimum_benchmark_commit": "cc9b50765eac8085269af1a207e20c6a9b260b67", "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.0", "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": 1050.54208, "max_global_vram": 1107.525632, "max_process_vram": 281077.4528, "max_reserved": 725.614592, "max_allocated": 513.035776 }, "latency": { "unit": "s", "count": 53, "total": 0.5050027465820313, "mean": 0.009528353709094932, "stdev": 0.0009977336902142694, "p50": 0.009184130668640137, "p90": 0.01090806179046631, "p95": 0.011543451690673829, "p99": 0.012622066802978513, "values": [ 0.011665563583374023, 0.010759966850280762, 0.010163488388061524, 0.009361411094665527, 0.008935491561889648, 0.008962052345275879, 0.009323810577392578, 0.008951011657714844, 0.00898221206665039, 0.009205571174621582, 0.008977091789245606, 0.010793246269226075, 0.009117251396179199, 0.008691332817077636, 0.008543973922729492, 0.008668932914733887, 0.008545093536376953, 0.00885437297821045, 0.008658852577209473, 0.008991011619567871, 0.008908452987670899, 0.009184130668640137, 0.008946051597595215, 0.008776132583618163, 0.00854349422454834, 0.009663490295410157, 0.009527971267700195, 0.008773893356323241, 0.008534374237060547, 0.009672928810119628, 0.009573410034179688, 0.008561734199523927, 0.008933571815490723, 0.008510534286499023, 0.009283970832824708, 0.009145570755004882, 0.00967372989654541, 0.009646050453186035, 0.009239010810852051, 0.009005091667175292, 0.009158531188964843, 0.009431330680847168, 0.009553730010986328, 0.009181410789489745, 0.009586529731750488, 0.013058199882507324, 0.012219482421875, 0.011438364982604981, 0.011462043762207032, 0.010936765670776368, 0.01044396686553955, 0.01024396800994873, 0.010033088684082031 ] }, "throughput": { "unit": "tokens/s", "value": 209.89984850068853 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1050.54208, "max_global_vram": 1107.529728, "max_process_vram": 261692.8256, "max_reserved": 725.614592, "max_allocated": 513.25952 }, "latency": { "unit": "s", "count": 53, "total": 0.49823908424377444, "mean": 0.009400737438561782, "stdev": 0.0006794184212838718, "p50": 0.00914333152770996, "p90": 0.010270432090759278, "p95": 0.010857918357849121, "p99": 0.011504481697082519, "values": [ 0.010112447738647461, 0.010128607749938965, 0.009567649841308593, 0.009281411170959472, 0.00896653175354004, 0.009243011474609375, 0.009081892013549805, 0.009058691024780274, 0.00916461181640625, 0.009033251762390136, 0.009101572036743165, 0.009768770217895508, 0.008962371826171874, 0.008798052787780761, 0.008739012718200684, 0.008609574317932129, 0.008802851676940919, 0.008810372352600097, 0.008737253189086915, 0.00900029182434082, 0.009132451057434082, 0.008956452369689942, 0.009013092041015625, 0.008670693397521972, 0.009279650688171387, 0.009694209098815918, 0.008960771560668945, 0.00881837272644043, 0.008980932235717774, 0.009602689743041992, 0.008962532043457032, 0.009126690864562989, 0.008913731575012207, 0.008926371574401855, 0.009230690956115723, 0.009630849838256836, 0.009376131057739257, 0.009709568977355957, 0.008915813446044921, 0.00914333152770996, 0.009008292198181153, 0.00938284969329834, 0.00931533145904541, 0.009177732467651366, 0.010071968078613281, 0.011715642929077149, 0.011309563636779785, 0.01110108470916748, 0.010695807456970215, 0.010448927879333497, 0.010305888175964355, 0.009682530403137208, 0.010010209083557129 ] }, "throughput": { "unit": "tokens/s", "value": 106.37463353651434 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 52, "total": 0.9840446052551268, "mean": 0.01892393471644475, "stdev": 0.001627551016791025, "p50": 0.018342262268066407, "p90": 0.02088936061859131, "p95": 0.02248312978744507, "p99": 0.024181423072814946, "values": [ 0.02089289665222168, 0.01986665725708008, 0.01864986228942871, 0.01789482307434082, 0.018178823471069337, 0.01844122314453125, 0.018105703353881834, 0.01819434356689453, 0.01833466148376465, 0.018064424514770507, 0.020663135528564452, 0.0181149845123291, 0.01752154541015625, 0.017409063339233397, 0.01740202522277832, 0.017325225830078124, 0.01766330337524414, 0.017518024444580078, 0.01801754379272461, 0.018028743743896486, 0.018267463684082032, 0.01797594451904297, 0.01750154495239258, 0.017769704818725585, 0.019494659423828126, 0.01850762176513672, 0.017547306060791017, 0.017770984649658202, 0.019210660934448242, 0.01858890151977539, 0.01764650344848633, 0.017898344039916993, 0.017546825408935547, 0.018461381912231446, 0.018906820297241212, 0.019352899551391602, 0.019208099365234373, 0.018349863052368163, 0.018017223358154297, 0.018315301895141602, 0.01887978172302246, 0.01879081916809082, 0.018507781982421874, 0.019437860488891602, 0.02494552230834961, 0.023447288513183593, 0.02264680862426758, 0.022349210739135743, 0.02149913215637207, 0.02085753631591797, 0.020046817779541017, 0.020010976791381835 ] }, "throughput": { "unit": "tokens/s", "value": 52.84313304732593 }, "energy": null, "efficiency": null } } }