{ "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.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.4.0", "optimum_benchmark_commit": null, "transformers_version": "4.43.3", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "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": 720.95744, "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.21674560546875, "mean": 7.21674560546875, "stdev": 0.0, "p50": 7.21674560546875, "p90": 7.21674560546875, "p95": 7.21674560546875, "p99": 7.21674560546875, "values": [ 7.21674560546875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.866663151317173e-07, "ram": 5.249972412917714e-07, "gpu": 1.7194458200001268e-06, "total": 3.231109376423615e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1025.57696, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 77, "total": 0.49017164611816405, "mean": 0.006365865534002131, "stdev": 0.00013268259356171238, "p50": 0.0063218240737915035, "p90": 0.006523315143585205, "p95": 0.006570368003845215, "p99": 0.006871238365173339, "values": [ 0.007080512046813965, 0.0065790719985961916, 0.006518208026885987, 0.006537087917327881, 0.0065127677917480465, 0.006458879947662354, 0.006320735931396484, 0.006296224117279052, 0.0065309758186340335, 0.006725279808044433, 0.006390655994415283, 0.0063218240737915035, 0.0063194561004638675, 0.006361599922180176, 0.006338431835174561, 0.006318240165710449, 0.006297855854034424, 0.0063471360206604, 0.006323328018188476, 0.006312895774841309, 0.0063185920715332035, 0.006352896213531494, 0.006345920085906983, 0.006329696178436279, 0.006318943977355957, 0.006338880062103271, 0.006367616176605225, 0.006334815979003906, 0.006311071872711182, 0.006338751792907714, 0.00634665584564209, 0.006343679904937744, 0.006335519790649414, 0.00635484790802002, 0.006346848011016846, 0.006338560104370118, 0.0063192319869995114, 0.006299263954162597, 0.006338047981262207, 0.006328127861022949, 0.006311071872711182, 0.006298399925231933, 0.006344511985778809, 0.006321760177612304, 0.006289120197296143, 0.006296703815460205, 0.006319647789001465, 0.00632425594329834, 0.00680515193939209, 0.006394303798675537, 0.0064107198715209965, 0.00656819200515747, 0.006500288009643555, 0.0065424637794494625, 0.006513887882232666, 0.006483039855957031, 0.006304480075836181, 0.006298336029052734, 0.006265503883361816, 0.006278624057769775, 0.006286431789398193, 0.006292928218841553, 0.006287744045257568, 0.006283328056335449, 0.006258592128753662, 0.006263264179229736, 0.006307616233825684, 0.006267936229705811, 0.006275263786315918, 0.006291903972625732, 0.006261119842529297, 0.006261919975280762, 0.006260320186614991, 0.006243103981018066, 0.006298431873321533, 0.006273695945739746, 0.006288447856903076 ] }, "throughput": { "unit": "tokens/s", "value": 314.17565911773636 }, "energy": { "unit": "kWh", "cpu": 7.897798330695542e-08, "ram": 4.318210323273522e-08, "gpu": 1.5857234908000077e-07, "total": 2.807324356196914e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7124221.309109442 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1041.219584, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 77, "total": 0.5104318714141846, "mean": 0.006628985343041358, "stdev": 0.00010108604336399535, "p50": 0.006596447944641114, "p90": 0.006798982429504395, "p95": 0.0068205822944641115, "p99": 0.006899655570983885, "values": [ 0.006817440032958985, 0.006818975925445557, 0.00681440019607544, 0.006816544055938721, 0.006590911865234375, 0.006596447944641114, 0.006550271987915039, 0.00658678388595581, 0.007063839912414551, 0.00682700777053833, 0.006631743907928467, 0.0066276159286499025, 0.0066152639389038086, 0.006572000026702881, 0.0066938881874084475, 0.006615488052368164, 0.006607935905456543, 0.006575520038604736, 0.00661356782913208, 0.006611455917358398, 0.006609024047851563, 0.006574783802032471, 0.0065831680297851565, 0.006698048114776612, 0.0066325759887695315, 0.006600416183471679, 0.006571392059326172, 0.006604576110839843, 0.006606880187988281, 0.006584767818450928, 0.006642015933990478, 0.0066059517860412595, 0.006687007904052735, 0.0065688958168029785, 0.006545631885528564, 0.0065987520217895505, 0.006614912033081055, 0.006601439952850342, 0.00655622386932373, 0.00659222412109375, 0.006591551780700684, 0.0066763520240783695, 0.006557248115539551, 0.006595583915710449, 0.006595647811889648, 0.006574560165405274, 0.00658128023147583, 0.006560448169708252, 0.006847807884216309, 0.006690368175506591, 0.006828320026397705, 0.0067751679420471195, 0.006788703918457031, 0.006782591819763184, 0.006777023792266846, 0.006780928134918213, 0.006542943954467774, 0.0065716800689697265, 0.006588479995727539, 0.006619967937469482, 0.006556384086608887, 0.006545760154724121, 0.006546239852905273, 0.006532320022583008, 0.006570303916931152, 0.006518496036529541, 0.00656390380859375, 0.006544832229614258, 0.006624383926391602, 0.006536896228790283, 0.006526495933532715, 0.00660694408416748, 0.006540832042694092, 0.00652729606628418, 0.006534143924713135, 0.00653436803817749, 0.00656982421875 ] }, "throughput": { "unit": "tokens/s", "value": 150.85264912370482 }, "energy": { "unit": "kWh", "cpu": 7.167422342512787e-08, "ram": 3.918793185072901e-08, "gpu": 1.447295813250617e-07, "total": 2.555917366009187e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3912489.5558004733 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 77, "total": 0.48035619115829464, "mean": 0.006238392092964866, "stdev": 9.610502382168776e-05, "p50": 0.006209536075592041, "p90": 0.006395903968811035, "p95": 0.006426214408874511, "p99": 0.00650235891342163, "values": [ 0.006422463893890381, 0.006425600051879882, 0.006411263942718506, 0.006405119895935059, 0.006206463813781738, 0.006212607860565185, 0.006164480209350586, 0.006187007904052734, 0.0066416640281677245, 0.006428671836853027, 0.006200319766998291, 0.006245376110076905, 0.00623308801651001, 0.006189055919647217, 0.006271935939788818, 0.006236159801483154, 0.006220799922943115, 0.006191103935241699, 0.006180895805358887, 0.006227968215942382, 0.006214655876159668, 0.006180863857269287, 0.006198272228240966, 0.006307839870452881, 0.006240255832672119, 0.006214655876159668, 0.0061859841346740725, 0.006221824169158936, 0.0062197761535644535, 0.006196224212646485, 0.0062566399574279785, 0.0062269439697265625, 0.006303743839263916, 0.0061859841346740725, 0.006165503978729248, 0.00621670389175415, 0.00623308801651001, 0.006213632106781006, 0.00617574405670166, 0.006168575763702393, 0.006210527896881104, 0.006285312175750732, 0.00617574405670166, 0.006172671794891358, 0.006209536075592041, 0.006187007904052734, 0.006198272228240966, 0.006178815841674804, 0.006458367824554443, 0.006294528007507324, 0.006432767868041992, 0.006385663986206055, 0.00638976001739502, 0.006386688232421875, 0.006378496170043945, 0.006379519939422608, 0.006162432193756104, 0.006168575763702393, 0.006201344013214111, 0.006230016231536865, 0.006174719810485839, 0.006165472030639649, 0.006164480209350586, 0.006150144100189209, 0.006179840087890625, 0.006132736206054688, 0.0061521921157836916, 0.006161407947540283, 0.006240255832672119, 0.006155263900756836, 0.006147071838378906, 0.0062228479385375976, 0.006159359931945801, 0.006146048069000244, 0.006149119853973388, 0.0061521921157836916, 0.006188032150268555 ] }, "throughput": { "unit": "tokens/s", "value": 160.29771535644832 }, "energy": null, "efficiency": null } } }