{ "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.285632, "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.4", "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": { "load": { "memory": { "unit": "MB", "max_ram": 720.826368, "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.17241259765625, "mean": 7.17241259765625, "stdev": 0.0, "p50": 7.17241259765625, "p90": 7.17241259765625, "p95": 7.17241259765625, "p99": 7.17241259765625, "values": [ 7.17241259765625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.726324015193516e-07, "ram": 5.173901989044794e-07, "gpu": 1.7269458260013582e-06, "total": 3.216968426425189e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1029.476352, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 78, "total": 0.49152281570434575, "mean": 0.006301574560312124, "stdev": 0.00028722547067864423, "p50": 0.006231199979782104, "p90": 0.0065242623805999754, "p95": 0.006924313426017761, "p99": 0.007452945761680604, "values": [ 0.007153312206268311, 0.006917247772216797, 0.007408160209655762, 0.006233535766601563, 0.006327040195465088, 0.006173279762268067, 0.006131392002105713, 0.006372384071350098, 0.006046592235565185, 0.006093855857849121, 0.006090752124786377, 0.006066720008850098, 0.00623145580291748, 0.0061327037811279295, 0.006225664138793946, 0.006275360107421875, 0.006064864158630371, 0.006297408103942871, 0.006104671955108642, 0.006057759761810303, 0.006127391815185547, 0.006191135883331299, 0.006230944156646728, 0.0065000319480896, 0.006061920166015625, 0.006050943851470947, 0.006054368019104004, 0.0060572481155395505, 0.006050240039825439, 0.006218783855438233, 0.006206624031066895, 0.00632908821105957, 0.006229440212249756, 0.0060356159210205075, 0.006046879768371582, 0.006044703960418701, 0.0061693120002746585, 0.0061981439590454105, 0.006295199871063232, 0.00620627212524414, 0.006201695919036865, 0.006190303802490234, 0.006040031909942627, 0.006182271957397461, 0.0062912960052490235, 0.006204576015472412, 0.00620956802368164, 0.006213312149047852, 0.006051072120666504, 0.0076028800010681154, 0.006964352130889893, 0.006384704113006592, 0.00658080005645752, 0.006452159881591797, 0.006324416160583496, 0.006359807968139649, 0.006292640209197998, 0.006074463844299317, 0.006203328132629395, 0.006337376117706299, 0.006280960083007813, 0.006334303855895996, 0.00633296012878418, 0.006276991844177246, 0.006324128150939941, 0.006312287807464599, 0.006187551975250244, 0.0066184959411621095, 0.006393631935119629, 0.0068847999572753905, 0.006349279880523682, 0.006318943977355957, 0.006306687831878662, 0.006457759857177735, 0.00632697582244873, 0.006302048206329345, 0.0063526082038879396, 0.006292895793914795 ] }, "throughput": { "unit": "tokens/s", "value": 317.3809943622944 }, "energy": { "unit": "kWh", "cpu": 7.52736936138652e-08, "ram": 4.115630683255084e-08, "gpu": 1.5639077208860879e-07, "total": 2.7282077253502484e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7330820.089013711 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1045.118976, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 78, "total": 0.5148322553634643, "mean": 0.006600413530300826, "stdev": 0.00024634593627489586, "p50": 0.006576575994491577, "p90": 0.006809040021896362, "p95": 0.007107452726364135, "p99": 0.007408474607467653, "values": [ 0.007233983993530273, 0.0072213120460510255, 0.006681215763092041, 0.006569983959197998, 0.006455359935760498, 0.006599199771881103, 0.006410272121429444, 0.006376768112182617, 0.0065337600708007815, 0.006555840015411377, 0.006343935966491699, 0.006353248119354248, 0.006598207950592041, 0.00656220817565918, 0.006571167945861816, 0.006493824005126953, 0.0067112002372741696, 0.006550816059112549, 0.006375936031341553, 0.006356256008148193, 0.006616064071655273, 0.006680575847625733, 0.006602335929870606, 0.006367008209228516, 0.006378911972045899, 0.006396992206573486, 0.006365695953369141, 0.0064052481651306154, 0.006586847782135009, 0.006619711875915527, 0.006604159832000732, 0.006475584030151367, 0.006363391876220703, 0.006346911907196045, 0.006439424037933349, 0.0064404158592224125, 0.006509632110595703, 0.00656934404373169, 0.006525087833404541, 0.006505472183227539, 0.006342304229736328, 0.006360864162445069, 0.006403168201446533, 0.006507391929626465, 0.006587168216705322, 0.0065756158828735355, 0.006527200222015381, 0.0065775361061096195, 0.006353983879089356, 0.007850048065185546, 0.006602335929870606, 0.006879263877868652, 0.006803040027618408, 0.006661056041717529, 0.006642911911010742, 0.006673439979553223, 0.006792543888092041, 0.006397984027862549, 0.006344736099243164, 0.006623551845550537, 0.0068230400085449215, 0.006791584014892578, 0.006628159999847412, 0.006646175861358642, 0.006366496086120606, 0.006863103866577148, 0.006417759895324707, 0.00680022382736206, 0.007276576042175293, 0.0066464638710021975, 0.006693344116210937, 0.006645887851715088, 0.006625951766967774, 0.00708735990524292, 0.006649087905883789, 0.0066212477684021, 0.006608799934387207, 0.006781536102294922 ] }, "throughput": { "unit": "tokens/s", "value": 151.50565876050848 }, "energy": { "unit": "kWh", "cpu": 7.625497804244698e-08, "ram": 4.169366880241034e-08, "gpu": 1.5172480492403824e-07, "total": 2.6967345176889556e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3708188.5274230805 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 78, "total": 0.4837490568161011, "mean": 0.00620191098482181, "stdev": 0.00022385321536988822, "p50": 0.006182912111282348, "p90": 0.006404607820510864, "p95": 0.006700800204277039, "p99": 0.006894755983352664, "values": [ 0.006711296081542969, 0.0067051520347595215, 0.00628326416015625, 0.006179903984069824, 0.006077439785003662, 0.006166528224945069, 0.0060293121337890625, 0.005989376068115234, 0.006144000053405762, 0.006176767826080322, 0.005963808059692383, 0.005979135990142822, 0.006200319766998291, 0.006168575763702393, 0.006172671794891358, 0.006109183788299561, 0.006309887886047363, 0.006164480209350586, 0.005996543884277344, 0.005979135990142822, 0.006232063770294189, 0.00628326416015625, 0.00618393611907959, 0.005989408016204834, 0.006003712177276611, 0.005992447853088379, 0.005988351821899414, 0.006017024040222168, 0.0061972479820251464, 0.0062259202003479, 0.006210559844970703, 0.00608460807800293, 0.0059781761169433595, 0.005972991943359375, 0.0060631041526794435, 0.006038527965545654, 0.006132768154144287, 0.006181888103485108, 0.006137856006622314, 0.00612556791305542, 0.005966847896575928, 0.005981184005737304, 0.006009920120239258, 0.00611737585067749, 0.0061972479820251464, 0.006190080165863037, 0.006118400096893311, 0.006199295997619629, 0.005979135990142822, 0.007361536026000977, 0.006188032150268555, 0.006457280158996582, 0.0063836159706115725, 0.006252543926239014, 0.006253568172454834, 0.006277120113372803, 0.006386688232421875, 0.005997568130493164, 0.005957632064819336, 0.006218751907348633, 0.00642252779006958, 0.006396927833557129, 0.006228928089141846, 0.006258687973022461, 0.005984255790710449, 0.006474751949310303, 0.006013951778411865, 0.006392831802368164, 0.006755328178405762, 0.006247424125671387, 0.00626585578918457, 0.006258687973022461, 0.006230016231536865, 0.006700032234191895, 0.006259744167327881, 0.0062228479385375976, 0.006221824169158936, 0.00637440013885498 ] }, "throughput": { "unit": "tokens/s", "value": 161.2406244538725 }, "energy": null, "efficiency": null } } }