{ "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": "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", "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.42.3", "transformers_commit": null, "accelerate_version": "0.32.1", "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": { "prefill": { "memory": { "unit": "MB", "max_ram": 1054.253056, "max_global_vram": 1353.187328, "max_process_vram": 0.0, "max_reserved": 713.03168, "max_allocated": 509.62176 }, "latency": { "unit": "s", "count": 74, "total": 0.4871772470474244, "mean": 0.00658347631145168, "stdev": 0.0003963092041945444, "p50": 0.006449631929397582, "p90": 0.007180428695678712, "p95": 0.007294912052154541, "p99": 0.007472486281394958, "values": [ 0.007653759956359863, 0.0073547520637512204, 0.007405439853668213, 0.007273856163024902, 0.0071190080642700194, 0.006931488037109375, 0.006870304107666016, 0.006952799797058105, 0.006942207813262939, 0.007065408229827881, 0.006810431957244873, 0.007036640167236328, 0.007238687992095948, 0.007206751823425293, 0.007273024082183838, 0.00697926378250122, 0.0073340158462524415, 0.007003232002258301, 0.006994016170501709, 0.00693398380279541, 0.006860799789428711, 0.00670630407333374, 0.006507391929626465, 0.007025023937225342, 0.006804351806640625, 0.006619296073913574, 0.006730815887451172, 0.006847487926483154, 0.007002560138702393, 0.006616159915924073, 0.006460319995880127, 0.0064776320457458495, 0.006478015899658203, 0.006465343952178955, 0.006257855892181396, 0.006278592109680176, 0.006481728076934814, 0.006438943862915039, 0.006268256187438965, 0.006290207862854004, 0.0062494401931762695, 0.006248479843139649, 0.006333951950073242, 0.006268095970153808, 0.0062706880569458005, 0.00623638391494751, 0.006233248233795166, 0.006935999870300293, 0.006546879768371582, 0.00622441577911377, 0.006221792221069336, 0.006257120132446289, 0.006233983993530273, 0.006243199825286865, 0.006233888149261475, 0.006233952045440674, 0.006220863819122314, 0.00625497579574585, 0.006242656230926514, 0.006300288200378418, 0.006271135807037353, 0.006154176235198975, 0.006144544124603271, 0.006195519924163818, 0.006247647762298584, 0.0062382397651672365, 0.006240479946136475, 0.0062193918228149415, 0.006215072154998779, 0.006256127834320068, 0.00625273609161377, 0.006258240222930908, 0.006226880073547363, 0.006270592212677002 ] }, "throughput": { "unit": "tokens/s", "value": 303.79087056500595 }, "energy": { "unit": "kWh", "cpu": 7.768551140655706e-08, "ram": 4.247371264868763e-08, "gpu": 1.5415589674509773e-07, "total": 2.7431512080034244e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7290885.001762919 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1054.253056, "max_global_vram": 1353.187328, "max_process_vram": 0.0, "max_reserved": 713.03168, "max_allocated": 509.845504 }, "latency": { "unit": "s", "count": 74, "total": 0.5141308484077453, "mean": 0.0069477141676722335, "stdev": 0.00041930061495810923, "p50": 0.00675111985206604, "p90": 0.00753579216003418, "p95": 0.007741200065612793, "p99": 0.007932199430465697, "values": [ 0.007818272113800049, 0.007724512100219727, 0.00782204818725586, 0.007582655906677246, 0.007494495868682861, 0.00730463981628418, 0.007223807811737061, 0.007339072227478027, 0.007252287864685058, 0.007408639907836914, 0.007438399791717529, 0.008230015754699707, 0.007772192001342774, 0.00753872013092041, 0.007588128089904785, 0.0075289602279663085, 0.007517632007598877, 0.0074423041343688965, 0.007353824138641357, 0.0073004159927368166, 0.007212575912475586, 0.007112544059753418, 0.007292928218841553, 0.007169536113739014, 0.006976511955261231, 0.0069853439331054685, 0.007313568115234375, 0.007221856117248535, 0.007054368019104004, 0.006846240043640137, 0.006826752185821533, 0.006830592155456543, 0.006788512229919433, 0.006764607906341553, 0.006585311889648437, 0.006858880043029785, 0.006799615859985351, 0.006702432155609131, 0.006577087879180908, 0.006572224140167236, 0.006612415790557861, 0.006579967975616455, 0.006577280044555664, 0.006553023815155029, 0.006579135894775391, 0.006644608020782471, 0.006660672187805175, 0.006971871852874756, 0.006737631797790527, 0.006600575923919678, 0.006690944194793701, 0.0065937919616699215, 0.006616896152496338, 0.0066078720092773435, 0.006609119892120361, 0.006575679779052735, 0.00656390380859375, 0.006624703884124756, 0.006577568054199219, 0.0066343040466308595, 0.0066315197944641115, 0.0065270400047302245, 0.006592576026916504, 0.00666099214553833, 0.006572896003723144, 0.006601888179779053, 0.006601503849029541, 0.00660038423538208, 0.006596960067749023, 0.006584832191467285, 0.006572256088256836, 0.006602367877960205, 0.006605184078216553, 0.0065959677696228024 ] }, "throughput": { "unit": "tokens/s", "value": 143.93223092754846 }, "energy": { "unit": "kWh", "cpu": 7.529983691453707e-08, "ram": 4.1170143977132695e-08, "gpu": 1.4974748028053987e-07, "total": 2.6621746117220965e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3756327.6112573403 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 74, "total": 0.4813660812377931, "mean": 0.006504947043753959, "stdev": 0.00035964708595812397, "p50": 0.0063564801216125484, "p90": 0.006984112215042114, "p95": 0.007192729449272156, "p99": 0.00740091917991638, "values": [ 0.007248832225799561, 0.0071823358535766605, 0.007290880203247071, 0.007066624164581299, 0.00693452787399292, 0.006793216228485107, 0.006718463897705078, 0.006815743923187256, 0.00673689603805542, 0.006895616054534912, 0.006912992000579834, 0.0076984319686889645, 0.0072120318412780765, 0.006975488185882568, 0.007016448020935059, 0.0069621758460998535, 0.006987808227539062, 0.0068915200233459475, 0.006822912216186523, 0.006774784088134766, 0.0066979842185974124, 0.006632448196411133, 0.006790143966674805, 0.0067338237762451176, 0.006558720111846924, 0.006536191940307618, 0.006848512172698974, 0.006702079772949219, 0.006626304149627686, 0.006426623821258545, 0.00643071985244751, 0.006434815883636475, 0.006392831802368164, 0.006372352123260498, 0.006201344013214111, 0.006458367824554443, 0.006404096126556396, 0.0063170561790466305, 0.006180863857269287, 0.006180863857269287, 0.0062156801223754886, 0.00619212818145752, 0.006187007904052734, 0.006168575763702393, 0.00618393611907959, 0.006258687973022461, 0.006205440044403076, 0.006554624080657959, 0.006340608119964599, 0.006205440044403076, 0.006293504238128662, 0.006198272228240966, 0.0062156801223754886, 0.006217728137969971, 0.006202367782592774, 0.006181888103485108, 0.006179840087890625, 0.006232063770294189, 0.00619212818145752, 0.006235136032104492, 0.0062341117858886715, 0.006123519897460937, 0.0062044157981872555, 0.006277120113372803, 0.006177792072296143, 0.006207488059997559, 0.006206463813781738, 0.006200319766998291, 0.0061972479820251464, 0.006190080165863037, 0.006187071800231933, 0.006217728137969971, 0.0062197761535644535, 0.006198336124420166 ] }, "throughput": { "unit": "tokens/s", "value": 153.7291531005158 }, "energy": null, "efficiency": null } } }