{ "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", "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": "d8c451da5aac8852b6a6e83b9b56a2aa6f007535", "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": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1049.219072, "max_global_vram": 2098.76992, "max_process_vram": 312654.270464, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 61, "total": 0.5042609305381774, "mean": 0.0082665726317734, "stdev": 0.0006613054428194144, "p50": 0.008051369667053223, "p90": 0.00869441032409668, "p95": 0.009062410354614258, "p99": 0.01134561367034912, "values": [ 0.012061775207519531, 0.008103690147399902, 0.008040008544921875, 0.008006090164184571, 0.008008809089660644, 0.008001449584960938, 0.00801809024810791, 0.00805424976348877, 0.008044650077819824, 0.008035690307617187, 0.00807649040222168, 0.008208809852600097, 0.008086090087890624, 0.010868172645568847, 0.00798705005645752, 0.00793136978149414, 0.007940649032592773, 0.007953770160675049, 0.007947050094604492, 0.00796320915222168, 0.007921770095825195, 0.007970570087432861, 0.007968328952789306, 0.008068329811096191, 0.008143529891967774, 0.008121129989624023, 0.008139369964599609, 0.00798208999633789, 0.008337770462036133, 0.007998088836669921, 0.008020330429077148, 0.008182729721069336, 0.007999208927154541, 0.007968009948730469, 0.00799328899383545, 0.007973769187927245, 0.00800784969329834, 0.008372650146484376, 0.00814640998840332, 0.007982728958129882, 0.00869441032409668, 0.008409130096435546, 0.008004329681396484, 0.009033130645751954, 0.008568169593811036, 0.008482891082763672, 0.00810161018371582, 0.007938729763031007, 0.007951048851013184, 0.008449130058288574, 0.009130571365356445, 0.009062410354614258, 0.008731210708618164, 0.008584811210632324, 0.008095688819885254, 0.00800833034515381, 0.008085769653320312, 0.00803456974029541, 0.008051369667053223, 0.00807553005218506, 0.008132969856262207 ] }, "throughput": { "unit": "tokens/s", "value": 241.93823596405593 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1049.219072, "max_global_vram": 2098.765824, "max_process_vram": 307753.730048, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 61, "total": 0.5033004388809205, "mean": 0.008250826866900336, "stdev": 0.00029225732643925744, "p50": 0.008114569664001465, "p90": 0.008662730216979981, "p95": 0.00878240966796875, "p99": 0.009197803306579589, "values": [ 0.008530409812927246, 0.008120010375976563, 0.008100810050964356, 0.008090409278869629, 0.008095049858093261, 0.008109929084777832, 0.008090889930725098, 0.008115208625793457, 0.00813057041168213, 0.008147528648376465, 0.008261130332946778, 0.008144009590148925, 0.009318571090698242, 0.008379050254821777, 0.008107528686523438, 0.008045929908752442, 0.008089929580688477, 0.008098889350891113, 0.008040329933166505, 0.008079689979553223, 0.00805168914794922, 0.008061610221862792, 0.008056010246276855, 0.00809312915802002, 0.008237130165100097, 0.00819985008239746, 0.008653929710388183, 0.008088970184326172, 0.008204009056091309, 0.008061450004577636, 0.008060969352722169, 0.008052009582519531, 0.00804113006591797, 0.008043688774108887, 0.008017290115356445, 0.008040169715881347, 0.008053448677062989, 0.008041129112243653, 0.008024009704589843, 0.008684170722961427, 0.008619690895080566, 0.008261449813842773, 0.008662730216979981, 0.009117291450500489, 0.008464170455932616, 0.008483369827270508, 0.00801344871520996, 0.008006569862365722, 0.008256170272827148, 0.008517451286315918, 0.009054889678955078, 0.008779530525207519, 0.00878240966796875, 0.008363690376281738, 0.008226409912109375, 0.008114250183105468, 0.00812752914428711, 0.008114569664001465, 0.008112009048461915, 0.008213929176330566, 0.008147210121154784 ] }, "throughput": { "unit": "tokens/s", "value": 121.1999737882852 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 60, "total": 0.9889056711196901, "mean": 0.016481761185328167, "stdev": 0.0007251583895022586, "p50": 0.016204740524291994, "p90": 0.017131139183044434, "p95": 0.017886667537689208, "p99": 0.019103489112853998, "values": [ 0.016276498794555665, 0.01618050003051758, 0.016129459381103516, 0.016130899429321287, 0.016145299911499024, 0.016140018463134766, 0.016201620101928712, 0.016214099884033203, 0.016207860946655273, 0.016330739974975587, 0.016431058883666992, 0.016373300552368165, 0.02040866470336914, 0.016114578247070313, 0.01602353858947754, 0.01605537986755371, 0.0160843391418457, 0.016019058227539063, 0.016070579528808592, 0.015997459411621093, 0.01606721878051758, 0.01604673957824707, 0.016195379257202148, 0.01636050033569336, 0.01639617919921875, 0.01681730079650879, 0.01609713935852051, 0.01657617950439453, 0.016087539672851564, 0.016106420516967774, 0.016250738143920897, 0.016077779769897462, 0.016041139602661132, 0.016038419723510743, 0.016037620544433594, 0.01609265899658203, 0.01645218086242676, 0.016194259643554688, 0.016655380249023438, 0.017388179779052736, 0.01669938087463379, 0.016655540466308592, 0.018183221817016603, 0.01710257911682129, 0.016955059051513673, 0.016194419860839845, 0.015968499183654786, 0.016237300872802736, 0.016947860717773437, 0.018196502685546876, 0.01787105941772461, 0.0176384220123291, 0.016944019317626954, 0.016402580261230468, 0.016139699935913087, 0.016246740341186523, 0.01617633819580078, 0.01619778060913086, 0.01630113983154297, 0.0163336181640625 ] }, "throughput": { "unit": "tokens/s", "value": 60.67312763214807 }, "energy": null, "efficiency": null } } }