{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.5.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": 2, "sequence_length": 16 }, "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.248768, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.228-219.884.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.dev0", "optimum_benchmark_commit": null, "transformers_version": "4.46.3", "transformers_commit": null, "accelerate_version": "1.1.1", "accelerate_commit": null, "diffusers_version": "0.31.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.11", "timm_commit": null, "peft_version": "0.13.2", "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 823.86944, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "values": [ 0.05421875381469726 ], "count": 1, "total": 0.05421875381469726, "mean": 0.05421875381469726, "p50": 0.05421875381469726, "p90": 0.05421875381469726, "p95": 0.05421875381469726, "p99": 0.05421875381469726, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1275.457536, "max_global_vram": 1379.401728, "max_process_vram": 0.0, "max_reserved": 731.906048, "max_allocated": 538.394112 }, "latency": { "unit": "s", "values": [ 0.0073408961296081545, 0.007253407955169678, 0.0072056961059570315, 0.007249855995178222, 0.007231647968292236, 0.007213471889495849, 0.007209375858306884, 0.007197824001312256, 0.00721295976638794, 0.007214752197265625, 0.007193888187408447, 0.007167520046234131, 0.007180287837982178, 0.007249631881713867, 0.0071877760887146, 0.007193727970123291, 0.007517568111419678, 0.007254816055297851, 0.007189824104309082, 0.007206240177154541, 0.007682047843933106, 0.007570432186126709, 0.00760591983795166, 0.0076146240234375, 0.007601312160491943, 0.007568511962890625, 0.007202335834503174, 0.007216383934020996, 0.007207583904266357, 0.007181056022644043, 0.0071664958000183104, 0.0071907520294189455, 0.007144991874694824, 0.0072013759613037106, 0.007199103832244873, 0.00719488000869751, 0.007762720108032226, 0.0077116799354553225, 0.007810368061065674, 0.007835391998291016, 0.007855648040771485, 0.008012479782104492, 0.007297056198120117, 0.007229951858520508, 0.007198016166687012, 0.00718943977355957, 0.007135776042938233, 0.007170559883117676, 0.007185376167297363, 0.007193183898925782, 0.007199488162994385, 0.007297376155853272, 0.007589407920837402, 0.007603392124176025, 0.008162591934204102, 0.007820096015930176, 0.007224575996398926, 0.007199391841888427, 0.007172031879425049, 0.00722208023071289, 0.007154687881469727, 0.007175456047058106, 0.007255712032318115, 0.007219808101654053, 0.007202400207519531, 0.007248288154602051, 0.007225632190704346, 0.00716428804397583, 0.007150207996368408 ], "count": 69, "total": 0.5060935363769532, "mean": 0.007334688932999322, "p50": 0.007213471889495849, "p90": 0.007721887969970704, "p95": 0.00782927360534668, "p99": 0.008060515670776366, "stdev": 0.00024081697771896225, "stdev_": 3.2832609524244223 }, "throughput": { "unit": "tokens/s", "value": 4362.829874901658 }, "energy": { "unit": "kWh", "cpu": 9.113494901175027e-08, "ram": 4.979798553221209e-08, "gpu": 1.957095582769244e-07, "total": 3.366424928208868e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 95056330.32792994 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1275.457536, "max_global_vram": 1379.401728, "max_process_vram": 0.0, "max_reserved": 731.906048, "max_allocated": 538.394624 }, "latency": { "unit": "s", "values": [ 0.007026847839355469, 0.007116320133209228, 0.007014431953430176, 0.006976384162902832, 0.006995999813079834, 0.007009376049041748, 0.006993184089660645, 0.006954016208648682, 0.007000864028930664, 0.006992191791534424, 0.006988063812255859, 0.006999040126800537, 0.006995391845703125, 0.007057184219360351, 0.006970655918121338, 0.006960031986236573, 0.007079103946685791, 0.006970719814300537, 0.007008575916290284, 0.006968287944793701, 0.007417376041412353, 0.0074254717826843265, 0.007419616222381592, 0.007436319828033448, 0.007446976184844971, 0.0074973440170288085, 0.006990560054779053, 0.006948192119598389, 0.006973311901092529, 0.0069721279144287105, 0.006969024181365966, 0.0069939842224121095, 0.007029024124145508, 0.0069855680465698245, 0.007023871898651123, 0.007683807849884033, 0.007620287895202637, 0.007754335880279541, 0.007587776184082031, 0.007522528171539307, 0.008129247665405273, 0.007604095935821533, 0.006992767810821534, 0.0069816322326660156, 0.006996384143829346, 0.006960224151611328, 0.007016511917114257, 0.006938240051269531, 0.006919167995452881, 0.007042463779449463, 0.006934336185455322, 0.007413407802581787, 0.007442368030548096, 0.007855711936950683, 0.007709440231323242, 0.007432864189147949, 0.006989759922027588, 0.006980031967163086, 0.007008863925933838, 0.0069433279037475586, 0.006987808227539062, 0.007007999897003174, 0.006951519966125488, 0.006992095947265625, 0.006963615894317627, 0.00699513578414917, 0.006975103855133056, 0.007006080150604248, 0.00697599983215332 ], "count": 69, "total": 0.49292038345336914, "mean": 0.007143773673237234, "p50": 0.006996384143829346, "p90": 0.007591040134429931, "p95": 0.007699187278747559, "p99": 0.00794324337005615, "stdev": 0.0002765757734173721, "stdev_": 3.871564050993241 }, "throughput": { "unit": "tokens/s", "value": 279.9640766185823 }, "energy": { "unit": "kWh", "cpu": 7.656843080045014e-08, "ram": 4.183852251329951e-08, "gpu": 1.5798790777941394e-07, "total": 2.763948610931637e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7236024.548683144 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.006670335769653321, 0.006758399963378906, 0.006658016204833984, 0.006619135856628418, 0.006639616012573242, 0.006653952121734619, 0.006635519981384277, 0.006597631931304931, 0.006611904144287109, 0.006633471965789795, 0.006632448196411133, 0.006633471965789795, 0.0066406397819519045, 0.006685696125030518, 0.006606847763061524, 0.006603775978088379, 0.006717440128326416, 0.006616064071655273, 0.006653952121734619, 0.006602752208709717, 0.007014400005340577, 0.007048192024230957, 0.00704204797744751, 0.007050240039825439, 0.007030784130096435, 0.007116799831390381, 0.006627295970916748, 0.006595583915710449, 0.0066078720092773435, 0.0065771517753601075, 0.006603775978088379, 0.006623231887817383, 0.0066641921997070315, 0.0066304001808166506, 0.0066641921997070315, 0.00729804801940918, 0.007233535766601563, 0.007366623878479004, 0.0071833600997924804, 0.007116799831390381, 0.007683072090148926, 0.007217152118682861, 0.006636544227600098, 0.006592512130737305, 0.006636544227600098, 0.006603775978088379, 0.006659071922302246, 0.006583263874053955, 0.006564864158630371, 0.006683648109436035, 0.006575104236602783, 0.007035903930664063, 0.007066624164581299, 0.007378943920135498, 0.007316480159759522, 0.0070594558715820314, 0.006632512092590332, 0.006592512130737305, 0.006649856090545654, 0.00658841609954834, 0.006631423950195312, 0.006651904106140137, 0.006595583915710449, 0.006624224185943603, 0.006606847763061524, 0.006639616012573242, 0.0065781760215759275, 0.006635519981384277, 0.006604800224304199 ], "count": 69, "total": 0.46728995370864873, "mean": 0.006772318169690561, "p50": 0.006636544227600098, "p90": 0.0071901185035705565, "p95": 0.007309107303619384, "p99": 0.007476264934539793, "stdev": 0.00025982003961863, "stdev_": 3.836500783165384 }, "throughput": { "unit": "tokens/s", "value": 295.31985206350447 }, "energy": null, "efficiency": null } } }