{ "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": "4", "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 7763 64-Core Processor", "cpu_count": 128, "cpu_ram_mb": 1082015.256576, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.15.0-101-generic-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]" ], "gpu_count": 8, "gpu_vram_mb": 549621596160, "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": null, "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 907.501568, "max_global_vram": 1011.822592, "max_process_vram": 46354.706432, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.57442333984375, "mean": 7.57442333984375, "stdev": 0.0, "p50": 7.57442333984375, "p90": 7.57442333984375, "p95": 7.57442333984375, "p99": 7.57442333984375, "values": [ 7.57442333984375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1062.821888, "max_global_vram": 1106.219008, "max_process_vram": 277268.774912, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 61, "total": 0.5039781837463378, "mean": 0.008261937438464555, "stdev": 0.0003937565165346935, "p50": 0.008112607955932617, "p90": 0.00875980567932129, "p95": 0.009007644653320313, "p99": 0.009509722518920898, "values": [ 0.008132448196411133, 0.008267168045043946, 0.008201727867126465, 0.00814844799041748, 0.008075167655944824, 0.008065247535705566, 0.008516926765441895, 0.008719805717468262, 0.00850668716430664, 0.008482526779174805, 0.00813212776184082, 0.0081396484375, 0.008112607955932617, 0.008391806602478027, 0.008262686729431153, 0.00875980567932129, 0.010044920921325683, 0.009007644653320313, 0.008713405609130859, 0.008438206672668458, 0.008463327407836913, 0.008551166534423829, 0.008302687644958496, 0.007992288112640382, 0.008075009346008301, 0.008405246734619141, 0.008098527908325196, 0.007960769176483154, 0.00798684787750244, 0.00798604917526245, 0.007981887817382812, 0.007980288982391358, 0.007964448928833008, 0.00795884895324707, 0.007996768951416015, 0.007974849224090577, 0.007981729030609131, 0.007994688034057618, 0.007960608959197998, 0.007967648983001709, 0.007957569122314453, 0.00794524908065796, 0.007987168788909912, 0.007959009170532227, 0.0080513277053833, 0.009152923583984375, 0.0087820463180542, 0.008429567337036132, 0.008373566627502441, 0.008448447227478027, 0.007951169013977051, 0.007935328960418701, 0.00793276882171631, 0.007949248790740967, 0.007945408821105957, 0.007975489139556884, 0.007967648983001709, 0.008993244171142578, 0.00902348518371582, 0.008255647659301759, 0.008259166717529296 ] }, "throughput": { "unit": "tokens/s", "value": 242.07397053005175 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1062.981632, "max_global_vram": 1107.603456, "max_process_vram": 287863.304192, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 61, "total": 0.5061825022697447, "mean": 0.008298073807700734, "stdev": 0.0002659322070778603, "p50": 0.008172449111938476, "p90": 0.008649887084960938, "p95": 0.00874012565612793, "p99": 0.00900943717956543, "values": [ 0.008172449111938476, 0.008363327026367188, 0.008200287818908691, 0.008081089019775391, 0.008162367820739745, 0.008263168334960937, 0.008410846710205078, 0.008433886528015137, 0.008566685676574707, 0.00874012565612793, 0.00805356788635254, 0.008139328956604004, 0.008091487884521485, 0.008556126594543457, 0.008649887084960938, 0.009123004913330079, 0.008660125732421874, 0.008561567306518554, 0.008539966583251953, 0.008665725708007813, 0.00852828598022461, 0.008543967247009277, 0.00844236660003662, 0.008419807434082032, 0.008049247741699218, 0.008301247596740722, 0.008116928100585938, 0.008040449142456055, 0.008114849090576172, 0.00806924819946289, 0.008140129089355469, 0.008091169357299805, 0.008208927154541015, 0.008103649139404296, 0.008140447616577149, 0.008278207778930664, 0.00805948829650879, 0.008138849258422851, 0.007994368076324462, 0.008110848426818848, 0.008068767547607422, 0.008010687828063965, 0.008138527870178222, 0.00786604881286621, 0.008567326545715332, 0.008933725357055665, 0.00852236557006836, 0.008376288414001464, 0.00857884693145752, 0.008126208305358887, 0.00804300880432129, 0.008159168243408203, 0.00807420825958252, 0.00812876796722412, 0.008103808403015137, 0.007961088180541993, 0.008082049369812012, 0.00892780590057373, 0.008384607315063476, 0.00834252643585205, 0.008459166526794433 ] }, "throughput": { "unit": "tokens/s", "value": 120.50989460614166 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 61, "total": 0.45446238040924075, "mean": 0.007450202957528536, "stdev": 0.00023313856539475093, "p50": 0.007317891120910644, "p90": 0.007784289836883545, "p95": 0.007821249961853027, "p99": 0.008084640693664552, "values": [ 0.00736653184890747, 0.007524610996246338, 0.007346531867980957, 0.007288611888885498, 0.0073004508018493655, 0.007409091949462891, 0.00753341007232666, 0.007584290027618408, 0.007679490089416504, 0.007845088958740235, 0.0072337322235107426, 0.007294851779937744, 0.007290370941162109, 0.007626689910888672, 0.0078073301315307615, 0.007655330181121826, 0.007821249961853027, 0.0077178897857666014, 0.007621729850769043, 0.007801408767700195, 0.0076458902359008785, 0.007766689777374268, 0.007640450000762939, 0.0075519709587097165, 0.007317891120910644, 0.007466210842132569, 0.007236611843109131, 0.007208452224731445, 0.007236611843109131, 0.007283970832824707, 0.007262852191925049, 0.00726173210144043, 0.007308451175689698, 0.00725741195678711, 0.007258532047271729, 0.007410211086273193, 0.007256131172180175, 0.007249092102050781, 0.007227011203765869, 0.007274691104888916, 0.0072418909072875974, 0.007310531139373779, 0.007260130882263184, 0.007222852230072021, 0.007784289836883545, 0.00807580852508545, 0.007724449157714843, 0.007639810085296631, 0.0077178897857666014, 0.00727613115310669, 0.007243011951446533, 0.007229411125183106, 0.007254371166229248, 0.007211970806121826, 0.007271010875701905, 0.007226850986480713, 0.007193411827087402, 0.008097888946533204, 0.007536291122436523, 0.00752108907699585, 0.007553730964660645 ] }, "throughput": { "unit": "tokens/s", "value": 134.22453129139063 }, "energy": null, "efficiency": null } } }