{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+cu124", "_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.25696, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.220-209.869.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.4.0", "optimum_benchmark_commit": null, "transformers_version": "4.44.0", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 791.216128, "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.39584619140625, "mean": 7.39584619140625, "stdev": 0.0, "p50": 7.39584619140625, "p90": 7.39584619140625, "p95": 7.39584619140625, "p99": 7.39584619140625, "values": [ 7.39584619140625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.73251487499264e-07, "ram": 5.177388177360278e-07, "gpu": 1.6333346399999716e-06, "total": 3.1243249452352635e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1193.422848, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 71, "total": 0.4894104957580566, "mean": 0.006893105574057136, "stdev": 0.0004030754341491825, "p50": 0.007014944076538086, "p90": 0.007324639797210693, "p95": 0.007359760046005249, "p99": 0.00779893765449524, "values": [ 0.007808703899383545, 0.007390687942504883, 0.0073432960510253905, 0.007355008125305176, 0.0073012480735778805, 0.007048480033874512, 0.007156608104705811, 0.00731987190246582, 0.007258272171020508, 0.00712505578994751, 0.007344480037689209, 0.00704588794708252, 0.007249983787536621, 0.007201888084411621, 0.006968639850616455, 0.006951776027679444, 0.006979551792144776, 0.007014944076538086, 0.007019552230834961, 0.007221183776855469, 0.007213280200958252, 0.007053919792175293, 0.00708681583404541, 0.007183968067169189, 0.007069248199462891, 0.0069937601089477535, 0.007193088054656982, 0.0073034558296203615, 0.00684764814376831, 0.007150015830993652, 0.0070117759704589845, 0.007016255855560303, 0.007364511966705322, 0.007324639797210693, 0.007040031909942627, 0.0070720319747924806, 0.007211711883544922, 0.006930816173553467, 0.0067266240119934085, 0.00779475212097168, 0.006831583976745606, 0.007022016048431397, 0.0071591358184814454, 0.007069056034088135, 0.007143648147583008, 0.006841728210449219, 0.006906303882598877, 0.00698089599609375, 0.00675980806350708, 0.00626636791229248, 0.006256159782409668, 0.00640169620513916, 0.00625545597076416, 0.006249567985534668, 0.006219423770904541, 0.006248032093048096, 0.006232192039489746, 0.006223072052001953, 0.00625593614578247, 0.006237728118896484, 0.006268032073974609, 0.006434336185455323, 0.006483424186706543, 0.006515135765075683, 0.00658080005645752, 0.006515359878540039, 0.006515327930450439, 0.0065309758186340335, 0.006288640022277832, 0.006516704082489014, 0.006508480072021485 ] }, "throughput": { "unit": "tokens/s", "value": 290.14498305773697 }, "energy": { "unit": "kWh", "cpu": 7.796825104166608e-08, "ram": 4.262344121812366e-08, "gpu": 1.4829507477631567e-07, "total": 2.688867670361054e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7438075.224175853 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1211.830272, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 71, "total": 0.5131449303627013, "mean": 0.007227393385390162, "stdev": 0.00039243236099421305, "p50": 0.007359519958496093, "p90": 0.007619904041290283, "p95": 0.007713551998138428, "p99": 0.00792797131538391, "values": [ 0.007588160037994385, 0.007619904041290283, 0.007877312183380126, 0.007666944026947021, 0.007486239910125732, 0.007499199867248535, 0.007584256172180176, 0.007664224147796631, 0.007824096202850342, 0.007634528160095215, 0.007760159969329834, 0.007610559940338135, 0.007530655860900879, 0.007563392162322998, 0.007597407817840576, 0.007350048065185547, 0.007371295928955078, 0.007431968212127686, 0.007427840232849121, 0.007491168022155762, 0.0075339522361755375, 0.007593920230865478, 0.007414207935333252, 0.007537919998168946, 0.007485727787017823, 0.007359519958496093, 0.007317791938781739, 0.007400191783905029, 0.007479872226715088, 0.007469088077545166, 0.007395359992980957, 0.007515039920806885, 0.007615263938903809, 0.007491456031799316, 0.0075502080917358395, 0.0073788161277770995, 0.007323232173919678, 0.007211808204650879, 0.007234560012817383, 0.006856575965881347, 0.007113088130950928, 0.007341184139251709, 0.007412320137023926, 0.008046175956726074, 0.007236959934234619, 0.007153632164001465, 0.007060959815979004, 0.007160352230072021, 0.0068754878044128415, 0.00681382417678833, 0.006650015830993652, 0.0066111359596252445, 0.0065972480773925785, 0.006569119930267334, 0.006506944179534912, 0.006540192127227783, 0.006554431915283203, 0.006548992156982422, 0.006596992015838623, 0.006585279941558838, 0.006639488220214844, 0.006882175922393798, 0.0069081602096557615, 0.00687772798538208, 0.006875103950500489, 0.006887231826782227, 0.006882559776306152, 0.006891168117523193, 0.006853792190551758, 0.0068576960563659665, 0.006871615886688233 ] }, "throughput": { "unit": "tokens/s", "value": 138.36246993576594 }, "energy": { "unit": "kWh", "cpu": 7.350952627900714e-08, "ram": 3.985617534125578e-08, "gpu": 1.41332442438871e-07, "total": 2.5469814405913377e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3926216.2812141576 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 71, "total": 0.47975638437271106, "mean": 0.006757132174263537, "stdev": 0.0003360650334175882, "p50": 0.006860799789428711, "p90": 0.007104512214660645, "p95": 0.007186432123184204, "p99": 0.007369625663757324, "values": [ 0.007058432102203369, 0.007102431774139405, 0.00729804801940918, 0.007127007961273193, 0.006987775802612305, 0.006986752033233643, 0.00704204797744751, 0.00714137601852417, 0.007268352031707764, 0.007113728046417236, 0.007231488227844239, 0.00709939193725586, 0.0070348801612854, 0.006998015880584717, 0.00709939193725586, 0.006856704235076904, 0.006861855983734131, 0.006896639823913574, 0.006896639823913574, 0.006975488185882568, 0.006989823818206787, 0.007104512214660645, 0.006895616054534912, 0.006999104022979736, 0.006982560157775879, 0.006860799789428711, 0.0068249602317810056, 0.006848512172698974, 0.006974463939666748, 0.006967296123504638, 0.0068884482383728025, 0.006979616165161133, 0.007097311973571777, 0.006908927917480469, 0.007035903930664063, 0.006897664070129395, 0.0068392958641052244, 0.006744063854217529, 0.006635519981384277, 0.006456319808959961, 0.0067010560035705566, 0.00687820816040039, 0.006917119979858399, 0.007536640167236328, 0.006765567779541016, 0.006731776237487793, 0.0066416959762573245, 0.0067645440101623535, 0.006475776195526123, 0.00642252779006958, 0.006269983768463135, 0.006232063770294189, 0.0062156801223754886, 0.006180863857269287, 0.006130688190460205, 0.006151167869567871, 0.00616755199432373, 0.006161407947540283, 0.0062197761535644535, 0.006207488059997559, 0.006243296146392822, 0.006457344055175781, 0.0065146880149841305, 0.006463488101959228, 0.00645740795135498, 0.006495232105255127, 0.006486015796661377, 0.006487040042877197, 0.006449151992797852, 0.0064542717933654785, 0.006469696044921875 ] }, "throughput": { "unit": "tokens/s", "value": 147.99177731179878 }, "energy": null, "efficiency": null } } }