{ "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.31.0", "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": 1025.572864, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 73, "total": 0.4869056000709535, "mean": 0.006669939726999361, "stdev": 0.00035911205548414416, "p50": 0.006476736068725586, "p90": 0.0072855807304382314, "p95": 0.0075385022163391106, "p99": 0.007828816585540771, "values": [ 0.007826047897338867, 0.007624639987945557, 0.007835936069488526, 0.007522143840789795, 0.007518943786621094, 0.007331935882568359, 0.007436063766479492, 0.0075630397796630855, 0.0071001601219177245, 0.006473375797271729, 0.006435872077941895, 0.006469024181365967, 0.006454304218292236, 0.006435008049011231, 0.006461728096008301, 0.006471295833587646, 0.006431136131286621, 0.006425504207611084, 0.006476736068725586, 0.006763775825500488, 0.006732192039489746, 0.0066910400390625, 0.006746623992919922, 0.006434656143188476, 0.006651072025299072, 0.006714591979980469, 0.0067151360511779785, 0.00671673583984375, 0.006674047946929932, 0.0067885761260986326, 0.006820864200592041, 0.006709343910217285, 0.006655519962310791, 0.00671123218536377, 0.0066806402206420895, 0.006711840152740478, 0.0064477758407592775, 0.00639788818359375, 0.006447296142578125, 0.006434016227722168, 0.006824543952941894, 0.006711071968078614, 0.0066442880630493166, 0.0067272958755493165, 0.006686495780944824, 0.006771168231964111, 0.0064495038986206055, 0.006391424179077149, 0.006430880069732666, 0.006425151824951172, 0.006408127784729004, 0.006452960014343262, 0.006818336009979248, 0.0067560958862304685, 0.00648092794418335, 0.006397727966308594, 0.00643225622177124, 0.006420928001403809, 0.006409696102142334, 0.006420351982116699, 0.00668175983428955, 0.006704351902008057, 0.0064133119583129885, 0.006401951789855957, 0.006438240051269532, 0.006407135963439941, 0.006391776084899902, 0.006425055980682373, 0.006426815986633301, 0.006407296180725098, 0.006422175884246826, 0.006407135963439941, 0.006381599903106689 ] }, "throughput": { "unit": "tokens/s", "value": 299.8527845617804 }, "energy": { "unit": "kWh", "cpu": 8.055316910812194e-08, "ram": 4.4041542180190435e-08, "gpu": 1.531614981904771e-07, "total": 2.777562094787895e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7200559.093721098 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1025.572864, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 73, "total": 0.5162633285522461, "mean": 0.0070721003911266575, "stdev": 0.00036879546747796313, "p50": 0.007020544052124023, "p90": 0.007701363182067871, "p95": 0.007888198375701904, "p99": 0.008145260848999024, "values": [ 0.007834112167358399, 0.008042176246643067, 0.00791264009475708, 0.007852992057800294, 0.007893248081207276, 0.0076744318008422855, 0.00788483190536499, 0.008410335540771485, 0.006956992149353028, 0.006831007957458496, 0.006850527763366699, 0.006879936218261719, 0.0068243517875671384, 0.006799615859985351, 0.006773663997650147, 0.006802144050598144, 0.006809760093688965, 0.006787615776062012, 0.0073937921524047856, 0.0071060161590576175, 0.007092095851898193, 0.007129248142242432, 0.007079071998596191, 0.006799615859985351, 0.00720143985748291, 0.007117343902587891, 0.007145343780517578, 0.0071138558387756345, 0.007097663879394531, 0.007230144023895263, 0.007140128135681152, 0.007157536029815674, 0.0071439042091369625, 0.007118080139160156, 0.007131840229034424, 0.007053152084350586, 0.0067645120620727535, 0.006866464138031006, 0.006746431827545166, 0.006763967990875244, 0.0071766719818115235, 0.007074848175048828, 0.00705625581741333, 0.007097856044769287, 0.007092288017272949, 0.007020544052124023, 0.006839392185211182, 0.006787392139434814, 0.006755680084228516, 0.006758719921112061, 0.006942751884460449, 0.007708096027374268, 0.007124032020568848, 0.00706879997253418, 0.006776095867156983, 0.006785600185394287, 0.0067563199996948245, 0.006797760009765625, 0.0068023681640625, 0.007668863773345947, 0.007135744094848633, 0.00706112003326416, 0.006789216041564941, 0.00687775993347168, 0.006801152229309082, 0.006853983879089355, 0.006773791790008545, 0.006754176139831543, 0.006782847881317139, 0.006830272197723389, 0.006736032009124756, 0.006798272132873535, 0.006766592025756836 ] }, "throughput": { "unit": "tokens/s", "value": 141.4007076673709 }, "energy": { "unit": "kWh", "cpu": 7.599476392451617e-08, "ram": 4.142374481870461e-08, "gpu": 1.479425438621542e-07, "total": 2.653610526053751e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3768450.53251701 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 145, "total": 0.9969786872863767, "mean": 0.006875715084733633, "stdev": 0.0004285762578276656, "p50": 0.006842368125915528, "p90": 0.007295180797576904, "p95": 0.00782602224349975, "p99": 0.008240072784423829, "values": [ 0.00722431993484497, 0.008269824028015137, 0.007479296207427978, 0.008433664321899414, 0.007361536026000977, 0.008110079765319824, 0.007296000003814697, 0.008111104011535645, 0.007362559795379638, 0.007898111820220948, 0.00713318395614624, 0.008012800216674805, 0.007309311866760254, 0.008174592018127442, 0.0073472318649291995, 0.008202207565307618, 0.006554624080657959, 0.0069027838706970214, 0.006400000095367431, 0.00689356803894043, 0.006448128223419189, 0.0068986878395080565, 0.0064767999649047855, 0.006883327960968018, 0.006395904064178467, 0.006890495777130127, 0.006397952079772949, 0.006889472007751465, 0.006376448154449463, 0.006894591808319092, 0.00637440013885498, 0.0068853759765625, 0.0064133119583129885, 0.006849599838256836, 0.006390719890594482, 0.006899712085723877, 0.006937600135803222, 0.0072499198913574215, 0.006689792156219483, 0.007176191806793213, 0.006648831844329834, 0.007160831928253173, 0.006718463897705078, 0.0071833600997924804, 0.006646783828735352, 0.006903808116912841, 0.006401023864746094, 0.00707583999633789, 0.006791168212890625, 0.0071526398658752445, 0.006706175804138184, 0.007153664112091064, 0.0067348480224609375, 0.007154687881469727, 0.00669593620300293, 0.007118879795074463, 0.00668668794631958, 0.007226367950439453, 0.006788095951080322, 0.007293951988220215, 0.00672870397567749, 0.007148575782775879, 0.006738912105560302, 0.007101439952850342, 0.006731776237487793, 0.007150591850280762, 0.006672383785247803, 0.007153664112091064, 0.006722559928894043, 0.007147520065307617, 0.006639616012573242, 0.0068884482383728025, 0.006367231845855713, 0.006821887969970703, 0.006467584133148193, 0.006872064113616944, 0.0063508481979370115, 0.006855679988861084, 0.006363135814666748, 0.007251967906951904, 0.006758399963378906, 0.007156735897064209, 0.006660096168518067, 0.0070860800743103025, 0.0066447358131408694, 0.007165952205657959, 0.006635519981384277, 0.007176191806793213, 0.006681600093841553, 0.007207935810089112, 0.0066119680404663084, 0.00688640022277832, 0.006440959930419922, 0.006815743923187256, 0.0063907837867736815, 0.006853631973266602, 0.006359039783477783, 0.006848512172698974, 0.006358016014099121, 0.006834176063537598, 0.006542335987091064, 0.006879231929779053, 0.0070256638526916505, 0.00753766393661499, 0.006711296081542969, 0.007196671962738037, 0.006624256134033203, 0.006952960014343262, 0.006378560066223144, 0.006820799827575684, 0.006388735771179199, 0.006854656219482422, 0.006360064029693604, 0.006842368125915528, 0.006401023864746094, 0.0068321280479431154, 0.006406144142150879, 0.006842368125915528, 0.00724070405960083, 0.007137279987335205, 0.006723584175109864, 0.007143424034118652, 0.006620160102844238, 0.006880256175994873, 0.0063907837867736815, 0.006825984001159668, 0.0064767999649047855, 0.006864895820617676, 0.006403071880340576, 0.006850560188293457, 0.006456319808959961, 0.006814720153808594, 0.006378496170043945, 0.006846464157104492, 0.006354944229125976, 0.006852608203887939, 0.006384640216827392, 0.006831103801727295, 0.00643071985244751, 0.006847487926483154, 0.006338560104370118, 0.006830143928527832, 0.006399936199188232, 0.0068055038452148435, 0.006368256092071533 ] }, "throughput": { "unit": "tokens/s", "value": 145.4394179625522 }, "energy": null, "efficiency": null } } }