{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+cu124", "_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.261056, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.223-211.872.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.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 791.289856, "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.546861328125, "mean": 7.546861328125, "stdev": 0.0, "p50": 7.546861328125, "p90": 7.546861328125, "p95": 7.546861328125, "p99": 7.546861328125, "values": [ 7.546861328125 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0004189395836645e-06, "ram": 5.32716600943119e-07, "gpu": 1.7975014380002766e-06, "total": 3.33063697852706e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1214.13632, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 73, "total": 0.4908065276145935, "mean": 0.0067233770906108695, "stdev": 0.0003563169793487755, "p50": 0.006768127918243408, "p90": 0.007170073795318603, "p95": 0.007246809673309326, "p99": 0.007489630603790284, "values": [ 0.007414303779602051, 0.007358975887298584, 0.007246592044830322, 0.006963615894317627, 0.0068537278175354, 0.007063263893127441, 0.006679967880249023, 0.006594944000244141, 0.006768127918243408, 0.007173312187194824, 0.0069203519821166995, 0.0068940801620483395, 0.0065198721885681155, 0.006841311931610108, 0.00702947187423706, 0.006973951816558838, 0.007247136116027832, 0.0067535037994384765, 0.006825920104980469, 0.006916575908660889, 0.006639232158660888, 0.00693839979171753, 0.006728608131408692, 0.006788479804992676, 0.0066575040817260745, 0.007214208126068115, 0.0068915200233459475, 0.006840223789215088, 0.006763360023498535, 0.006906688213348389, 0.006792831897735596, 0.006841343879699707, 0.006602399826049805, 0.006834080219268799, 0.0071571202278137205, 0.006759552001953125, 0.006700448036193848, 0.0067223038673400876, 0.006707583904266358, 0.006889440059661865, 0.006977695941925049, 0.007073567867279053, 0.006767231941223145, 0.006818272113800049, 0.0070293121337890625, 0.006815839767456055, 0.0066186881065368654, 0.0069913921356201175, 0.006510975837707519, 0.006477536201477051, 0.006904128074645996, 0.007206655979156494, 0.006974207878112793, 0.007683328151702881, 0.006542399883270263, 0.006352287769317627, 0.00629417610168457, 0.006363552093505859, 0.0061385598182678225, 0.00630998420715332, 0.006097536087036132, 0.006384384155273437, 0.006235455989837647, 0.006150784015655518, 0.006112448215484619, 0.006093376159667969, 0.00611568021774292, 0.006266335964202881, 0.006144735813140869, 0.006153247833251953, 0.006277056217193604, 0.006257247924804687, 0.006254111766815186 ] }, "throughput": { "unit": "tokens/s", "value": 297.4695563027367 }, "energy": { "unit": "kWh", "cpu": 7.583426426928328e-08, "ram": 4.146433811977841e-08, "gpu": 1.5010096933758143e-07, "total": 2.673995717266431e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7479443.542432288 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1233.084416, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 73, "total": 0.5133532805442809, "mean": 0.007032236719784671, "stdev": 0.0003742854829794059, "p50": 0.007109856128692627, "p90": 0.007374656009674073, "p95": 0.0075320830345153795, "p99": 0.008071558265686035, "values": [ 0.007900959968566894, 0.007611839771270752, 0.007478911876678467, 0.007128032207489013, 0.0071907520294189455, 0.0071224961280822756, 0.00672156810760498, 0.0071560959815979005, 0.007448383808135986, 0.007247104167938233, 0.007286079883575439, 0.006834432125091553, 0.006723616123199463, 0.007219647884368897, 0.007147039890289307, 0.007190048217773437, 0.007207647800445556, 0.007188960075378418, 0.007052031993865967, 0.007008063793182373, 0.006911456108093262, 0.007289472103118896, 0.007172544002532959, 0.006930399894714356, 0.007190400123596191, 0.00743881607055664, 0.0072995200157165525, 0.0071418237686157226, 0.007378592014312744, 0.0071080641746521, 0.007109856128692627, 0.006988863945007324, 0.007319808006286621, 0.007197663784027099, 0.007219935894012451, 0.007029888153076172, 0.007132991790771485, 0.007079264163970947, 0.007221216201782226, 0.007358911991119385, 0.007285696029663086, 0.007180672168731689, 0.007183231830596924, 0.0069851517677307125, 0.006990272045135498, 0.007229887962341309, 0.007044703960418701, 0.007111072063446045, 0.006715712070465088, 0.007027935981750488, 0.0072789440155029295, 0.007710944175720215, 0.008510239601135254, 0.006937600135803222, 0.006661471843719483, 0.006789408206939697, 0.006818143844604492, 0.006595424175262451, 0.00648857593536377, 0.00653926420211792, 0.006588960170745849, 0.00654531192779541, 0.0063545598983764644, 0.00646937608718872, 0.006440927982330322, 0.006361536026000977, 0.0066070399284362796, 0.0065318398475646975, 0.00653926420211792, 0.006690752029418945, 0.006579135894775391, 0.006399072170257568, 0.0067779521942138675 ] }, "throughput": { "unit": "tokens/s", "value": 142.20226648323356 }, "energy": { "unit": "kWh", "cpu": 7.216452593133399e-08, "ram": 3.909255557955156e-08, "gpu": 1.7514277508216834e-07, "total": 2.8639985659305385e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3491621.8600657405 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.4782302751541137, "mean": 0.006551099659645393, "stdev": 0.00030798184169474133, "p50": 0.006604800224304199, "p90": 0.006829875278472901, "p95": 0.0069787646293640124, "p99": 0.007447575187683106, "values": [ 0.007354400157928467, 0.007051263809204102, 0.006930431842803955, 0.0066375679969787596, 0.006664224147796631, 0.006618112087249756, 0.0062791681289672855, 0.006650015830993652, 0.006906879901885986, 0.0066826238632202144, 0.006729728221893311, 0.006352896213531494, 0.006245376110076905, 0.006688767910003662, 0.006652927875518798, 0.006655968189239502, 0.006713344097137451, 0.006631423950195312, 0.0065372161865234375, 0.00653110408782959, 0.0064471039772033695, 0.006755328178405762, 0.006667263984680176, 0.006459296226501465, 0.006663167953491211, 0.00687824010848999, 0.00677894401550293, 0.006614016056060791, 0.006834176063537598, 0.006604800224304199, 0.006591487884521485, 0.0064982399940490725, 0.006812672138214112, 0.006621183872222901, 0.006740992069244385, 0.006543360233306885, 0.006628320217132568, 0.0065411200523376465, 0.006689792156219483, 0.006804480075836182, 0.0067420158386230465, 0.006676479816436768, 0.00665388822555542, 0.006511616230010986, 0.006511680126190186, 0.006738944053649902, 0.00653107213973999, 0.006710271835327148, 0.0063211522102355954, 0.006550496101379395, 0.006770688056945801, 0.007188479900360107, 0.0076871681213378906, 0.006532095909118653, 0.006249311923980713, 0.006394879817962646, 0.006433792114257812, 0.006209536075592041, 0.0060886721611022945, 0.006168575763702393, 0.006209536075592041, 0.006157311916351318, 0.005970943927764893, 0.006053887844085694, 0.006071296215057373, 0.005989376068115234, 0.006227968215942382, 0.0061561279296875, 0.006158336162567139, 0.006247424125671387, 0.006199488162994385, 0.0060293121337890625, 0.006401023864746094 ] }, "throughput": { "unit": "tokens/s", "value": 152.64612842939553 }, "energy": null, "efficiency": null } } }