{ "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", "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": 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": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1083.629568, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 56, "total": 0.4932210588455201, "mean": 0.008807518907955714, "stdev": 0.00033278816544258, "p50": 0.00882576036453247, "p90": 0.00915651226043701, "p95": 0.009340528011322022, "p99": 0.009655062484741213, "values": [ 0.009947327613830567, 0.00932159996032715, 0.009183072090148925, 0.009129952430725098, 0.00884601593017578, 0.008802816390991211, 0.008823936462402343, 0.0089552001953125, 0.009027935981750489, 0.00885587215423584, 0.00893068790435791, 0.008900416374206544, 0.008923711776733399, 0.008817503929138184, 0.008840224266052247, 0.008864319801330567, 0.008906784057617188, 0.008979167938232422, 0.00899942398071289, 0.009415936470031739, 0.008891519546508788, 0.008799039840698242, 0.008793824195861817, 0.008748160362243653, 0.008798336029052735, 0.008827584266662598, 0.00889948844909668, 0.00906003189086914, 0.00885859203338623, 0.008808671951293945, 0.008780320167541504, 0.008721247673034668, 0.008510080337524414, 0.008696767807006836, 0.009091360092163086, 0.009294495582580567, 0.008986399650573731, 0.00896787166595459, 0.008876064300537109, 0.00876425552368164, 0.008718784332275391, 0.008727904319763183, 0.008766655921936034, 0.008704319953918457, 0.00832310390472412, 0.008282719612121582, 0.0083372802734375, 0.008296192169189453, 0.008258432388305663, 0.008290783882141113, 0.008320992469787597, 0.008290464401245118, 0.008268832206726074, 0.00829366397857666, 0.00829759979248047, 0.009397312164306641 ] }, "throughput": { "unit": "tokens/s", "value": 227.07870637591554 }, "energy": { "unit": "kWh", "cpu": 1.0346062805341638e-07, "ram": 5.656089233841909e-08, "gpu": 1.7682381295652125e-07, "total": 3.368453333483567e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5937443.0992388185 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1083.629568, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 56, "total": 0.5091750068664552, "mean": 0.009092410836900985, "stdev": 0.0003091226335411273, "p50": 0.009143328189849854, "p90": 0.009432144165039062, "p95": 0.00951979160308838, "p99": 0.009736747360229493, "values": [ 0.009923711776733398, 0.009509087562561035, 0.00943724822998047, 0.009295904159545898, 0.009190560340881348, 0.009089471817016602, 0.009206784248352052, 0.009240863800048828, 0.009149888038635253, 0.0092511043548584, 0.009208831787109375, 0.00921951961517334, 0.00934832000732422, 0.009117695808410644, 0.009156384468078614, 0.00918841552734375, 0.009282272338867187, 0.009270208358764648, 0.009583776473999023, 0.009551903724670411, 0.009117919921875, 0.00911955165863037, 0.009292960166931152, 0.009052927970886231, 0.009131232261657714, 0.009108991622924804, 0.009477215766906738, 0.00927171230316162, 0.009136768341064453, 0.009195072174072266, 0.00888111972808838, 0.009045151710510254, 0.008602815628051758, 0.009320544242858888, 0.009427040100097657, 0.009371871948242188, 0.009184191703796387, 0.009191072463989258, 0.009031647682189942, 0.00902780818939209, 0.009118656158447265, 0.009022944450378418, 0.009020768165588378, 0.008995136260986329, 0.008536352157592773, 0.008583647727966309, 0.00855731201171875, 0.00853711986541748, 0.008580512046813964, 0.008566047668457031, 0.008555551528930665, 0.008551615715026856, 0.008555775642395019, 0.008610976219177247, 0.009020511627197265, 0.009152511596679687 ] }, "throughput": { "unit": "tokens/s", "value": 109.98183187472812 }, "energy": { "unit": "kWh", "cpu": 9.904183656609265e-08, "ram": 5.4157577730956454e-08, "gpu": 1.7001262270449928e-07, "total": 3.2321203700154845e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3093944.17756542 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 55, "total": 0.9845053462982174, "mean": 0.017900097205422138, "stdev": 0.000575301543064944, "p50": 0.01803468894958496, "p90": 0.018555878829956053, "p95": 0.018670022392272948, "p99": 0.018956697998046876, "values": [ 0.018914304733276367, 0.018615360260009765, 0.01851897621154785, 0.018082815170288084, 0.017921024322509766, 0.01805721664428711, 0.01823539161682129, 0.01822105598449707, 0.018127872467041017, 0.018182144165039063, 0.018152448654174806, 0.018349056243896485, 0.017945600509643556, 0.018061311721801757, 0.01803468894958496, 0.01825279998779297, 0.01828556823730469, 0.0186060791015625, 0.019006464004516603, 0.018067455291748045, 0.017960960388183594, 0.018107391357421874, 0.01784320068359375, 0.017920000076293945, 0.01800499153137207, 0.018397184371948243, 0.01836953544616699, 0.01804902458190918, 0.01804595184326172, 0.017744895935058593, 0.017763328552246094, 0.01722163200378418, 0.017957887649536132, 0.018505727767944336, 0.01879756736755371, 0.01820876884460449, 0.018207744598388673, 0.01796505546569824, 0.01782476806640625, 0.017863679885864257, 0.01777561569213867, 0.01781452751159668, 0.017723392486572266, 0.016910335540771485, 0.016869375228881836, 0.016949247360229493, 0.016858112335205077, 0.01685606384277344, 0.016891904830932617, 0.016904191970825197, 0.01686835289001465, 0.01684787178039551, 0.016927743911743166, 0.017331199645996095, 0.018580480575561522 ] }, "throughput": { "unit": "tokens/s", "value": 55.865618411116166 }, "energy": null, "efficiency": null } } }