{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cu121", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "model": "openai-community/gpt2", "library": "transformers", "device": "cuda", "device_ids": "0", "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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": true, "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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.29792, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "NVIDIA A10G" ], "gpu_count": 1, "gpu_vram_mb": 24146608128, "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": null, "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1093.627904, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 55, "total": 0.49832416057586665, "mean": 0.009060439283197576, "stdev": 0.00022582770508943817, "p50": 0.009033632278442384, "p90": 0.009173465538024903, "p95": 0.00939774408340454, "p99": 0.009857797222137452, "values": [ 0.009907839775085449, 0.009815168380737305, 0.009747520446777343, 0.00874124813079834, 0.00866431999206543, 0.008595999717712402, 0.008612480163574219, 0.009007871627807617, 0.00904742431640625, 0.009093024253845216, 0.0090546236038208, 0.009029439926147461, 0.009117792129516602, 0.009020128250122071, 0.009023520469665527, 0.009096991539001465, 0.009017279624938965, 0.00865379238128662, 0.009044575691223144, 0.00904428768157959, 0.009031552314758301, 0.009226783752441407, 0.009029088020324707, 0.009150560379028321, 0.009024543762207031, 0.009021247863769531, 0.009178303718566894, 0.009025792121887206, 0.009056192398071289, 0.008947711944580078, 0.008885696411132812, 0.008951968193054199, 0.008995200157165527, 0.00904918384552002, 0.00924783992767334, 0.009047231674194335, 0.009138400077819825, 0.009103872299194337, 0.009033760070800782, 0.009166208267211914, 0.009019904136657715, 0.009031167984008789, 0.009079296112060547, 0.009075391769409179, 0.009043871879577637, 0.009014399528503417, 0.009029664039611817, 0.009033120155334473, 0.009057439804077149, 0.009033632278442384, 0.009101183891296386, 0.009027551651000977, 0.009017824172973633, 0.009115936279296875, 0.00899731159210205 ] }, "throughput": { "unit": "tokens/s", "value": 220.73984908314154 }, "energy": { "unit": "kWh", "cpu": 1.0898096693886651e-07, "ram": 5.958143518484676e-08, "gpu": 1.8615968001834607e-07, "total": 3.5472208214205936e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5638216.791925117 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1093.627904, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 55, "total": 0.5169948167800902, "mean": 0.009399905759638007, "stdev": 0.00023180977835384614, "p50": 0.009384063720703125, "p90": 0.009469427299499511, "p95": 0.009869657611846923, "p99": 0.01021596420288086, "values": [ 0.010131423950195312, 0.010144160270690919, 0.01030025577545166, 0.00887622356414795, 0.008886719703674316, 0.009004704475402832, 0.009174304008483887, 0.009324576377868652, 0.009316991806030274, 0.009399007797241211, 0.009304320335388184, 0.009337471961975099, 0.009420736312866211, 0.009369024276733398, 0.009384063720703125, 0.009407360076904297, 0.009430720329284667, 0.009428064346313476, 0.009321727752685548, 0.009408415794372559, 0.009474495887756347, 0.009402591705322266, 0.009404064178466797, 0.009371552467346191, 0.00937014389038086, 0.009326911926269532, 0.009446175575256347, 0.009415871620178222, 0.00941104030609131, 0.009236288070678712, 0.009198559761047363, 0.009316351890563965, 0.00939027214050293, 0.009389792442321777, 0.00938969612121582, 0.009331616401672363, 0.009502559661865235, 0.009442720413208008, 0.009363840103149414, 0.009399040222167969, 0.009461824417114257, 0.009383872032165527, 0.009397855758666992, 0.009365216255187988, 0.009442336082458496, 0.009352095603942871, 0.009367903709411622, 0.009438816070556641, 0.009350687980651855, 0.009757472038269042, 0.009325887680053711, 0.009302751541137695, 0.009326623916625977, 0.009334527969360351, 0.009433088302612304 ] }, "throughput": { "unit": "tokens/s", "value": 106.38404528414233 }, "energy": { "unit": "kWh", "cpu": 1.069887990903373e-07, "ram": 5.8499146120701805e-08, "gpu": 1.82759807036212e-07, "total": 3.482477522472511e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 2871518.8929346306 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 54, "total": 0.9970012207031252, "mean": 0.018462985568576385, "stdev": 0.0003989507830060581, "p50": 0.018462208747863768, "p90": 0.018651648330688476, "p95": 0.018715495109558104, "p99": 0.020090879917144776, "values": [ 0.019994623184204103, 0.020199424743652345, 0.017723392486572266, 0.017582080841064454, 0.017624063491821287, 0.017795072555541993, 0.018366464614868162, 0.018374656677246092, 0.018534400939941405, 0.018381824493408205, 0.01840332794189453, 0.018556928634643553, 0.01841152000427246, 0.018431999206542968, 0.018541568756103514, 0.01848422431945801, 0.018111488342285157, 0.018378751754760742, 0.018479103088378905, 0.018550783157348632, 0.018659328460693358, 0.01847091293334961, 0.018543615341186523, 0.01842790412902832, 0.018382848739624022, 0.01863372802734375, 0.0184586238861084, 0.018515968322753908, 0.018223104476928712, 0.018107391357421874, 0.018279455184936524, 0.018427871704101564, 0.01846272087097168, 0.01866854476928711, 0.018413568496704103, 0.018663423538208008, 0.018573312759399413, 0.01843302345275879, 0.018578432083129884, 0.018506752014160157, 0.0184586238861084, 0.018505727767944336, 0.01846272087097168, 0.018519039154052733, 0.01836953544616699, 0.01844223976135254, 0.018491392135620118, 0.018461696624755858, 0.01880268859863281, 0.018464767456054687, 0.01835212707519531, 0.018359296798706053, 0.018479103088378905, 0.01847603225708008 ] }, "throughput": { "unit": "tokens/s", "value": 54.162421147204874 }, "energy": null, "efficiency": null } } }