{ "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.42496, "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.15268310546875, "mean": 7.15268310546875, "stdev": 0.0, "p50": 7.15268310546875, "p90": 7.15268310546875, "p95": 7.15268310546875, "p99": 7.15268310546875, "values": [ 7.15268310546875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0418196519215902e-06, "ram": 5.266941945920204e-07, "gpu": 1.7147235939999218e-06, "total": 3.2832374405135324e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1031.974912, "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.48755497503280637, "mean": 0.006331882792633849, "stdev": 0.0002430760157662566, "p50": 0.006267839908599853, "p90": 0.0065477440834045405, "p95": 0.006568652629852295, "p99": 0.007607718486785888, "values": [ 0.007699647903442383, 0.007578688144683838, 0.006571263790130615, 0.006344799995422363, 0.006324607849121094, 0.006440095901489258, 0.0063119039535522465, 0.006331391811370849, 0.0062919998168945316, 0.006288288116455078, 0.006295360088348388, 0.006263775825500488, 0.006219136238098145, 0.006198431968688965, 0.006232768058776855, 0.006277311801910401, 0.0064767999649047855, 0.006196767807006836, 0.006167424201965332, 0.006198463916778564, 0.006197440147399902, 0.0061840319633483885, 0.006216063976287842, 0.00621065616607666, 0.006268447875976563, 0.0062930560111999516, 0.006260479927062988, 0.0063571839332580565, 0.006256256103515625, 0.006268864154815674, 0.006203743934631347, 0.006302815914154053, 0.006276959896087646, 0.006190271854400635, 0.006359072208404541, 0.006208992004394532, 0.006288767814636231, 0.006247712135314941, 0.006251999855041504, 0.00627513599395752, 0.006289984226226807, 0.006290559768676758, 0.006300928115844727, 0.006556863784790039, 0.006446784019470215, 0.006207647800445556, 0.00622544002532959, 0.006253888130187988, 0.006686272144317627, 0.00653433609008789, 0.0065454401969909665, 0.0065679998397827144, 0.006504640102386474, 0.006551775932312012, 0.006551199913024902, 0.0062659521102905276, 0.00627836799621582, 0.006261856079101563, 0.006277279853820801, 0.006266816139221192, 0.0061765117645263675, 0.006198527812957763, 0.006172607898712159, 0.006267231941223144, 0.006260640144348144, 0.006251808166503906, 0.0063190398216247555, 0.006373824119567871, 0.0061850881576538085, 0.006244416236877441, 0.006267839908599853, 0.006218944072723389, 0.006183040142059326, 0.0061847038269042965, 0.006162015914916992, 0.006184095859527588, 0.0062137279510498045 ] }, "throughput": { "unit": "tokens/s", "value": 315.8618163821172 }, "energy": { "unit": "kWh", "cpu": 7.806645913256541e-08, "ram": 4.268020236486386e-08, "gpu": 1.5351803217105425e-07, "total": 2.742646936684835e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7292225.52581811 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1047.617536, "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.510596191883087, "mean": 0.006631119375105027, "stdev": 0.00025100942544945253, "p50": 0.0065625600814819334, "p90": 0.006833203125, "p95": 0.006888684844970703, "p99": 0.00794432008743286, "values": [ 0.007907264232635498, 0.008061663627624512, 0.006591296195983887, 0.006607615947723388, 0.00660364818572998, 0.00661840009689331, 0.006561024188995361, 0.006580160140991211, 0.00655785608291626, 0.006584191799163818, 0.00656009578704834, 0.0064774398803710935, 0.006491487979888916, 0.00649567985534668, 0.006719999790191651, 0.006541408061981201, 0.006481599807739258, 0.006485536098480225, 0.006488992214202881, 0.006477151870727539, 0.006486720085144043, 0.006463039875030518, 0.006476480007171631, 0.006601151943206787, 0.006593952178955078, 0.006540512084960938, 0.006555263996124268, 0.006552864074707032, 0.006567808151245117, 0.0065625600814819334, 0.00648364782333374, 0.006532544136047363, 0.006586368083953857, 0.006929535865783692, 0.006511551856994629, 0.006456768035888672, 0.006556511878967285, 0.006584256172180176, 0.0065625600814819334, 0.006554656028747559, 0.006567168235778809, 0.006641727924346924, 0.006906784057617187, 0.006801824092864991, 0.006681695938110351, 0.006636640071868896, 0.006541344165802002, 0.0067309441566467286, 0.006846943855285645, 0.006833087921142578, 0.006884160041809082, 0.006841728210449219, 0.006833375930786133, 0.006801824092864991, 0.006830431938171387, 0.006580575942993164, 0.006565248012542725, 0.006533247947692871, 0.006553343772888184, 0.006614431858062744, 0.006530911922454834, 0.0064841599464416505, 0.006524799823760986, 0.006551487922668457, 0.006579360008239746, 0.006575168132781983, 0.0067807998657226564, 0.006678207874298096, 0.006635680198669434, 0.006607103824615479, 0.006534016132354737, 0.006479648113250733, 0.006482079982757568, 0.006475552082061768, 0.006468607902526856, 0.0064592638015747075, 0.006471551895141601 ] }, "throughput": { "unit": "tokens/s", "value": 150.80410160526804 }, "energy": { "unit": "kWh", "cpu": 7.349826872306872e-08, "ram": 4.018628431528886e-08, "gpu": 1.4328951891755517e-07, "total": 2.569740719559127e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3891443.1809741617 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 77, "total": 0.48035715198516826, "mean": 0.006238404571235953, "stdev": 0.00022929422123751047, "p50": 0.00617574405670166, "p90": 0.006436659336090088, "p95": 0.006491955280303955, "p99": 0.00740253707885742, "values": [ 0.007354368209838867, 0.007555071830749512, 0.006203392028808594, 0.00621673583984375, 0.0062156481742858885, 0.006223872184753418, 0.00617574405670166, 0.006164480209350586, 0.006173696041107178, 0.006194176197052002, 0.00617465591430664, 0.0060928001403808595, 0.006111231803894043, 0.006110208034515381, 0.006334464073181153, 0.006158336162567139, 0.006081535816192627, 0.0060999679565429685, 0.006107135772705078, 0.006095871925354004, 0.0060999679565429685, 0.00608358383178711, 0.006071296215057373, 0.00616755199432373, 0.006206463813781738, 0.006155263900756836, 0.006171648025512695, 0.006168575763702393, 0.006180831909179688, 0.006178815841674804, 0.006102015972137451, 0.006150144100189209, 0.0062044157981872555, 0.006495232105255127, 0.006128640174865723, 0.006077439785003662, 0.006152128219604492, 0.006200319766998291, 0.006179840087890625, 0.006166528224945069, 0.006180863857269287, 0.0062566399574279785, 0.006510591983795166, 0.006408192157745361, 0.006292479991912842, 0.006250495910644531, 0.006159359931945801, 0.006330368041992188, 0.006450175762176514, 0.006437888145446777, 0.006491136074066162, 0.006445055961608887, 0.006435840129852295, 0.006407104015350342, 0.006425600051879882, 0.006195199966430664, 0.006180863857269287, 0.006150144100189209, 0.006170623779296875, 0.006213632106781006, 0.006148096084594727, 0.006102015972137451, 0.006140927791595459, 0.006166528224945069, 0.006194176197052002, 0.006190080165863037, 0.006388735771179199, 0.006288383960723877, 0.006248447895050049, 0.006221824169158936, 0.006151167869567871, 0.006094848155975342, 0.006100992202758789, 0.006094848155975342, 0.006079487800598145, 0.006080512046813965, 0.006089727878570556 ] }, "throughput": { "unit": "tokens/s", "value": 160.2973947234525 }, "energy": null, "efficiency": null } } }