{ "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": "079be6729111d58c45eb7f4a60e984bbf86c5a81", "transformers_version": "4.41.0", "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": 1046.781952, "max_global_vram": 2087.60832, "max_process_vram": 250957.012992, "max_reserved": 725.614592, "max_allocated": 512.83456 }, "latency": { "unit": "s", "count": 58, "total": 0.4878598279953004, "mean": 0.008411376344746558, "stdev": 0.000335659246535959, "p50": 0.008258796691894532, "p90": 0.009005708789825439, "p95": 0.009115996885299684, "p99": 0.009310135869979858, "values": [ 0.009507037162780762, 0.009113596916198731, 0.008996156692504883, 0.008814396858215333, 0.008573436737060547, 0.008355357170104981, 0.008199677467346192, 0.008260796546936035, 0.00827183723449707, 0.00824079704284668, 0.008936957359313965, 0.008595836639404298, 0.00909455680847168, 0.008256796836853028, 0.008288477897644043, 0.008154237747192383, 0.008278556823730469, 0.008123996734619141, 0.008334237098693848, 0.008142236709594727, 0.008304476737976074, 0.00830623722076416, 0.00820639705657959, 0.008387196540832519, 0.008235197067260742, 0.008204636573791503, 0.00820303726196289, 0.008180477142333985, 0.008230237007141114, 0.008291996955871583, 0.008224957466125489, 0.008233277320861817, 0.008131357192993164, 0.008248637199401856, 0.008149436950683594, 0.00815999698638916, 0.008133597373962402, 0.008140637397766113, 0.008175677299499511, 0.008181917190551757, 0.008106717109680176, 0.009129596710205077, 0.008653917312622071, 0.008789437294006348, 0.008780476570129394, 0.008370077133178711, 0.008320157051086425, 0.008148476600646973, 0.009027997016906738, 0.009161596298217773, 0.008553756713867187, 0.00856335735321045, 0.00847391700744629, 0.008209917068481445, 0.00816927719116211, 0.00824079704284668, 0.008165596961975097, 0.008126397132873536 ] }, "throughput": { "unit": "tokens/s", "value": 237.7732154677787 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1046.781952, "max_global_vram": 2087.612416, "max_process_vram": 236422.791168, "max_reserved": 725.614592, "max_allocated": 513.058304 }, "latency": { "unit": "s", "count": 58, "total": 0.5247939004898071, "mean": 0.00904817069810012, "stdev": 0.0005784233082387742, "p50": 0.008878316879272461, "p90": 0.009516236877441407, "p95": 0.00965094780921936, "p99": 0.011073727779388427, "values": [ 0.00964991569519043, 0.0095126371383667, 0.009524636268615723, 0.009307677268981934, 0.009149117469787598, 0.008857916831970215, 0.008831517219543457, 0.009102076530456542, 0.008966876983642577, 0.009296156883239747, 0.012877116203308106, 0.008692156791687012, 0.008693277359008789, 0.008922077178955079, 0.008842396736145019, 0.008777276992797851, 0.008774077415466309, 0.008837117195129394, 0.009004157066345215, 0.008696797370910645, 0.008761277198791504, 0.00870047664642334, 0.008863356590270996, 0.008881596565246582, 0.008791996955871581, 0.008836636543273926, 0.008900636672973633, 0.008734236717224121, 0.008759197235107421, 0.008787357330322265, 0.008971357345581054, 0.00881935691833496, 0.00891487693786621, 0.008904637336730957, 0.008903837203979493, 0.008920157432556152, 0.00887503719329834, 0.008727196693420411, 0.0089361572265625, 0.008832636833190919, 0.009114076614379883, 0.009656796455383301, 0.009274396896362305, 0.009487836837768555, 0.00957567596435547, 0.008851197242736817, 0.008911677360534668, 0.008838557243347167, 0.009713276863098145, 0.009351837158203124, 0.009197596549987794, 0.009141596794128418, 0.008846397399902345, 0.008721117019653321, 0.008614715576171874, 0.008798236846923829, 0.008780476570129394, 0.008781436920166016 ] }, "throughput": { "unit": "tokens/s", "value": 110.51957720138655 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 57, "total": 0.9963178806304929, "mean": 0.017479261063692863, "stdev": 0.000791972800347937, "p50": 0.017149913787841798, "p90": 0.018351513290405273, "p95": 0.018730360412597655, "p99": 0.020292184906005855, "values": [ 0.018714712142944335, 0.01849647331237793, 0.01809551239013672, 0.017779674530029297, 0.017302873611450196, 0.01720095443725586, 0.017321113586425782, 0.017299673080444337, 0.017564313888549805, 0.02188751220703125, 0.01749807357788086, 0.01784671401977539, 0.017089914321899415, 0.01721951484680176, 0.01702847480773926, 0.01709983444213867, 0.017045753479003906, 0.017307193756103515, 0.016957433700561523, 0.017049753189086914, 0.01705471420288086, 0.017022394180297853, 0.017360794067382813, 0.01703231430053711, 0.017149913787841798, 0.01707791328430176, 0.017048633575439454, 0.016995193481445313, 0.0171761531829834, 0.017135833740234373, 0.017111833572387696, 0.017062074661254884, 0.017202394485473633, 0.01707871437072754, 0.017205753326416016, 0.01706767463684082, 0.017022233963012695, 0.017122234344482422, 0.016991193771362306, 0.01714975357055664, 0.019038713455200196, 0.01790767288208008, 0.018228794097900392, 0.018254873275756835, 0.0175046329498291, 0.017117753982543945, 0.017069433212280275, 0.018792953491210938, 0.018573272705078126, 0.017871353149414064, 0.01785775375366211, 0.017505754470825197, 0.016960153579711913, 0.016807031631469727, 0.01690799331665039, 0.017050554275512695, 0.016995994567871094 ] }, "throughput": { "unit": "tokens/s", "value": 57.21065646631683 }, "energy": null, "efficiency": null } } }