{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+cu121", "_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": "0", "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": 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", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.293824, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.219-208.866.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.3.1", "optimum_benchmark_commit": null, "transformers_version": "4.43.1", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 720.850944, "max_global_vram": 1355.28448, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.2392265625, "mean": 7.2392265625, "stdev": 0.0, "p50": 7.2392265625, "p90": 7.2392265625, "p95": 7.2392265625, "p99": 7.2392265625, "values": [ 7.2392265625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.894809789127774e-07, "ram": 5.265630663824557e-07, "gpu": 0.0, "total": 1.516044045295233e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1045.393408, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 73, "total": 0.4901016945838929, "mean": 0.006713721843614971, "stdev": 0.0003856371637593188, "p50": 0.006822495937347412, "p90": 0.007153772926330566, "p95": 0.007309836769104004, "p99": 0.007452256126403809, "values": [ 0.00770684814453125, 0.0073432960510253905, 0.0073532481193542484, 0.007198527812957763, 0.00686569595336914, 0.006999360084533691, 0.007003583908081055, 0.007040128231048584, 0.006917088031768799, 0.007318687915802002, 0.007045567989349365, 0.0070677118301391605, 0.006981984138488769, 0.007031455993652343, 0.006821631908416748, 0.00688102388381958, 0.0071910400390625, 0.0070828161239624024, 0.007159232139587402, 0.007131936073303223, 0.006893375873565674, 0.007101439952850342, 0.006992000102996826, 0.006973951816558838, 0.0069519681930542, 0.007047904014587402, 0.006920639991760254, 0.006833151817321777, 0.006902080059051513, 0.006973536014556885, 0.007119616031646728, 0.007126751899719238, 0.006996543884277344, 0.006822495937347412, 0.0068063998222351076, 0.006639200210571289, 0.006842656135559082, 0.00649126386642456, 0.006473504066467285, 0.006940159797668457, 0.007033311843872071, 0.007303936004638672, 0.006730303764343261, 0.006533792018890381, 0.006490911960601807, 0.006375103950500488, 0.006350304126739502, 0.006275551795959473, 0.006274496078491211, 0.006287680149078369, 0.006296448230743408, 0.006285888195037842, 0.00629702377319336, 0.006303552150726318, 0.006315104007720947, 0.006307456016540527, 0.00628601598739624, 0.006243167877197265, 0.006279967784881592, 0.006293759822845459, 0.006297760009765625, 0.006291647911071777, 0.006249695777893066, 0.0062740478515625, 0.006315968036651611, 0.006280735969543457, 0.006257440090179443, 0.0062646718025207515, 0.006264319896697998, 0.006291711807250976, 0.006242208003997803, 0.0062542400360107425, 0.006263967990875244 ] }, "throughput": { "unit": "tokens/s", "value": 297.8973580655688 }, "energy": { "unit": "kWh", "cpu": 7.801668511496651e-08, "ram": 4.256016349596234e-08, "gpu": 1.5286686158169475e-07, "total": 2.734437101926236e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7314119.599207925 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1061.036032, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 73, "total": 0.5121982097625731, "mean": 0.007016413832364017, "stdev": 0.00038096484621730057, "p50": 0.0070854082107543945, "p90": 0.007462617683410644, "p95": 0.00750238733291626, "p99": 0.007713754978179932, "values": [ 0.007741471767425537, 0.007702976226806641, 0.007389823913574219, 0.007364575862884522, 0.0070694398880004885, 0.007265823841094971, 0.007372896194458008, 0.007366496086120606, 0.007498688220977783, 0.007573887825012207, 0.007356128215789795, 0.007294303894042968, 0.007264448165893555, 0.007278304100036621, 0.007198048114776611, 0.0074486398696899415, 0.007467167854309082, 0.007373311996459961, 0.007420576095581054, 0.007363103866577149, 0.0072540478706359865, 0.007365248203277588, 0.007476191997528076, 0.007226399898529053, 0.00727510404586792, 0.007333600044250489, 0.00721072006225586, 0.007201695919036865, 0.0072507839202880855, 0.007367648124694824, 0.007419583797454834, 0.00746611213684082, 0.007401023864746094, 0.007288640022277832, 0.0070854082107543945, 0.006946656227111816, 0.006920383930206299, 0.006594240188598633, 0.007038911819458008, 0.0072893438339233394, 0.007507936000823974, 0.007399328231811523, 0.006915071964263916, 0.0068252158164978025, 0.006840288162231445, 0.006638688087463379, 0.006569888114929199, 0.006696000099182129, 0.0065865921974182125, 0.006573728084564209, 0.006635807991027832, 0.006621024131774902, 0.00658351993560791, 0.006572480201721191, 0.006550464153289795, 0.006547359943389892, 0.006604063987731934, 0.006588160037994385, 0.006552639961242676, 0.006608160018920899, 0.0065578241348266605, 0.006587744235992432, 0.006558239936828613, 0.006560448169708252, 0.006577856063842773, 0.006585631847381592, 0.0065797438621521, 0.006567615985870362, 0.006620543956756592, 0.006595136165618897, 0.006598656177520752, 0.006579391956329346, 0.006591104030609131 ] }, "throughput": { "unit": "tokens/s", "value": 142.52295031222144 }, "energy": { "unit": "kWh", "cpu": 7.34915356931136e-08, "ram": 4.027621153874753e-08, "gpu": 1.7698923915248874e-07, "total": 2.9075698638434995e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3439298.2690985315 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.4786894087791444, "mean": 0.0065573891613581415, "stdev": 0.00031861051247964974, "p50": 0.0066037440299987794, "p90": 0.006935961532592774, "p95": 0.006978560066223145, "p99": 0.00713289737701416, "values": [ 0.007205887794494629, 0.007104512214660645, 0.006872064113616944, 0.006860799789428711, 0.006569983959197998, 0.006763519763946534, 0.006800384044647217, 0.006854656219482422, 0.006976511955261231, 0.007008255958557129, 0.006841343879699707, 0.006790143966674805, 0.0067358717918396, 0.006785024166107178, 0.006707263946533203, 0.006906879901885986, 0.0069550080299377445, 0.006825984001159668, 0.006903808116912841, 0.006781919956207276, 0.0067420158386230465, 0.006860799789428711, 0.006933504104614257, 0.006739999771118164, 0.006725632190704346, 0.00684441614151001, 0.006715392112731934, 0.006689792156219483, 0.0067502717971801756, 0.0068249602317810056, 0.006896639823913574, 0.006950943946838379, 0.006904831886291504, 0.0067870721817016606, 0.0066037440299987794, 0.006461440086364746, 0.006509568214416504, 0.006202367782592774, 0.006598656177520752, 0.006797311782836914, 0.0069816322326660156, 0.006936575889587402, 0.006515711784362793, 0.006426623821258545, 0.0064471039772033695, 0.006254591941833496, 0.006184959888458252, 0.0062873601913452145, 0.006202367782592774, 0.006189055919647217, 0.006245376110076905, 0.006237184047698975, 0.006196224212646485, 0.006191103935241699, 0.006166528224945069, 0.006146048069000244, 0.006198272228240966, 0.006199295997619629, 0.006168575763702393, 0.006213664054870605, 0.00617574405670166, 0.006201344013214111, 0.006173696041107178, 0.00617571210861206, 0.006169600009918213, 0.006179840087890625, 0.006198272228240966, 0.006179840087890625, 0.006235136032104492, 0.006203392028808594, 0.0062156801223754886, 0.006194176197052002, 0.006209536075592041 ] }, "throughput": { "unit": "tokens/s", "value": 152.49971831668503 }, "energy": null, "efficiency": null } } }