{ "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.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.723968, "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.12043017578125, "mean": 7.12043017578125, "stdev": 0.0, "p50": 7.12043017578125, "p90": 7.12043017578125, "p95": 7.12043017578125, "p99": 7.12043017578125, "values": [ 7.12043017578125 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.917214512825013e-07, "ram": 5.162810720677651e-07, "gpu": 1.7511125120000734e-06, "total": 3.25911503535034e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1036.783616, "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.48559372758865355, "mean": 0.00630641204660589, "stdev": 0.00024296539293338777, "p50": 0.006177279949188232, "p90": 0.006468710517883301, "p95": 0.006622438335418702, "p99": 0.007124086914062497, "values": [ 0.0075959677696228025, 0.006975071907043457, 0.0069333758354187015, 0.006959968090057373, 0.006445727825164795, 0.006544703960418701, 0.006425024032592774, 0.006177279949188232, 0.006187327861785889, 0.006182528018951416, 0.006434400081634522, 0.006464320182800293, 0.0064328317642211915, 0.006439199924468994, 0.0061658558845520016, 0.006156735897064209, 0.00616707181930542, 0.006161503791809082, 0.006133408069610596, 0.006139200210571289, 0.006123583793640136, 0.006131519794464111, 0.006161600112915039, 0.006150496006011963, 0.006136447906494141, 0.006138368129730225, 0.006483839988708496, 0.0064345598220825195, 0.0064208321571350094, 0.006399936199188232, 0.006409311771392822, 0.006434304237365723, 0.006376287937164307, 0.006401792049407959, 0.006398047924041748, 0.006407711982727051, 0.006479743957519531, 0.006399040222167969, 0.006389664173126221, 0.006145279884338379, 0.006141759872436523, 0.006145088195800781, 0.006131743907928467, 0.006102687835693359, 0.006112256050109863, 0.006118080139160156, 0.006141983985900879, 0.006116799831390381, 0.006324480056762696, 0.0063137922286987305, 0.006438399791717529, 0.006458144187927246, 0.006417823791503906, 0.006475296020507813, 0.006423552036285401, 0.006380224227905273, 0.0064180798530578615, 0.006431104183197022, 0.006406816005706787, 0.006150784015655518, 0.00616048002243042, 0.0061890239715576174, 0.006156415939331055, 0.006146751880645752, 0.006131872177124024, 0.006146848201751709, 0.006177087783813476, 0.006136928081512451, 0.006155648231506348, 0.006132287979125977, 0.006106112003326416, 0.00612550401687622, 0.006130591869354248, 0.00611952018737793, 0.006147039890289307, 0.006116288185119629, 0.006122560024261475 ] }, "throughput": { "unit": "tokens/s", "value": 317.1375395739325 }, "energy": { "unit": "kWh", "cpu": 7.652202814710612e-08, "ram": 4.180761452011656e-08, "gpu": 1.5966321016773858e-07, "total": 2.7799285283496123e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7194429.567537694 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1052.42624, "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.5151694068908691, "mean": 0.006690511777803495, "stdev": 0.00027151196912031237, "p50": 0.0065771198272705075, "p90": 0.006870393562316894, "p95": 0.0071308545112609865, "p99": 0.007808044681549072, "values": [ 0.0077849278450012206, 0.007344863891601563, 0.007264383792877197, 0.007881247997283935, 0.007097472190856933, 0.0068681278228759765, 0.006866591930389404, 0.0065136318206787105, 0.006634719848632812, 0.006565311908721924, 0.006841567993164063, 0.006840960025787353, 0.006836351871490479, 0.006850912094116211, 0.006528384208679199, 0.0064973440170288084, 0.006470208168029785, 0.0064973759651184085, 0.006489376068115235, 0.006486847877502442, 0.006511839866638183, 0.006592000007629394, 0.006482272148132324, 0.006485504150390625, 0.006484096050262451, 0.00648473596572876, 0.006778783798217773, 0.0068076481819152835, 0.006777376174926758, 0.006809663772583008, 0.006782112121582032, 0.006790431976318359, 0.006814655780792237, 0.006761216163635254, 0.006873792171478272, 0.007014336109161377, 0.0067586879730224605, 0.006771840095520019, 0.006817599773406982, 0.006496767997741699, 0.006463327884674072, 0.006472383975982666, 0.006472288131713867, 0.006482687950134278, 0.006487391948699951, 0.006486527919769287, 0.006458271980285644, 0.007000671863555908, 0.006711808204650879, 0.006751711845397949, 0.006790815830230713, 0.006807392120361328, 0.006848991870880127, 0.0067957439422607424, 0.006702655792236328, 0.006801023960113526, 0.0067710399627685545, 0.006814784049987793, 0.0067964158058166505, 0.006504096031188965, 0.0065771198272705075, 0.0064980478286743165, 0.006480576038360596, 0.006493696212768555, 0.006511648178100586, 0.006524576187133789, 0.006494592189788819, 0.006475008010864257, 0.006474527835845947, 0.006467328071594238, 0.006493631839752197, 0.006487199783325195, 0.006463232040405273, 0.006573503971099854, 0.006499807834625244, 0.006479296207427978, 0.006499616146087647 ] }, "throughput": { "unit": "tokens/s", "value": 149.4653971490805 }, "energy": { "unit": "kWh", "cpu": 7.371310954420392e-08, "ram": 4.032814727516484e-08, "gpu": 1.2945797752845813e-07, "total": 2.434992343478269e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4106789.0939301616 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 77, "total": 0.4839617595672607, "mean": 0.006285217656717671, "stdev": 0.00024238854891651975, "p50": 0.0061931519508361815, "p90": 0.006463488006591797, "p95": 0.006692044639587402, "p99": 0.007248838253021239, "values": [ 0.007210015773773193, 0.006783999919891357, 0.006737919807434082, 0.007371776103973389, 0.006680575847625733, 0.006457344055175781, 0.006452223777770996, 0.006121471881866455, 0.006250495910644531, 0.006116352081298828, 0.006440959930419922, 0.006436927795410156, 0.0064133119583129885, 0.006449151992797852, 0.006141952037811279, 0.006108160018920898, 0.006086656093597412, 0.006087679862976075, 0.006104032039642334, 0.006104991912841797, 0.0061265921592712404, 0.006205440044403076, 0.0060999679565429685, 0.006078464031219482, 0.006100992202758789, 0.006100992202758789, 0.00637440013885498, 0.0063907837867736815, 0.006379519939422608, 0.006397952079772949, 0.006377471923828125, 0.00638259220123291, 0.006404096126556396, 0.0063539199829101565, 0.006472703933715821, 0.006583295822143555, 0.006362112045288086, 0.006364160060882569, 0.006395904064178467, 0.006115327835083008, 0.006082560062408447, 0.00608358383178711, 0.006086656093597412, 0.006103040218353272, 0.006096896171569824, 0.006106112003326416, 0.006077439785003662, 0.006574016094207763, 0.006318079948425293, 0.006354944229125976, 0.006392831802368164, 0.006408192157745361, 0.006446112155914307, 0.006398975849151611, 0.006306816101074219, 0.006391808032989502, 0.006372352123260498, 0.006392831802368164, 0.006397952079772949, 0.006120448112487793, 0.0061931519508361815, 0.006114304065704346, 0.00607539176940918, 0.006111231803894043, 0.00611737585067749, 0.006132736206054688, 0.0060999679565429685, 0.006079487800598145, 0.00606822395324707, 0.006085631847381592, 0.006109216213226318, 0.006103040218353272, 0.0060661759376525876, 0.006174719810485839, 0.006094848155975342, 0.006089663982391357, 0.006112256050109863 ] }, "throughput": { "unit": "tokens/s", "value": 159.10347972296475 }, "energy": null, "efficiency": null } } }