{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+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.261056, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.224-212.876.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.5.0", "optimum_benchmark_commit": null, "transformers_version": "4.45.0", "transformers_commit": null, "accelerate_version": "0.34.2", "accelerate_commit": null, "diffusers_version": "0.30.3", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": "0.13.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 804.37248, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 0.22046823120117187, "mean": 0.22046823120117187, "stdev": 0.0, "p50": 0.22046823120117187, "p90": 0.22046823120117187, "p95": 0.22046823120117187, "p99": 0.22046823120117187, "values": [ 0.22046823120117187 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 2.591005333953136e-06, "ram": 1.3965802288606892e-06, "gpu": 3.7163918620297665e-06, "total": 7.703977424843591e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1211.011072, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.410496 }, "latency": { "unit": "s", "count": 73, "total": 0.495694046497345, "mean": 0.006790329404073219, "stdev": 0.000287468912860962, "p50": 0.006637472152709961, "p90": 0.0072374336242675774, "p95": 0.007404332828521727, "p99": 0.0076880255126953135, "values": [ 0.00801427173614502, 0.00756115198135376, 0.007461472034454346, 0.006919328212738037, 0.00666326379776001, 0.006653952121734619, 0.0066407999992370605, 0.006660863876342773, 0.00664851188659668, 0.006636832237243652, 0.00662278413772583, 0.006630559921264648, 0.006630591869354248, 0.0066241598129272465, 0.006603424072265625, 0.006610752105712891, 0.006615935802459717, 0.0066273918151855465, 0.006615295886993409, 0.006603712081909179, 0.006621535778045654, 0.006623519897460938, 0.006607423782348633, 0.006634719848632812, 0.006628736019134522, 0.006605696201324463, 0.006615903854370117, 0.006606495857238769, 0.0066685757637023925, 0.0066112961769104, 0.006765632152557373, 0.006674272060394287, 0.0066118078231811525, 0.006605023860931396, 0.006613247871398926, 0.006607135772705078, 0.006624415874481201, 0.006596000194549561, 0.0065864319801330565, 0.006604095935821533, 0.006618080139160157, 0.006596320152282715, 0.006599936008453369, 0.006703680038452149, 0.00660643196105957, 0.006542175769805908, 0.007118783950805664, 0.006716351985931396, 0.006637472152709961, 0.006560512065887451, 0.006578911781311035, 0.006582272052764892, 0.0072483839988708495, 0.007548960208892822, 0.007304959774017334, 0.0073348798751831056, 0.00736624002456665, 0.0070275840759277345, 0.006924543857574463, 0.006867839813232422, 0.006888095855712891, 0.006872096061706543, 0.006858399868011475, 0.006834112167358399, 0.006879936218261719, 0.006881728172302246, 0.0068886399269104, 0.0068670082092285156, 0.006867616176605224, 0.0068652482032775875, 0.006891615867614746, 0.006864575862884521, 0.007193632125854492 ] }, "throughput": { "unit": "tokens/s", "value": 294.53652112963596 }, "energy": { "unit": "kWh", "cpu": 8.182259228644078e-08, "ram": 4.471254207614804e-08, "gpu": 1.649867220276552e-07, "total": 2.9152185639024403e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6860549.0674521215 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1229.357056, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.458112 }, "latency": { "unit": "s", "count": 73, "total": 0.5112730536460878, "mean": 0.00700374046090531, "stdev": 0.00032916798441274365, "p50": 0.006850016117095947, "p90": 0.007377651023864746, "p95": 0.007650540733337402, "p99": 0.00816961265563965, "values": [ 0.00800716781616211, 0.007642975807189941, 0.00858732795715332, 0.006873151779174805, 0.006801119804382324, 0.006809760093688965, 0.006838528156280518, 0.006850016117095947, 0.0070024638175964354, 0.006802879810333252, 0.006816703796386719, 0.006866528034210205, 0.006795392036437988, 0.0068017921447753905, 0.006811103820800781, 0.006815231800079345, 0.006811967849731445, 0.006797120094299316, 0.0067957439422607424, 0.006794879913330078, 0.006790719985961914, 0.006909408092498779, 0.006803616046905518, 0.006780960083007812, 0.00677836799621582, 0.006797823905944824, 0.006782656192779541, 0.006802495956420899, 0.0068148159980773925, 0.006910463809967041, 0.006861343860626221, 0.0067693438529968265, 0.006794303894042969, 0.00679699182510376, 0.006913407802581787, 0.0069081602096557615, 0.006768320083618164, 0.0068072319030761715, 0.00677180814743042, 0.006752895832061768, 0.006813568115234375, 0.006807968139648437, 0.006760064125061035, 0.006787839889526367, 0.006711711883544922, 0.006965312004089355, 0.007120223999023437, 0.00690723180770874, 0.006789408206939697, 0.0068223681449890135, 0.006784832000732422, 0.007135647773742676, 0.007661888122558594, 0.00738431978225708, 0.007484960079193115, 0.007523359775543213, 0.00735097599029541, 0.007146751880645752, 0.007108736038208008, 0.007139935970306397, 0.007220863819122314, 0.007113120079040527, 0.0070886721611022946, 0.007103968143463135, 0.00712550401687622, 0.0071006398200988766, 0.007101119995117188, 0.00708787202835083, 0.007108287811279297, 0.0071060161590576175, 0.0071311678886413574, 0.007870143890380859, 0.0072715840339660645 ] }, "throughput": { "unit": "tokens/s", "value": 142.7808476887419 }, "energy": { "unit": "kWh", "cpu": 7.571807167441708e-08, "ram": 4.136075597277317e-08, "gpu": 1.537562230249283e-07, "total": 2.708350506721185e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3692284.279742771 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.4805754551887513, "mean": 0.006583225413544536, "stdev": 0.0002939158204639905, "p50": 0.006435840129852295, "p90": 0.006905446529388427, "p95": 0.007099801635742187, "p99": 0.007614159393310547, "values": [ 0.007449600219726562, 0.007072768211364746, 0.008037311553955078, 0.006467648029327392, 0.006406144142150879, 0.006415359973907471, 0.006440959930419922, 0.006435840129852295, 0.006595583915710449, 0.006395904064178467, 0.006424543857574463, 0.006464511871337891, 0.006402048110961914, 0.006407167911529541, 0.0064174079895019534, 0.006398047924041748, 0.006416384220123291, 0.006404128074645996, 0.006385600090026856, 0.006388735771179199, 0.0063805441856384275, 0.0065146880149841305, 0.006398975849151611, 0.006384640216827392, 0.006384640216827392, 0.006401023864746094, 0.006370304107666015, 0.006401023864746094, 0.00642252779006958, 0.006481919765472412, 0.006449151992797852, 0.006375423908233643, 0.006402048110961914, 0.006403007984161377, 0.006501376152038574, 0.0065146880149841305, 0.006376448154449463, 0.006411263942718506, 0.00638156795501709, 0.006359039783477783, 0.0064204797744750975, 0.006407135963439941, 0.006368256092071533, 0.006394976139068603, 0.0063201279640197755, 0.00643071985244751, 0.0067010560035705566, 0.0065146880149841305, 0.00638259220123291, 0.006421504020690918, 0.00637337589263916, 0.006649856090545654, 0.00714035177230835, 0.006912000179290771, 0.007008255958557129, 0.0070553598403930665, 0.006879231929779053, 0.006730751991271973, 0.006699007987976074, 0.00672051191329956, 0.006802432060241699, 0.006694911956787109, 0.006672383785247803, 0.006692863941192627, 0.006706175804138184, 0.006691840171813965, 0.0066938881874084475, 0.006677504062652588, 0.006703104019165039, 0.006697951793670654, 0.006725599765777588, 0.007353343963623047, 0.006793216228485107 ] }, "throughput": { "unit": "tokens/s", "value": 151.90122427565194 }, "energy": null, "efficiency": null } } }