{ "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": 1102.848, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 54, "total": 0.49014780902862537, "mean": 0.009076811278307879, "stdev": 0.0004072775926892294, "p50": 0.008978703975677491, "p90": 0.009487139320373535, "p95": 0.0095700927734375, "p99": 0.010094415054321288, "values": [ 0.009623647689819336, 0.009392288208007813, 0.009356927871704102, 0.009317407608032227, 0.00897385597229004, 0.00891327953338623, 0.00946457576751709, 0.009553536415100098, 0.00895910358428955, 0.009149760246276855, 0.009475872039794922, 0.009474176406860352, 0.009059264183044433, 0.008904319763183594, 0.008953887939453125, 0.009024959564208984, 0.009339232444763184, 0.009582240104675293, 0.009402976036071778, 0.009419136047363282, 0.008911231994628906, 0.008988544464111329, 0.009491968154907226, 0.008955712318420411, 0.00894547176361084, 0.008974720001220703, 0.009170368194580078, 0.009470911979675293, 0.009376128196716309, 0.009345855712890625, 0.008982687950134278, 0.008667072296142579, 0.009263423919677735, 0.00935977554321289, 0.009563551902770997, 0.010625280380249024, 0.009054080009460449, 0.008934368133544921, 0.008921567916870116, 0.008962431907653808, 0.008919839859008788, 0.008941344261169434, 0.008943807601928712, 0.008939200401306153, 0.008954208374023437, 0.008481280326843262, 0.008458720207214356, 0.008469152450561523, 0.008468159675598145, 0.008462016105651855, 0.008449824333190917, 0.00844489574432373, 0.008454367637634278, 0.008455391883850097 ] }, "throughput": { "unit": "tokens/s", "value": 220.34169695470905 }, "energy": { "unit": "kWh", "cpu": 1.0486102151073654e-07, "ram": 5.733339332227761e-08, "gpu": 1.8130791299115086e-07, "total": 3.43502327824165e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5822376.845794703 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1102.848, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 54, "total": 0.5105290851593017, "mean": 0.009454242317764846, "stdev": 0.0004733331409919221, "p50": 0.009349056243896484, "p90": 0.00997006425857544, "p95": 0.010018668985366823, "p99": 0.010733637380599976, "values": [ 0.010017056465148926, 0.00975273609161377, 0.009587967872619629, 0.009303071975708007, 0.009350272178649902, 0.009690303802490235, 0.009876128196716308, 0.009843520164489746, 0.009320287704467774, 0.009482720375061034, 0.009896639823913575, 0.009905887603759765, 0.009400575637817384, 0.009303456306457519, 0.009347840309143067, 0.009339200019836427, 0.009993056297302245, 0.009833919525146484, 0.009993247985839844, 0.009829504013061523, 0.009293120384216308, 0.009680319786071777, 0.009790911674499511, 0.0093221435546875, 0.009307231903076172, 0.009543968200683593, 0.010021663665771485, 0.00991641616821289, 0.009914848327636719, 0.009719327926635742, 0.009158271789550781, 0.008994624137878418, 0.009712127685546875, 0.009771776199340821, 0.01073862361907959, 0.010729215621948241, 0.0092489595413208, 0.009253503799438477, 0.009232992172241212, 0.009214079856872559, 0.009394271850585938, 0.009238304138183594, 0.009245599746704102, 0.00923311996459961, 0.009227423667907715, 0.00872208023071289, 0.008722975730895996, 0.008687007904052734, 0.008707584381103516, 0.00873100757598877, 0.008743583679199219, 0.008747424125671387, 0.008730175971984864, 0.008767007827758789 ] }, "throughput": { "unit": "tokens/s", "value": 105.772622108592 }, "energy": { "unit": "kWh", "cpu": 1.0181561499420772e-07, "ram": 5.5662026032057974e-08, "gpu": 1.7458796559505378e-07, "total": 3.3206560662131945e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3011453.0986052365 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 53, "total": 0.9828618278503417, "mean": 0.018544562789629092, "stdev": 0.0008674594417075786, "p50": 0.018371583938598633, "p90": 0.019424871063232423, "p95": 0.019462144088745116, "p99": 0.02087538711547851, "values": [ 0.01924812889099121, 0.018970687866210936, 0.018695104598999025, 0.018358272552490236, 0.018610176086425782, 0.019366912841796875, 0.019458047866821288, 0.01826201629638672, 0.018682880401611326, 0.019406848907470704, 0.01942937660217285, 0.018497535705566406, 0.018256895065307616, 0.018324480056762696, 0.018395135879516602, 0.019335168838500977, 0.01946828842163086, 0.019385343551635743, 0.019332096099853514, 0.018251775741577148, 0.01865116882324219, 0.019315679550170897, 0.018363391876220703, 0.01826201629638672, 0.018511871337890624, 0.01925529670715332, 0.01943449592590332, 0.019333120346069335, 0.019098655700683594, 0.01824048042297363, 0.017663999557495116, 0.018930688858032226, 0.019192832946777344, 0.02030080032348633, 0.021497856140136717, 0.018371583938598633, 0.01821286392211914, 0.018183168411254884, 0.018206720352172853, 0.018324480056762696, 0.018217983245849608, 0.01820979118347168, 0.01820159912109375, 0.018199552536010744, 0.01726361656188965, 0.01720319938659668, 0.01718272018432617, 0.0172042236328125, 0.017209344863891602, 0.01721855926513672, 0.01721958351135254, 0.01721855926513672, 0.01722675132751465 ] }, "throughput": { "unit": "tokens/s", "value": 53.924161563908235 }, "energy": null, "efficiency": null } } }